Implementation method and device of process orchestration engine and storage medium
By analyzing process creation requests and creating process orchestration based on pre-set relationships, the problem of large workload and poor compatibility of process orchestration engine development in the existing technology is solved, and efficient orchestration and scalability of process orchestration engines is achieved.
Patent Information
- Application Number
- CN202411587459.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2024-12-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When facing complex business needs, the existing process orchestration engine has a large development workload and poor system compatibility and scalability, making it difficult to meet the needs of multiple process branches and docking services.
By analyzing the process creation request, determining the type of target process orchestration, and creating and configuring process nodes and their association relationships based on the pre-set process type and target nodes, configuring node services, and running the process under real-time monitoring based on the corresponding relationship between the pre-set process type and the target node node. Node business, implement process orchestration.
Save code development costs, improve system compatibility and scalability, and be able to flexibly respond to complex business needs.
Smart Images

Figure CN119148987A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology and provides a method, device and storage medium for implementing a process orchestration engine. Background Art
[0002] At present, in the development process of enterprise-level application systems, as business needs continue to become more complex, in order to ensure the efficient execution of business processes in the business system, it is often necessary to introduce corresponding process orchestration engines to implement various complex process support businesses and realize the automated flow of business processes.
[0003] Various process nodes will be generated during the flow of business processes. The implementation methods of existing process orchestration engines often focus on business functions, that is, graphical process nodes are constructed according to business needs, and process nodes are connected according to guide lines with conditions and directions to form a business process diagram. The designed business process diagram is saved and published to the process orchestration engine, and the process orchestration engine automatically transfers the process flow to the corresponding node for processing according to the operation of the business system.
[0004] However, in order to meet the needs of complex businesses, there are often multiple process branches and process docking businesses in enterprise-level application systems. The existing process orchestration engine needs to develop corresponding function implementation codes for multiple business processes, resulting in a large development workload and poor system compatibility and scalability. Summary of the invention
[0005] The embodiments of the present application provide a method, device and storage medium for implementing a process orchestration engine, so as to save code development costs and improve the compatibility and scalability of the system.
[0006] The specific technical solutions provided by this application are as follows: In a first aspect, an embodiment of the present application provides a method for implementing a process orchestration engine, which is applied to a server, and the method includes: Parsing the received process creation request to obtain the type of the target process orchestration to be created, wherein the process creation request is triggered by the client to the process orchestration software, and the process orchestration software runs on the client; Based on the correspondence between the preset process type and the target node, determine the process nodes included in the target process arrangement and the association relationship between the process nodes, and create the target process arrangement based on the process nodes and the association relationship; Based on the preset correspondence between the target node and the business, the corresponding node business is configured for each process node in the target process arrangement; Traverse each process node according to the association relationship and run the node business corresponding to each process node.
[0007] Optionally, based on the correspondence between the preset process type and the target node, determining the process nodes included in the target process arrangement and the association relationship between the process nodes includes: Searching for a process type that is the same as the type of the target process to be created in the correspondence between the preset process types and the target nodes; Determine each target node corresponding to the found process type in the correspondence relationship between the process type and the target node as each process node included in the target process arrangement; The association relationship between each process node is determined based on the execution steps indicated by the process type.
[0008] Optionally, create a target process orchestration based on each process node and its association, including: Connect each process node according to the association relationship, and create the target process orchestration based on the connected process nodes.
[0009] Optionally, based on the preset correspondence between the target node and the service, corresponding node services are configured for each process node in the target process arrangement, including: Searching for target nodes that are identical to the process nodes in the target process arrangement in the correspondence relationship between the preset target nodes and the business; Determine the services corresponding to the respective found target nodes in the correspondence relationship between the target nodes and the services as node services; Configure corresponding node services for each process node in the target process orchestration.
[0010] Optionally, the correspondence between the target node and the service is pre-set in the following manner: Determine the execution content of the business corresponding to each target node respectively; If the execution content of the services corresponding to any two target nodes is the same, then any two target nodes are matched with the same service with the same execution content; If the execution contents of the services corresponding to any two target nodes are different, the any two target nodes are respectively made to correspond to the two services with different execution contents.
[0011] Optionally, before running the node business corresponding to each process node, the following steps are also included: Set up real-time monitoring process for target process orchestration; Run the node business corresponding to each process node, including: When running the node business corresponding to any process node, use the real-time monitoring process to detect whether the node parameters of the process node are correct, and use the real-time monitoring process to detect whether the result parameters of the upstream process node match the input parameters of any process node, where the upstream process node is the node that runs the node business before any process node; If the node parameters are incorrect, or if the result parameters do not match the input parameters, an error prompt message will be issued.
[0012] Optionally, traverse each process node according to the association relationship, and run the node business corresponding to each process node, including: Find the initial process node in each process node, where the initial process node is determined according to the received process initiation request, which is initiated by the client for the target process orchestration, and the initial process node is the first process node running the node business in each process node; Taking the initial process node as the starting point, traverse each process node according to the association relationship, and run the node business corresponding to the process node when traversing to any process node.
[0013] In a second aspect, the embodiment of the present application further provides a device for implementing a process orchestration engine, including: A parsing unit, configured to parse a received process creation request to obtain a type of a target process orchestration to be created, wherein the process creation request is triggered by a client to process orchestration software, and the process orchestration software runs on the client; A creation unit, configured to determine the process nodes included in the target process arrangement and the association relationship between the process nodes based on the correspondence relationship between the preset process types and the target nodes, and to create the target process arrangement based on the process nodes and the association relationship; A configuration unit, configured to configure corresponding node services for each process node in the target process arrangement based on a preset correspondence between the target node and the service; The running unit is used to traverse each process node according to the association relationship and run the node business corresponding to each process node.
[0014] Optionally, a target process orchestration is created based on each process node and the association relationship, and the creation unit is used to: Connect each process node according to the association relationship, and create the target process orchestration based on the connected process nodes.
[0015] Optionally, based on the preset correspondence between the target node and the service, the corresponding node service is configured for each process node in the target process arrangement, and the configuration unit is used to: Searching for target nodes that are identical to the process nodes in the target process arrangement in the correspondence relationship between the preset target nodes and the business; Determine the services corresponding to the respective found target nodes in the correspondence relationship between the target nodes and the services as node services; Configure corresponding node services for each process node in the target process orchestration.
[0016] Optionally, the correspondence between the target node and the service is pre-set in the following manner: Determine the execution content of the business corresponding to each target node respectively; If the execution content of the services corresponding to any two target nodes is the same, then any two target nodes are matched with the same service with the same execution content; If the execution contents of the services corresponding to any two target nodes are different, the any two target nodes are respectively made to correspond to the two services with different execution contents.
[0017] Optionally, before running the node business corresponding to each process node, the following steps are also included: Set up real-time monitoring process for target process orchestration; Run the node business corresponding to each process node, including: When running the node business corresponding to any process node, use the real-time monitoring process to detect whether the node parameters of the process node are correct, and use the real-time monitoring process to detect whether the result parameters of the upstream process node match the input parameters of any process node, where the upstream process node is the node that runs the node business before any process node; If the node parameters are incorrect, or if the result parameters do not match the input parameters, an error prompt message will be issued.
[0018] Optionally, each process node is traversed according to the association relationship, and the node business corresponding to each process node is run. The running unit is used to: Find the initial process node in each process node, where the initial process node is determined according to the received process initiation request, which is initiated by the client for the target process orchestration, and the initial process node is the first process node running the node business in each process node; Taking the initial process node as the starting point, traverse each process node according to the association relationship, and run the node business corresponding to the process node when traversing to any process node.
[0019] In a third aspect, a server includes: A memory for storing executable instructions; A processor is used to read and execute executable instructions stored in a memory to implement any method as described in the first aspect.
[0020] In a fourth aspect, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor, the processor is enabled to execute any method described in the first aspect.
[0021] The beneficial effects of this application are as follows: In summary, in an embodiment of the present application, a method, device and storage medium for implementing a process orchestration engine are provided. The method is applied to a server and includes: parsing a received process creation request to obtain the type of a target process orchestration to be created, wherein the process creation request is triggered by a client to a process orchestration software, and the process orchestration software runs on the client. Based on the correspondence between a preset process type and a target node, the process nodes included in the target process orchestration and the association between the process nodes are determined, and the target process orchestration is created based on the process nodes and the association. Based on the correspondence between the preset target nodes and the services, corresponding node services are configured for each process node in the target process orchestration, each process node is traversed according to the association, and the node services corresponding to each process node are run. The implementation process of the above-mentioned process orchestration engine saves code development costs and improves the compatibility and scalability of the system.
[0022] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A schematic diagram of a system architecture for implementing a process orchestration engine in an embodiment of the present application; Figure 2 A schematic diagram of a process flow for implementing a process orchestration engine in an embodiment of the present application; Figure 3 A flow chart of determining each process node included in the target process arrangement and the association relationship between each process node in an embodiment of the present application; Figure 4 A schematic diagram of a process for creating a target process arrangement in an embodiment of the present application; Figure 5A schematic diagram of a process for configuring corresponding node services for each process node in a target process arrangement in an embodiment of the present application; Figure 6 A schematic diagram of a process of traversing each process node according to an association relationship and running a node business corresponding to each process node in an embodiment of the present application; Figure 7 A schematic diagram of an implementation of a process orchestration engine in an embodiment of the present application; Figure 8 A schematic diagram of the logical architecture of a server device in an embodiment of the present application; Fig. 9 Schematic diagram of the physical architecture of the server in the embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.
[0025] 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented using sequences other than those illustrated or described herein.
[0026] The preferred implementation modes of the present application are described in detail below with reference to the accompanying drawings.
[0027] See also Figure 1 As shown, in the embodiment of the present application, the system includes at least one client and a server. Figure 1 In the figure, client 1, client 2 and client n are used to exemplify the clients running process orchestration software. It is assumed that process orchestration software 1 is running in client 1, process orchestration software 2 is running in client 2, and process orchestration software n is running in client n. Accordingly, the server is used to receive a process creation request issued by any of the above clients.
[0028] In an embodiment of the present application, an implementation method of a process orchestration engine is mainly implemented on the server side, which is described in detail below.
[0029] See also Figure 2As shown, in the embodiment of the present application, a specific process of implementing a process orchestration engine is as follows: Step 201: Parse the received process creation request to obtain the type of the target process orchestration to be created, wherein the process creation request is triggered by the client to the process orchestration software, and the process orchestration software runs on the client.
[0030] During the implementation process, the process orchestration software runs in real time on the client. When the client triggers a process creation request for the process orchestration software, the process creation request is sent to the server. The server receives the process creation request and further parses the received process creation request to determine the type of target process orchestration that the client wants to create, that is, the type of target process orchestration to be created.
[0031] Step 202: Based on the preset correspondence between the process type and the target node, determine the process nodes included in the target process arrangement and the association relationship between the process nodes, and create the target process arrangement based on the process nodes and the association relationship.
[0032] In the embodiment of the present application, in order to make the creation of the target process arrangement more flexible, multiple process types of different types will be created in advance, such as approval process type, logistics tracking type, line follow-up type, etc. At the same time, multiple target nodes will be created, such as direct leader approval node, personnel approval node, general manager approval node, starting station node, intermediate station node and terminal station node, etc. After multiple process types and multiple target nodes are created in advance, the corresponding relationship between process types and target nodes will be established. For example, when process type 1 is an approval process type, process type 1 is corresponded to the direct leader approval node, personnel approval node and general manager approval node; when process type 2 is a logistics tracking type, process type 2 is corresponded to the starting station node, intermediate station node and terminal station node.
[0033] During the implementation process, after the correspondence between the process type and the target node is preset, the process nodes included in the target process arrangement and the association relationship between the process nodes are determined based on the correspondence between the process type and the target node. Figure 3 As shown, including: Step 2021: Search the correspondence between the preset process types and the target nodes for a process type that is the same as the type of the target process orchestration to be created.
[0034] During the implementation process, in order to determine the process nodes included in the target process orchestration, after determining the type of the target process orchestration to be created by the client, first search for the process type that is the same as the type of the above-mentioned target process orchestration in the correspondence between the above-mentioned pre-set process types and target nodes, thereby determining the process type corresponding to the target process orchestration.
[0035] Step 2022: Determine each target node corresponding to the found process type in the correspondence relationship between the process type and the target node as each process node included in the target process arrangement.
[0036] After finding the process type corresponding to the target process arrangement to be created in the correspondence, the target nodes corresponding to the found process type in the correspondence are further determined according to the found process type, and the found target nodes are determined as the process nodes included in the target process arrangement to be created.
[0037] Step 2023: Determine the association relationship between each process node based on the execution steps indicated by the process type.
[0038] After determining the process nodes included in the target process arrangement to be created, determine the execution steps indicated by the found process type. The above execution steps can indicate the execution sequence of the process nodes included in the target process arrangement. During the implementation process, the association relationship between the process nodes is determined according to the above execution steps.
[0039] For example, when the type of the target process arrangement 1 to be created is an approval process type, and the process nodes included in the target process arrangement 1 are a direct supervisor approval node, a personnel approval node, and a general manager approval node, during the implementation process, the execution steps indicated by the approval process type are determined to be personnel approval-direct supervisor approval-general manager approval. In this case, the association relationship between the process nodes is determined as follows: the personnel approval node is passed before reaching the direct supervisor approval node, and the direct supervisor approval node is passed before reaching the general manager approval node.
[0040] The above creates the target process arrangement based on each process node and its relationship, see Figure 4 As shown, including: Step 2024: Connect each process node according to the association relationship, and create a target process orchestration based on the connected process nodes.
[0041] During the implementation process, after determining the association relationship between the process nodes included in the target process arrangement to be created, the process nodes are connected according to the association relationship, that is, the execution order between the process nodes is determined, and the target process arrangement is created based on the connected process nodes.
[0042] For example, when the type of the target process arrangement 1 to be created is the approval process type, the association relationship between the process nodes is determined as follows: after the personnel approval node is passed, it reaches the direct leader approval node, and after the direct leader approval node is passed, it reaches the general manager approval node. Then, the personnel approval node is connected to the direct leader approval node, and then the direct leader approval node is connected to the general manager approval node. In this way, the target process arrangement 1 can be executed in the order of personnel approval node-direct leader approval node-general manager approval node.
[0043] Step 203: Based on the preset correspondence between the target node and the service, the corresponding node service is configured for each process node in the target process arrangement.
[0044] Taking into account that each process node in the target process orchestration needs to execute the corresponding business respectively to achieve the main task of each process node, based on this, after creating the target process orchestration, it is also necessary to configure the corresponding business for each process node respectively. In the embodiment of the present application, in order to make the node business more flexible and make the client's application scenario more in line with actual needs, the correspondence between the target node and the business will be pre-set. In this way, when it is necessary to create a target process orchestration for a certain client, the corresponding node business can be conveniently, quickly and flexibly selected through the above correspondence.
[0045] It should be noted that the correspondence between the target node and the business is pre-set in the following way: (1) Determine the execution content of the business corresponding to each target node.
[0046] Taking into account that different target process arrangements include different numbers of process nodes, and the corresponding businesses between different process nodes are also different, in order to create a corresponding relationship between the target nodes and the businesses, during the implementation process, the execution content of the business corresponding to each target node is first determined separately, for example, the execution content of the business corresponding to the node is pre-packaged in the form of a module.
[0047] (2) If the execution content of the services corresponding to any two target nodes is the same, then any two target nodes are mapped to the same service with the same execution content.
[0048] Taking into account that the execution content of the business corresponding to some process nodes is the same, for example, the execution content of the business corresponding to the personnel approval nodes corresponding to personal leave and sick leave under the approval process type is the same, during the implementation process, after comparing the execution content of the business corresponding to the above two target nodes in the target process arrangement, the above same execution content can be used as the execution content of a parent process business, so that the above two target nodes can correspond to the same business with the same execution content.
[0049] It should be noted that, during the implementation process, the number of target nodes corresponding to the same business with the same execution content is not specifically limited. For example, the execution content of the business corresponding to at least two target nodes under any at least two target process arrangements can be compared using the above method, and when they are determined to be the same, they are classified as one parent process and correspond to the same business, thereby eliminating the process of writing the execution content of the same business for each target node.
[0050] (3) If the execution contents of the services corresponding to any two target nodes are different, the two target nodes are respectively matched with the two services with different execution contents.
[0051] During implementation, after comparing the execution contents of the businesses corresponding to the above two target nodes in the target process arrangement, the above different execution contents are used as the execution contents of different sub-process businesses respectively. In this way, the above two target nodes correspond to businesses with different execution contents respectively.
[0052] It should be supplemented that the number of target nodes corresponding to the services with different execution contents is related to the actual usage scenario.
[0053] During the implementation process, the target nodes are matched with the execution contents of the business one by one, that is, the corresponding relationship between the target nodes and the business is obtained.
[0054] Based on the pre-set correspondence between the target node and the business, the corresponding node business is configured for each process node in the target process arrangement, see Figure 5 As shown, including: Step 2031: Search for target nodes that are identical to the process nodes in the target process arrangement in the pre-set correspondence between the target nodes and the services.
[0055] During the implementation process, after the correspondence between the target node and the business is pre-set and each process node in the target process arrangement is determined, it is searched in the above correspondence whether there is a target node that is the same as each of the above process nodes.
[0056] For example, the process nodes in the target process arrangement A include process node a, process node b and process node c. In the correspondence between the above-mentioned preset target nodes and businesses, the target nodes that are the same as process node a, process node b and process node c are searched as target node 1, target node 2 and target node 3 respectively.
[0057] Step 2032: Determine the services corresponding to each found target node in the correspondence relationship between the target node and the service as the node service.
[0058] After each target node is found, the services corresponding to each target node found above are further found in the preset correspondence relationship between the target node and the service to be determined as the node service.
[0059] Still taking the example in step 2031 for explanation, after the target node 1, target node 2 and target node 3 are determined, in the correspondence between the target node and the service, it is determined that the service a corresponds to the target node 1, the service b corresponds to the target node 2, and the service c corresponds to the target node 3. The above-mentioned service a is determined as node service 1, service b is determined as node service 2, and service c is determined as node service 3.
[0060] Step 2033: respectively configure corresponding node services for each process node in the target process arrangement.
[0061] After the corresponding node services are determined for each process node in the target process orchestration through the above steps, the corresponding node services are configured for each process node, that is, the services for processing data are matched for each process node according to the instructions of the node services.
[0062] Step 204: traverse each process node according to the association relationship, and run the node business corresponding to each process node.
[0063] It should be noted that in order to monitor the execution of the process and monitor the correctness of the process execution in real time, before running the node business corresponding to each process node, it also includes: Set up real-time monitoring process for target process orchestration.
[0064] During the implementation process, after creating the target process orchestration, a real-time monitoring process can be set for the corresponding target process orchestration. The target process orchestration and the real-time monitoring process are usually one-to-one corresponding.
[0065] Run the node business corresponding to each process node, including: 1) When running the node business corresponding to any process node, use the real-time monitoring process to detect whether the node parameters of the process node are correct, and use the real-time monitoring process to detect whether the result parameters of the upstream process node match the input parameters of any process node, where the upstream process node is the node that runs the node business before any process node.
[0066] During the implementation process, when the target process arrangement is initiated, the real-time monitoring process is also started. When executing to any process node in the target process arrangement, the corresponding node business of the process node is run accordingly. For example, when executing to the process node in the target process arrangement b is the logistics item quantity detection node, the corresponding business of counting the logistics item quantity of the process node is run accordingly.
[0067] At the same time, the real-time monitoring process is used to detect whether the node parameters of the process nodes are correct. When the process node in the above target process arrangement b is still a logistics item quantity detection node, the corresponding example of the business of counting the number of logistics items corresponding to the process node is used to illustrate that the real-time monitoring process detects whether the number of logistics items at the logistics item quantity detection node is the same as the preset number of items. If they are the same, the node parameters are correct. If they are different, the node parameters are wrong.
[0068] Also, when any process node needs to use the result parameter of the upstream process node as an input parameter, it is necessary to use the real-time monitoring process to detect whether the result parameter of the upstream process node matches the input parameter of any process node. Whether the above parameters match includes but is not limited to whether the parameter format is the same, whether the number of parameters is the same, whether the syntax of the parameters complies with the rules, etc. It should be added that the above upstream process node is the node that runs the node business before any process node, that is, after the upstream process node completes the node business and generates the result parameter, the result parameter will be used as the input parameter of the process node connected to it.
[0069] 2) If the node parameters are incorrect, or if the result parameters do not match the input parameters, an error message will be issued.
[0070] During the implementation process, when the real-time monitoring process is used to determine that the above-mentioned node parameters are incorrect, the real-time monitoring process can send out an error prompt message, or when the above-mentioned result parameters do not match the input parameters, the real-time monitoring process also sends out an error prompt message.
[0071] It should be noted that the above error prompt information can be flexibly set according to the actual scenario. The setting methods of error prompt information include: 1. Only record without throwing exceptions: record exception logs, do not throw exceptions, and do not interrupt process execution; 2. Record and throw exceptions: record exception logs, throw exceptions, and interrupt process execution; 3. Record and throw exceptions and then jump: record exception logs, throw exceptions, and interrupt the normal execution of the process, but jump to the specified node or process to continue the subsequent processing after the process exception.
[0072] After introducing the real-time monitoring process, the above traverses each process node according to the association relationship and runs the node business corresponding to each process node. Figure 6 As shown, including: Step 2041: Search for the initial process node in each process node, wherein the initial process node is determined according to the received process initiation request, the process initiation request is initiated by the client for the target process orchestration, and the initial process node is the first process node in each process node that runs the node business.
[0073] After the client initiates a process initiation request for the target process orchestration, the server parses the received process initiation request and determines the initial process node corresponding to the target process orchestration. During the implementation process, the initial process node is first found among the process nodes included in the target process orchestration. The initial process node found is the first process node in each process node that runs the node business. The first node to execute the business in the target process orchestration is the business of the above initial process node.
[0074] Step 2042: starting from the initial process node, traverse each process node according to the association relationship, and run the node business corresponding to the process node when traversing to any process node.
[0075] During the implementation process, after the initial process node is determined, the initial process node is used as the starting point, and each process node is traversed according to the association relationship of the target process orchestration, that is, the above process nodes are executed in sequence according to the association relationship. When the association relationship points to any process node, the node business corresponding to the process node is executed accordingly. In this way, after traversing each process node in sequence, the corresponding business can be completed.
[0076] Application Scenario 1 See also Figure 7 As shown, it is assumed that for the entire manufacturing and transaction process of product a, the target process arrangement that needs to be created includes: product line process 1, ... product line process n, pre-sales process and payment process. Product line process 1 includes three process nodes: dispatcher dispatch 1, support staff support claim 1 and support staff completion confirmation 1; product line process n includes three process nodes: dispatcher dispatch n, support staff support claim n and support staff completion confirmation n; pre-sales process includes three process nodes: dispatcher dispatch m, support staff support claim m and support staff completion confirmation m; payment process includes three process nodes: dispatcher dispatch k, support staff support claim k and support staff completion confirmation k. The node businesses corresponding to the above process nodes are different. According to the above different target process arrangements, process nodes and node businesses, the corresponding relationship 1 between the process type and the target node is pre-set, and the corresponding relationship 2 between the target node and the business is pre-set.
[0077] During the implementation process, when the client 11 triggers a process creation request X for the process orchestration software, the process creation request X is sent to the server. The server parses the received process creation request X to obtain that the type of the target process orchestration a to be created is a pre-sales process. In this way, according to the above correspondence relationship 1, the process nodes included in the target process orchestration a are determined to be the dispatcher scheduling m, the support staff support claim m and the support staff completion confirmation m, and the association relationship between the process nodes is: dispatcher scheduling m-support staff support claim m-support staff completion confirmation m, and then the above process nodes are connected according to the association relationship, so as to create the target process orchestration a as shown in FIG. Figure 7 As shown in the pre-sales process in. Further, according to the correspondence between the target node and the business, node business 1, node business 2 and node business 3 are found for the above-mentioned dispatcher scheduling m-support staff support claim m-support staff completion confirmation m, and the above-mentioned node business 1, node business 2 and node business 3 are respectively configured for the dispatcher scheduling m-support staff support claim m-support staff completion confirmation m nodes. When the client initiates a process initiation request q for the target process orchestration a, the initial process node dispatcher scheduling m is first determined, and then the two process nodes of support staff support claim m and support staff completion confirmation m are traversed in sequence according to the association relationship, and the node business corresponding to the process node is run when traversing to any process node, thereby completing the entire pre-sales process.
[0078] Based on the same inventive concept, see Figure 8 As shown, an implementation device of a process orchestration engine is provided in an embodiment of the present application, including: The parsing unit 801 is used to parse the received process creation request to obtain the type of the target process orchestration to be created, wherein the process creation request is triggered by the client to the process orchestration software, and the process orchestration software runs on the client; The creation unit 802 is used to determine the process nodes included in the target process arrangement and the association relationship between the process nodes based on the preset correspondence relationship between the process type and the target node, and create the target process arrangement based on the process nodes and the association relationship; A configuration unit 803 is used to configure corresponding node services for each process node in the target process arrangement based on the preset correspondence between the target node and the service; The running unit 804 is used to traverse each process node according to the association relationship and run the node business corresponding to each process node.
[0079] Optionally, a target process orchestration is created based on each process node and the association relationship, and the creating unit 802 is used to: Connect each process node according to the association relationship, and create the target process orchestration based on the connected process nodes.
[0080] Optionally, based on the preset correspondence between the target node and the service, the corresponding node service is configured for each process node in the target process arrangement, and the configuration unit 803 is used to: Searching for target nodes that are identical to the process nodes in the target process arrangement in the correspondence relationship between the preset target nodes and the business; Determine the services corresponding to the respective found target nodes in the correspondence relationship between the target nodes and the services as node services; Configure corresponding node services for each process node in the target process orchestration.
[0081] Optionally, the correspondence between the target node and the service is pre-set in the following manner: Determine the execution content of the business corresponding to each target node respectively; If the execution content of the services corresponding to any two target nodes is the same, then any two target nodes are matched with the same service with the same execution content; If the execution contents of the services corresponding to any two target nodes are different, the any two target nodes are respectively made to correspond to the two services with different execution contents.
[0082] Optionally, before running the node business corresponding to each process node, the following steps are also included: Set up real-time monitoring process for target process orchestration; Run the node business corresponding to each process node, including: When running the node business corresponding to any process node, use the real-time monitoring process to detect whether the node parameters of the process node are correct, and use the real-time monitoring process to detect whether the result parameters of the upstream process node match the input parameters of any process node, where the upstream process node is the node that runs the node business before any process node; If the node parameters are incorrect, or if the result parameters do not match the input parameters, an error prompt message will be issued.
[0083] Optionally, each process node is traversed according to the association relationship, and the node business corresponding to each process node is run. The running unit 804 is used to: Find the initial process node in each process node, where the initial process node is determined according to the received process initiation request, which is initiated by the client for the target process orchestration, and the initial process node is the first process node running the node business in each process node; Taking the initial process node as the starting point, traverse each process node according to the association relationship, and run the node business corresponding to the process node when traversing to any process node.
[0084] Based on the same inventive concept, see Fig. 9 As shown, an embodiment of the present application provides a server, including: a memory 901, used to store executable instructions; a processor 902, used to read and execute the executable instructions stored in the memory, and execute any one of the methods of the first aspect above.
[0085] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute the method described in any one of the first aspects above.
[0086] In summary, in an embodiment of the present application, a method, device and storage medium for implementing a process orchestration engine are provided. The method is applied to a server and includes: parsing a received process creation request to obtain the type of a target process orchestration to be created, wherein the process creation request is triggered by a client to a process orchestration software, and the process orchestration software runs on the client. Based on the correspondence between a preset process type and a target node, the process nodes included in the target process orchestration and the association between the process nodes are determined, and the target process orchestration is created based on the process nodes and the association. Based on the correspondence between the preset target nodes and the services, corresponding node services are configured for each process node in the target process orchestration, each process node is traversed according to the association, and the node services corresponding to each process node are run. The implementation process of the above-mentioned process orchestration engine saves code development costs and improves the compatibility and scalability of the system.
[0087] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program product systems. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product system implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program product systems according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for implementing a process orchestration engine, characterized in that: Applied to a server, the method comprises: Parsing the received process creation request to obtain the type of the target process orchestration to be created, wherein the process creation request is triggered by the client to the process orchestration software, and the process orchestration software runs on the client; Based on the correspondence between the preset process types and the target nodes, determining the process nodes included in the target process arrangement and the association relationship between the process nodes, and creating the target process arrangement based on the process nodes and the association relationship; Based on the preset correspondence between the target node and the service, respectively configure the corresponding node service for each process node in the target process arrangement; The process nodes are traversed according to the association relationship, and the node services corresponding to the process nodes are run.
2. The method according to claim 1, characterized in that The determining, based on the correspondence between the preset process type and the target node, the process nodes included in the target process arrangement and the association relationship between the process nodes includes: Searching for a process type that is the same as the type of the target process arrangement to be created in the correspondence relationship between the preset process types and the target nodes; Determine each target node corresponding to the found process type in the correspondence relationship between the process type and the target node as each process node included in the target process arrangement; The association relationship between the process nodes is determined based on the execution steps indicated by the process type.
3. The method according to claim 2, characterized in that The creating the target process arrangement based on the process nodes and the association relationships includes: The process nodes are connected according to the association relationship, and the target process orchestration is created based on the connected process nodes.
4. The method according to claim 1, characterized in that The configuring corresponding node services for each process node in the target process arrangement based on the preset correspondence between the target node and the service respectively includes: Searching for target nodes identical to the process nodes in the target process arrangement in the correspondence relationship between the preset target nodes and the services; Determine the services corresponding to the respective found target nodes in the correspondence relationship between the target nodes and the services as the node services; Corresponding node services are configured for each process node in the target process arrangement respectively.
5. The method according to any one of claims 1 to 4, characterized in that The correspondence between the target node and the service is pre-set in the following manner: Determine the execution content of the business corresponding to each target node respectively; If the execution content of the services corresponding to any two of the target nodes is the same, then any two of the target nodes are made to correspond to the same service with the same execution content; If the execution contents of the services corresponding to any two of the target nodes are different, the any two target nodes are respectively made to correspond to two services with different execution contents.
6. The method according to claim 1, characterized in that Before running the node business corresponding to each process node, the method further includes: Arrange and set a real-time monitoring process for the target process; The running of the node business corresponding to each process node includes: When the node service corresponding to any one of the process nodes is run, the real-time monitoring process is used to detect whether the node parameters of the process node are correct, and the real-time monitoring process is used to detect whether the result parameters of the upstream process node match the input parameters of any one of the process nodes, wherein the upstream process node is a node that runs the node service before any one of the process nodes; If the node parameters are wrong, or if the result parameters do not match the input parameters, an error prompt message is issued externally.
7. The method according to claim 1, characterized in that The traversing the process nodes according to the association relationship and running the node services corresponding to the process nodes includes: Searching for an initial process node in each process node, wherein the initial process node is determined according to a received process initiation request, the process initiation request is initiated by the client for the target process orchestration, and the initial process node is the first process node running a node service among each process node; Taking the initial process node as the starting point, traverse the process nodes according to the association relationship, and run the node business corresponding to any process node when traversing to the process node.
8. A device for implementing a process orchestration engine, characterized in that: include: A parsing unit, configured to parse a received process creation request to obtain a type of a target process orchestration to be created, wherein the process creation request is triggered by a client for process orchestration software, and the process orchestration software runs on the client; A creating unit, configured to determine, based on a preset correspondence between a process type and a target node, each process node included in the target process arrangement and an association relationship between the each process node, and to create the target process arrangement based on the each process node and the association relationship; A configuration unit, configured to configure corresponding node services for each process node in the target process arrangement based on a preset correspondence between the target node and the service; The running unit is used to traverse the process nodes according to the association relationship and run the node business corresponding to each process node.
9. A server, characterized in that: include: A memory for storing executable instructions; A processor, configured to read and execute the executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Business flow data processing method, device, computer device and storage medium
CN109308602A
Business process arrangement method and device, computer equipment and storage medium
CN113435846A
Business process arrangement method and device, computer equipment and storage medium
CN114595919A
Business process arranging method, business process executing method and business process arranging device
CN116258461A
Multilayer process management method and device, storage medium and electronic equipment
CN118608086A
