Functional module intercommunication method, device, readable storage medium and electronic device

By triggering jump requests between functional modules in different programming languages ​​and carrying the execution result storage location, the interoperability of functional modules is achieved, solving the interoperability problems and cost increase in the prior art, and improving the timeliness of business response.

CN113805856BActive Publication Date: 2025-05-16BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110060409.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-18
Publication Date
2025-05-16
Estimated Expiration
2041-01-18

AI Technical Summary

Technical Problem

In the face of changes in business demand, it is difficult for the prior art to quickly and without increasing costs to achieve interoperability between functional modules of different computer programming languages, resulting in timeliness and maintenance costs.

Method used

By triggering a jump request when the first functional module is executed, carrying the execution result to store the location, the second functional module querying and performing corresponding functions according to the storage location, thereby realizing the interoperability of functional modules of different programming languages.

Benefits of technology

It realizes transparent interoperability between functional modules of different computer programming languages, without increasing development and maintenance costs, and improves the timeliness of business demand response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113805856B_ABST
    Figure CN113805856B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention propose a method, device, readable storage medium and electronic device for intercommunication of functional modules. The method includes: when the first functional module completes the execution of the first function, triggering a first jump request, the destination address of the first jump request is the address of the second functional module, and the first jump request carries the storage location of the current execution result of the first function; wherein the first functional module and the second functional module support different computer programming languages; the second functional module receives the first jump request, and according to the storage location of the current execution result of the first function carried by the first jump request, queries the current execution result of the first function in the corresponding storage location; the second functional module executes the second function according to the current execution result of the first function. The embodiments of the present invention realize the intercommunication between functional modules supporting different computer programming languages ​​without adding additional costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field, and in particular to a method and device for intercommunication between functional modules, a readable storage medium and an electronic device. Background Art

[0002] In actual applications, as business develops, business requirements often change. In order to solve a problem and avoid redeveloping existing business functions, developers will first turn to existing open source systems when faced with new business requirements. However, open source systems have a wide variety of development languages, and their functions may differ greatly from business requirements. Many functions may be approximately available, but do not fully meet business requirements and need to be expanded to meet business requirements. There are currently two solutions to this problem:

[0003] 1. For the development language of the open source system, adopt an internal staff learning method. After a certain learning cycle, when the internal staff has a certain development capability, they expand the functions of the open source system by developing and modifying the code to meet business needs.

[0004] This solution avoids duplicate development to a certain extent, but due to the uncertainty of the learning cycle, it brings serious timeliness issues to business use. Generally, it takes several months to learn a new development language. For business functions that need to be used urgently, this method is basically not feasible.

[0005] Second, recruit people who are familiar with the development language of open source systems, or simply use the development language that internal personnel are good at to redevelop the original system, use part of the open source system design, and make appropriate modifications to meet business needs.

[0006] Recruiting people who are familiar with the development language of open source systems can achieve rapid expansion of functions, but the subsequent system maintenance costs are high; using the development language that internal personnel are good at to redevelop the original system will have a longer development cycle, and the timeliness is very poor for urgently needed functions. Summary of the invention

[0007] The embodiments of the present invention provide a method and apparatus for intercommunication of functional modules, a readable storage medium and an electronic device, so as to realize intercommunication between functional modules supporting different computer programming languages ​​without increasing additional costs.

[0008] The technical solution of the embodiment of the present invention is achieved as follows:

[0009] A function module intercommunication method, the method comprising:

[0010] When the first function module completes executing the first function, a first jump request is triggered, the destination address of the first jump request is the address of the second function module, and the first jump request carries the storage location of the current execution result of the first function; wherein the first function module and the second function module support different computer programming languages;

[0011] The second functional module receives the first jump request, and queries the current execution result of the first function in the corresponding storage location according to the storage location of the current execution result of the first function carried in the first jump request;

[0012] The second function module executes the second function according to the current execution result of the first function.

[0013] After the second function is executed, the method further comprises:

[0014] The second functional module completes executing the second function and issues a reverse jump request, wherein the destination address of the reverse jump request is the address of the first functional module;

[0015] The first functional module receives the de-jump request and executes the first function.

[0016] The performing of the second function comprises:

[0017] When the second function module generates the current execution result of the second function, the current execution result of the second function is stored in a preset position of the storage module of the first function module, and the storage position of the current execution result of the second function in the storage module of the first function module is recorded;

[0018] Alternatively, the corresponding relationship among the current execution result of the second function, the current execution ID of the second function, and the current execution ID of the first function is saved in the storage module of the second function module.

[0019] The step of storing the current execution result of the second function in a preset position of the storage module of the first function module includes:

[0020] The current execution result of the second function is spliced ​​after the business field in the current execution result of the first function, or the current execution result of the second function is spliced ​​after the non-business field in the current execution result of the first function.

[0021] After the second function is executed, the method further comprises:

[0022] The first function module completes executing the first function again, triggering a second jump request, the destination address of the second jump request is the address of the second function module, and the second jump request carries the storage location of the current execution result of the first function;

[0023] The second function module receives the second jump request, and queries the current execution result of the first function according to the storage location of the current execution result of the first function carried in the second jump request;

[0024] The second function module queries whether the storage location of the last execution result of the second function in the storage module of the first function module is recorded, and if so, queries the last execution result of the second function at the corresponding location according to the recorded storage location;

[0025] The second function module queries the storage module of the second function module for the last execution result of the second function according to the last execution ID of the second function and the last execution ID of the first function;

[0026] The second function module executes the second function according to the current execution result of the first function and the last execution result of the queried second function.

[0027] When the first function module completes executing the first function, triggering the first jump request includes:

[0028] When it is detected that the preset button is clicked when the first function is executed, a first jump request is triggered.

[0029] The first functional module is a functional module provided by an open source system.

[0030] A functional module intercommunication device, the device comprising:

[0031] A jump module, used for triggering a first jump request when the first function module completes executing the first function, the destination address of the first jump request being the address of the second function module, and the first jump request carrying the storage location of the current execution result of the first function; wherein the first function module and the second function module support different computer programming languages;

[0032] The second functional module is used to receive the first jump request, and query the current execution result of the first function in the corresponding storage location according to the storage location of the current execution result of the first function carried in the first jump request; and execute the second function according to the current execution result of the first function.

[0033] A non-transitory computer-readable storage medium stores instructions, which, when executed by a processor, cause the processor to perform the steps of the functional module intercommunication method as described in any one of the above items.

[0034] An electronic device includes the non-transitory computer-readable storage medium as described above, and the processor capable of accessing the non-transitory computer-readable storage medium.

[0035] In an embodiment of the present invention, when the first function module completes executing the first function, a first jump request to jump to the second function module is triggered, and the request carries the storage location of the current execution result of the first function, so that the second function module can query the current execution result of the first function according to the storage location, and execute the second function according to the current execution result of the first function, thereby achieving intercommunication between function modules supporting different computer programming languages, that is, achieving the expansion of function modules supporting one computer programming language on the basis of function modules supporting another computer programming language, and the whole process is transparent to the user and does not increase additional development and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0037] Figure 1 A flow chart of a method for intercommunication of functional modules provided in one embodiment of the present invention;

[0038] Figure 2 A flow chart of a method for intercommunication of functional modules provided by another embodiment of the present invention;

[0039] Figure 3 A schematic diagram of the structure of a functional module intercommunication device provided in an embodiment of the present invention;

[0040] Figure 4 An exemplary structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0043] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0044] An embodiment of the present invention proposes a method for intercommunication between functional modules, by triggering a first jump request to jump to a second functional module when a first functional module completes executing a first function, and the request carries the storage location of the current execution result of the first function, so that the second functional module can query the current execution result of the first function according to the storage location, and execute the second function according to the current execution result of the first function, thereby realizing intercommunication between functional modules supporting different computer programming languages, that is, realizing the expansion of functional modules supporting another computer programming language on the basis of functional modules supporting one computer programming language, and the whole process is transparent to the user and does not increase additional development and maintenance costs.

[0045] Figure 1 A flow chart of a method for intercommunication of functional modules provided in an embodiment of the present invention, wherein the specific steps are as follows:

[0046] Step 101: After the first functional module completes executing the first function, a first jump request is triggered. The destination address of the first jump request is the address of the second functional module, and the first jump request carries the storage location of the current execution result of the first function. The first functional module and the second functional module support different computer programming languages.

[0047] The first functional module is, for example, a functional module provided by an open source system.

[0048] In this step, the first function module completes the execution of the first function, and the first jump request is triggered by: detecting that a preset button is clicked when the first function is completed, and then triggering the first jump request. For example: when the first function is completed, the "Save" button on the execution page is clicked, then the first jump request is triggered while executing the original save operation of the first function module.

[0049] Step 102: The second functional module receives the first jump request, and searches for the current execution result of the first function in the corresponding storage location according to the storage location of the current execution result of the first function carried in the first jump request.

[0050] Step 103: The second function module executes the second function according to the current execution result of the first function.

[0051] In the above embodiment, when the first function module completes executing the first function, a first jump request to jump to the second function module is triggered, and the request carries the storage location of the current execution result of the first function, so that the second function module can query the current execution result of the first function according to the storage location, and execute the second function according to the current execution result of the first function, thereby realizing the intercommunication between function modules supporting different computer programming languages, that is, realizing the expansion of function modules supporting one computer programming language on the basis of function modules supporting another computer programming language, and the whole process is transparent to the user, the user does not perceive that two function modules are being used, and no additional development and maintenance costs are added.

[0052] Considering that in practical applications, there is the following requirement: after executing the second function, you may want to execute another round of the first function + the second function, such as verifying the execution result of the previous round, or performing the next round of operations based on the execution result of the first round. In order to meet this requirement, the embodiment of the present invention provides the following solution:

[0053] In step 103, after executing the second function, it further includes: the second functional module completes executing the second function and issues a reverse jump request, the destination address of the reverse jump request is the address of the first functional module; the first functional module receives the reverse jump request and executes the first function.

[0054] The source address of the first jump request is the address of the first functional module. Therefore, the source address of the first jump request can be used as the destination address of the reverse jump request.

[0055] During the execution of the second function, an execution result of the second function is generated. The execution result of the second function can be stored in one of the following two ways:

[0056] Method 1: When the second functional module generates the current execution result of the second function, the current execution result of the second function is stored in a preset position of the storage module of the first functional module, and the storage position of the current execution result of the second function in the storage module of the first functional module is recorded.

[0057] That is, the first method is to place the execution result of the second function in the storage module of the first function module.

[0058] Specifically, the current execution result of the second function may be spliced ​​behind the business field in the current execution result of the first function, or may be spliced ​​into a non-business field in the current execution result of the first function.

[0059] Since the business data in the execution result of the first function has been stored in the business field, the remaining available length may not be sufficient to store the current execution result of the second function. At this time, if the execution result of the second function is distributed and stored in different positions of the storage module of the first function module, it will be more troublesome to read it later. In this case, the current execution result of the second function can be stored in the non-business field of the current execution result of the first function.

[0060] When storing the current execution result of the second function in the business field or non-business field of the current execution result of the first function, a preset concatenation symbol may be used for marking, and a preset separator may be used to separate different fields in the current execution result of the second function. Table 1 gives an example of storing the current execution result of the second function in the non-business field (remarks field) of the current execution result of the first function:

[0061]

[0062] Table 1

[0063] As shown in Table 1, the concatenation character and the separator are both "%", and the extension field 1 and the extension field 2 are two fields in the current execution result of the second function.

[0064] An example of Table 1 can be as follows:

[0065]

[0066] Table 2

[0067] Among them, the extension field name corresponding to "male" is: gender, and the extension field name corresponding to "life committee member" is: position. Since the two extension fields are extensions of the mobile terminal number: 133********, the remark: freshman in the first function, the two extension fields are spliced ​​after the remark field of the mobile terminal number: 133********, the remark: freshman.

[0068] When splicing the current execution result of the second function to the business field or non-business field of the current execution result of the first function, it is necessary to record: the correspondence between the current execution ID of the first function and the splicing method between the current execution result of the second function and the current execution result of the first function, wherein the splicing method includes: the business field name or non-business field name of the current execution result of the first function involved in the splicing, and the splicing format (such as: splicing character, separator, etc.).

[0069] Method 2: When the second function module generates the current execution result of the second function, the corresponding relationship between the current execution result of the second function, the current execution ID of the second function and the current execution ID of the first function is saved in the storage module of the second function module. Each execution process of the first function and the second function is identified by a unique execution ID.

[0070] That is, the second method is to place the execution result of the second function in the storage module of the second function module.

[0071] Table 3 gives an example of storing the current execution result of the second function in the storage module of the second function module:

[0072]

[0073] Table 3

[0074] It should be noted that during the execution of the second function, result data will be generated multiple times, and each time the result data is generated, one of the methods 1 and 2 can be selected for storage. That is, the execution result data of the second function can be partially stored in method 1 and the other part can be stored in method 2. For example: the execution result of the second function this time contains 3 fields: extension field 1, extension field 2 and extension field 3, then extension field 1 and extension field 2 can be stored in method 1, as shown in Table 1, and extension field 3 can be stored in method 2, as shown in Table 2.

[0075] In practical applications, there is also a requirement that after executing a round of the first function + the second function, another round of the first function + the second function needs to be executed, and the execution of the second function in the latter round needs to be based on the execution result of the second function in the previous round and the execution result of the first function in the latter round. In response to this requirement, the embodiment of the present invention provides the following solution:

[0076] Figure 2 A flow chart of a method for intercommunication of functional modules provided in another embodiment of the present invention, wherein the specific steps are as follows:

[0077] Step 201: After the first functional module completes executing the first function, a first jump request is triggered. The destination address of the first jump request is the address of the second functional module, and the first jump request carries the storage location of the current execution result of the first function. The first functional module and the second functional module support different computer programming languages.

[0078] The first functional module is, for example, a functional module provided by an open source system.

[0079] Setting: The execution result of the first function in this step is result A1. For example, A1 can be a set of result field names + field values.

[0080] Step 202: The second functional module receives the first jump request, and searches for the current execution result of the first function in the corresponding storage location according to the storage location of the current execution result of the first function carried in the first jump request.

[0081] When the current execution result of the first function is stored in the database, the storage location of the current execution result of the first function can be represented by the storage ID of the current execution result of the first function in the database. The second function module can query the current execution result of the first function (i.e., result A1) in the database based on the storage ID.

[0082] Step 203: The second function module executes the second function according to the current execution result of the first function.

[0083] Step 204: During the execution of the second function, when the second function module generates the current execution result of the second function, the current execution result of the second function is spliced ​​to the current execution result of the first function, and the current execution ID of the first function and the correspondence between the current execution result of the second function and the splicing method of the current execution result of the first function are recorded; or, the correspondence between the current execution result of the second function, the current execution ID of the second function and the current execution ID of the first function is saved in the storage module of the second function module.

[0084] Setting: The execution result of the second function in this step is result B1. For example, B1 can be a set of result field name + field value.

[0085] Step 205: After the second function module completes executing the second function, it issues a de-jump request, and the destination address of the de-jump request is the address of the first function module.

[0086] The source address of the first jump request is the address of the first functional module. Therefore, the source address of the first jump request can be used as the destination address of the reverse jump request.

[0087] Step 206: The first functional module receives the reverse jump request, executes the first function again, and after the execution is completed, triggers a second jump request. The destination address of the second jump request is the address of the second functional module, and the second jump request carries the storage location of the current execution result of the first function.

[0088] Setting: The execution result of the first function in this step is result A2.

[0089] Step 207: The second function module receives the second jump request, and queries the current execution result A2 of the first function according to the storage location of the current execution result A2 of the first function carried in the second jump request.

[0090] Step 208: The second function module queries whether the following records exist: the last execution ID of the first function, and the correspondence between the last execution result of the second function and the splicing method of the last execution result of the first function. If so, the last execution result of the second function is found in the storage module of the first function module based on the record.

[0091] Step 209: The second function module searches for the last execution result of the second function in the storage module of the second function module according to the last execution ID of the second function and the last execution ID of the first function.

[0092] Since the last execution result of the second function may be partially stored in the storage module of the first function module and the other part stored in the storage module of the second function module, the second function module needs to query the storage module of the first function module through step 208 and then query the storage module of the second function module through step 209.

[0093] Step 210: The second function module executes the second function according to the current execution result A2 of the first function and the last execution result B1 of the second function.

[0094] The second function module can display the current execution result A2 of the first function and the last execution result B1 of the second function on the operation interface. When displaying the last execution result B1 of the second function, if B1 is an extension of A1, A1 and B1 can be displayed together. For example, for Table 2, it can be displayed as:

[0095]

[0096] Table 4

[0097] Through the above embodiments, the intercommunication of the operating interfaces of the first function and the second function is realized, and the intercommunication of the storage and update of the execution result data of the first function and the second function is also realized, thereby realizing the expansion of the functional modules of any programming language through a proficient programming language without increasing additional development and maintenance costs, and the whole process is transparent to the user.

[0098] Figure 3 A schematic diagram of the structure of a functional module intercommunication device provided in an embodiment of the present invention, the device mainly includes:

[0099] The jump module 31 is used to trigger a first jump request when the first function module completes executing the first function. The destination address of the first jump request is the address of the second function module, and the first jump request carries the storage location of the current execution result of the first function; wherein the first function module and the second function module support different computer programming languages.

[0100] The second functional module 32 is used to receive the first jump request, and according to the storage location of the current execution result of the first function carried in the first jump request, query the current execution result of the first function in the corresponding storage location; and execute the second function according to the current execution result of the first function.

[0101] In an optional embodiment, after the second functional module 32 executes the second function, it is further used to: after completing the execution of the second function, issue a reverse jump request, the destination address of the reverse jump request is the address of the first functional module, so that: the first functional module receives the reverse jump request and executes the first function.

[0102] In an optional embodiment, the second function module 32 executes the second function including: when the current execution result of the second function is generated, storing the current execution result of the second function at a preset position of the storage module of the first function module, and recording the storage position of the current execution result of the second function in the storage module of the first function module; or, saving the correspondence between the current execution result of the second function, the current execution ID of the second function, and the current execution ID of the first function in the storage module of the second function module.

[0103] In an optional embodiment, the second function module 32 stores the current execution result of the second function at a preset position of the storage module of the first function module, including: splicing the current execution result of the second function after the business field in the current execution result of the first function, or splicing the current execution result of the second function after the non-business field in the current execution result of the first function.

[0104] In an optional embodiment, after the second function module 32 executes the second function, it is further used to: receive a second jump request sent by the first function module, and query the current execution result of the first function according to the storage location of the current execution result of the first function carried in the second jump request, wherein the second jump request is: triggered when the first function module completes executing the first function again; query whether the storage location of the last execution result of the second function is recorded in the storage module of the first function module, and if so, query the last execution result of the second function at the corresponding location according to the recorded storage location; query the last execution result of the second function in the storage module of the second function module according to the last execution ID of the second function and the last execution ID of the first function; execute the second function according to the current execution result of the first function and the queried last execution result of the second function.

[0105] In an optional embodiment, the jump module 31 triggers the first jump request when the first function module completes executing the first function, including: detecting that a preset button is clicked when the first function is completed, and then triggering the first jump request.

[0106] In an optional embodiment, the first functional module is a functional module provided by an open source system.

[0107] The embodiment of the present application also provides a computer-readable storage medium, which stores instructions, and the instructions can execute the steps in the functional module intercommunication method as described above when executed by a processor. In practical applications, the computer-readable medium can be included in each device / apparatus / system in the above embodiments, or it can exist independently without being assembled into the device / apparatus / system. Among them, instructions are stored in a computer-readable storage medium, and the instructions stored therein can execute the steps in the functional module intercommunication method as described above when executed by a processor.

[0108] According to the embodiments disclosed in the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof, but it is not used to limit the scope of protection of the present application. In the embodiments disclosed in the present application, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0109] like Figure 4 As shown, an embodiment of the present invention further provides an electronic device. Figure 4As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:

[0110] The electronic device may include a processor 41 with one or more processing cores, a memory 42 with one or more computer-readable storage media, and a computer program stored in the memory and executable on the processor. When executing the program in the memory 42, the above-mentioned functional module intercommunication method may be implemented.

[0111] Specifically, in practical applications, the electronic device may further include components such as a power supply 43, an input / output unit 44, etc. Those skilled in the art may understand that Figure 4 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0112] The processor 41 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the server and processes data by running or executing software programs and / or modules stored in the memory 42 and calling data stored in the memory 42, thereby monitoring the electronic device as a whole.

[0113] The memory 42 can be used to store software programs and modules, that is, the above-mentioned computer-readable storage medium. The processor 41 executes various functional applications and data processing by running the software programs and modules stored in the memory 42. The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 42 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 42 may also include a memory controller to provide the processor 41 with access to the memory 42.

[0114] The electronic device also includes a power supply 43 for supplying power to various components, which can be logically connected to the processor 41 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 43 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.

[0115] The electronic device may further include an input-output unit 44, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. The input-output unit 44 may also be used to display information input by the user or information provided to the user and various graphical user interfaces, which may be composed of graphics, text, icons, videos and any combination thereof.

[0116] The flow chart and block diagram in the accompanying drawings of the present application show the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in the order of the standards in different figures. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0117] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope disclosed in the present application.

[0118] Specific embodiments are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas, and is not used to limit the present application. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of this application.

Claims

1. A method for intercommunication of functional modules, characterized in that: The method includes: When the first function module completes executing the first function, a first jump request is triggered, the destination address of the first jump request is the address of the second function module, and the first jump request carries the storage location of the current execution result of the first function; wherein the first function module and the second function module support different computer programming languages; The second functional module receives the first jump request, and queries the current execution result of the first function in the corresponding storage location according to the storage location of the current execution result of the first function carried in the first jump request; The second function module executes the second function according to the current execution result of the first function; The performing of the second function comprises: When the second function module generates the current execution result of the second function, the current execution result of the second function is stored in a preset position of the storage module of the first function module, and the storage position of the current execution result of the second function in the storage module of the first function module is recorded; Alternatively, the corresponding relationship among the current execution result of the second function, the current execution ID of the second function, and the current execution ID of the first function is saved in the storage module of the second function module.

2. The method according to claim 1, characterized in that After the second function is executed, the method further comprises: The second functional module completes executing the second function and issues a reverse jump request, wherein the destination address of the reverse jump request is the address of the first functional module; The first functional module receives the de-jump request and executes the first function.

3. The method according to claim 1, characterized in that The step of storing the current execution result of the second function in a preset position of the storage module of the first function module includes: The current execution result of the second function is spliced ​​after the business field in the current execution result of the first function, or the current execution result of the second function is spliced ​​after the non-business field in the current execution result of the first function.

4. The method according to claim 1, characterized in that: After the second function is executed, the method further comprises: The first function module completes executing the first function again, triggering a second jump request, the destination address of the second jump request is the address of the second function module, and the second jump request carries the storage location of the current execution result of the first function; The second function module receives the second jump request, and queries the current execution result of the first function according to the storage location of the current execution result of the first function carried in the second jump request; The second function module queries whether the storage location of the last execution result of the second function in the storage module of the first function module is recorded, and if so, queries the last execution result of the second function at the corresponding location according to the recorded storage location; The second function module queries the storage module of the second function module for the last execution result of the second function according to the last execution ID of the second function and the last execution ID of the first function; The second function module executes the second function according to the current execution result of the first function and the last execution result of the queried second function.

5. The method according to claim 1, characterized in that When the first function module completes executing the first function, triggering the first jump request includes: When it is detected that the preset button is clicked when the first function is executed, a first jump request is triggered.

6. The method according to claim 1, characterized in that The first functional module is a functional module provided by an open source system.

7. A functional module intercommunication device, characterized in that: The device includes: A jump module, used for triggering a first jump request when the first function module completes executing the first function, the destination address of the first jump request being the address of the second function module, and the first jump request carrying the storage location of the current execution result of the first function; wherein the first function module and the second function module support different computer programming languages; The second functional module is used to receive the first jump request, and query the current execution result of the first function in the corresponding storage location according to the storage location of the current execution result of the first function carried in the first jump request; Execute the second function according to the execution result of the first function this time; The second function module performs the second function including: When the second function module generates the current execution result of the second function, the current execution result of the second function is stored in a preset position of the storage module of the first function module, and the storage position of the current execution result of the second function in the storage module of the first function module is recorded; Alternatively, the corresponding relationship among the current execution result of the second function, the current execution ID of the second function, and the current execution ID of the first function is saved in the storage module of the second function module.

8. A non-transitory computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by a processor, the processor executes the steps of the functional module intercommunication method according to any one of claims 1 to 6.

9. An electronic device, characterized in that: The invention comprises the non-transitory computer-readable storage medium of claim 8, and the processor having access to the non-transitory computer-readable storage medium.

Citation Information

Patent Citations

  • An application program generation method and device

    CN109918055A

  • Skipping processing method and device, computer equipment and computer readable storage medium

    CN112035169A