Business processing method and device
By analyzing and analyzing bank business process configuration information, judging the status and operation times, and encapsulating suitable business interfaces for processing, the problem of insufficient processing speed and accuracy in the prior art is solved, and more efficient business processing is achieved.
Patent Information
- Application Number
- CN202210920662.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-02
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-08-02
AI Technical Summary
In the prior art, the banking business processing system fails to process services with different state numbers, state transfer conditions and operation times in the most appropriate processing method, resulting in the improvement of business processing speed and accuracy.
By analyzing the business process configuration information of the target service, we judge whether the number of states, number of state transition conditions and number of operations meet the preset conditions, analyze and encapsulate the target service interface according to the state transition array or correspondence relationship, and execute the target service interface for business processing.
It improves the speed and accuracy of business processing, ensures that the processing method is suitable for the characteristics of the target business, and enhances the pertinence and efficiency of business processing.
Smart Images

Figure CN115269064B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of state machine technology, particularly to the field of big data, and more particularly to a business processing method and device. Background Art
[0002] In the prior art, bank business processing is often implemented through the workflow engine of the bank's business system. However, when performing business processing, the workflow engine rarely considers the impact of factors such as the number of states in the target business, the number of state transition conditions, and the number of data operations performed by the state transition action on the business processing. As a result, it is impossible to perform business processing in the most appropriate manner for businesses with different numbers of states, numbers of state transition conditions, and numbers of operations, which leads to the need to improve the speed and accuracy of business processing for certain businesses. Summary of the Invention
[0003] One object of the present invention is to provide a service processing method to address the problem that existing service processing methods are unable to process services with different numbers of states, state transition conditions, and operation times in the most appropriate manner, resulting in a need to improve the speed and accuracy of service processing for certain services. Another object of the present invention is to provide a service processing device. Another object of the present invention is to provide a computer device. Another object of the present invention is to provide a readable medium. Another object of the present invention is to provide a computer program product.
[0004] In order to achieve the above objectives, one aspect of the present invention discloses a service processing method, the method comprising:
[0005] Analyze the preset business process configuration information of the target business and obtain all states, state transition conditions, and state transition actions of the target business;
[0006] Determine whether the number of states of the state, the number of state transition conditions of the state transition conditions, and the number of operations on the data by the action meet a preset first condition; if so, encapsulate the target business interface according to the preset state transition array;
[0007] If not, determine whether the number of states, the number of state transition conditions, and the number of operations meet a preset second condition; if so, perform a correspondence analysis on the business process configuration information to obtain a correspondence between the states and the actions, and obtain multiple state-action sets based on the correspondence between the states and the actions, and encapsulate the target business interface according to the state-action sets;
[0008] Execute the target service interface to perform service processing.
[0009] Optionally, further including:
[0010] When it is determined that the number of states, the number of state transition conditions and the number of operations do not meet the preset second condition,
[0011] The conditional branch statement is encapsulated according to the state transfer condition; and the target business interface is encapsulated based on the branch statement, state and action.
[0012] Optionally, the first condition includes:
[0013] The number of states is greater than a preset first threshold;
[0014] The number of state transition conditions is greater than a preset second threshold;
[0015] The number of operations is less than a preset third threshold.
[0016] Optionally, the second condition includes:
[0017] The number of states is less than or equal to the first threshold;
[0018] The number of state transition conditions is less than or equal to the second threshold;
[0019] The number of operations is greater than or equal to the third threshold.
[0020] Optionally, further including:
[0021] Before encapsulating the target service interface according to the preset state transfer array,
[0022] According to the correspondence between all states and all state transition conditions in the current business system, as well as the correspondence between all state transition conditions and all actions, the state transition array is constructed with the state as the first dimension attribute of the array and the state transition condition as the second dimension attribute of the array; wherein, the state transition array is a two-dimensional array.
[0023] Optionally, encapsulating the target service interface according to a preset state transfer array includes:
[0024] generating a read instruction for reading the state transition array;
[0025] Generate a determination instruction based on the state transition array to determine the corresponding action when each state of the target service corresponds to different state transition conditions;
[0026] Generate execution instructions for actions corresponding to different state transition conditions for each state of the target business;
[0027] The target service interface is encapsulated based on the read instruction, the determination instruction and the execution instruction.
[0028] Optionally, the multiple state-action sets obtained according to the correspondence between the states and the actions include:
[0029] Selecting a starting state from the states, and obtaining starting state transition conditions involved in state transition of the starting state and starting actions executed under different starting state transition conditions based on the corresponding relationship between the states and the actions; clustering the starting states and the starting actions executed under different starting state transition conditions to obtain some state-action sets among the multiple state-action sets;
[0030] Repeating the steps of selecting a non-selected state from the states as the starting state, obtaining a starting state transition condition involved in state transition of the starting state and a starting action executed under different starting state transition conditions based on a correspondence between the states and the actions; and clustering the starting states and the starting actions executed under different starting state transition conditions to obtain a partial state-action set of the multiple state-action sets, until all states have been selected;
[0031] The state-action set consists of a state, an action and a corresponding starting state transition condition.
[0032] Optionally, encapsulating the target service interface according to the state-action set includes:
[0033] Encapsulating each state-action set as a set sub-interface;
[0034] Encapsulate the plurality of aggregate sub-interfaces into the target service interface.
[0035] Optionally, encapsulating the target business interface based on the branch statement, state, and action includes:
[0036] According to each of the branch statements, obtaining, from the states and actions, the preceding state, the jump state, and the corresponding actions of the preceding state jumping to different jump states involved in the branch statement;
[0037] Encapsulating the branch statement, the pre-state and jump state involved in the branch statement, and corresponding actions of the pre-state jumping to different jump states to obtain multiple business code segments;
[0038] The multiple service code segments are encapsulated to obtain the target service interface.
[0039] Optionally, further including:
[0040] After executing the target service interface to perform service processing,
[0041] generating a business processing record based on the processing status of the business processing;
[0042] According to the business processing record, the data type, data quantity and business concurrency involved in the business processing are obtained;
[0043] Determine whether the data type includes a key type, and if not, store the business processing record in the log of the current business system;
[0044] If so, determining whether the data quantity and business concurrency meet a preset third condition; if so, storing the business processing record in a relational database;
[0045] If not, determine whether the data quantity and business concurrency meet the preset fourth condition. If so, store the business processing record in a document-type database.
[0046] Optionally, further including:
[0047] Before determining whether the data type includes key data, determine whether the business processing record is used for big data analysis. If so, store the business processing record in a message queue.
[0048] Optionally, further including:
[0049] After determining that the data quantity and business concurrency do not meet the preset fourth condition,
[0050] The business processing record is stored in the log of the current business system.
[0051] Optionally, the third condition includes:
[0052] The data quantity is less than or equal to a preset fourth threshold;
[0053] The business concurrency volume is less than or equal to a preset fifth threshold.
[0054] Optionally, the fourth condition includes:
[0055] The data quantity is greater than the fourth threshold;
[0056] The business concurrency volume is greater than the fifth threshold.
[0057] In order to achieve the above objectives, another aspect of the present invention discloses a service processing device, the device comprising:
[0058] Configuration information parsing module, used to parse the preset business process configuration information of the target business, and obtain all states, state transition conditions and state transition actions of the target business;
[0059] A first service interface encapsulation module is configured to determine whether the number of states of the state, the number of state transition conditions of the state transition conditions, and the number of operations on the data by the action meet a preset first condition; if so, encapsulate the target service interface according to a preset state transition array;
[0060] a second business interface encapsulation module, configured to, if not, determine whether the number of states, the number of state transition conditions, and the number of operations meet a preset second condition; and if so, perform a correspondence analysis on the business process configuration information to obtain a correspondence between the states and the actions, obtain multiple state-action sets based on the correspondence between the states and the actions, and encapsulate the target business interface based on the state-action sets;
[0061] The service interface execution module is used to execute the target service interface to perform service processing.
[0062] The present invention also discloses a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the method described above is implemented when the processor executes the program.
[0063] The present invention also discloses a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0064] The present invention also discloses a computer program product, comprising a computer program, which implements the above method when executed by a processor.
[0065] The business processing method and device provided by the present invention obtain all states, state transition conditions and state transition actions of the target business by parsing the business process configuration information of the preset target business, and can quickly and accurately obtain the performance parameters based on which the target business interface is subsequently encapsulated, thereby indirectly improving the speed and accuracy of encapsulating the target business interface; by judging whether the number of states of the state, the number of state transition conditions of the state transition conditions and the number of operations on the data of the action meet a preset first condition; if so, encapsulating the target business interface according to the preset state transition array; if not, judging whether the number of states, the number of state transition conditions and the number of operations meet a preset second condition, and if so, The information is analyzed for correspondence, and the correspondence between the state and the action is obtained. According to the correspondence between the state and the action, a plurality of state-action sets are obtained. The target business interface is encapsulated according to the state-action set. When encapsulating the target business interface, the influence of the number of states, the number of state transition conditions and the number of operations on the data by the action on the business processing can be fully considered, thereby encapsulating the processing mode and processing logic of the target business interface in a targeted manner, making the target business interface more suitable for processing the target business, thereby making the business processing by executing the target interface have higher speed and accuracy; by executing the target business interface to perform business processing, the processing speed and accuracy of the business processing can be improved. In summary, the business processing method and device of the present invention can encapsulate the target business interface suitable for processing the target business based on the number of states, the number of state transition conditions and the number of operations of the target business, thereby performing business processing by executing the target business interface, thereby improving the processing speed and accuracy of the target business. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0067] Figure 1 A schematic diagram showing a process flow of a service processing method according to an embodiment of the present invention is shown;
[0068] Figure 2 A schematic diagram showing an optional step of encapsulating a target service interface according to a preset state transition array according to an embodiment of the present invention is shown;
[0069] Figure 3 A schematic diagram showing an optional step of encapsulating a target service interface according to a state-action set according to an embodiment of the present invention is shown;
[0070] Figure 4 A schematic diagram showing an optional step of encapsulating a target business interface based on branch statements, states, and actions according to an embodiment of the present invention is shown;
[0071] Figure 5 A schematic diagram showing an optional step of storing business processing records according to an embodiment of the present invention is shown;
[0072] Figure 6 A module diagram of a service processing device according to an embodiment of the present invention is shown;
[0073] Figure 7 A schematic diagram showing the structure of a computer device suitable for implementing an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0074] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.
[0075] The terms “first,” “second,” etc. used herein do not particularly refer to an order or sequence, nor are they used to limit the present invention. They are only used to distinguish elements or operations described with the same technical terms.
[0076] The words “include,” “including,” “have,” “contain,” etc. used in this document are open-ended terms, meaning including but not limited to.
[0077] As used herein, "and / or" includes any and all combinations of the items mentioned.
[0078] It should be noted that the acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of national laws and regulations.
[0079] The embodiment of the present invention discloses a business processing method, such as Figure 1 As shown, the method specifically includes the following steps:
[0080] S101: Parse preset business process configuration information of a target business to obtain all states, state transition conditions, and state transition actions of the target business.
[0081] S102: Determine whether the number of states, the number of state transition conditions, and the number of operations on data by the action meet a preset first condition.
[0082] If yes, go to step S103; if no, go to step S104.
[0083] S103: Encapsulate the target service interface according to the preset state transfer array.
[0084] S104: Determine whether the number of states, the number of state transition conditions, and the number of operations meet the preset second condition. If so, perform a correspondence analysis on the business process configuration information to obtain the correspondence between the states and the actions, and obtain multiple state-action sets based on the correspondence between the states and the actions, and encapsulate the target business interface based on the state-action sets.
[0085] S105: Execute the target service interface to perform service processing.
[0086] For example, the business process configuration information may be, but is not limited to, written and generated by a user or staff member based on the execution steps, execution conditions, intermediate results, and final results of the target business, or automatically generated by a relevant program, system, or software based on a business request input by a user or staff member. It should be noted that the specific method for generating the business process configuration information can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation.
[0087] Exemplarily, parsing the business process configuration information of the preset target business to obtain all states, state transition conditions, and state transition actions of the target business can be achieved by, but not limited to, parsing the business process configuration information using an OLTP (online transaction processing) system, parsing the business process configuration information using relevant semantic analysis algorithms, or manually analyzing and calculating the business process configuration information. It should be noted that the specific implementation of step S101 can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation.
[0088] For example, performing correspondence analysis on the business process configuration information to obtain the correspondence between the states and the actions can be achieved, but is not limited to, manually analyzing and calculating the business process configuration information, or analyzing the business process configuration information using a state machine state analysis program or algorithm. It should be noted that the specific implementation method for performing correspondence analysis on the business process configuration information to obtain the correspondence between the states and the actions can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation.
[0089] Exemplarily, the correspondence between the states and actions may include, but is not limited to, the correspondence between the actions executed when a state in the business undergoes a specific state transition condition. For example, within the target business, there is a state where "balance is the balance before transfer," and for this state, there are state transition conditions: "user requests a transfer of a yuan" and "user receives a deposit of b yuan." For the condition "user requests a transfer of a yuan," the corresponding action is "decrease the balance by a yuan," and the corresponding next state is "balance is the value of the balance before transfer reduced by a yuan." For the condition "user receives a deposit of b yuan," the corresponding action is "increase the balance by b yuan," and the corresponding next state is "balance is the value of the balance before transfer increased by b yuan." It should be noted that the specific content of the above correspondence can be determined by those skilled in the art based on actual circumstances, and the above description is merely illustrative and does not constitute a limitation.
[0090] The business processing method and device provided by the present invention obtain all states, state transition conditions and state transition actions of the target business by parsing the business process configuration information of the preset target business, and can quickly and accurately obtain the performance parameters based on which the target business interface is subsequently encapsulated, thereby indirectly improving the speed and accuracy of encapsulating the target business interface; by judging whether the number of states of the state, the number of state transition conditions of the state transition conditions and the number of operations on the data of the action meet a preset first condition; if so, encapsulating the target business interface according to the preset state transition array; if not, judging whether the number of states, the number of state transition conditions and the number of operations meet a preset second condition, and if so, The information is analyzed for correspondence, and the correspondence between the state and the action is obtained. According to the correspondence between the state and the action, a plurality of state-action sets are obtained. The target business interface is encapsulated according to the state-action set. When encapsulating the target business interface, the influence of the number of states, the number of state transition conditions and the number of operations on the data by the action on the business processing can be fully considered, thereby encapsulating the processing mode and processing logic of the target business interface in a targeted manner, making the target business interface more suitable for processing the target business, thereby making the business processing by executing the target interface have higher speed and accuracy; by executing the target business interface to perform business processing, the processing speed and accuracy of the business processing can be improved. In summary, the business processing method and device of the present invention can encapsulate the target business interface suitable for processing the target business based on the number of states, the number of state transition conditions and the number of operations of the target business, thereby performing business processing by executing the target business interface, thereby improving the processing speed and accuracy of the target business.
[0091] In an optional embodiment, further comprising:
[0092] When it is determined that the number of states, the number of state transition conditions and the number of operations do not meet the preset second condition,
[0093] The conditional branch statement is encapsulated according to the state transfer condition; and the target business interface is encapsulated based on the branch statement, state and action.
[0094] Exemplarily, the conditional branch statement may be, but is not limited to, a conditional branch statement such as an “if…else” type, a “switch…case” type, a “while…” type, or a “?…:…” type.
[0095] Exemplarily, encapsulating the conditional branch statements according to the state transition conditions may include, but is not limited to, obtaining an action entry corresponding to each state transition condition based on the state transition conditions, and encapsulating the conditional branch statements based on the state transition conditions and the action entry. It should be noted that the specific implementation of encapsulating the conditional branch statements according to the state transition conditions can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation thereto.
[0096] Exemplarily, the target business interface is encapsulated based on the branch statements, states, and actions, which may be, but is not limited to, using the state code as the entry code for the corresponding branch statement, and using the action code as the code for executing the operation corresponding to each branch in the branch statement, to encapsulate the target business interface. The other code writing work required for encapsulating the target business interface is a conventional technical means in this field and will not be described in detail here. It should be noted that the specific implementation method for encapsulating the target business interface based on the branch statements, states, and actions can be determined by those skilled in the art according to actual circumstances. The above description is only an example and does not constitute a limitation thereto.
[0097] Through the above steps, when the number of states, the number of state transfer conditions and the number of operations do not meet the preset first and second conditions, the conditional branching method with a fallback nature can be used to complete the encapsulation of the target business interface. The encapsulation of the target business interface through the conditional branching method can also make the business processing based on the target business interface have higher accuracy and stability.
[0098] In an optional embodiment, the first condition includes:
[0099] The number of states is greater than a preset first threshold;
[0100] The number of state transition conditions is greater than a preset second threshold;
[0101] The number of operations is less than a preset third threshold.
[0102] For example, the first threshold, second threshold, and third threshold can be determined by those skilled in the art based on actual circumstances, and the embodiments of the present invention do not limit this. For example, the first threshold can be, but is not limited to, 10, 15, or 20, and is preferably 20. For example, the second threshold can be, but is not limited to, 10, 15, 20, or 25, and is preferably 20. For example, the third threshold can be, but is not limited to, 10, 15, 20, 25, or 30, and is preferably 25.
[0103] The number of state transition conditions and the number of states in a business are usually proportional. In some businesses, the number of state transition conditions is equal to the number of states.
[0104] When the number of states is greater than the preset first threshold, the number of state transition conditions is greater than the preset second threshold, and the number of operations is less than the preset third threshold, it means that the target business has a large number of branches and steps, but the operations performed in a single step are not complicated.
[0105] In an optional embodiment, the second condition includes:
[0106] The number of states is less than or equal to the first threshold;
[0107] The number of state transition conditions is less than or equal to the second threshold;
[0108] The number of operations is greater than or equal to the third threshold.
[0109] When the number of states is less than or equal to the first threshold, the number of state transition conditions is less than or equal to the second threshold, and the number of operations is greater than or equal to the third threshold, it means that the number of branches and steps of the target business is small, but the operations performed in a single step are more complex.
[0110] In an optional embodiment, further comprising:
[0111] Before encapsulating the target service interface according to the preset state transfer array,
[0112] According to the correspondence between all states and all state transition conditions in the current business system, as well as the correspondence between all state transition conditions and all actions, the state transition array is constructed with the state as the first dimension attribute of the array and the state transition condition as the second dimension attribute of the array; wherein, the state transition array is a two-dimensional array.
[0113] Exemplarily, if the first dimension is the row dimension of the array, then the second dimension is the column dimension of the array; or, if the first dimension is the column dimension of the array, then the second dimension is the row dimension of the array.
[0114] Exemplarily, the state, as the first-dimensional attribute of the array, can be represented in the array as a corresponding first-dimensional subscript, which can be, but not limited to, a decimal number or a binary number. The state transition condition, as the second-dimensional attribute of the array, can be represented in the array as a corresponding second-dimensional subscript, which can be, but not limited to, a decimal number or a binary number. The element value in the state transition array represents the state transition action corresponding to both the state corresponding to the first-dimensional attribute of the element value and the state transition condition corresponding to the second-dimensional attribute of the element value. It should be noted that the specific format, content, and representation of the state transition array can be determined by those skilled in the art based on actual circumstances. The above description is merely an example and does not constitute a limitation.
[0115] For example, a state transition array is represented as:
[0116]
[0117] The 0 on the left side of the array braces indicates that the current state is a user requesting a transfer, and the 1 on the left side of the array braces indicates that the current state is a user requesting a credit. The 0 above the array braces indicates the state transition condition when the account balance is less than the preset value, and the 1 above the array braces indicates the state transition condition when the account balance is greater than or equal to the preset value. When the element value inside the array is 0, the action is to execute the user's requested operation, and when the element value is 1, the action is to issue an alert to the user. From the above state transition array, we can see that when the state is a user requesting a transfer and the state transition condition is that the account balance is less than the preset value, the corresponding action is to issue an alert to the user. The numbers on the left and above the array braces indicate the dimension subscripts of the array. For example, if the array name is status, then status[0][0] represents a value of 1, and status[1][0] represents the value of the element in the lower left corner of the array braces, 0.
[0118] Through the above steps, a state transition array can be constructed based on the actual business process, so that the state transition array has higher accuracy, which improves the accuracy of the target business interface constructed based on the state transition array in subsequent steps, and further improves the accuracy of executing the target business interface for business processing.
[0119] In an optional embodiment, if Figure 2 As shown, encapsulating the target service interface according to the preset state transfer array includes the following steps:
[0120] S201: Generate a read instruction for reading the state transition array.
[0121] S202: Generate a determination instruction based on the state transition array to determine the corresponding action when each state of the target service corresponds to different state transition conditions.
[0122] S203: Generate execution instructions for executing actions corresponding to different state transition conditions in each state of the target service.
[0123] S204: Encapsulate the target service interface based on the read instruction, the determination instruction and the execution instruction.
[0124] For example, the read instruction for reading the state transition array may be generated based on, but not limited to, the storage address or identifier of the state transition array. The read instruction may be, but not limited to, a read instruction or an fopen instruction. It should be noted that the input for generating the read instruction and the specific type of the read instruction can be determined by those skilled in the art based on actual circumstances. The above description is merely an example and does not constitute a limitation.
[0125] Exemplarily, the determination instruction may include, but is not limited to, an instruction for determining the state subscript and the state transition condition subscript corresponding to the current state of the state transition array, and determining the corresponding array element value based on the subscript, thereby determining an action based on the array element value. It should be noted that the specific content of the determination instruction can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation thereto.
[0126] For example, generating specific execution instructions for executing the action on the premise of determining the specific action is a conventional technical means in this field and will not be described in detail here.
[0127] For example, the encapsulation of the target service interface based on the read instruction, the determination instruction, and the execution instruction may include, but is not limited to, adjusting, connecting, or appending other auxiliary codes to the read instruction, the determination instruction, and the execution instruction according to a time sequence and logical relationship, thereby completing the encapsulation of the target service interface. It should be noted that the specific implementation method for encapsulating the target service interface based on the read instruction, the determination instruction, and the execution instruction can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation thereto.
[0128] Through the above steps, when the target business has a large number of branches and steps, but the operations performed by each step are not complex, encapsulating the business interface based on the state transition array can utilize the fast query speed of the table lookup method to increase the speed of determining the corresponding relationship between states, transition conditions, and actions, thereby increasing the speed of encapsulating the target business interface. Furthermore, based on the relevant principles of the state machine, it can be seen that when the target business has a large number of branches and steps, but the operations performed by each step are not complex, the execution logic and execution method of the target business interface encapsulated through the above steps are most suitable for such situations, thereby achieving high speed and accuracy when executing the target business interface to perform business processing.
[0129] In an optional embodiment, the multiple state-action sets obtained according to the correspondence between the states and the actions include:
[0130] Selecting a starting state from the states, and obtaining starting state transition conditions involved in state transition of the starting state and starting actions executed under different starting state transition conditions based on the corresponding relationship between the states and the actions; clustering the starting states and the starting actions executed under different starting state transition conditions to obtain some state-action sets among the multiple state-action sets;
[0131] Repeating the steps of selecting a non-selected state from the states as the starting state, obtaining a starting state transition condition involved in state transition of the starting state and a starting action executed under different starting state transition conditions based on a correspondence between the states and the actions; and clustering the starting states and the starting actions executed under different starting state transition conditions to obtain a partial state-action set of the multiple state-action sets, until all states have been selected;
[0132] The state-action set consists of a state, an action and a corresponding starting state transition condition.
[0133] For example, if a state is "user requests to query balance", and the corresponding two state transition conditions are "user credibility is lower than 500" and "user credibility is equal to or higher than 500", and the action corresponding to the condition "user credibility is lower than 500" is "reject query request", and the action corresponding to the condition "user credibility is equal to or higher than 500" is "query balance and feedback to user", then the state "user requests to query balance" and the action "reject query request" are clustered to obtain a state-action set, and the state "user requests to query balance" and the action "query balance and feedback to user" are clustered to obtain another state-action set. Specifically, how to determine which set to execute can also be achieved by, but not limited to, setting assertions based on state transition conditions.
[0134] Exemplarily, the state-action set may be represented by, but not limited to, a function, a class, or an interface.
[0135] Through the above steps, the speed of obtaining the state-action set can be improved, and the content and structure of the state-action set can be easy to execute, thereby indirectly enabling the target business interface encapsulated in the subsequent steps to be more refined so that each set can be targeted and processed accordingly according to the current state and conditions, thereby indirectly improving the accuracy of executing the target business interface for business processing in the subsequent steps.
[0136] In an optional embodiment, if Figure 3 As shown, encapsulating the target service interface according to the state-action set includes the following steps:
[0137] S301: Encapsulate each state-action set into a set sub-interface.
[0138] S302: Encapsulate the plurality of aggregate sub-interfaces into the target service interface.
[0139] Exemplarily, the encapsulation of each state-action set as a collection sub-interface can be, but is not limited to, adjusting the code structure of the state-action set according to actual conditions and optimizing the execution logic of the set by adding assertions, integration functions, or connection statements, thereby increasing the execution speed of the state-action set and reducing the resources consumed by execution, so as to complete the encapsulation of the collection sub-interface. It should be noted that the specific implementation method of step S301 can be determined by those skilled in the art based on actual conditions, and the above description is only an example and does not constitute a limitation thereto.
[0140] For example, encapsulating the plurality of aggregate sub-interfaces into the target service interface may be performed based on, but not limited to, the logical relationship, corresponding time relationship, and sequence of the aggregate sub-interfaces to obtain the target service interface. It should be noted that the specific implementation of step S302 can be determined by those skilled in the art based on actual circumstances, and the above description is for illustrative purposes only and does not constitute a limitation thereto.
[0141] Through steps S301 and S302, multiple set sub-interfaces can be encapsulated in a correct relationship to obtain a target business interface, thereby improving the accuracy and speed of executing the target business interface to perform business processing and reducing the probability of failures such as deadlock or logical errors when executing the target business interface. Moreover, the structure of the above-mentioned target business interface, due to the overall encapsulation of actions and states, can minimize the number of state-action sets, thereby reducing the number and time of operations such as judgment and jump when executing the business interface. Therefore, the above-mentioned target business interface is suitable for situations where the number of branches and steps of the target business is small, but the operations performed by each step are complex. Therefore, when the number of branches and steps of the target business is small, but the operations performed by each step are complex, the speed and accuracy of business processing achieved by executing the above-mentioned target business interface can be improved.
[0142] In an optional embodiment, if Figure 4 As shown, encapsulating the target business interface based on the branch statement, state, and action includes the following steps:
[0143] S401: According to each branch statement, obtain the preceding state, jump state and corresponding action of the preceding state jumping to different jump states involved in the branch statement from the states and actions.
[0144] S402: Encapsulate the branch statement, the pre-state and jump state involved in the branch statement, and corresponding actions of the pre-state jumping to different jump states to obtain multiple business code segments.
[0145] S403: Encapsulate the multiple service code segments to obtain the target service interface.
[0146] Exemplarily, since the branch statement includes a judgment condition, and the judgment condition will limit the specific previous state, and the branch statement can determine the specific action to be performed, thereby determining the jump state corresponding to the action, it is possible to directly obtain the previous state, jump state, and corresponding action of the previous state jumping to different jump states involved in the branch statement from the state and action according to each branch statement. The previous state is the previous state of the current state. For example, if the state jumps from state 0110 to the current state 0111, 0110 is the previous state. The jump state is the next state of the current state. For example, the current state 0111 will jump to state 1000 under a certain condition, then 1000 is the jump state.
[0147] For example, the branch statement, the preceding state involved in the branch statement, the jump state, and the corresponding actions of the preceding state jumping to different jump states are encapsulated to obtain multiple business code segments. This encapsulation can be based on, but not limited to, relevant logic or time sequence. It should be noted that the specific implementation of step S402 can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation thereto.
[0148] For example, the encapsulation of the multiple business code segments to obtain the target business interface may be, but is not limited to, encapsulation based on relevant logic or time sequence. It should be noted that the specific implementation of step S403 can be determined by those skilled in the art based on actual circumstances, and the above description is only an example and does not constitute a limitation thereto.
[0149] Through steps S401 to S403, the operation granularity and data granularity encapsulated when encapsulating the target business interface based on the branch statements, states and actions can be refined, which can improve the encapsulation quality and thus improve the speed and accuracy of executing the target business interface for business processing.
[0150] In an optional embodiment, further comprising:
[0151] After executing the target service interface to perform service processing,
[0152] generating a business processing record based on the processing status of the business processing;
[0153] According to the business processing record, the data type, data quantity and business concurrency involved in the business processing are obtained;
[0154] Determine whether the data type includes a key type, and if not, store the business processing record in the log of the current business system;
[0155] If so, determining whether the data quantity and business concurrency meet a preset third condition; if so, storing the business processing record in a relational database;
[0156] If not, determine whether the data quantity and business concurrency meet the preset fourth condition. If so, store the business processing record in a document-type database.
[0157] Exemplarily, the generation of a business processing record based on the processing status of the business processing may include, but is not limited to, obtaining business processing information including, but not limited to, the time of the business processing, the account identifier involved, the specific operation, any exceptions encountered during the business processing, the business processing results, information on computer resources consumed by the business, the type and amount of data involved in the business processing, and the amount of concurrent business, and generating the business processing record based on this business processing information. It should be noted that the specific content and type of business processing information and the specific implementation method for generating the business processing record based on the processing status of the business processing can be determined by those skilled in the art based on actual circumstances, and the above description is merely an example and does not constitute a limitation.
[0158] For example, the key types may be determined by those skilled in the art according to actual circumstances, and the present invention does not limit this. For example, the key types may include but are not limited to accounting data.
[0159] Exemplarily, the log of the current business system may be, but is not limited to, a text log of the current business system, etc. The text log refers to a common operating system log file.
[0160] Exemplarily, the relational database may be, but is not limited to, a database such as MySQL or Oracle that processes two-dimensional tables. Its design strictly follows the third normal form, can strictly control data redundancy, and provides complete ACID support. It is suitable for online business systems with small business concurrency and data volume.
[0161] Exemplarily, the document-type database may be, but is not limited to, a database that stores JSON objects, such as MongoDB. Its design does not need to strictly follow the third normal form and does not need to provide complete ACID support. However, it can make full use of data redundancy and thus has high scalability. It can be flexibly expanded horizontally according to the growth of business concurrency and data volume, and is suitable for online business systems with large business concurrency and data volume.
[0162] Through the above steps, it is possible to select storage media suitable for storing business processing records for business processing records of different data types, data quantities and business concurrency, thereby improving the storage stability of business processing records, and making it easier to obtain complete business processing records when tracing or further processing the business processing records.
[0163] In an optional embodiment, if Figure 5 As shown, further comprising the following steps:
[0164] S501: Before determining whether the data type includes key data, determine whether the business processing record is used for big data analysis. If so, store the business processing record in a message queue.
[0165] When the business processing records are used for big data analysis, they need to be called frequently to fully analyze them, and the speed of obtaining data from the message queue is faster, and the storage address of a data record in the message queue is unique and clear. Therefore, storing the business processing records in the message queue can improve the speed and accuracy of obtaining business processing records when performing big data analysis, thereby facilitating the normal progress of big data analysis.
[0166] In an optional embodiment, further comprising:
[0167] After determining that the data quantity and business concurrency do not meet the preset fourth condition,
[0168] The business processing record is stored in the log of the current business system.
[0169] Storing the business processing records in the log of the current business system is a backup business processing record storage solution, and the business system log has high compatibility with the business processing records. Therefore, when the business processing records do not meet all the preset conditions, storing them in the above manner can maximize the storage adaptability, thereby maximizing the storage stability of the business processing records.
[0170] In an optional embodiment, the third condition includes:
[0171] The data quantity is less than or equal to a preset fourth threshold;
[0172] The business concurrency volume is less than or equal to a preset fifth threshold.
[0173] For example, the fourth and fifth thresholds may be determined by those skilled in the art based on actual circumstances, and are not limited in this embodiment of the present invention. For example, the fourth threshold may be, but is not limited to, 40, 50, 60, or 70. For example, the fifth threshold may be, but is not limited to, 100, 150, or 200.
[0174] When the data quantity is less than or equal to the preset fourth threshold and the business concurrency is less than or equal to the preset fifth threshold, it indicates that the business concurrency and data quantity are not large, and the demand for scalability is not high.
[0175] In an optional embodiment, the fourth condition includes:
[0176] The data quantity is greater than the fourth threshold;
[0177] The business concurrency volume is greater than the fifth threshold.
[0178] When the data quantity is greater than the preset fourth threshold and the business concurrency is greater than the preset fifth threshold, it indicates that the business concurrency and data quantity are large, and the demand for scalability is high.
[0179] Based on the same principle, the embodiment of the present invention discloses a service processing device 600, such as Figure 6 As shown, the service processing device 600 includes:
[0180] Configuration information parsing module 601, used to parse the preset business process configuration information of the target business and obtain all states, state transition conditions and state transition actions of the target business;
[0181] The first service interface encapsulation module 602 is configured to determine whether the number of states, the number of state transition conditions, and the number of operations on data by the action meet a preset first condition; if so, encapsulate the target service interface according to a preset state transition array;
[0182] The second business interface encapsulation module 603 is configured to, if not, determine whether the number of states, the number of state transition conditions, and the number of operations meet a preset second condition; if so, perform a correspondence analysis on the business process configuration information to obtain a correspondence between the states and the actions, obtain multiple state-action sets based on the correspondence between the states and the actions, and encapsulate the target business interface based on the state-action sets;
[0183] The service interface execution module 604 is configured to execute the target service interface to perform service processing.
[0184] In an optional embodiment, the system further includes a third service interface encapsulation module, configured to:
[0185] When it is determined that the number of states, the number of state transition conditions and the number of operations do not meet the preset second condition,
[0186] The conditional branch statement is encapsulated according to the state transfer condition; and the target business interface is encapsulated based on the branch statement, state and action.
[0187] In an optional embodiment, the first condition includes:
[0188] The number of states is greater than a preset first threshold;
[0189] The number of state transition conditions is greater than a preset second threshold;
[0190] The number of operations is less than a preset third threshold.
[0191] In an optional embodiment, the second condition includes:
[0192] The number of states is less than or equal to the first threshold;
[0193] The number of state transition conditions is less than or equal to the second threshold;
[0194] The number of operations is greater than or equal to the third threshold.
[0195] In an optional embodiment, a state transition array building module is further included, which is used to:
[0196] Before encapsulating the target service interface according to the preset state transfer array,
[0197] According to the correspondence between all states and all state transition conditions in the current business system, as well as the correspondence between all state transition conditions and all actions, the state transition array is constructed with the state as the first dimension attribute of the array and the state transition condition as the second dimension attribute of the array; wherein, the state transition array is a two-dimensional array.
[0198] In an optional implementation, the first service interface encapsulation module 602 is configured to:
[0199] generating a read instruction for reading the state transition array;
[0200] Generate a determination instruction based on the state transition array to determine the corresponding action when each state of the target service corresponds to different state transition conditions;
[0201] Generate execution instructions for actions corresponding to different state transition conditions for each state of the target business;
[0202] The target service interface is encapsulated based on the read instruction, the determination instruction and the execution instruction.
[0203] In an optional implementation, the second service interface encapsulation module 603 is configured to:
[0204] Selecting a starting state from the states, and obtaining starting state transition conditions involved in state transition of the starting state and starting actions executed under different starting state transition conditions based on the corresponding relationship between the states and the actions; clustering the starting states and the starting actions executed under different starting state transition conditions to obtain some state-action sets among the multiple state-action sets;
[0205] Repeating the steps of selecting a non-selected state from the states as the starting state, obtaining a starting state transition condition involved in state transition of the starting state and a starting action executed under different starting state transition conditions based on a correspondence between the states and the actions; and clustering the starting states and the starting actions executed under different starting state transition conditions to obtain a partial state-action set of the multiple state-action sets, until all states have been selected;
[0206] The state-action set consists of a state, an action and a corresponding starting state transition condition.
[0207] In an optional implementation, the second service interface encapsulation module 603 is configured to:
[0208] Encapsulating each state-action set as a set sub-interface;
[0209] Encapsulate the plurality of aggregate sub-interfaces into the target service interface.
[0210] In an optional implementation, the third service interface encapsulation module is configured to:
[0211] According to each of the branch statements, obtaining, from the states and actions, the preceding state, the jump state, and the corresponding actions of the preceding state jumping to different jump states involved in the branch statement;
[0212] Encapsulating the branch statement, the pre-state and jump state involved in the branch statement, and corresponding actions of the pre-state jumping to different jump states to obtain multiple business code segments;
[0213] The multiple service code segments are encapsulated to obtain the target service interface.
[0214] In an optional embodiment, the system further includes a first business processing record storage module, configured to:
[0215] After executing the target service interface to perform service processing,
[0216] generating a business processing record based on the processing status of the business processing;
[0217] According to the business processing record, the data type, data quantity and business concurrency involved in the business processing are obtained;
[0218] Determine whether the data type includes a key type, and if not, store the business processing record in the log of the current business system;
[0219] If so, determining whether the data quantity and business concurrency meet a preset third condition; if so, storing the business processing record in a relational database;
[0220] If not, determine whether the data quantity and business concurrency meet the preset fourth condition. If so, store the business processing record in a document-type database.
[0221] In an optional embodiment, the system further includes a second business processing record storage module, configured to:
[0222] Before determining whether the data type includes key data, determine whether the business processing record is used for big data analysis. If so, store the business processing record in a message queue.
[0223] In an optional embodiment, the system further includes a third business processing record storage module, configured to:
[0224] After determining that the data quantity and business concurrency do not meet the preset fourth condition,
[0225] The business processing record is stored in the log of the current business system.
[0226] In an optional embodiment, the third condition includes:
[0227] The data quantity is less than or equal to a preset fourth threshold;
[0228] The business concurrency volume is less than or equal to a preset fifth threshold.
[0229] In an optional embodiment, the fourth condition includes:
[0230] The data quantity is greater than the fourth threshold;
[0231] The business concurrency volume is greater than the fifth threshold.
[0232] Since the principle of solving the problem by the service processing device 600 is similar to that of the above method, the implementation of the service processing device 600 can refer to the implementation of the above method, which will not be described in detail here.
[0233] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer device. Specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0234] In a typical example, a computer device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method described above is implemented.
[0235] Reference below Figure 7 , which shows a schematic structural diagram of a computer device 700 suitable for implementing an embodiment of the present application.
[0236] like Figure 7 As shown, computer device 700 includes a central processing unit (CPU) 701, which can perform various appropriate tasks and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage portion 708 into a random access memory (RAM) 703. Various programs and data required for the operation of system 700 are also stored in RAM 703. CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.
[0237] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 708 including devices such as a hard disk; and a communication section 709 including a network interface card such as a LAN card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. Removable media 711, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 710 as needed, so that computer programs read therefrom can be installed in the storage section 708 as needed.
[0238] In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present invention includes a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program including program code for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 709 and / or installed from the removable medium 711.
[0239] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0240] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0241] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0242] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0243] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 The steps for the function specified in one or more boxes.
[0244] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0245] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0246] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0247] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0248] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A business processing method, characterized in that: include: Analyze the preset business process configuration information of the target business and obtain all states, state transition conditions, and state transition actions of the target business; Determine whether the number of states of the state, the number of state transition conditions of the state transition conditions, and the number of operations of the action on the data meet a preset first condition; If yes, encapsulate the target business interface according to the preset state transfer array; If not, determine whether the number of states, the number of state transition conditions, and the number of operations meet a preset second condition; if so, perform a correspondence analysis on the business process configuration information to obtain a correspondence between the states and the actions, and obtain multiple state-action sets based on the correspondence between the states and the actions, and encapsulate the target business interface according to the state-action sets; Execute the target service interface to perform service processing.
2. The method according to claim 1, characterized in that Further including: When it is determined that the number of states, the number of state transition conditions and the number of operations do not meet the preset second condition, Encapsulate conditional branch statements according to the state transfer conditions; The target business interface is encapsulated based on the branch statements, states, and actions.
3. The method according to claim 1, characterized in that The first condition includes: The number of states is greater than a preset first threshold; The number of state transition conditions is greater than a preset second threshold; The number of operations is less than a preset third threshold.
4. The method according to claim 3, characterized in that The second condition includes: The number of states is less than or equal to the first threshold; The number of state transition conditions is less than or equal to the second threshold; The number of operations is greater than or equal to the third threshold.
5. The method according to claim 1, wherein Further including: Before encapsulating the target service interface according to the preset state transfer array, According to the correspondence between all states and all state transition conditions in the current business system, as well as the correspondence between all state transition conditions and all actions, the state transition array is constructed with the state as the first dimension attribute of the array and the state transition condition as the second dimension attribute of the array; wherein, the state transition array is a two-dimensional array.
6. The method according to claim 1, characterized in that The encapsulation of the target service interface according to the preset state transfer array includes: generating a read instruction for reading the state transition array; Generate a determination instruction based on the state transition array to determine the corresponding action when each state of the target service corresponds to different state transition conditions; Generate execution instructions for actions corresponding to different state transition conditions for each state of the target business; The target service interface is encapsulated based on the read instruction, the determination instruction and the execution instruction.
7. The method according to claim 1, characterized in that The multiple state-action sets obtained according to the correspondence between the states and the actions include: Selecting a starting state from the states, and obtaining starting state transition conditions involved in state transition of the starting state and starting actions executed under different starting state transition conditions based on the corresponding relationship between the states and the actions; clustering the starting states and the starting actions executed under different starting state transition conditions to obtain some state-action sets among the multiple state-action sets; Repeating the steps of selecting a non-selected state from the states as the starting state, obtaining a starting state transition condition involved in state transition of the starting state and a starting action executed under different starting state transition conditions based on a correspondence between the states and the actions; and clustering the starting states and the starting actions executed under different starting state transition conditions to obtain a partial state-action set of the multiple state-action sets, until all states have been selected; The state-action set consists of a state, an action and a corresponding starting state transition condition.
8. The method according to claim 1, characterized in that The encapsulating the target service interface according to the state-action set includes: Encapsulating each state-action set as a set sub-interface; Encapsulate the plurality of aggregate sub-interfaces into the target service interface.
9. The method according to claim 2, characterized in that The encapsulating the target business interface based on the branch statement, state, and action includes: According to each of the branch statements, obtaining, from the states and actions, the preceding state, the jump state, and the corresponding actions of the preceding state jumping to different jump states involved in the branch statement; Encapsulating the branch statement, the pre-state and jump state involved in the branch statement, and corresponding actions of the pre-state jumping to different jump states to obtain multiple business code segments; The multiple service code segments are encapsulated to obtain the target service interface.
10. The method according to claim 1, characterized in that Further including: After executing the target service interface to perform service processing, generating a business processing record based on the processing status of the business processing; According to the business processing record, the data type, data quantity and business concurrency involved in the business processing are obtained; Determine whether the data type includes a key type, and if not, store the business processing record in the log of the current business system; If so, determining whether the data quantity and business concurrency meet a preset third condition; if so, storing the business processing record in a relational database; If not, determine whether the data quantity and business concurrency meet the preset fourth condition. If so, store the business processing record in a document-type database.
11. The method according to claim 10, characterized in that Further including: Before determining whether the data type includes key data, determine whether the business processing record is used for big data analysis. If so, store the business processing record in a message queue.
12. The method according to claim 10, characterized in that Further including: After determining that the data quantity and business concurrency do not meet the preset fourth condition, The business processing record is stored in the log of the current business system.
13. The method according to claim 10, characterized in that The third condition includes: The data quantity is less than or equal to a preset fourth threshold; The business concurrency volume is less than or equal to a preset fifth threshold.
14. The method according to claim 13, characterized in that The fourth condition includes: The data quantity is greater than the fourth threshold; The business concurrency volume is greater than the fifth threshold.
15. A business processing device, characterized in that: include: Configuration information parsing module, used to parse the preset business process configuration information of the target business, and obtain all states, state transition conditions and state transition actions of the target business; A first service interface encapsulation module is configured to determine whether the number of states of the state, the number of state transition conditions of the state transition conditions, and the number of operations on the data by the action meet a preset first condition; If yes, encapsulate the target business interface according to the preset state transfer array; a second business interface encapsulation module, configured to, if not, determine whether the number of states, the number of state transition conditions, and the number of operations meet a preset second condition; and if so, perform a correspondence analysis on the business process configuration information to obtain a correspondence between the states and the actions, obtain multiple state-action sets based on the correspondence between the states and the actions, and encapsulate the target business interface based on the state-action sets; The service interface execution module is used to execute the target service interface to perform service processing.
16. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 14 is implemented.
17. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
18. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Business interface creation method, device and system, equipment and medium
CN113595670A
Business operation method and device, electronic equipment and readable medium
CN114564203A