CN112035169B - Jump processing method and device, computer equipment and computer readable storage medium - Google Patents

Jump processing method and device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN112035169B
CN112035169B CN202010908200.2A CN202010908200A CN112035169B CN 112035169 B CN112035169 B CN 112035169B CN 202010908200 A CN202010908200 A CN 202010908200A CN 112035169 B CN112035169 B CN 112035169B
Authority
CN
China
Prior art keywords
function module
parameter table
function
identification
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010908200.2A
Other languages
Chinese (zh)
Other versions
CN112035169A (en
Inventor
赵毅佳
陈树伟
陈骅飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202010908200.2A priority Critical patent/CN112035169B/en
Publication of CN112035169A publication Critical patent/CN112035169A/en
Application granted granted Critical
Publication of CN112035169B publication Critical patent/CN112035169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/3005Arrangements for executing specific machine instructions to perform operations for flow control
    • G06F9/30069Instruction skipping instructions, e.g. SKIP

Abstract

The invention discloses a jump processing method and device, a computer device and a computer readable storage medium, wherein the method comprises the following steps: when the function module identification is obtained, determining a function module code identification corresponding to the function module identification according to the basic parameter table; outputting a function module return value after executing the function module code; determining a function module identifier of the function module to be skipped corresponding to the function module return value according to the skip parameter table; and circularly executing when the basic parameter table contains the function module identification of the function module to be skipped. The invention realizes the jump between the function modules through the pre-configured basic parameter table and the jump parameter table, can separate the business process from the function module codes, and greatly reduces the coupling between the business process and the function module codes; meanwhile, when the business flow is adjusted, only the basic parameter table and the jump parameter table are properly configured based on the adjustment of the business flow, so that the flexibility of jump processing during the adjustment of the business flow is greatly improved.

Description

Jump processing method and device, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for processing a jump, a computer device, and a computer readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, the jump logic of the business flow branch of the application system is generally hard coded into the code for judgment, namely the business flow jump logic of the application system and the code judgment logic are integrated together, and the business flow jump logic and the code judgment logic have very strong coupling. When the business process of the application system changes, the branches of the business process jump logic need to be modified, for example, jump branches need to be added or deleted, or jump branches need to be adjusted, and at the moment, the codes corresponding to the business process need to be modified. In addition, in view of the strong coupling between the business process and the code logic, the flexibility of the jump processing is also low when the business process changes.
Therefore, the existing logic jump processing has the problems of strong coupling between the business flow and the logic codes and poor flexibility in the logic jump processing adjustment.
Disclosure of Invention
The embodiment of the invention provides a jump processing method, which is used for separating a business flow and a logic code, greatly reducing the coupling between the business flow and the logic code and improving the flexibility of jump processing adjustment, and comprises the following steps:
when the function module identification is obtained, determining a function module code identification corresponding to the function module identification according to a pre-configured basic parameter table; the basic parameter table comprises function module identifiers of the function modules and function module code identifiers corresponding to the function module identifiers; the function module code mark is the mark of the function module code corresponding to the function module of the business process and is used for uniquely marking and distinguishing different function module codes;
outputting a function module return value of the function module after executing the function module code corresponding to the function module code identifier;
determining the function module identification of the function module and the function module identification of the function module to be skipped corresponding to the function module return value according to a pre-configured skip parameter table; the jump parameter table comprises function module identifications and function module return values of the function modules, and function module identifications of the function modules to be jumped corresponding to the function module identifications and the function module return values;
when the pre-configured basic parameter table contains the function module identification of the function module to be skipped, the loop execution determines the function module code identification corresponding to the function module identification according to the pre-configured basic parameter table when the function module identification is acquired.
The embodiment of the invention also provides a jump processing device for separating the business flow and the logic code, greatly reducing the coupling between the business flow and the logic code and improving the flexibility of the jump processing during adjustment, the jump processing device comprises:
the code identification determining module is used for determining the function module code identification corresponding to the function module identification according to a pre-configured basic parameter table when the function module identification is acquired; the basic parameter table comprises function module identifiers of the function modules and function module code identifiers corresponding to the function module identifiers; the function module code mark is the mark of the function module code corresponding to the function module of the business process and is used for uniquely marking and distinguishing different function module codes;
the return value output module is used for outputting the function module return value of the function module after executing the function module code corresponding to the function module code identifier;
the to-be-skipped identification determining module is used for determining the function module identification of the function module and the function module identification of the to-be-skipped function module corresponding to the function module return value according to a pre-configured skip parameter table; the jump parameter table comprises function module identifications and function module return values of the function modules, and function module identifications of the function modules to be jumped corresponding to the function module identifications and the function module return values;
when the pre-configured basic parameter table contains the function module identifier of the function module to be skipped, the code identifier determining module is further configured to determine, by performing loop execution, the function module code identifier corresponding to the function module identifier according to the pre-configured basic parameter table when the function module identifier is obtained.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the jump processing method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium storing a computer program for executing the jump processing method.
In the embodiment of the invention, through pre-configuring a basic parameter table and a jump parameter table, when the function module identifier is acquired, the function module code identifier corresponding to the function module identifier is determined according to the basic parameter table; and then outputting a function module return value after executing the function module code corresponding to the function module code identifier, and determining the function module identifier and the function module identifier of the function module to be skipped corresponding to the function module return value according to the skip parameter table so as to skip to the skip function module. According to the embodiment of the invention, the business process is divided into the independent functional modules, and the jump between the functional modules is realized through the pre-configured basic parameter table and the jump parameter table, so that the business process and the functional module codes can be separated, and the coupling property of the business process and the functional module codes is greatly reduced; meanwhile, when the business flow is adjusted, only the basic parameter table and the jump parameter table are properly configured based on the adjustment of the business flow, so that the flexibility of jump processing during the adjustment of the business flow is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart illustrating a jump processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another implementation of a jump processing method according to an embodiment of the present invention;
fig. 3 is a flowchart of step 101 in the jump processing method according to the embodiment of the present invention;
fig. 4 is a flowchart illustrating implementation of step 102 in the jump processing method according to the embodiment of the present invention;
fig. 5 is a flowchart illustrating implementation of step 103 in the jump processing method according to the embodiment of the present invention;
FIG. 6 is a flowchart illustrating a jump processing method according to an embodiment of the present invention;
FIG. 7 is a functional block diagram of a jump processing device according to an embodiment of the present invention;
FIG. 8 is a functional block diagram of a jump processing device according to an embodiment of the present invention;
fig. 9 is a block diagram of a code identifier determining module 701 in a jump processing apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram illustrating a structure of a return value output module 702 in the jump processing apparatus according to the embodiment of the present invention;
fig. 11 is a block diagram of a to-be-skipped identification determining module 703 in the skip processing device according to the embodiment of the present invention;
fig. 12 is a block diagram of still another function of the jump processing device according to the embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
Fig. 1 shows an implementation flow of the jump processing method provided by the embodiment of the present invention, and for convenience of description, only the relevant parts of the embodiment of the present invention are shown, and the details are as follows:
as shown in fig. 1, the jump processing method includes:
step 101, when a function module identifier is obtained, determining a function module code identifier corresponding to the function module identifier according to a pre-configured basic parameter table; the basic parameter table comprises function module identifiers of the function modules and function module code identifiers corresponding to the function module identifiers;
step 102, outputting a function module return value of the function module after executing the function module code corresponding to the function module code identifier;
step 103, determining the function module identification of the function module and the function module identification of the function module to be skipped corresponding to the function module return value according to a pre-configured skip parameter table; the jump parameter table comprises function module identifications and function module return values of the function modules, and function module identifications of the function modules to be jumped corresponding to the function module identifications and the function module return values;
when the pre-configured basic parameter table contains the function module identification of the function module to be skipped, step 101 is executed in a loop.
Before the jump process, we split the business process into multiple independent functional modules. The independent functional module is capable of implementing at least one independent modular function. While adding a unique Identification (ID) to each module to form a function module identification (function module ID). The function module identification is used to uniquely distinguish and identify different function modules.
When the module jumps, firstly receiving the module function identification. For example, the function module identifier manually input by the user may be received by receiving an instruction, where the user manual function module identifier may be a function module identifier of a starting function module of the business process, or may be a function module identifier of a function module in a middle position of the business process. In addition, the function module identification and the like transmitted by other systems can be received.
After the function module identification is obtained, a pre-configured basic parameter table is obtained. The basic parameter table comprises a function module identifier, a function module code identifier and a corresponding relation between the function module identifier and the function module code identifier. The function module code identifier is an identifier of a function module code corresponding to a function module of the business process and is used for uniquely identifying and distinguishing different function module codes.
An exemplary base parameter table is provided below for reference:
as can be seen from the basic parameter table, the basic parameter table may also include remarking information on the functional modules. For example, the remark information of the functional module 2 is to execute the deduction, and the remark information of the functional module 4 is to send the transaction message.
After the function module code identification is obtained, the function module code corresponding to the function module code identification is determined through the function module code identification, and the function module code is executed. And outputting the return value of the functional module after executing the functional module code identification corresponding to the functional module code. Wherein, in view of the one-to-one correspondence between the function module identifiers and the function module identifiers, and the one-to-one correspondence between the function module identifiers and the function module codes, the correspondence between the function module identifiers and the function module codes can be directly established, and the function module codes corresponding to the function module identifiers are determined through the function module identifiers.
In addition, there may be differences in the return values output by the functional modules under different conditions or scenarios. For example, in an application scenario, return values 1, 2, and 3 represent execution results such as execution success, execution failure, and execution unknown, respectively; in another application scenario, if the functional module is a message analysis module, the returned values 1, 2 and 3 may represent the returned message type 1, message type 2 and message type 3, respectively. The return value may be defined based on different application scenarios. The type of return value is not required and may be a number, a string, or the like.
After the function module identification of the function module and the return value output after the function module code is executed are determined, a pre-configured jump parameter table is obtained based on the function module identification and the return value of the function module. The jump parameter table comprises a function module identifier of a function module, a return value of the function module, a function module identifier of the function module to be jumped, and a corresponding relation between the function module identifier of the function module and the function module identifier of the function module to be jumped.
An exemplary jump parameter table is provided below for reference:
from the jump parameter table, the function module identifier is M00001, and the function module identifier of the function module to be jumped corresponding to the return value of 3 is M00004; the function module identifier is M00002, and the function module identifier of the function module to be skipped corresponding to the return value FAUSE is M00003.
And then after the function module identifier of the function module to be skipped is obtained, step 101 is executed in a circulating manner. Namely, the acquired function module identifiers (of the function modules to be jumped) are utilized to determine the function module code identifiers corresponding to the function module identifiers (of the function modules to be jumped) from a pre-configured basic parameter table, so that the jump processing among the function modules is realized.
In the embodiment of the invention, through pre-configuring a basic parameter table and a jump parameter table, when the function module identifier is acquired, the function module code identifier corresponding to the function module identifier is determined according to the basic parameter table; and then outputting a function module return value after executing the function module code corresponding to the function module code identifier, and determining the function module identifier and the function module identifier of the function module to be skipped corresponding to the function module return value according to the skip parameter table so as to skip to the skip function module. According to the embodiment of the invention, the business process is divided into the independent functional modules, and the jump between the functional modules is realized through the pre-configured basic parameter table and the jump parameter table, so that the business process and the functional module codes can be separated, and the coupling property of the business process and the functional module codes is greatly reduced; meanwhile, when the business flow is adjusted, only the basic parameter table and the jump parameter table are properly configured based on the adjustment of the business flow, so that the flexibility of jump processing during the adjustment of the business flow is greatly improved.
Fig. 2 shows another implementation flow of the jump processing method provided by the embodiment of the present invention, and for convenience of description, only the relevant parts of the embodiment of the present invention are shown, which is described in detail below:
in an embodiment of the present invention, in order to improve the functional integrity of the jump processing, as shown in fig. 2, the jump processing method further includes, based on the steps of the method shown in fig. 1, the following steps:
step 201, when the preconfigured basic parameter table does not contain the function module identification of the function module to be skipped, the skip is ended.
The pre-configured basic parameter table may or may not include a function module identifier of the function module to be skipped. When the basic parameter table does not contain the function module identification of the function module to be jumped, the jump ends the jump out of the loop.
In the embodiment of the invention, when the pre-configured basic parameter table does not contain the function module identification of the function module to be skipped, the skip ending is finished, and the functional integrity of the skip processing can be improved.
Fig. 3 shows a flow of implementing step 101 in the jump processing method according to the embodiment of the present invention, and for convenience of description, only the relevant parts of the embodiment of the present invention are shown, which is described in detail below:
in an embodiment of the present invention, in order to improve the efficiency of acquiring the function module code identifier, as shown in fig. 3, step 101, when the function module identifier is acquired, determining the function module code identifier corresponding to the function module identifier according to a pre-configured basic parameter table includes:
step 301, when a function module identifier of a function module is received, a pre-configured basic parameter table is obtained from a database;
step 302, when the pre-configured basic parameter table contains the function module identifier of the function module, determining the function module code identifier corresponding to the function module identifier from the pre-configured basic parameter table.
In the embodiment of the invention, the basic parameter table is configured and stored in the database, and meanwhile, the content in the basic parameter table can be modified based on the modification instruction. Specifically, when the function module identification of the function module is received, a basic parameter table is obtained from a database. And then the function module identifier of the function module is matched with the function module identifier in the basic parameter table, and when the basic parameter table contains the function module identifier of the function module, the function module code identifier corresponding to the function module identifier is determined from the basic parameter table.
In the embodiment of the invention, when the function module identification of the function module is received, the pre-configured basic parameter table is obtained from the database, and when the function module identification of the function module is contained in the pre-configured basic parameter table, the function module code identification corresponding to the function module identification is determined from the pre-configured basic parameter table, and the basic parameter table is pre-configured in the database, so that the efficiency of obtaining the function module code identification can be improved.
Fig. 4 shows a flow of implementing step 102 in the jump processing method according to the embodiment of the present invention, and for convenience of description, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, the function module code identifier includes a function module processing class name and a function module processing function name, and the function module code includes a function module processing class corresponding to the function module processing class name and a function module processing function corresponding to the function module processing function name. In order to improve the efficiency of acquiring the return value, as shown in fig. 4, step 102, outputting the return value of the functional module after executing the functional module code corresponding to the functional module code identifier, includes:
step 401, obtaining a function module code corresponding to the function module code identifier from the function module code dataset;
step 402, executing a function module processing class and a function module processing function in the function module code corresponding to the function module code identifier;
step 403, outputting the function module return value of the function module after executing the function module processing class and the function module processing function.
The function module code identification comprises a function module processing class name and a function module processing function name, and correspondingly, the function module code comprises a function module processing class corresponding to the function module processing class name and a function module processing function corresponding to the function module processing function name.
And particularly, when the function module return value of the function module is acquired, acquiring the function module code corresponding to the function module code identifier from the function module code data set based on the function module code identifier. Wherein the function module code dataset includes a function module code corresponding to each function module code identification. The function module code dataset may also be maintained and modified, such as adding, deleting or modifying a function module code corresponding to a certain function module code identification, etc.
The plurality of function module codes comprise function module processing classes and function module processing functions, and when the function module codes corresponding to the function modules are executed, the function module processing functions contained under the function module processing classes in the function module codes are executed. If the function module code contains a function module processing class and a function module processing function, the function module code corresponding to the function module is directly executed. And after executing the function module processing function contained under the function module processing class, obtaining the function module return value of the function module.
In the embodiment of the invention, the function module codes corresponding to the function module code identifications are obtained from the function module code data set, the function module processing class and the function module processing function in the function module codes corresponding to the function module code identifications are executed, the function module return value of the function module is output after the function module processing class and the function module processing function are executed, and the function module codes are obtained from the function module code data set, so that the efficiency of obtaining the function module codes can be improved, and the efficiency of outputting the function module return value is further improved.
Fig. 5 shows a flow of implementing step 103 in the jump processing method according to the embodiment of the present invention, and for convenience of description, only the relevant parts of the embodiment of the present invention are shown, which is described in detail below:
in an embodiment of the present invention, in order to improve efficiency of obtaining a function module identifier of a function module to be skipped, as shown in fig. 5, step 103, determining, according to a pre-configured skip parameter table, the function module identifier of the function module and a function module identifier of the function module to be skipped corresponding to a function module return value, includes:
step 501, obtaining a pre-configured jump parameter table from a database;
step 502, determining the function module identifier and the function module identifier of the function module to be skipped corresponding to the function module return value from the skip parameter table according to the function module identifier and the function module return value of the function module.
In the embodiment of the present invention, the jump parameter table may be preconfigured in the database, and when the function module identifier of the function module to be jumped is obtained, the jump parameter table is firstly obtained from the database. The jump parameter table can perform maintenance, inquiry and other functions, such as adding or deleting a record in the jump parameter table, or modifying a record in the jump parameter table.
After the jump parameter table is obtained from the database, the function module identification and the function module identification of the function module to be jumped corresponding to the function module return value are determined from the obtained jump parameter table based on the function module identification of the function module and the function module return value.
In the embodiment of the invention, the pre-configured jump parameter table is obtained from the database, the function module identification of the function module to be jumped and the function module identification of the function module to be jumped corresponding to the function module return value are determined from the jump parameter table according to the function module identification of the function module and the function module return value, and the jump parameter table is pre-configured in the database, so that the efficiency of obtaining the function module identification of the function module to be jumped can be improved.
Fig. 6 shows a further implementation flow of the jump processing method according to the embodiment of the present invention, and for convenience of description, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to improve flexibility of the basic parameter table and the jump parameter table, as shown in fig. 6, the jump processing method further includes, based on the steps of the above method:
step 601, configuring a basic parameter table according to the received configuration instruction.
Step 602, configuring a jump parameter table according to the received configuration instruction.
The basic parameter table and/or the jump parameter table can be configured in the visual interface by receiving a configuration instruction and the like. And modifying and adjusting the record content or the contained corresponding relation in the configured basic parameter table and/or the jump parameter table based on the modification instruction. Such as deletion, addition, or modification, etc.
In the embodiment of the invention, the basic parameter table is configured according to the received configuration instruction, and the jump parameter table is configured according to the received configuration instruction, so that the flexibility of the basic parameter table and the jump parameter table can be improved.
The embodiment of the invention also provides a jump processing device, which is described in the following embodiment. Since the principle of solving the problem by these devices is similar to that of the jump processing method, the implementation of these devices can be referred to as implementation of the method, and the repetition is omitted.
Fig. 7 shows functional modules of the jump processing device according to the embodiment of the present invention, and for convenience of explanation, only the parts related to the embodiment of the present invention are shown in detail as follows:
referring to fig. 7, each module included in the jump processing apparatus is configured to execute each step in the corresponding embodiment of fig. 1, and detailed description thereof will be omitted herein with reference to fig. 1 and related description in the corresponding embodiment of fig. 1. In an embodiment of the present invention, the jump processing apparatus includes
The code identification determining module 701 is configured to determine, when the function module identification is obtained, a function module code identification corresponding to the function module identification according to a pre-configured basic parameter table; the basic parameter table comprises function module identifiers of the function modules and function module code identifiers corresponding to the function module identifiers.
And the return value output module 702 is configured to output a function module return value of the function module after the function module code identifier is executed.
The to-be-skipped identification determining module 703 is configured to determine, according to a pre-configured skip parameter table, a function module identification of a function module and a function module identification of a to-be-skipped function module corresponding to a function module return value; the jump parameter table comprises function module identifications and function module return values of the function modules, and function module identifications of the function modules to be jumped corresponding to the function module identifications and the function module return values;
when the pre-configured basic parameter table contains the function module identifier of the function module to be skipped, the code identifier determining module 701 is further configured to determine, when the function module identifier is acquired by performing loop execution, a function module code identifier corresponding to the function module identifier according to the pre-configured basic parameter table.
In the embodiment of the present invention, by pre-configuring a basic parameter table and a jump parameter table, when the code identification determining module 701 obtains the function module identification, the code identification of the function module corresponding to the function module identification is determined according to the basic parameter table; the return value output module 702 outputs the function module return value after executing the function module code corresponding to the function module code identifier, and the to-be-skipped identifier determining module 703 determines the function module identifier and the function module identifier of the to-be-skipped function module corresponding to the function module return value according to the skip parameter table, so as to skip to the skip function module. According to the embodiment of the invention, the business process is divided into the independent functional modules, and the jump between the functional modules is realized through the pre-configured basic parameter table and the jump parameter table, so that the business process and the functional module codes can be separated, and the coupling property of the business process and the functional module codes is greatly reduced; meanwhile, when the business flow is adjusted, only the basic parameter table and the jump parameter table are properly configured based on the adjustment of the business flow, so that the flexibility of jump processing during the adjustment of the business flow is greatly improved.
Fig. 8 shows another functional module of the jump processing device according to the embodiment of the present invention, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to improve the functional integrity of the jump processing, referring to fig. 8, each unit included in the jump processing apparatus is configured to execute each step in the corresponding embodiment of fig. 2, and detailed descriptions in fig. 2 and the corresponding embodiment of fig. 2 are omitted herein. In the embodiment of the present invention, based on the above module structure, the jump processing device further includes a jump ending module 801.
The skip ending module 801 is configured to end the skip when the preconfigured base parameter table does not include the function module identifier of the function module to be skipped.
In the embodiment of the present invention, when the pre-configured basic parameter table does not include the function module identifier of the function module to be skipped, the skip ending module 801 ends the skip, so that the functional integrity of the skip processing can be improved.
Fig. 9 shows a schematic structure of a code identifier determining module 701 in a jump processing apparatus according to an embodiment of the present invention, and for convenience of explanation, only a portion related to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to improve the efficiency of acquiring the code identifier of the functional module, referring to fig. 9, each unit included in the code identifier determining module 701 is configured to perform each step in the corresponding embodiment of fig. 3, and detailed descriptions of the corresponding embodiment of fig. 3 are omitted herein. In the embodiment of the present invention, the code identification determining module 701 includes a basic parameter table obtaining unit 901 and a code identification determining unit 902.
The basic parameter table obtaining unit 901 is configured to obtain a pre-configured basic parameter table from a database when a function module identifier of a function module is received.
The code identification determining unit 902 is configured to determine, when the function module identification of the function module is included in the pre-configured base parameter table, a function module code identification corresponding to the function module identification from the pre-configured base parameter table.
In the embodiment of the present invention, when the basic parameter table obtaining unit 901 receives the function module identifier of the function module, obtains the pre-configured basic parameter table from the database, and when the code identifier determining unit 902 includes the function module identifier of the function module in the pre-configured basic parameter table, determines the function module code identifier corresponding to the function module identifier from the pre-configured basic parameter table, and pre-configures the basic parameter table in the database, so that the efficiency of obtaining the function module code identifier can be improved.
Fig. 10 shows a schematic structural diagram of a return value output module 702 in the jump processing apparatus according to the embodiment of the present invention, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, the function module code identifier includes a function module processing class name and a function module processing function name, and the function module code includes a function module processing class corresponding to the function module processing class name and a function module processing function corresponding to the function module processing function name. In order to improve the efficiency of acquiring the return value, referring to fig. 10, each module included in the return value output module 702 is configured to execute each step in the corresponding embodiment of fig. 4, and detailed descriptions of the steps in fig. 4 and the corresponding embodiment of fig. 4 are omitted herein. In the embodiment of the present invention, the return value output module 702 includes a code obtaining unit 1001, a code executing unit 1002, and a return value output unit 1003.
The code obtaining unit 1001 is configured to obtain, from the function module code dataset, a function module code corresponding to the function module code identifier.
The code execution unit 1002 is configured to execute a function module processing class and a function module processing function in the function module code corresponding to the function module code identifier.
The return value output unit 1003 is configured to output a function module return value of the function module after executing the function module processing class and the function module processing function.
In the embodiment of the present invention, the code obtaining unit 1001 obtains the function module code corresponding to the function module code identifier from the function module code dataset, the code executing unit 1002 executes the function module processing class and the function module processing function in the function module code corresponding to the function module code identifier, and the return value output unit 1003 outputs the function module return value of the function module after executing the function module processing class and the function module processing function, and obtains the function module code from the function module code dataset, so that the efficiency of obtaining the function module code can be improved, and the efficiency of outputting the function module return value can be improved.
Fig. 11 shows a schematic structure of a to-be-skipped identification determining module 703 in the skip processing device according to the embodiment of the present invention, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to improve the efficiency of obtaining the function module identifier of the function module to be skipped, referring to fig. 11, each unit included in the to-be-skipped identifier determining module 703 is configured to execute each step in the corresponding embodiment of fig. 5, and specifically please refer to fig. 5 and the related description in the corresponding embodiment of fig. 5, which are not repeated herein. In the embodiment of the present invention, the to-be-skipped identification determining module 703 includes a skip parameter table obtaining unit 1101 and an identification determining unit 1102.
A jump parameter table obtaining unit 1101, configured to obtain a pre-configured jump parameter table from a database.
The identifier determining unit 1102 is configured to determine, according to the function module identifier of the function module and the function module return value, the function module identifier of the function module to be skipped corresponding to the function module return value from the skip parameter table.
In the embodiment of the present invention, the parameter table obtaining unit 1101 obtains a pre-configured parameter table from a database, and according to the function module identifier of the function module and the function module return value, the identifier determining unit 1102 determines the function module identifier of the function module to be skipped corresponding to the function module identifier and the function module return value from the parameter table, and pre-configures the parameter table in the database, so that the efficiency of obtaining the function module identifier of the function module to be skipped can be improved.
Fig. 12 shows still another functional module of the jump processing device according to the embodiment of the present invention, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, which is described in detail below:
in an embodiment of the present invention, in order to improve flexibility of the basic parameter table and the jump parameter table, referring to fig. 12, each module included in the jump processing device is configured to execute each step in the corresponding embodiment of fig. 6, and detailed descriptions in fig. 6 and the corresponding embodiment of fig. 6 are omitted herein. In the embodiment of the present invention, the jump processing device includes a basic parameter table configuration module 1201 and a jump parameter table configuration module 1202.
The basic parameter table configuration module 1201 is configured to configure the basic parameter table according to the received configuration instruction.
A jump parameter table configuration module 1202, configured to configure a jump parameter table according to the received configuration instruction.
In the embodiment of the present invention, the basic parameter table configuration module 1201 configures the basic parameter table according to the received configuration instruction, and the jump parameter table configuration module 1202 configures the jump parameter table according to the received configuration instruction, so that the flexibility of the basic parameter table and the jump parameter table can be improved.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the jump processing method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium storing a computer program for executing the jump processing method.
In summary, in the embodiment of the present invention, by pre-configuring the basic parameter table and the jump parameter table, when the function module identifier is obtained, the function module code identifier corresponding to the function module identifier is determined according to the basic parameter table; and then outputting a function module return value after executing the function module code corresponding to the function module code identifier, and determining the function module identifier and the function module identifier of the function module to be skipped corresponding to the function module return value according to the skip parameter table so as to skip to the skip function module. According to the embodiment of the invention, the business process is divided into the independent functional modules, and the jump between the functional modules is realized through the pre-configured basic parameter table and the jump parameter table, so that the business process and the functional module codes can be separated, and the coupling property of the business process and the functional module codes is greatly reduced; meanwhile, when the business flow is adjusted, only the basic parameter table and the jump parameter table are properly configured based on the adjustment of the business flow, so that the flexibility of jump processing during the adjustment of the business flow is greatly improved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (10)

1. A jump processing method, comprising:
when the function module identification is obtained, determining a function module code identification corresponding to the function module identification according to a pre-configured basic parameter table; the basic parameter table comprises function module identifiers of the function modules and function module code identifiers corresponding to the function module identifiers; the function module code mark is the mark of the function module code corresponding to the function module of the business process and is used for uniquely marking and distinguishing different function module codes;
outputting a function module return value of the function module after executing the function module code corresponding to the function module code identifier;
determining the function module identification of the function module and the function module identification of the function module to be skipped corresponding to the function module return value according to a pre-configured skip parameter table; the jump parameter table comprises function module identifications and function module return values of the function modules, and function module identifications of the function modules to be jumped corresponding to the function module identifications and the function module return values;
when the pre-configured basic parameter table contains the function module identification of the function module to be skipped, the loop execution determines the function module code identification corresponding to the function module identification according to the pre-configured basic parameter table when the function module identification is acquired.
2. The jump processing method of claim 1, further comprising:
and when the pre-configured basic parameter table does not contain the function module identification of the function module to be skipped, the skip is ended.
3. The jump processing method as recited in claim 1, wherein determining the function module code identifier corresponding to the function module identifier according to the pre-configured basic parameter table when the function module identifier is acquired, comprises:
when a function module identifier of a function module is received, a pre-configured basic parameter table is obtained from a database;
when the pre-configured basic parameter table contains the function module identification of the function module, the function module code identification corresponding to the function module identification is determined from the pre-configured basic parameter table.
4. The jump processing method according to claim 1, wherein the function module code identification includes a function module processing class name and a function module processing function name, the function module code includes a function module processing class corresponding to the function module processing class name and a function module processing function corresponding to the function module processing function name, and outputting a function module return value of the function module after executing the function module code identification corresponding to the function module code includes:
acquiring a function module code corresponding to the function module code identifier from the function module code data set;
executing a function module processing class and a function module processing function in the corresponding function module code of the function module code identifier;
and outputting the function module return value of the function module after executing the function module processing class and the function module processing function.
5. The jump processing method of claim 1, wherein determining the function module identification of the function module and the function module identification of the function module to be jumped corresponding to the function module return value according to the pre-configured jump parameter table, comprises:
obtaining a pre-configured jump parameter table from a database;
and determining the function module identification of the function module to be skipped and the function module identification of the function module to be skipped corresponding to the function module return value from the skip parameter table according to the function module identification of the function module and the function module return value.
6. The jump processing method of claim 1, further comprising:
and configuring a basic parameter table according to the received configuration instruction.
7. The jump processing method of claim 1, further comprising:
and configuring a jump parameter table according to the received configuration instruction.
8. A jump processing apparatus, comprising:
the code identification determining module is used for determining the function module code identification corresponding to the function module identification according to a pre-configured basic parameter table when the function module identification is acquired; the basic parameter table comprises function module identifiers of the function modules and function module code identifiers corresponding to the function module identifiers; the function module code mark is the mark of the function module code corresponding to the function module of the business process and is used for uniquely marking and distinguishing different function module codes;
the return value output module is used for outputting the function module return value of the function module after executing the function module code corresponding to the function module code identifier;
the to-be-skipped identification determining module is used for determining the function module identification of the function module and the function module identification of the to-be-skipped function module corresponding to the function module return value according to a pre-configured skip parameter table; the jump parameter table comprises function module identifications and function module return values of the function modules, and function module identifications of the function modules to be jumped corresponding to the function module identifications and the function module return values;
when the pre-configured basic parameter table contains the function module identifier of the function module to be skipped, the code identifier determining module is further configured to determine, by performing loop execution, the function module code identifier corresponding to the function module identifier according to the pre-configured basic parameter table when the function module identifier is obtained.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the jump processing method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the jump processing method of any one of claims 1 to 7.
CN202010908200.2A 2020-09-02 2020-09-02 Jump processing method and device, computer equipment and computer readable storage medium Active CN112035169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010908200.2A CN112035169B (en) 2020-09-02 2020-09-02 Jump processing method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010908200.2A CN112035169B (en) 2020-09-02 2020-09-02 Jump processing method and device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112035169A CN112035169A (en) 2020-12-04
CN112035169B true CN112035169B (en) 2024-02-23

Family

ID=73591065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010908200.2A Active CN112035169B (en) 2020-09-02 2020-09-02 Jump processing method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112035169B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862457A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Nuclear power test procedure item jumping method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864193A (en) * 2017-10-26 2018-03-30 阿里巴巴集团控股有限公司 Method for processing business, device, system and service equipment
CN108241671A (en) * 2016-12-26 2018-07-03 北京京东尚科信息技术有限公司 Method and device for business processing
CN108446535A (en) * 2018-02-12 2018-08-24 北京梆梆安全科技有限公司 Source code reinforcement means based on code execution sequence and device
CN111104182A (en) * 2019-12-17 2020-05-05 深圳前海环融联易信息科技服务有限公司 Method and device for quickly arranging business based on componentization, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050034100A1 (en) * 2003-08-04 2005-02-10 Hanbai Liu Visual programming method and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108241671A (en) * 2016-12-26 2018-07-03 北京京东尚科信息技术有限公司 Method and device for business processing
CN107864193A (en) * 2017-10-26 2018-03-30 阿里巴巴集团控股有限公司 Method for processing business, device, system and service equipment
CN108446535A (en) * 2018-02-12 2018-08-24 北京梆梆安全科技有限公司 Source code reinforcement means based on code execution sequence and device
CN111104182A (en) * 2019-12-17 2020-05-05 深圳前海环融联易信息科技服务有限公司 Method and device for quickly arranging business based on componentization, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112035169A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN106294673B (en) Method and system for analyzing log data in real time by user-defined rule
CN108089893B (en) Method and device for determining redundant resources, terminal equipment and storage medium
US9557988B2 (en) Workflow-based application generator
CN109344053B (en) Interface coverage test method, system, computer device and storage medium
US20160019266A1 (en) Query generating method and query generating device
CN106557307B (en) Service data processing method and system
CN104036187A (en) Method and system for determining computer virus types
CN112035169B (en) Jump processing method and device, computer equipment and computer readable storage medium
JP6955676B2 (en) Log analysis method, system and recording medium
CN112199935A (en) Data comparison method and device, electronic equipment and computer readable storage medium
KR20070079033A (en) Methods and systems for derivation of missing data objects from test data
CN105988943B (en) A kind of method and device driving wireless adapter
CN112597034A (en) Test case generation method and device and computer readable storage medium
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN110941658A (en) Data export method, device, server and storage medium
CN110222286A (en) Information acquisition method, device, terminal and computer readable storage medium
US10055341B2 (en) To-be-stubbed target determining apparatus, to-be-stubbed target determining method and non-transitory recording medium storing to-be-stubbed target determining program
CN104991963B (en) Document handling method and device
CN114169311A (en) Data analysis method and device
CN113001538A (en) Command analysis method and system
CN112597179A (en) Log information analysis method and device
CN113342647A (en) Test data generation method and device
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
CN111339378A (en) Character command auditing method and system in operation and maintenance management
CN113127408A (en) Data conversion method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant