Business process arrangement configuration method and business process arrangement configuration system
Through the business process orchestration and configuration method, configuration files are generated and parsed, and process nodes are dynamically configured, the traditional development method has solved the problems of long development cycles and difficult maintenance in complex scenarios, realizing code reuse and rapid response, and meeting complex services need.
Patent Information
- Application Number
- CN202411093570.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-22
AI Technical Summary
In complex and frequently changing enterprise management scenarios, the traditional development method of writing code directly requires a long development and testing cycle, which is difficult to meet increasingly complex business demands, and system changes and maintenance are difficult.
Through the business process orchestration and configuration method, configuration files are generated and execution processes are parsed, and process nodes are dynamically configured to achieve reuse of business functions and rapid response.
Without recoding and restarting applications, it can quickly respond to complex and frequently changing business scenarios, release human resources, decouple business function points and processes, realize code reuse, and meet complex business needs.
Smart Images

Figure CN119002870A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of process automation, and in particular to a business process orchestration configuration method and a business process orchestration configuration system. Background Art
[0002] In the management affairs of an enterprise, due to the complexity of the scale of management organization, including the standardization of business processes between various units and personnel, it is necessary to develop some software systems to implement process management. The usual development process is to design requirements and processes, and then write code according to the process to implement process functions. However, as the software system becomes more and more complex, system changes and maintenance become more and more difficult.
[0003] In complex scenarios with frequently changing processes, the development method of directly writing code requires a long development and testing cycle, which is difficult to meet increasingly complex business demands. Summary of the invention
[0004] To solve the above problems, existing functional nodes can be well reused through process orchestration and configuration, which can cope with business scenarios where audit processes, risk control processes and other processes frequently change, and better meet business demands.
[0005] The present invention provides a business process arrangement configuration method, comprising the following steps:
[0006] S1: Generate business processes based on business content requirements;
[0007] S2: Generate configuration files according to business processes;
[0008] S3: Parse the configuration file and generate an execution process;
[0009] S4: According to the execution process, run the process nodes and execute business functions.
[0010] Furthermore, the configuration file includes the type of process nodes, the execution order, and the settings for persisting the process nodes.
[0011] Furthermore, the types of process nodes include control nodes, which are used to control the execution path of the nodes, including start nodes, end nodes, conditional judgment nodes, switch nodes, and parallel execution nodes.
[0012] Furthermore, the types of process nodes include logical nodes, which are used to implement specific logical functions, including HTTP request nodes, GRPC request nodes, and local function request nodes.
[0013] Furthermore, the logic node also includes: http, grpc remote call, Lua script, WASM script.
[0014] The present application also provides a business process arrangement configuration system, including: a business process generation unit, a configuration unit, a parsing unit and an execution unit, wherein:
[0015] The business process generation unit is used to generate business processes according to business content requirements;
[0016] The configuration unit is used to generate configuration files according to business processes;
[0017] The parsing unit is used to parse according to the process node type and generate an execution process;
[0018] The execution unit is used to run the process nodes and execute business functions according to the execution process.
[0019] Furthermore, the configuration file includes the type of process nodes, the execution order, and the settings for persisting the process nodes.
[0020] Furthermore, the types of process nodes include control nodes, which are used to control the execution path of the nodes, including start nodes, end nodes, conditional judgment nodes, switch nodes, and parallel execution nodes.
[0021] Furthermore, the types of process nodes include logical nodes, which are used to implement specific logical functions, including HTTP request nodes, GRPC request nodes, and local function request nodes.
[0022] Furthermore, the logical node also includes: http, grpc remote call, Lua script, WASM script.
[0023] Compared with the traditional business development mode, the configurable process arrangement of the present invention can better release human resources, better decouple business function points and business processes, and realize code reuse.
[0024] In order to have a clearer and more comprehensive understanding of the present invention, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0026] Figure 1 It is a flowchart of the business process arrangement configuration method in the first embodiment. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0028] In some business scenarios where process rules are complex or change frequently, there will be a large number of demands for process rule changes. In the traditional business development process, business demands are usually achieved directly by writing code, which requires a lot of development resources and testing resources. Compared with traditional business development methods, configurable process orchestration can better release human resources, better decouple business function points and business processes, and realize code reuse.
[0029] To this end, this application proposes a business process orchestration configuration method. This application can complete the orchestration of the business process without recoding and restarting the application, and can dynamically configure the judgment conditions in the process. The business process orchestration configuration method can well release development resources, better decouple business function points and business processes, and realize code reuse. In this way, business demands can be quickly met and complex business scenarios with frequently changing processes can be dealt with, specifically:
[0030] S1: Generate business processes based on business content requirements;
[0031] S2: Generate configuration files according to business processes;
[0032] S3: Parse the configuration file and generate an execution process;
[0033] S4: According to the execution process, run the process nodes and execute business functions.
[0034] See also Figure 1 , Figure 1 The flowchart of the business process arrangement configuration method in the first embodiment is shown. Figure 1 The flowchart shown explains each step in detail:
[0035] S1: Generate business processes based on business content requirements.
[0036] In step S1, firstly, the business function points are clarified, such as drawing or designing a business flowchart according to business requirements, clarifying the functions of each link, and identifying key function points, such as data processing, approval process, notification sending, etc. Then, the process nodes are written, such as which process nodes are needed based on the identified function points, and whether these nodes are control nodes or logical judgments.
[0037] S2: Generate configuration files based on business processes.
[0038] Generating a configuration file specifically includes designing the structure of the configuration file, writing or using a script that automatically generates the configuration file according to the flowchart, which can reduce manual input and operation. Configuration file formats include JSON, XML, YAML, etc. This application uses JSON as an example to illustrate the technical solution of this application, and other file formats are also used to implement it. It is implemented according to the ideas and technical solutions of the public examination of this application, and it does not deviate from the protection scope of this application.
[0039] In an embodiment of the present application, the configuration file includes the type of process node, the execution order, and the settings for persisting the process node.
[0040] In the present application, as a preferred implementation, the types of process nodes include control nodes and logic nodes.
[0041] Control nodes are used to control the execution path of the nodes, including start nodes (start), end nodes (abort), conditional judgment nodes (if), switch nodes (switch), and parallel execution nodes (split).
[0042] Control nodes are mainly used to control the start and end of nodes, as well as the execution order of nodes. Conditional judgment nodes control the execution direction of the process, and parallel execution nodes control the degree of parallel execution of nodes.
[0043] The JSON definition includes common node properties, including: "id" represents the unique identifier of the node, "name" represents the unique name of the node, "kind" represents the specific type of the node, and "property" represents the additional properties of the node.
[0044] An example JSON definition of a start node is as follows:
[0045]
[0046] "next" indicates the next node to be executed after the start. The start node is the beginning of the entire process and does not execute specific logic. You only need to simply execute the "next" node.
[0047] An example JSON definition of a termination node is as follows:
[0048]
[0049]
[0050] The termination node is used to indicate the end of the entire process. No specific logic will be executed, but it will end when the execution reaches the termination node.
[0051] An example JSON definition of a conditional node is as follows:
[0052]
[0053]
[0054] The conditional node is used to control the execution direction of the process. The execution direction of the process is controlled by the return value of the Boolean expression in "expr". When the expression returns true, the process will execute the specific node described by "t". Otherwise, the node described by "f" will be executed. If the expression is executed incorrectly, the entire process will be terminated and an error message will be returned.
[0055] An example JSON definition of a parallel execution node is as follows:
[0056]
[0057]
[0058] The parallel execution node controls the degree of parallel execution of the node. The nodes configured in "pieces" will be executed in parallel. "Wait" indicates whether to wait for the node to complete before executing the "next" node.
[0059] The logical nodes of this application are used to implement specific logical functions, including HTTP request nodes, GRPC request nodes, and local function request nodes, among which:
[0060] HTTP request nodes can access a remote service through HTTP requests to perform business functions;
[0061] The GRPC request node can access a remote service to perform business functions through GRPC requests;
[0062] The local function request node can execute the function function pre-registered locally to perform business functions.
[0063] In addition, the extension forms also include: http, grpc remote call, Lua script, and WASM script.
[0064] The following is a specific example to illustrate the implementation of the HTTP request node. Other extended implementations can be implemented by referring to the prior art. The exemplary JSON definition is as follows:
[0065]
[0066]
[0067]
[0068] S3: Parse the configuration file and generate an execution process;
[0069] In this step, the generated configuration file can be read by writing or using an existing program module;
[0070] Then, by designing or using an existing parser, convert the configuration file content into an internally processable structure (such as a data dictionary or object);
[0071] According to the structure of the configuration file, map each field to the parameters required for process execution;
[0072] Analyze the dependencies between nodes and determine the execution order and business logic;
[0073] Finally, the flowchart is converted into a memory model in the code (such as a state machine or task queue) to facilitate subsequent execution.
[0074] S4: According to the execution process, run the process nodes and execute business functions.
[0075] Finally, in this step S4, the dependent resources (such as database connection, API interface, etc.) are available and correctly configured, and can be run. The nodes are executed in sequence according to the parsed execution order, following the business logic.
[0076] In addition, for further optimization, you can also record the execution results in the log, analyze the log, monitor the system process, find problems and make further improvements.
[0077] It can be seen that the business process orchestration configuration proposed in the embodiment of the present invention can realize the orchestration of business logic by reusing existing functional nodes without coding, and effectively solve the problem between human resources and business demands in many scenarios where business processes change frequently.
[0078] Based on the above embodiments, the present application further provides a business process orchestration configuration system, including: a business process generation unit, a configuration unit, a parsing unit, and an execution unit, wherein:
[0079] The business process generation unit is used to generate business processes according to business content requirements;
[0080] The configuration unit is used to generate configuration files according to business processes;
[0081] The parsing unit is used to parse according to the process node type and generate an execution process;
[0082] The execution unit is used to run the process nodes and execute business functions according to the execution process.
[0083] The configuration file includes the type of process node, the execution order, and the settings for persisting the process node.
[0084] The types of process nodes include control nodes, which are used to control the execution path of the nodes, including start nodes, end nodes, conditional judgment nodes, switch nodes, and parallel execution nodes.
[0085] The types of process nodes include logical nodes, which are used to implement specific logical functions, including HTTP request nodes, GRPC request nodes, and local function request nodes.
[0086] The logical node also includes: http, grpc remote call, Lua script, WASM script.
[0087] The present application also provides a computer storage medium, which can store an executable program. When the executable program runs on a computer, the computer executes the business process orchestration configuration method described in any of the above embodiments.
[0088] The present application also provides an electronic device, which includes a processor and a memory, wherein the memory is used to store an executable program, and the processor is used to execute the executable program to implement the above-mentioned business process orchestration configuration method.
[0089] It should be noted that, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the storage medium can include but is not limited to: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0090] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A business process orchestration configuration method, characterized in that: The steps include: S1: Generate business processes based on business content requirements; S2: Generate configuration files according to business processes; S3: Parse the configuration file and generate an execution process; S4: According to the execution process, run the process nodes and execute business functions.
2. The business process arrangement configuration method according to claim 1, characterized in that: The configuration file includes the type of process node, the execution order, and the settings for persisting the process node.
3. The business process arrangement configuration method according to claim 2, characterized in that: The types of process nodes include control nodes, which are used to control the execution path of the nodes, including start nodes, end nodes, conditional judgment nodes, switch nodes, and parallel execution nodes.
4. The business process arrangement configuration method according to claim 2, characterized in that: The types of process nodes include logical nodes, which are used to implement specific logical functions, including HTTP request nodes, GRPC request nodes, and local function request nodes.
5. The business process arrangement configuration method according to claim 4, characterized in that: The logical node also includes: http, grpc remote call, Lua script, and WASM script.
6. A business process arrangement configuration system, characterized in that: include: Business process generation unit, configuration unit, parsing unit and execution unit, wherein: The business process generation unit is used to generate business processes according to business content requirements; The configuration unit is used to generate configuration files according to business processes; The parsing unit is used to parse according to the process node type and generate an execution process; The execution unit is used to run the process nodes and execute business functions according to the execution process.
7. The business process arrangement configuration method according to claim 6, characterized in that: The configuration file includes the type of process node, the execution order, and the settings for persisting the process node.
8. The business process arrangement configuration method according to claim 6, characterized in that: The types of process nodes include control nodes, which are used to control the execution path of the nodes, including start nodes, end nodes, conditional judgment nodes, switch nodes, and parallel execution nodes.
9. The business process arrangement configuration method according to claim 6, characterized in that: The types of process nodes include logical nodes, which are used to implement specific logical functions, including HTTP request nodes, GRPC request nodes, and local function request nodes.
10. The business process arrangement configuration method according to claim 6, characterized in that: The logical node also includes: http, grpc remote call, Lua script, WASM script.
