Complex branch process processing method, device, equipment and medium

Through the complex branch process processing method based on tree model, the problems of poor readability, stability and maintainability of traditional methods when dealing with complex business processes are solved, and efficient and flexible process processing is achieved.

CN119396538APending Publication Date: 2025-02-07PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411520984.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

When facing complex branch conditions, nested logic, exception handling and dynamically changing business processes, traditional process processing shows poor code readability, poor structural stability and poor maintenance, which is difficult to meet efficient management and execution. Requirements for complex branch processes.

Method used

A complex branch process processing method based on the tree model is adopted. By obtaining preset business processes, confirming business nodes and connection relationships, building a process iterator, establishing a tree structure process, and executing the process after receiving instructions to obtain results.

Benefits of technology

This method effectively reduces redundant code, improves the readability and structural stability of the code, and improves the processing efficiency and maintainability of complex processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396538A_ABST
    Figure CN119396538A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of transaction processing process optimization and financial science and technology, and discloses a complex branch process processing method, device, equipment and medium, and the method comprises the steps: obtaining a preset data environment fault processing business process, confirming business nodes according to the business process, and confirming a connection relation between the business nodes, establishing a flow iterator for each service node according to the connection relationship, establishing a father node according to the service flow, establishing branch child nodes according to the service nodes, establishing association between the father node and the branch child nodes by utilizing the flow iterator of each service node, and establishing association between the branch child nodes, the data environment fault processing method comprises the steps of obtaining a data environment fault processing tree structure process, and executing the data environment fault processing tree structure process after obtaining a data environment fault processing instruction to obtain a process execution result. And the structural stability and maintainability of the code are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of transaction processing optimization technology and financial technology, and in particular to a complex branch process processing method, device, equipment and medium. Background Art

[0002] With the rapid development of the software industry and the financial industry, the complexity of the business logic that financial software needs to handle is increasing. With the increasing complexity of business logic and the continuous growth of data processing needs, how to efficiently manage and execute complex branch processes has become a key issue to be solved.

[0003] Traditional process processing methods, such as simple conditional statements (such as if-else structures), often seem to be unable to cope with business processes that contain a large number of branch conditions, nested logic, exception handling, and dynamic changes. These traditional methods not only have poor code readability and high maintenance costs, but also have common problems such as code redundancy, inconvenient process coupling adjustment, poor readability, and difficulty in meeting the requirements of elegant and concise programming styles. Moreover, in business scenarios that handle large-scale concurrent requests or require frequent changes, performance and flexibility are difficult to meet actual needs. Summary of the invention

[0004] The present invention provides an artificial intelligence complex branch process processing method, device, computer equipment and medium, the main purpose of which is to solve the problems of poor code readability, poor structural stability and poor maintainability of the existing complex branch process processing method.

[0005] In a first aspect, a method for processing a complex branch flow is provided, comprising:

[0006] Obtain the preset business process for handling data environment failures;

[0007] Confirm the service nodes and the connection relationship between the service nodes according to the service process;

[0008] Constructing a process iterator for each business node according to the connection relationship;

[0009] Create a parent node according to the business process, and create a branch child node according to the business node;

[0010] Use the process iterator of each business node to establish the association between the parent node and the branch child node, and create the association between the branch child nodes to obtain the data environment fault processing tree structure process;

[0011] After obtaining the data environment fault processing instruction, the data environment fault processing tree structure process is executed to obtain the process execution result.

[0012] In a second aspect, a complex branch process processing device is provided, comprising:

[0013] A data acquisition module is used to obtain the business process of preset data environment fault handling;

[0014] An iterator construction module, used to confirm the business nodes and the connection relationship between the business nodes according to the business process, and construct a process iterator for each business node according to the connection relationship;

[0015] A tree structure creation module is used to create a parent node according to the business process, create a branch child node according to the business node, use the process iterator of each business node to establish an association between the parent node and the branch child node, and create an association between the branch child nodes to obtain a data environment fault processing tree structure process;

[0016] The process execution module is used to execute the data environment fault processing tree structure process after obtaining the data environment fault processing instruction to obtain the process execution result.

[0017] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned complex branch process processing method when executing the computer program.

[0018] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned complex branch process processing method are implemented.

[0019] In the scheme implemented by the above-mentioned complex branch process processing method, device, computer equipment and storage medium, the preset data environment fault processing business process can be obtained through the client, the business node is confirmed according to the business process and the connection relationship between the business nodes is confirmed, a process iterator is constructed for each business node according to the connection relationship, a parent node is created according to the business process, a branch child node is created according to the business node, and the process iterator of each business node is used to establish the association between the parent node and the branch child node, and the association between the branch child nodes is created, so as to obtain the data environment fault processing tree structure process, and after obtaining the data environment fault processing instruction, the data environment fault processing tree structure process is executed to obtain the process execution result. In the present invention, based on the basic idea of ​​the tree model, the parent node of the tree is used as the main operation unit, and its left and right child nodes are used as the basic branches of execution success / failure. According to the operation status of the parent node (success or failure), the left and right child nodes are automatically selected. The left and right child nodes are respectively subtrees that meet the same design structure. Through tree nesting, the originally complex jump process is transformed into the selection of tree nodes with a clear nested structure. Combined with the processing of iterators, complex logic that meets different jump conditions can be flexibly designed, which can effectively reduce redundant code, improve code readability, and improve code structure stability and maintainability. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 It is a schematic diagram of an application environment of a complex branch process processing method in one embodiment of the present invention;

[0022] Figure 2 is a flow chart of a complex branch flow processing method in one embodiment of the present invention;

[0023] Figure 3 is a structural schematic diagram of a complex branch process processing device in one embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of a structure of a computer device in one embodiment of the present invention;

[0025] Figure 5 It is another structural schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

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

[0027] The complex branch flow processing method provided by the embodiment of the present invention can be applied in the following aspects: Figure 1 In an application environment, the client confirms the business node according to the business process, confirms the connection relationship between the business nodes according to the business process, builds a process iterator for each business node according to the connection relationship, creates a parent node according to the business process, creates a branch child node according to the business node, and uses the process iterator of each business node to establish an association between the parent node and the branch child node, and creates an association between the branch child nodes, so as to obtain a data environment fault processing tree structure process, and after obtaining the data environment fault processing instruction, execute the data environment fault processing tree structure process to obtain the process execution result. It can effectively improve the efficiency of business process execution. Among them, the client can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The server can be implemented with an independent server or a server cluster composed of multiple servers. The present invention is described in detail below through specific embodiments.

[0028] See also Figure 2 As shown, Figure 2 A flowchart of a complex branch process processing method provided by an embodiment of the present invention includes the following steps:

[0029] S1. Obtain the preset business process for handling data environment failures.

[0030] In the embodiment of the present invention, the preset business process for handling data environment failures is a processing process set in a scenario where a data environment failure occurs according to actual business needs, and is a predetermined process.

[0031] In detail, the preset process has certain flexibility and scalability. With the development of business and the update of technology, the process can be adjusted and optimized accordingly to adapt to new business needs and challenges. At the same time, the process can also be customized according to different data environments and fault types to make it more suitable for specific application scenarios.

[0032] In detail, the business process of the data environment fault handling can be: canceling the synchronization application after the process starts, if the cancellation of the synchronization application fails, the process ends, if the cancellation of the synchronization application is successful, the data is supplemented, if the data is supplemented successfully, the environment is started normally, if the startup environment fails, the process ends, if the startup environment is successful, the environment parameters are set, if the setting fails, the process ends, if the setting is successful, the external service is enabled, if the setting fails, the process ends; if the data supplement fails, the current application point is backed up, if the backup fails, the process ends, the environment is forced to be activated after the backup is successful, if the forced activation of the environment fails, the process ends, after the forced activation of the environment is successful, the environment parameters are set, if the setting of the environment parameters fails, the process ends, and if the setting of the environment parameters is successful, the external service is enabled.

[0033] In the embodiment of the present invention, the business process of obtaining the preset data environment fault processing is obtained by obtaining data pre-stored on the server side.

[0034] In detail, the preset business process of data environment fault handling can be text-type data, which describes the connection relationship between various processes through language.

[0035] In detail, the preset data environment fault handling business process may also be image-type data, and the entire business process is described by a flowchart.

[0036] In the embodiment of the present invention, by acquiring a preset data environment fault processing business process, the efficiency of subsequent confirmation of business nodes is improved.

[0037] S2. Confirm the service nodes and the connection relationship between the service nodes according to the service process.

[0038] In the embodiment of the present invention, the service node refers to each operation in the service process.

[0039] In the embodiment of the present invention, confirming the service node according to the service process refers to identifying each execution operation in the service process as a service node.

[0040] In the embodiment of the present invention, the confirming of the service node and the connection relationship between the service nodes according to the service process includes:

[0041] Determining whether the business process is text data;

[0042] If the business process is text data, identifying associated words in the business process through semantic analysis, confirming execution operation actions in the business process according to the associated words, and obtaining business nodes;

[0043] Confirming the connection relationship between the service nodes according to the associated words;

[0044] If the business process is not text data, determining whether the business process is image data;

[0045] If the business process is image data, identify the text content in each rectangular box and elliptical box corresponding to the business process in the image to obtain a business node;

[0046] Identify the connection lines in the business process and obtain the connection relationship between the business nodes.

[0047] In detail, the identification of the associated words in the business process through semantic analysis, the confirmation of the execution operation actions in the business process according to the associated words, and the acquisition of the business nodes are to use semantic analysis technology to deeply understand and analyze the business process. Through this technology, the associated words used in the business process are accurately identified, and these words play a key role in connecting different concepts and steps in the text. Associated words usually include words that express logical relationships such as sequence, condition, cause and effect, such as "then", "if", "then", "otherwise", "at the same time", etc. By identifying these associated words, the logical connection between the steps in the business process can be revealed, so as to determine the execution operation actions in the process. For example, a related word may indicate that a certain operation is a prerequisite for another operation, or that a certain step is an action in response to a specific trigger. Such analysis enables us to construct a clear business process diagram, which includes all the execution actions and the dependencies between them. After identifying the associated words and the corresponding execution operation actions, these actions are further attributed to a series of business nodes. Each business node represents a specific operation or decision point in the process, which contains all the information and instructions required to complete the step.

[0048] In detail, the use of image recognition to identify the text content in each rectangular box and ellipse in the business process to obtain the business node is to accurately extract information from the business process diagram by applying image recognition technology. Specifically, this technology can help us identify and read the text content contained in each rectangular box and ellipse-shaped graphic in the flowchart. These texts usually represent key business nodes in the flowchart, which are important elements for understanding the entire business process and its various stages. In this way, we can convert visual information into editable and analyzable data, so as to further analyze and optimize business processes. This process not only improves the efficiency of information extraction, but also ensures the accuracy and completeness of the data, providing a solid foundation for subsequent business decisions and process improvements.

[0049] In the embodiment of the present invention, by confirming the service node according to the service process, the efficiency of subsequent confirmation of the connection relationship is improved.

[0050] S3. Construct a process iterator for each business node according to the connection relationship.

[0051] In the embodiment of the present invention, the process iterator is used to enable a service node to jump to a different next service node after successful or failed execution.

[0052] In the embodiment of the present invention, the process iterator of each service node includes a jump method for this service node to jump to the next service node.

[0053] In the embodiment of the present invention, the step of constructing a process iterator for each service node according to the connection relationship includes:

[0054] According to the business process, the next business node to jump to after the business node fails to execute is obtained, and the right child node is obtained;

[0055] According to the business process, the next business node to be jumped to after the business node is successfully executed is obtained to obtain the left child node;

[0056] A jump method for adjusting the right child node and the left child node according to the execution result of the business node is constructed to obtain a process iterator.

[0057] In the embodiment of the present invention, the construction adjusts the jump method of the right child node and the left child node according to the execution result of the business node to obtain a process iterator by creating a function, defining the jump method in the function, and the input data of the function can be the execution result of the business node.

[0058] In the embodiment of the present invention, by constructing a process iterator for each business node according to the connection relationship, the efficiency of subsequently constructing a tree structure process for processing data environment faults is improved.

[0059] S4. Create a parent node according to the business process, and create a branch child node according to the business node.

[0060] In the embodiment of the present invention, the parent node is created according to the business process, and the branch child node is created according to the business node, and a tree structure is constructed through a linked list.

[0061] In the embodiment of the present invention, creating a parent node according to the business process refers to taking a business node at the beginning of the business process as the parent node.

[0062] In the embodiment of the present invention, the creating of the branch sub-node according to the service node refers to creating the branch sub-node according to the service node associated with the service node at the start of the process in the service process.

[0063] In the embodiment of the present invention, by creating a parent node according to the business process and creating a branch child node according to the business node, the efficiency of the subsequent construction of the data environment fault processing tree structure process is improved.

[0064] S5. Use the process iterator of each business node to establish the association between the parent node and the branch child node, and create the association between the branch child nodes to obtain the data environment fault processing tree structure process.

[0065] In an embodiment of the present invention, the use of the process iterator of each business node to establish an association between a parent node and a branch child node, and to create an association between branch child nodes, refers to helping to establish an association between a parent node and a branch child node, and helping to establish an association between branch child nodes by accessing the status information of the parent node and the branch child node.

[0066] In detail, the process iterator of each business node serves as a bridge for communication between different business nodes. It can help establish a dynamic association between a parent node and its branch child nodes. Such an association not only defines the hierarchical relationship between nodes, but also clarifies their order in the processing flow.

[0067] Furthermore, the process iterator also allows us to create direct associations between branch subnodes. This means that different branch paths can be connected to each other according to specific conditions or results, thus forming a complex decision tree that can cover a variety of possible fault scenarios and corresponding processing strategies. This association between branch subnodes provides a high degree of flexibility and adaptability for the fault handling process, allowing the entire system to select the best processing path based on actual conditions.

[0068] Through this approach, we finally got a comprehensive tree-structured process that maps in detail the possible failures in the data environment and their corresponding treatment measures. This tree-structured process not only includes the path from the top-level parent node to each branch child node, but also shows the possible connections between these child nodes, thus forming a complete fault handling knowledge graph. Such a process structure enables managers and technicians to quickly locate problems, understand the overall picture of fault handling, and perform effective troubleshooting according to the preset logic.

[0069] In the embodiment of the present invention, the process iterator of each service node is used to establish an association between a parent node and a branch child node, and to create an association between branch child nodes to obtain a data environment fault processing tree structure process, including:

[0070] Confirm the left branch child node and the right branch child node of the parent node according to the process iterator of the parent node;

[0071] Construct a left branch process according to the process iterator of the left branch child node and the process iterators of other business nodes;

[0072] Construct a right branch process according to the process iterator of the right branch child node and the process iterators of other business nodes;

[0073] The data environment fault processing tree structure process is obtained by combining the parent node, the left branch process and the right branch process.

[0074] In detail, the left branch process refers to the process executed after the parent node successfully executes the action, and the right branch process refers to the process executed after the parent node fails to execute the action.

[0075] In an embodiment of the present invention, by utilizing the process iterator of each business node to establish an association between a parent node and a branch child node, and to create an association between branch child nodes, a tree structure process for data environment fault processing is obtained, thereby improving the efficiency of subsequent data environment fault processing.

[0076] S6. After obtaining the data environment fault processing instruction, execute the data environment fault processing tree structure process to obtain the process execution result.

[0077] In the embodiment of the present invention, each business node has two results: successful execution and failed execution. The process iterator jumps to different business nodes according to different execution results.

[0078] Specifically, after completing its established tasks, each business node will generate a clear feedback signal indicating its execution status. If the node is executed successfully, the process iterator will navigate to the next corresponding business node according to the preset logic and continue to perform subsequent operations. Such a jump ensures the consistency and efficiency of the process, allowing the entire business processing to move forward smoothly. Conversely, if a business node encounters an error or exception during execution, resulting in execution failure, the process iterator will also guide the process to another path based on the design of the system. This may involve error handlers, exception capture mechanisms, or rolling back to the previous node for retrying. Such a design not only improves the robustness of the system, but also ensures that the system can take appropriate countermeasures when faced with failure, thereby ensuring the overall stability and reliability of the business process.

[0079] In this way, the process iterator in the embodiment of the present invention provides a high degree of adaptability and flexibility for the management of business processes. It can intelligently determine the direction of the process based on the execution results of each node, whether to continue to move forward when successful or to make appropriate adjustments when failed. This mechanism makes the entire business processing process smoother and also improves the ability to respond to various unexpected situations.

[0080] In the embodiment of the present invention, executing the data environment fault processing tree structure process to obtain the process execution result includes:

[0081] Cancel the synchronization application and obtain the execution result of canceling the synchronization application;

[0082] If the execution result of canceling the synchronous application is execution failure, the process ends;

[0083] If the execution result of canceling the synchronous application is successful, data supplementation is performed to obtain the data supplementation execution result;

[0084] If the data supplementation execution result is execution failure, the right branch node process is executed to obtain the right branch process execution result;

[0085] If the data supplementation execution result is successful, the environment is started normally and the execution result of the startup environment is obtained;

[0086] If the execution result of the startup environment is execution failure, the process ends;

[0087] If the startup environment execution result is successful, then setting the environment parameters and obtaining the setting environment parameter execution result;

[0088] If the execution result of setting the environment parameters is failure, the process ends;

[0089] If the execution result of setting the environment parameters is successful, the external service is enabled to obtain the execution result of the right branch process.

[0090] Specifically, the cancellation of synchronization application means pausing the data synchronization operation to avoid further problems or data inconsistency when a data environment failure occurs. During the data synchronization process, if the same data is modified at the same time, a data conflict will occur. To solve this problem, it may be necessary to suspend the synchronization operation until the conflict is resolved. Priority conflict resolution, timestamp conflict resolution, manual intervention conflict resolution, or automatic merge conflict resolution can be used.

[0091] In detail, the data supplementation refers to the process of supplementing or correcting missing, erroneous, duplicated or incomplete data caused by a failure. This step is to ensure the integrity and accuracy of the data, thereby ensuring business continuity and data availability. For data that failed to be successfully written due to a failure, it is necessary to regenerate and write to the corresponding time partition. This usually involves backtracking and supplementing historical data to ensure data continuity.

[0092] In the embodiment of the present invention, the executing the right branch node process to obtain the right branch process execution result includes:

[0093] Back up the current application point and obtain the execution result of backing up the current application point;

[0094] If the execution result of backing up the current application point is execution failure, the process ends;

[0095] If the execution result of the backup current application point is successful, the environment is forcibly activated to obtain the execution result of the activated environment;

[0096] If the activation environment execution result is execution failure, the process ends;

[0097] If the execution result of the activation environment is successful, then setting the environment parameters and obtaining the execution result of setting the environment parameters;

[0098] If the execution result of setting the environment parameters is failure, the process ends;

[0099] If the execution result of setting the environment parameters is successful, the external service is enabled to obtain the execution result of the right branch process.

[0100] Specifically, backing up the current application point means that in order to quickly restore the service when a failure occurs, it is necessary to ensure that there is a latest data backup. This backup point should be as close as possible to the time when the failure occurs to minimize the risk of data loss.

[0101] In the embodiment of the present invention, after the data environment fault processing instruction is obtained, the data environment fault processing tree structure process is executed, and after the process execution result is obtained, the method further includes:

[0102] Obtain information on business process changes;

[0103] Modify the connection relationship according to the business process change information to obtain a changed connection relationship;

[0104] Modify the process iterator of each service node according to the connection relationship after the change item to obtain the changed process iterator of each service node;

[0105] The association relationship between the nodes in the data environment fault processing tree structure process is modified according to the changed process iterator of each business node to obtain the changed tree structure process.

[0106] In the embodiment of the present invention, the connection relationship between the nodes in the data environment fault processing tree structure process can be flexibly changed according to the change of the business process, and the nodes therein can be flexibly added or deleted.

[0107] Specifically, when faced with changes in business processes, the tree-structured flowchart for data environment fault handling needs to be adjusted accordingly. Such adjustments include, but are not limited to, changes in the connection relationships between nodes to adapt to new business needs. For example, if new steps are added to a business process or the order of steps is changed, we can reconfigure the connections between nodes in the flowchart to ensure that they correctly reflect the new order of operations and dependencies.

[0108] In addition, we can also add new nodes to this tree structure to include new elements in the business process. These new nodes can be any process components representing new data sources, new processing steps, or new decision points. Such additions help maintain the integrity and accuracy of the flowchart and ensure that it fully covers the updated business process.

[0109] Correspondingly, if some business steps become no longer applicable or are replaced by other steps, we can delete the corresponding nodes from the flowchart. This deletion operation helps to keep the flowchart simple and avoid obsolete or unnecessary steps from interfering with current business operations.

[0110] In the embodiment of the present invention, by constructing a processing flow with a tree structure, it is more flexible when the process logic needs to be modified, thereby improving efficiency.

[0111] It can be seen that in the embodiment of the present invention, based on the basic idea of ​​the tree model, the parent node of the tree is used as the main operating unit, and its left and right child nodes are used as the basic branches for execution success / failure. According to the operation status of the parent node (success or failure), the left and right child nodes are automatically selected. The left and right child nodes are respectively subtrees that meet the same design structure. Through the nesting of the tree, the originally complex jump process is converted into the selection of tree nodes with a clear nested structure. Combined with the processing of the iterator, complex logic that meets different jump conditions can be flexibly designed, because the change of the node does not change the stability of the tree structure itself. Compared with the traditional if-else structure, the tree mode proposed in the embodiment of the present invention can effectively maintain the structural stability of the code, improve the maintainability of the code, and greatly improve the processing efficiency of complex processes.

[0112] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0113] In one embodiment, a complex branch flow processing device is provided, and the complex branch flow processing device corresponds to the complex branch flow processing method in the above embodiment. Figure 3As shown, the complex branch process processing device includes a data acquisition module 101, an iterator construction module 102, a tree structure creation module 103 and a process execution module 104. The detailed description of each functional module is as follows:

[0114] The data acquisition module 101 is used to acquire the business process of preset data environment fault handling;

[0115] An iterator construction module 102 is used to confirm the business nodes and the connection relationship between the business nodes according to the business process, and to construct a process iterator for each business node according to the connection relationship;

[0116] The tree structure creation module 103 is used to create a parent node according to the business process, create a branch child node according to the business node, use the process iterator of each business node to establish an association between the parent node and the branch child node, and create an association between the branch child nodes to obtain a data environment fault processing tree structure process;

[0117] The process execution module 104 is used to execute the data environment fault processing tree structure process after obtaining the data environment fault processing instruction to obtain the process execution result.

[0118] In one embodiment, the iterator construction module 102, when confirming the service nodes and the connection relationship between the service nodes according to the service process, is used to:

[0119] Determining whether the business process is text data;

[0120] If the business process is text data, identifying associated words in the business process through semantic analysis, confirming execution operation actions in the business process according to the associated words, and obtaining business nodes;

[0121] Confirming the connection relationship between the service nodes according to the associated words;

[0122] If the business process is not text data, determining whether the business process is image data;

[0123] If the business process is image data, identify the text content in each rectangular box and elliptical box corresponding to the business process in the image to obtain a business node;

[0124] Identify the connection lines in the business process and obtain the connection relationship between the business nodes.

[0125] In one embodiment, the iterator construction module 102, when executing the construction of a process iterator for each service node according to the connection relationship, is used to:

[0126] According to the business process, the next business node to jump to after the business node fails to execute is obtained, and the right child node is obtained;

[0127] According to the business process, the next business node to be jumped to after the business node is successfully executed is obtained to obtain the left child node;

[0128] A jump method for adjusting the right child node and the left child node according to the execution result of the business node is constructed to obtain a process iterator.

[0129] In one embodiment, the tree structure creation module 103, when executing the process iterator of each business node to establish the association between the parent node and the branch child node, and to create the association between the branch child nodes to obtain the data environment fault processing tree structure process, is used to:

[0130] Confirm the left branch child node and the right branch child node of the parent node according to the process iterator of the parent node;

[0131] Construct a left branch process according to the process iterator of the left branch child node and the process iterators of other business nodes;

[0132] Construct a right branch process according to the process iterator of the right branch child node and the process iterators of other business nodes;

[0133] The data environment fault processing tree structure process is obtained by combining the parent node, the left branch process and the right branch process.

[0134] In one embodiment, the process execution module 104, when executing the data environment fault processing tree structure process and obtaining the process execution result, is used to:

[0135] Cancel the synchronization application and obtain the execution result of canceling the synchronization application;

[0136] If the execution result of canceling the synchronous application is execution failure, the process ends;

[0137] If the execution result of canceling the synchronous application is successful, data supplementation is performed to obtain the data supplementation execution result;

[0138] If the data supplementation execution result is execution failure, the right branch node process is executed to obtain the right branch process execution result;

[0139] If the data supplementation execution result is successful, the environment is started normally and the execution result of the startup environment is obtained;

[0140] If the execution result of the startup environment is execution failure, the process ends;

[0141] If the startup environment execution result is successful, then setting the environment parameters and obtaining the setting environment parameter execution result;

[0142] If the execution result of setting the environment parameters is failure, the process ends;

[0143] If the execution result of setting the environment parameters is successful, the external service is enabled to obtain the execution result of the right branch process.

[0144] In one embodiment, the process execution module 104, when executing the right branch node process and obtaining the right branch process execution result, is used to:

[0145] Back up the current application point and obtain the execution result of backing up the current application point;

[0146] If the execution result of backing up the current application point is execution failure, the process ends;

[0147] If the execution result of the backup current application point is successful, the environment is forcibly activated to obtain the execution result of the activated environment;

[0148] If the activation environment execution result is execution failure, the process ends;

[0149] If the execution result of the activation environment is successful, then setting the environment parameters and obtaining the execution result of setting the environment parameters;

[0150] If the execution result of setting the environment parameters is failure, the process ends;

[0151] If the execution result of setting the environment parameters is successful, the external service is enabled to obtain the execution result of the right branch process.

[0152] In one embodiment, after executing and acquiring the data environment fault processing instruction, the process execution module 104 executes the data environment fault processing tree structure process, and after obtaining the process execution result, is used to:

[0153] Obtain information on business process changes;

[0154] Modify the connection relationship according to the business process change information to obtain a changed connection relationship;

[0155] Modifying the process iterator of each service node according to the changed connection relationship to obtain the changed process iterator of each service node;

[0156] The association relationship between nodes in the data environment fault processing tree structure process is modified according to the changed process iterator of each business node to obtain the changed tree structure process.

[0157] The present invention provides a complex branch process processing device, which is based on the basic idea of ​​the tree model, takes the parent node of the tree as the main operating unit, and takes the left and right child nodes as the basic branches of execution success / failure. According to the operation status (success or failure) of the parent node, the left and right child nodes are automatically selected. The left and right child nodes are respectively subtrees that meet the same design structure. Through the nesting of trees, the originally complex jump process is converted into the selection of tree nodes with a clear nested structure. Combined with the processing of iterators, complex logic that meets different jump conditions can be flexibly designed, because the change of nodes does not change the stability of the tree structure itself. Compared with the traditional if-else structure, the tree mode proposed in the embodiment of the present invention can effectively maintain the structural stability of the code, improve the maintainability of the code, and greatly improve the processing efficiency of complex processes.

[0158] For the specific limitations of the complex branch process processing device, please refer to the limitations of the intelligent question and answer method above, which will not be repeated here. Each module in the above-mentioned complex branch process processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0159] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements the functions or steps on the server side of a complex branch process processing method.

[0160] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, it implements the functions or steps of the client side of a complex branch process processing method

[0161] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0162] Obtain the preset business process for handling data environment failures;

[0163] Confirm the service nodes and the connection relationship between the service nodes according to the service process;

[0164] Constructing a process iterator for each business node according to the connection relationship;

[0165] Create a parent node according to the business process, and create a branch child node according to the business node;

[0166] Use the process iterator of each business node to establish the association between the parent node and the branch child node, and create the association between the branch child nodes to obtain the data environment fault processing tree structure process;

[0167] After obtaining the data environment fault processing instruction, the data environment fault processing tree structure process is executed to obtain the process execution result.

[0168] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0169] Obtain the preset business process for handling data environment failures;

[0170] Confirm the service nodes and the connection relationship between the service nodes according to the service process;

[0171] Constructing a process iterator for each business node according to the connection relationship;

[0172] Create a parent node according to the business process, and create a branch child node according to the business node;

[0173] Use the process iterator of each business node to establish the association between the parent node and the branch child node, and create the association between the branch child nodes to obtain the data environment fault processing tree structure process;

[0174] After obtaining the data environment fault processing instruction, the data environment fault processing tree structure process is executed to obtain the process execution result. It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device can be referred to the relevant descriptions of the server side and the client side in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0176] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0177] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0178] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0179] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0180] Finally, it should be noted that if software tools or components other than those of the company appear in the application embodiments, they are only used for illustration and do not represent actual use. The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A complex branch process processing method, characterized in that: include: Obtain the preset business process for handling data environment failures; Confirm the service nodes and the connection relationship between the service nodes according to the service process; Constructing a process iterator for each business node according to the connection relationship; Create a parent node according to the business process, and create a branch child node according to the business node; Use the process iterator of each business node to establish the association between the parent node and the branch child node, and create the association between the branch child nodes to obtain the data environment fault processing tree structure process; After obtaining the data environment fault processing instruction, the data environment fault processing tree structure process is executed to obtain the process execution result.

2. The complex branch process processing method according to claim 1, characterized in that: The confirming the service nodes and the connection relationship between the service nodes according to the service process includes: Determining whether the business process is text data; If the business process is text data, identifying associated words in the business process through semantic analysis, confirming execution operation actions in the business process according to the associated words, and obtaining business nodes; Confirming the connection relationship between the service nodes according to the associated words; If the business process is not text data, determining whether the business process is image data; If the business process is image data, identify the text content in each rectangular box and elliptical box corresponding to the business process in the image to obtain a business node; Identify the connection lines in the business process and obtain the connection relationship between the business nodes.

3. The complex branch process processing method according to claim 1, characterized in that: The step of constructing a process iterator for each service node according to the connection relationship includes: According to the business process, the next business node to jump to after the business node fails to execute is obtained, and the right child node is obtained; According to the business process, the next business node to be jumped to after the business node is successfully executed is obtained to obtain the left child node; A jump method for adjusting the right child node and the left child node according to the execution result of the business node is constructed to obtain a process iterator.

4. The complex branch process processing method according to claim 1, characterized in that: The process iterator of each business node is used to establish the association between the parent node and the branch child node, and to create the association between the branch child nodes, so as to obtain the data environment fault processing tree structure process, including: Confirm the left branch child node and the right branch child node of the parent node according to the process iterator of the parent node; Construct a left branch process according to the process iterator of the left branch child node and the process iterators of other business nodes; Construct a right branch process according to the process iterator of the right branch child node and the process iterators of other business nodes; The data environment fault processing tree structure process is obtained by combining the parent node, the left branch process and the right branch process.

5. The complex branch process processing method according to claim 1, characterized in that: The step of executing the data environment fault processing tree structure process to obtain the process execution result includes: Cancel the synchronization application and obtain the execution result of canceling the synchronization application; If the execution result of canceling the synchronous application is execution failure, the process ends; If the execution result of canceling the synchronous application is successful, data supplementation is performed to obtain the data supplementation execution result; If the data supplementation execution result is execution failure, the right branch node process is executed to obtain the right branch process execution result; If the data supplementation execution result is successful, the environment is started normally and the execution result of the startup environment is obtained; If the execution result of the startup environment is execution failure, the process ends; If the startup environment execution result is successful, then setting the environment parameters and obtaining the setting environment parameter execution result; If the execution result of setting the environment parameters is failure, the process ends; If the execution result of setting the environment parameters is successful, the external service is enabled to obtain the execution result of the right branch process.

6. The complex branch process processing method according to claim 5, characterized in that: The executing the right branch node process to obtain the right branch process execution result includes: Back up the current application point and obtain the execution result of backing up the current application point; If the execution result of backing up the current application point is execution failure, the process ends; If the execution result of the backup current application point is successful, the environment is forcibly activated to obtain the execution result of the activated environment; If the activation environment execution result is execution failure, the process ends; If the execution result of the activation environment is successful, then setting the environment parameters and obtaining the execution result of setting the environment parameters; If the execution result of setting the environment parameters is failure, the process ends; If the execution result of setting the environment parameters is successful, the external service is enabled to obtain the execution result of the right branch process.

7. The complex branch process processing method according to claim 1, characterized in that: After the data environment fault processing instruction is obtained, the data environment fault processing tree structure process is executed, and after the process execution result is obtained, the method further includes: Obtain information on business process changes; Modify the connection relationship according to the business process change information to obtain a changed connection relationship; Modifying the process iterator of each service node according to the changed connection relationship to obtain the changed process iterator of each service node; The association relationship between nodes in the data environment fault processing tree structure process is modified according to the changed process iterator of each business node to obtain the changed tree structure process.

8. A complex branch process processing device, characterized in that: include: A data acquisition module is used to obtain the business process of preset data environment fault handling; An iterator construction module, used to confirm the business nodes and the connection relationship between the business nodes according to the business process, and construct a process iterator for each business node according to the connection relationship; A tree structure creation module is used to create a parent node according to the business process, create a branch child node according to the business node, use the process iterator of each business node to establish an association between the parent node and the branch child node, and create an association between the branch child nodes to obtain a data environment fault processing tree structure process; The process execution module is used to execute the data environment fault processing tree structure process after obtaining the data environment fault processing instruction to obtain the process execution result.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the complex branch flow processing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the complex branch flow processing method as claimed in any one of claims 1 to 7 are implemented.