Process splitting method and device, equipment and storage medium
By analyzing the flow chart and breakpoint information in the microservice architecture, splitting the process sub-graph and setting up virtual branches, the problem of API process debugging is solved, debugging and error location of any node of the process is realized, and development efficiency and logic correctness are improved. .
Patent Information
- Application Number
- CN202410843628.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-08
AI Technical Summary
In the microservice architecture, the API process of business orchestration is long, has too many nodes, and has complex logic, making it difficult to ensure logic correctness. The existing technology does not provide a single-step debugging function, making it difficult to troubleshoot problems and affecting development efficiency.
By analyzing the flow chart and combining the breakpoint information to split the process sub-graph, you can specify any node in the process orchestration for debugging, set up virtual branches and error nodes, obtain the input and output parameters of the node, and determine the error location and cause.
It provides convenient debugging capabilities to help developers quickly locate and solve errors in the process, improving business development efficiency and ensuring logical correctness.
Smart Images

Figure CN118747153A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of microservice technology, and in particular to a process splitting method, device, equipment and storage medium. Background Art
[0002] Under the current mainstream microservice architecture, the functions of relatively independent modules are split into independent microservice applications, which improves the scalability and rapid iteration capabilities of services. However, at the business level, it is necessary to call the APIs (Application Programming Interfaces) of multiple microservices to solve complete business demands. Business orchestration realizes the complete business process by combining various microservices and third-party RESTful services, and provides complex business processing APIs for the application layer. However, since the orchestrated API process is long, has too many nodes, and may have some logical branches and asynchronous branches, how to ensure the logical correctness of the orchestrated process is a new test. The current API orchestration technology in the industry only supports the operational engine of the process to ensure the correctness of the function, but does not provide single-step debugging function. Summary of the invention
[0003] The embodiments of the present invention provide a process splitting method, apparatus, device and storage medium, so as to realize the ability to split the process sub-graph by analyzing the flow chart and combining the specified breakpoint information, support debugging at any node of the specified process in the process orchestration, support breakpoint operation, and provide convenient debugging capabilities for process developers.
[0004] According to one aspect of the present invention, a process splitting method is provided, which is applied to a business orchestration application program interface process scenario, comprising:
[0005] Get the breakpoint mark in the process;
[0006] Searching for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark;
[0007] If the upstream node of the breakpoint node is the target node, the sub-flow corresponding to the flow is determined according to the target node and the breakpoint node.
[0008] In some embodiments of the present invention, it further comprises:
[0009] If the upstream node of the breakpoint node is a first type node, searching for an upstream node corresponding to the upstream node until the upstream node is a target node;
[0010] A sub-process corresponding to the process is determined according to the target node, each of the upstream nodes and the breakpoint node.
[0011] In some embodiments of the present invention, it further comprises:
[0012] If the upstream node of the breakpoint node is a second type node, a virtual branch is set downstream of the upstream node, and the first node on the virtual branch is set as an error node.
[0013] In some embodiments of the present invention, it further comprises:
[0014] Obtain input parameters and output parameters corresponding to each node in the process;
[0015] When a running error occurs in the process, the error location and the error cause are determined according to the input parameters and output parameters corresponding to each node in the process.
[0016] In some embodiments of the present invention, the target node includes: a start node and other breakpoint nodes.
[0017] According to another aspect of the present invention, a process splitting device is provided, the device comprising:
[0018] A first acquisition module is used to acquire breakpoint marks in the process;
[0019] A first search module, configured to search for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark;
[0020] A second search module, configured to search for an upstream node corresponding to the upstream node if the upstream node of the breakpoint node is a first type node, until the upstream node is a target node;
[0021] The first determining module is configured to determine a sub-process corresponding to the process according to the target node and the breakpoint node if the upstream node of the breakpoint node is the target node.
[0022] In some embodiments of the present invention, it further comprises:
[0023] A second search module, configured to search for an upstream node corresponding to the upstream node if the upstream node of the breakpoint node is a first type node, until the upstream node is a target node;
[0024] The second determining module is used to determine the sub-process corresponding to the process according to the target node, each of the upstream nodes and the breakpoint node.
[0025] In some embodiments of the present invention, it further comprises:
[0026] The setting module is used for setting a virtual branch downstream of the upstream node if the upstream node of the breakpoint node is a second type node, and setting the first node on the virtual branch as an error node.
[0027] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0028] at least one processor; and
[0029] a memory communicatively connected to the at least one processor; wherein,
[0030] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the process splitting method described in any embodiment of the present invention.
[0031] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the process splitting method described in any embodiment of the present invention when executed.
[0032] The embodiment of the present invention obtains the breakpoint mark in the process, searches for the upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark, and if the upstream node of the breakpoint node is the target node, determines the sub-process corresponding to the process according to the target node and the breakpoint node. Through the technical solution of the present invention, it is possible to analyze the flow chart, split the process sub-graph in combination with the specified breakpoint information, support debugging of any node of the specified process in the process arrangement, support breakpoint operation, and provide convenient debugging capabilities for process developers.
[0033] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 is a flow chart of a process splitting method in an embodiment of the present invention;
[0036] Figure 2 is a flow chart including breakpoint marks in an embodiment of the present invention;
[0037] Figure 3 is a flowchart of an actual operation in an embodiment of the present invention;
[0038] Figure 4 It is a structural schematic diagram of a process splitting device in an embodiment of the present invention;
[0039] Figure 5 It is a structural schematic diagram of an electronic device for implementing the process splitting method of an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] Embodiment 1
[0044] Figure 1 is a flow chart of a process splitting method in an embodiment of the present invention. This embodiment is applicable to the process splitting in a business orchestration application program interface scenario. The method can be executed by a process splitting device in an embodiment of the present invention. The device can be implemented in software and / or hardware, such as Figure 1 As shown, the method specifically comprises the following steps:
[0045] S101. Obtain breakpoint marks in the process.
[0046] In this embodiment, the process splitting method can be applied to the business orchestration application program interface process scenario. The specific process can be, for example, an orchestrated API (Application Programming Interface) process. A complete process may contain multiple nodes and branch paths, which can be represented by a flowchart.
[0047] The breakpoint mark may be a mark for interrupting operation set at a certain node in the process, that is, the process will be stopped when it reaches this node.
[0048] For example, Figure 2 is a flow chart including breakpoint marks in an embodiment of the present invention. Figure 2 As shown, the flowchart includes the following nodes: "Start", "Query the number of new hidden dangers added on the day", "Calculate the risk coefficient", "Dispatch processing work order", "Report to the regulatory department", "Obtain regulatory approval opinions", "Send supervision request", "Send rectification work order", "SMS notification (asynchronous)", "Send supervision work order", "Update hidden danger processing results" and "End". Among them, there are two branches downstream of "Query the number of new hidden dangers added on the day": if the number is <= 10, run the "Calculate risk coefficient" node on one of the branches; if the number is > 10, run the "Report to the regulatory department" node on the other branch. There are two branches downstream of "Obtain regulatory approval opinions": if supervision and rectification are required, run the "Send supervision request" node on one of the branches; if rectification is required by oneself, run the "Send rectification work order" node on the other branch. Among them, mark the shaded node "Send supervision work order" with a breakpoint, that is, use "Send supervision work order" as the breakpoint node.
[0049] S102: Searching for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark.
[0050] The breakpoint node may be a node marked with a breakpoint mark in the process.
[0051] It should be noted that the upstream node of the breakpoint node may be a node upstream of the breakpoint node in the flow chart. Figure 2 The upstream node of "Send Supervision Work Order" is "SMS Notification (Asynchronous)".
[0052] Specifically, start from the breakpoint node corresponding to the breakpoint mark and work backward to find the upstream node of the breakpoint node.
[0053] S103: If the upstream node of the breakpoint node is the target node, determine the sub-process corresponding to the process according to the target node and the breakpoint node.
[0054] It should be explained that the target node can be a node with interrupting properties in the process, the sub-process can be a temporary process split from the process, and two nodes with interrupting properties can be combined to form a sub-process.
[0055] Optionally, the target nodes include: a start node and other breakpoint nodes.
[0056] In this embodiment, the start node may be a node at the beginning of a process, for example, Figure 2 The "Start" node in .
[0057] Among them, other breakpoint nodes can be other breakpoint nodes in the process except the current process split. Exemplarily, Figure 2 There are two breakpoint nodes "Report to the Regulatory Department" and "Send Supervision Work Order". If the process is split from the breakpoint node "Send Supervision Work Order" and work backwards, the breakpoint node "Report to the Regulatory Department" is the other breakpoint nodes.
[0058] Specifically, if the upstream node of the breakpoint node is the target node, the target node and the breakpoint node form a sub-flow in a flow. Figure 2 The "start" node in is a node with interrupt properties. Figure 2 "Query the number of new hidden dangers added on the day" is the interrupt node, and the upstream node of "Query the number of new hidden dangers added on the day" is the "Start" node. The two nodes "Start" and "Query the number of new hidden dangers added on the day" constitute a sub-process.
[0059] The embodiment of the present invention obtains the breakpoint mark in the process, searches for the upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark, and if the upstream node of the breakpoint node is the target node, determines the sub-process corresponding to the process according to the target node and the breakpoint node. Through the technical solution of the present invention, it is possible to analyze the flow chart, split the process sub-graph in combination with the specified breakpoint information, support debugging of any node of the specified process in the process arrangement, support breakpoint operation, and provide convenient debugging capabilities for process developers.
[0060] Optionally, also include:
[0061] If the upstream node of the breakpoint node is a first type node, then the upstream node corresponding to the upstream node is searched until the upstream node is the target node.
[0062] In this embodiment, the first type of node can be understood as a common node, that is, a node that does not have an interruption property in the process and does not have a branch downstream.
[0063] For example, if Figure 2In the example, "Send Supervisor Work Order" is an interrupt node. The upstream node of "Send Supervisor Work Order" is "SMS Notification (Asynchronous)". If "SMS Notification (Asynchronous)" is found to be a first-type node, the upstream node of "SMS Notification (Asynchronous)" is recursively searched until the node found is the "Start" node. In this process, assuming that Figure 2 If "Send Supervision Request" is also an interrupt node, then reverse the process from the interrupt node "Send Supervision Work Order" to "SMS Notification (Asynchronous)", and then reverse the process to "Send Supervision Request". If "Send Supervision Request" is found to be the target node, the reverse process stops.
[0064] Determine the sub-process corresponding to the process based on the target node, each upstream node, and the breakpoint node.
[0065] In actual operation, two nodes with interrupt properties and all the intermediate nodes can be combined to form a sub-process. Specifically, the target node, each upstream node traversed in the reverse process, and the breakpoint node together form a sub-process corresponding to the process.
[0066] Optionally, also include:
[0067] If the upstream node of the breakpoint node is a second type node, a virtual branch is set downstream of the upstream node, and the first node on the virtual branch is set as an error node.
[0068] In this embodiment, the second type of node can be understood as a node with a branch downstream in the process. Figure 2 "Query the number of new hidden dangers on the day" and "Obtain regulatory approval opinions" are both second-type nodes.
[0069] It should be explained that the virtual branch can be a branch in the opposite direction to the search path. For example, the search path can be reversed from the downstream node to the upstream node, and the virtual branch can be a virtual branch established downstream of the upstream node.
[0070] In this embodiment, the error node may be a node that prompts the developer that a running error occurs when the node is run.
[0071] Specifically, since the second type of node in the process must have two downstream nodes, the reverse search traversal can only know one of the branches. Therefore, when the current traversal node is a second type of node, in addition to splicing the downstream nodes on the search path, it is also necessary to splice a virtual conditional branch. This condition is opposite to the condition of the search path, ensuring that all conditions that do not meet the normal path can go to the virtual branch. At the same time, the processing node of the virtual branch is fixed: an error message is thrown to remind the developer that the process runs to an unexpected branch based on the input parameters.
[0072] For example, Figure 2 A virtual branch is set downstream of the two second-type nodes in , and the first node on the virtual branch is set as an error node. According to the node and breakpoint information on the way, the following is obtained: Figure 3 The actual operation flowchart is shown. Figure 3 is a flowchart of an actual operation in an embodiment of the present invention, such as Figure 3 As shown, the sub-process starts running from the "Start" node, passing through "Query the number of new hidden dangers added on the day", (number>10) "Report to the regulatory department", "Obtain regulatory approval opinions", (Supervision and rectification) "Send supervision request", "SMS notification (asynchronous)" and "Send supervision work order". Among them, when the sub-process runs to the (number<=10) branch via "Query the number of new hidden dangers added on the day", this branch is a virtual branch, and the error node on the virtual branch is "Throw error dummy node", and the processing node of the virtual branch is fixed: throw error information to remind developers that the process has run to an unexpected branch according to the input parameters. Similarly, when the sub-process runs to the (non-supervision and rectification, that is, self-rectification) branch via "Obtain regulatory approval opinions", this branch is a virtual branch, and the error node on the virtual branch is "Throw error dummy node", and the processing node of the virtual branch is fixed: throw error information to remind developers that the process has run to an unexpected branch according to the input parameters. In addition, a virtual branch can also be established downstream of the breakpoint node "Send supervision work order" ( Figure 3 When the subprocess runs to this unexpected branch, an error message is also thrown.
[0073] With current technical capabilities, if the process is more complex, such as more than 20 nodes, or there are multiple branch nodes, etc., and the final execution result does not meet the expected result, it is difficult to find out which node has a problem. API orchestration itself is based on drag-and-drop secondary development of the process, and is a graphical representation of the underlying process engine. It cannot be debugged in an IDE (Integrated Development Environment) like simple code. Each node in the process calls other microservices or third-party services for processing. The process itself does not carry out specific transaction processing. Therefore, when troubleshooting, it is necessary to coordinate the participation of multiple modules and add a large amount of log output to find the specific problem points. If the problem is difficult to troubleshoot, the user experience will be poor, resulting in low development efficiency of business developers, and it will be difficult to truly promote the product.
[0074] Therefore, in addition to performing process node splitting processing, in order to clearly understand the running status of each node, the embodiment of the present invention uses AOP (Aspect Oriented Programming) to package the running code of each node when the flowchart is running in the running engine, and prints the input parameters and output parameters of the node to the log, so that developers can view the parameters of each node and verify whether the operation of the node complies with the business logic.
[0075] Optionally, also include:
[0076] Get the input parameters and output parameters corresponding to each node in the process.
[0077] In this embodiment, the input parameter may be a parameter input to a node in the process, and the output parameter may be a parameter output by a node in the process.
[0078] Specifically, the input parameters and output parameters of each node in the process are obtained.
[0079] When a runtime error occurs in the process, the error location and cause are determined based on the input parameters and output parameters corresponding to each node in the process.
[0080] Specifically, when a runtime error occurs in the process, check the input parameters and output parameters of all nodes that have been run to determine which node in the process has a problem and which node caused the runtime error.
[0081] In actual operation, debugging information needs to be stored in the database, so that when running from a breakpoint to the next breakpoint, the last output data needs to be used as the input data of the downstream node to continue splitting the sub-process. At this time, the recursive judgment node is no longer the start node, but the breakpoint position of the last run, but the reverse thinking mode is the same, and it will not be repeated here.
[0082] The technical solution of the embodiment of the present invention supports debugging any node of the specified process in the process arrangement, supports breakpoint operation, the process will terminate at the breakpoint mark, and can view the input and output parameter data of all nodes that have been run, and supports running from the breakpoint until the next breakpoint mark. The technical solution of the embodiment of the present invention provides convenient debugging capabilities for process developers by analyzing the flow chart, combining the specified breakpoint information, splitting the flow subgraph, completing the branch nodes, and encapsulating the log information.
[0083] Embodiment 2
[0084] Figure 4is a schematic diagram of the structure of a process splitting device in an embodiment of the present invention. This embodiment can be applied to the process splitting in the business orchestration application program interface scenario. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides the function of process splitting, such as Figure 4 As shown, the process splitting device specifically includes: a first acquisition module 201, a first search module 202 and a first determination module 203.
[0085] The first acquisition module 201 is used to acquire the breakpoint mark in the process;
[0086] A first search module 202, configured to search for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark;
[0087] The first determining module 203 is configured to determine a sub-process corresponding to the process according to the target node and the breakpoint node if the upstream node of the breakpoint node is the target node.
[0088] Optionally, also include:
[0089] A second search module, configured to search for an upstream node corresponding to the upstream node if the upstream node of the breakpoint node is a first type node, until the upstream node is a target node;
[0090] The second determining module is used to determine the sub-process corresponding to the process according to the target node, each of the upstream nodes and the breakpoint node.
[0091] Optionally, also include:
[0092] The setting module is used for setting a virtual branch downstream of the upstream node if the upstream node of the breakpoint node is a second type node, and setting the first node on the virtual branch as an error node.
[0093] Optionally, also include:
[0094] A second acquisition module is used to acquire input parameters and output parameters corresponding to each node in the process;
[0095] The third determination module is used to determine the error location and error cause according to the input parameters and output parameters corresponding to each node in the process when a running error occurs in the process.
[0096] Optionally, the target node includes: a start node and other breakpoint nodes.
[0097] The above-mentioned product can execute the process splitting method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the process splitting method.
[0098] Embodiment 3
[0099] Figure 5 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Figure 5 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.
[0101] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 performs the various methods and processes described above, such as the process splitting method:
[0103] Get the breakpoint mark in the process;
[0104] Searching for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark;
[0105] If the upstream node of the breakpoint node is the target node, the sub-flow corresponding to the flow is determined according to the target node and the breakpoint node.
[0106] In some embodiments, the process splitting method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the process splitting method described above can be performed. Alternatively, in other embodiments, the processor 31 can be configured to perform the process splitting method in any other appropriate manner (for example, by means of firmware).
[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0109] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0110] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0111] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0112] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A process splitting method, It is characterized in that Applicable to business orchestration application program interface process scenarios, including: Get the breakpoint mark in the process; Searching for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark; If the upstream node of the breakpoint node is the target node, the sub-flow corresponding to the flow is determined according to the target node and the breakpoint node.
2. The method according to claim 1, It is characterized in that Also includes: If the upstream node of the breakpoint node is a first type node, searching for an upstream node corresponding to the upstream node until the upstream node is a target node; A sub-process corresponding to the process is determined according to the target node, each of the upstream nodes and the breakpoint node.
3. The method according to claim 1, It is characterized in that Also includes: If the upstream node of the breakpoint node is a second type node, a virtual branch is set downstream of the upstream node, and the first node on the virtual branch is set as an error node.
4. The method according to claim 1, It is characterized in that Also includes: Obtain input parameters and output parameters corresponding to each node in the process; When a running error occurs in the process, the error location and the error cause are determined according to the input parameters and output parameters corresponding to each node in the process.
5. The method according to claim 1, It is characterized in that The target nodes include: a start node and other breakpoint nodes.
6. A process splitting device, It is characterized in that include: A first acquisition module is used to acquire breakpoint marks in the process; A first search module, configured to search for an upstream node of the breakpoint node according to the breakpoint node corresponding to the breakpoint mark; The first determining module is configured to determine a sub-process corresponding to the process according to the target node and the breakpoint node if the upstream node of the breakpoint node is the target node.
7. The device according to claim 6, It is characterized in that Also includes: A second search module, configured to search for an upstream node corresponding to the upstream node if the upstream node of the breakpoint node is a first type node, until the upstream node is a target node; The second determining module is used to determine the sub-process corresponding to the process according to the target node, each of the upstream nodes and the breakpoint node.
8. The device according to claim 6, It is characterized in that Also includes: The setting module is used for setting a virtual branch downstream of the upstream node if the upstream node of the breakpoint node is a second type node, and setting the first node on the virtual branch as an error node.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the process splitting method described in any one of claims 1 to 5.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the process splitting method described in any one of claims 1 to 5 when executed.
