Process engine-based process arrangement processing and execution method

Through the process orchestration processing method based on the process engine, the execution components and their sequence in the business process task execution unit are dynamically configured, which solves the problems of complex code and low flexibility in process configuration of existing business systems, and realizes flexible and convenient process orchestration and execution.

CN119759439APending Publication Date: 2025-04-04AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411779986.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing business systems have problems such as complex code, low code reuse rate, and high module coupling. The flexibility of business process configuration methods is low, making it difficult to flexibly adjust the order of business processes.

Method used

The process orchestration processing method based on the process engine is adopted to obtain the target process tasks in the configuration file, and dynamically configure the execution components and their execution sequence in the task execution unit to realize the pluggable execution component configuration method.

Benefits of technology

It improves the flexibility of the business process configuration method of the business system, can dynamically adjust the execution order of the execution components, realizes flexible and convenient process orchestration and processing and execution, and reduces the risk of business system being invaded by foreign code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759439A_ABST
    Figure CN119759439A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of data processing, and discloses a process engine-based process arrangement processing and execution method, which comprises the following steps of: obtaining a configuration file which comprises a target process task; wherein the target process task is configured with a plurality of task execution units; obtaining a plurality of execution components conforming to the business logic of the target process task, and determining the execution sequence of each execution component; wherein each execution component is obtained by configuring according to a preset service logic in advance; according to the execution sequence of all the execution components, all the execution components are sequentially configured in corresponding task execution units to obtain a target process, so that a process engine executes the service logic corresponding to all the execution components according to the target process. By applying the technical scheme of the invention, the flexibility of the business process configuration mode of the business system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data processing technology, and specifically to a process scheduling processing and execution method, device, equipment and computer-readable storage medium based on a process engine. Background Art

[0002] The business system of an enterprise runs the core business logic of the enterprise, which is constantly changing with the development of the company. Due to the complex business logic undergoing multiple iterations, the logic is lengthy, there are many RPC calls, many logical calculations, many branch conditions, and various hard codes.

[0003] Therefore, the existing business system has problems such as complex code, low code reuse rate and high coupling degree of modules. The current business system's business process configuration method is inflexible, and the business system cannot flexibly change the order of business processes. At the same time, when the business system changes the logic of a branch process, it is easy to affect the change of the main process logic, and a complete process regression test is required to verify the logical correctness of the business process. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention provides a process orchestration processing and execution method, apparatus, device and computer-readable storage medium based on a process engine, which is used to improve the flexibility of the business process configuration method of a business system.

[0005] According to one aspect of an embodiment of the present invention, a process orchestration processing method based on a process engine is provided, the method comprising:

[0006] Obtaining a configuration file, wherein the configuration file includes a target process task;

[0007] Wherein, the target process task is configured with a number of task execution units;

[0008] Acquire several execution components that conform to the business logic of the target process task, and determine the execution order of each of the execution components;

[0009] Wherein, each of the execution components is pre-configured according to a preset business logic;

[0010] According to the execution order of each execution component, each execution component is sequentially configured in the corresponding task execution unit to obtain a target process, so that the process engine executes the business logic corresponding to each execution component according to the target process.

[0011] Specifically, according to the business logic of the target process task, the present application can dynamically and freely configure the execution components and their execution order in the task execution unit, thus realizing a pluggable execution component configuration method. Among them, the execution components carry each independent business logic. At the same time, through this process configuration method, the execution order of each execution component can be dynamically and flexibly adjusted to realize flexible and convenient process orchestration processing.

[0012] According to another aspect of an embodiment of the present invention, a process execution method based on a process engine is provided, the method comprising:

[0013] Obtain the target process using the process orchestration processing method based on the process engine as described above;

[0014] According to the target process, the business logic corresponding to each execution component in the target process is executed.

[0015] Specifically, the present application can dynamically and flexibly adjust the configuration mode of the execution order of each execution component through a pluggable execution component configuration mode, obtain and execute the target process, execute the corresponding business logic in the configured order, and realize flexible and convenient process orchestration processing and execution.

[0016] According to another aspect of an embodiment of the present invention, a process orchestration processing device based on a process engine is provided, comprising: a task configuration module, a component configuration module and an orchestration processing module;

[0017] A task configuration module, used to obtain a configuration file, wherein the configuration file includes a target process task;

[0018] Wherein, the target process task is configured with a number of task execution units;

[0019] A component configuration module, used to obtain a number of execution components that conform to the business logic of the target process task, and determine the execution order of each of the execution components;

[0020] Wherein, each of the execution components is pre-configured according to a preset business logic;

[0021] The orchestration processing module is used to sequentially configure each of the execution components in the corresponding task execution unit according to the execution order of each of the execution components to obtain a target process, so that the process engine executes the business logic corresponding to each of the execution components according to the target process.

[0022] According to another aspect of an embodiment of the present invention, there is provided a process execution device based on a process engine, comprising: an execution processing module;

[0023] The execution processing module is used to obtain the target process by using the process orchestration processing method based on the process engine as described above; according to the target process, the business logic corresponding to each execution component in the target process is executed.

[0024] According to another aspect of an embodiment of the present invention, there is provided a terminal device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0025] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations such as the above-mentioned process arrangement processing method based on the process engine, or the above-mentioned process execution method based on the process engine.

[0026] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a terminal device / apparatus to perform operations of the process orchestration processing method based on the process engine as described above, or enables a terminal device / apparatus to perform operations of the process execution method based on the process engine as described above.

[0027] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0029] Figure 1 A flow chart showing one embodiment of a flow arrangement processing method based on a flow engine provided by the present invention;

[0030] Figure 2 A flowchart of executing a target process task in one embodiment of a process execution method based on a process engine provided by the present invention is shown;

[0031] Figure 3 A flow chart showing one embodiment of a flow execution method based on a flow engine provided by the present invention;

[0032] Figure 4 A configuration example diagram of a target process task in one embodiment of a process execution method based on a process engine provided by the present invention is shown;

[0033] Figure 5 A schematic diagram showing the structure of one embodiment of a process orchestration processing device based on a process engine provided by the present invention;

[0034] Figure 6 A schematic diagram showing the structure of one embodiment of a process execution device based on a process engine provided by the present invention;

[0035] Figure 7 A schematic structural diagram of an embodiment of a terminal device provided by the present invention is shown. DETAILED DESCRIPTION

[0036] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0037] Figure 1 The flowchart of the first embodiment of the process arrangement processing method based on the process engine provided by the present invention is shown, and the method is executed by the first terminal device. Figure 1 As shown, the method comprises the following steps:

[0038] Step 110: Obtain a configuration file, wherein the configuration file includes a target process task; wherein the target process task is configured with a plurality of task execution units.

[0039] Specifically, a configuration file may be configured with several node components, namely, task execution units, and each task execution unit may be configured with several execution components.

[0040] Preferably, the first terminal device obtains the target flow task by reading configuration data in a preset space in the system configuration file. For example, the preset space is named flow.

[0041] The target process task is a list as a whole, and each element in the list is an execution process. There are several task execution units configured in each execution process.

[0042] Step 120: Acquire a plurality of execution components that conform to the business logic of the target process task, and determine the execution order of each of the execution components; wherein each of the execution components is pre-configured according to a preset business logic.

[0043] In an optional manner, before obtaining a plurality of execution components that conform to the business logic of the target process task and determining the execution order of each of the execution components, the method further includes:

[0044] Create the initial execution component;

[0045] Configure the execution content of the initial execution component according to the preset business logic to obtain a configured execution component;

[0046] The execution content includes: one or more of the execution mode of business logic, the judgment mode of execution condition, the exception handling mode and the exception recording mode;

[0047] The configured execution components are stored in a component library.

[0048] In an optional manner, the creating an initial execution component includes:

[0049] Using the service component corresponding to the first interface class as the initial execution component;

[0050] The first interface class is marked in a target annotation, and a unique alias of the initial execution component is specified.

[0051] Preferably, the first interface class is a flowComponent interface class. The flowComponent interface class is a component that defines and implements a preset business process, and is used to encapsulate the relevant logic of the preset business process so that it can be flexibly called and reused. The first terminal device uses a service component (Service) that implements the flowComponent interface class as an execution component to carry the functions of an independent business module, and specifies the unique alias of the execution component in the @Component annotation.

[0052] Specifically, each execution component is used to carry the functions of different independent business modules, and the target object executed by each execution component is the business logic of the function of the corresponding business module. Each execution component is pre-created according to the business logic of the function of different business modules and stored in the component library.

[0053] Specifically, the flowComponent interface class includes but is not limited to: a process() method with or without a return type, a check() method that returns a Boolean type, and a rollback() method that returns a Boolean type.

[0054] The process() method is a logic execution method of the execution component. The first terminal device configures the process() method according to the preset business logic to determine the execution mode of the business logic of the execution component.

[0055] The check() method is a method for determining whether the execution component meets the execution condition. The first terminal device configures the check() method according to the preset business logic to determine the determination method of the execution condition of the execution component.

[0056] The rollBack() method is the business logic rollback method of the execution component, and is one of the optional exception handling methods of the execution component. When an exception occurs during the execution of the business logic of the execution component, the configured rollBack() method can be used to roll back the executed business logic to restore the business data in the business process to the state before the exception occurred.

[0057] In an optional manner, before the process engine executes the business logic corresponding to each of the execution components according to the execution order, it also includes:

[0058] The second interface class is identified as the context of the process engine, which is used to store the intermediate data or state data required during the execution of the target process, and to share the data stored in the context during the execution of the target process.

[0059] Preferably, the second interface class is a flowContext interface class, which is identified as the context of the process engine. The first terminal device can customize the flowContext interface class as the context of any business process. The flowContext interface class is used to store intermediate data or status data required during the execution of the business process, and share the stored data during the execution of the business process.

[0060] Step 130: According to the execution order of each execution component, each execution component is sequentially configured in the corresponding task execution unit to obtain a target process, so that the process engine executes the business logic corresponding to each execution component according to the target process.

[0061] In an optional manner, according to the execution order of each execution component, each execution component is sequentially configured in a corresponding task execution unit to obtain a target process, including:

[0062] According to the execution order of each of the execution components, one or more execution components are configured in each task execution unit;

[0063] The execution components in the same task execution unit are configured to be executed individually, serially or in parallel.

[0064] Specifically, the first terminal device obtains several execution components that meet the requirements in the component library according to the business logic of the target process task. Exemplarily, the first terminal device obtains the target process task by reading the configuration data in the flow space in the system configuration file. Among them, one of the target processes flowA of the target process task is configured with several task execution units.

[0065] Obtain execution components a, b, c, d and e that conform to the business logic of the target process flowA, and determine the execution order of each execution component according to the business logic of the target process flowA: start the target process flowA, execute the execution components a, b and c in serial form, and then execute the execution components d and e in parallel; after the execution components d and e are executed in parallel, end the target process flowA.

[0066] like Figure 2 As shown, the first terminal device configures the first task execution unit and the second task execution unit connected in sequence of the target process flowA, configures the serialized execution components a, b and c into the first task execution unit in the target process flowA, and configures the parallelized execution components d and e into the second task execution unit in the target process flowA to obtain the configured target process flowA.

[0067] The present application can dynamically and freely configure the execution components and their execution order in the task execution unit according to the business logic of the target process task without changing the business logic code, thereby realizing a pluggable execution component configuration method. Among them, the execution components carry each independent business logic and are pre-created and stored in the component library. Therefore, when modifying the business logic of the process, it is only necessary to adjust the different execution components and their order, without introducing additional components, thereby reducing the risk of the business system being invaded by foreign code. Through this process configuration method, the present application can dynamically and flexibly adjust the execution order of each execution component, realize flexible and convenient process orchestration processing, and improve the execution efficiency of the process. In addition, the present application can configure different exception handling methods in the components, and can flexibly implement exception handling methods such as exception rollback as needed, thereby realizing flexible and convenient process orchestration processing.

[0068] Figure 3 FIG. 1 is a flow chart showing another embodiment of a process execution method based on a process engine provided by the present invention, wherein the method is executed by a second terminal device. Figure 3 As shown, the method comprises the following steps:

[0069] Step 210: Obtain a target process using the process orchestration processing method based on the process engine as described above; and execute the business logic corresponding to each execution component in the target process according to the target process.

[0070] In an optional manner, executing the business logic corresponding to each execution component in the target process according to the target process includes:

[0071] If the first execution components in the first task execution unit are configured for serial execution, they are executed one by one in the order in which they are configured, and the data generated during the execution process is placed in the context of the process engine until all components in the first task execution unit are executed.

[0072] For example, in the process of e-commerce shopping, the target process flowB includes tasks of the three business modules of ordering, delivery and receipt. The second terminal device can be constructed into three execution components a1, b1 and c1 according to the functions of the three business modules of ordering, delivery and receipt. The three execution components are executed in sequence and cannot be executed in parallel. The second terminal device configures the three execution components of ordering, delivery and receipt through serialized components, and executes them in the order of execution components a1, b1 and c1. After each execution component is executed, the result of each execution component is placed in the context of the target process flowB to provide data support for subsequent component execution.

[0073] In an optional manner, executing the business logic corresponding to each execution component in the target process according to the target process further includes:

[0074] If each second execution component in the second task execution unit is configured for parallel execution, the preset thread pool is used to control the asynchronous execution of each second execution component, and synchronously block and wait for the execution result of each second execution component, and put the data generated during the execution process into the context of the process engine until all components in the second task execution unit are executed.

[0075] Exemplarily, the target process flowC includes tasks for two business modules, namely issuing points and new member cards to users after user registration. The second terminal device can be constructed into two execution components a2 and b2, respectively, based on the functions of the two business modules of issuing points and new member cards. The business logics of issuing points and issuing new member cards have no dependencies and can be executed in parallel. The second terminal device configures the two execution components a2 and b2 to execute in parallel and execute them in parallel after the user registration is completed. After each execution component is executed, the result of each execution component is placed in the context of the target process flowC to provide data support for subsequent component execution.

[0076] In an optional manner, during the execution of the target process, the business data of the current target process is saved at a preset node;

[0077] When an exception occurs during the execution of the target process, the business logic is rolled back to the node before the exception occurs using the business logic rollback method, and the business data of the target process is restored to the business data recorded in the node before the exception occurs;

[0078] Abnormal behaviors during the execution of the target process are recorded in the error log.

[0079] For example, Figure 4 As shown, Figure 4 This is a configuration example of a target flow task, which includes target flows flowA and flowB that are executed in sequence.

[0080] The execution order of each execution component in the target process flowA is as follows: the target process flowA starts, and after executing execution components a, b, and c in serial, execute execution components d and e in parallel; after executing execution components d and e in parallel, the target process flowA ends. The target process flowA will perform a business logic rollback.

[0081] The execution order of each execution component in the target process flowB is as follows: the target process flowB starts, the execution components a1, b1 and c1 are serially executed, and then the execution components d1 and e1 are parallelized; after the execution components d1 and e1 are parallelized, the target process flowB ends. The target process flowB will not perform a business logic rollback.

[0082] In an optional manner, when an exception occurs during the execution of the target process, the exception is thrown to block the execution of the target process;

[0083] Alternatively, when an exception occurs during the execution of the target process, the exception is captured and processed so that the target process continues to flow;

[0084] Abnormal behaviors during the execution of the target process are recorded in the error log.

[0085] Preferably, the exception is captured and processed using try-catch business logic. Specifically, the exception that occurs during the execution of the target process is captured, the code that causes the exception is saved in a try block, the execution of the code in the try block is stopped, and the exception is processed in a catch block, so that the target process continues to flow.

[0086] Specifically, the second terminal device records the abnormal behavior during the execution of the target process in an error log, places the error log in a log system or a third-party application, and notifies the user by means of email or the like.

[0087] The present application can dynamically and flexibly adjust the configuration mode of the execution order of each execution component through a pluggable execution component configuration mode without changing the business logic code, and obtain and execute the target process. Among them, the execution component carries each independent business logic and is pre-created and stored in the component library. Therefore, when modifying the business logic of the process, it is only necessary to adjust the different execution components and their order, and there is no need to introduce additional components, thereby reducing the risk of the business system being invaded by foreign code. Through this process configuration mode, the present application can dynamically and flexibly adjust the execution order of each execution component, realize flexible and convenient process orchestration processing, and improve the execution efficiency of the process. In addition, the present application can configure different exception handling methods in the component, and can flexibly implement exception handling methods such as exception rollback and exception capture processing as needed, thereby realizing flexible and convenient process orchestration processing.

[0088] Figure 5 FIG. 1 is a schematic diagram showing a structure of an embodiment of a process orchestration processing device based on a process engine provided by the present invention. Figure 5 As shown, the apparatus 300 includes: a task configuration module 310, a component configuration module 320 and an orchestration processing module 330;

[0089] A task configuration module 310 is used to obtain a configuration file, wherein the configuration file includes a target process task;

[0090] Wherein, the target process task is configured with a number of task execution units;

[0091] The component configuration module 320 is used to obtain a number of execution components that conform to the business logic of the target process task and determine the execution order of each of the execution components;

[0092] Wherein, each of the execution components is pre-configured according to a preset business logic;

[0093] The orchestration processing module 330 is used to sequentially configure each of the execution components in the corresponding task execution unit according to the execution order of each of the execution components to obtain a target process, so that the process engine executes the business logic corresponding to each of the execution components according to the target process.

[0094] In an optional manner, the apparatus 300 further includes: a component creation module, a marking module, and a context configuration module;

[0095] Component creation module, used to create initial execution components;

[0096] Configure the execution content of the initial execution component according to the preset business logic to obtain a configured execution component;

[0097] The execution content includes: one or more of the execution mode of business logic, the judgment mode of execution condition, the exception handling mode and the exception recording mode;

[0098] The configured execution components are stored in a component library.

[0099] A marking module, used for taking the service component corresponding to the first interface class as an initial execution component;

[0100] The first interface class is marked in a target annotation, and a unique alias of the initial execution component is specified.

[0101] The context configuration module is used to identify the second interface class as the context of the process engine, which is used to store the intermediate data or state data required during the execution of the target process, and to share the data stored in the context during the execution of the target process.

[0102] In an optional manner, the orchestration processing module 330 includes: an orchestration processing unit;

[0103] The arrangement processing unit is used to sequentially configure each of the execution components in the corresponding task execution unit according to the execution order of each of the execution components to obtain a target process, including:

[0104] According to the execution order of each of the execution components, one or more execution components are configured in each task execution unit;

[0105] The execution components in the same task execution unit are configured to be executed individually, serially or in parallel.

[0106] Figure 6 FIG. 1 is a schematic diagram showing a structure of an embodiment of a process execution device based on a process engine provided by the present invention. Figure 6 As shown, the device 400 includes: an execution processing module 410;

[0107] The execution processing module 410 is used to obtain the target process by using the process arrangement processing method based on the process engine as described above; according to the target process, execute the business logic corresponding to each execution component in the target process.

[0108] In an optional manner, the execution processing module 410 includes: a serial execution unit, a parallel execution unit and an exception handling unit;

[0109] A serialized execution unit is used to execute each of the first execution components in the first task execution unit one by one in the order in which they are configured, and put the data generated during the execution into the context of the process engine until all components in the first task execution unit are executed.

[0110] A parallel execution unit is used to control the asynchronous execution of each second execution component by using a preset thread pool if each second execution component in the second task execution unit is configured for parallel execution, and synchronously block and wait for the execution result of each second execution component, and put the data generated during the execution process into the context of the process engine until all components in the second task execution unit are executed.

[0111] An exception handling unit, used to save the business data of the current target process at a preset node during the execution of the target process;

[0112] When an exception occurs during the execution of the target process, the business logic is rolled back to the node before the exception occurs using the business logic rollback method, and the business data of the target process is restored to the business data recorded in the node before the exception occurs;

[0113] Abnormal behaviors during the execution of the target process are recorded in the error log.

[0114] Alternatively, when an exception occurs during the execution of the target process, the exception is thrown to block the execution of the target process;

[0115] Abnormal behaviors during the execution of the target process are recorded in the error log.

[0116] Alternatively, when an exception occurs during the execution of the target process, the exception is captured and processed so that the target process continues to flow;

[0117] Abnormal behaviors during the execution of the target process are recorded in the error log.

[0118] Figure 7 A schematic diagram of the structure of an embodiment of a terminal device provided by the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal device.

[0119] like Figure 7 As shown, the terminal device may include: a processor (processor) 502, a communication interface (Communications Interface) 504, a memory (memory) 506, and a communication bus 508.

[0120] The processor 502, the communication interface 504, and the memory 506 communicate with each other via the communication bus 508. The communication interface 504 is used to communicate with other devices such as network elements of a client or other servers. The processor 502 is used to execute the program 510, which may specifically execute the relevant steps in the above-mentioned embodiment of the process arrangement processing method based on the process engine, or execute the relevant steps in the above-mentioned embodiment of the process execution method based on the process engine.

[0121] Specifically, the program 510 may include program code including computer executable instructions.

[0122] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0123] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0124] The program 510 can be specifically called by the processor 502 to enable the terminal device to execute the relevant steps in the above-mentioned process orchestration processing method embodiment based on the process engine, or execute the relevant steps in the above-mentioned process execution method embodiment based on the process engine.

[0125] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on a terminal device / apparatus, the terminal device / apparatus executes the process orchestration processing method based on the process engine in any of the above method embodiments, or executes the process execution method based on the process engine in any of the above method embodiments.

[0126] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.

[0127] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0128] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0129] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A process arrangement processing method based on a process engine, characterized in that: The method comprises: Obtaining a configuration file, wherein the configuration file includes a target process task; Wherein, the target process task is configured with a number of task execution units; Acquire several execution components that conform to the business logic of the target process task, and determine the execution order of each of the execution components; Wherein, each of the execution components is pre-configured according to a preset business logic; According to the execution order of each execution component, each execution component is sequentially configured in the corresponding task execution unit to obtain a target process, so that the process engine executes the business logic corresponding to each execution component according to the target process.

2. The process arrangement processing method based on the process engine according to claim 1 is characterized in that: Before obtaining a plurality of execution components that conform to the business logic of the target process task and determining the execution order of each of the execution components, the method further includes: Create the initial execution component; Configure the execution content of the initial execution component according to the preset business logic to obtain a configured execution component; The execution content includes: one or more of the execution mode of business logic, the judgment mode of execution condition, the exception handling mode and the exception recording mode; The configured execution components are stored in a component library.

3. The process arrangement processing method based on the process engine according to claim 2 is characterized in that: The step of creating an initial execution component includes: Using the service component corresponding to the first interface class as the initial execution component; The first interface class is marked in a target annotation, and a unique alias of the initial execution component is specified.

4. The process arrangement processing method based on the process engine according to claim 1 is characterized in that: Before the process engine executes the business logic corresponding to each of the execution components according to the execution order, it also includes: The second interface class is identified as the context of the process engine, which is used to store the intermediate data or state data required during the execution of the target process, and to share the data stored in the context during the execution of the target process.

5. The process arrangement processing method based on the process engine according to claim 1 is characterized in that: According to the execution order of each execution component, each execution component is sequentially configured in a corresponding task execution unit to obtain a target process, including: According to the execution order of each of the execution components, one or more execution components are configured in each task execution unit; The execution components in the same task execution unit are configured to be executed individually, serially or in parallel.

6. A process execution method based on a process engine, characterized in that: The method comprises: Obtaining the target process by using the process orchestration processing method based on the process engine as described in any one of claims 1 to 5; According to the target process, the business logic corresponding to each execution component in the target process is executed.

7. The process execution method based on the process engine according to claim 6, characterized in that: According to the target process, executing the business logic corresponding to each execution component in the target process includes: If the first execution components in the first task execution unit are configured for serial execution, they are executed one by one in the order in which they are configured, and the data generated during the execution process is placed in the context of the process engine until all components in the first task execution unit are executed.

8. The process execution method based on the process engine according to claim 6, characterized in that: According to the target process, executing the business logic corresponding to each execution component in the target process also includes: If each second execution component in the second task execution unit is configured for parallel execution, the preset thread pool is used to control the asynchronous execution of each second execution component, and synchronously block and wait for the execution result of each second execution component, and put the data generated during the execution process into the context of the process engine until all components in the second task execution unit are executed.

9. The process execution method based on the process engine according to claim 6, characterized in that: The method comprises: During the execution of the target process, the business data of the current target process is saved at a preset node; When an exception occurs during the execution of the target process, the business logic is rolled back to the node before the exception occurs using the business logic rollback method, and the business data of the target process is restored to the business data recorded in the node before the exception occurs; Abnormal behaviors during the execution of the target process are recorded in the error log.

10. The process execution method based on the process engine according to claim 6, characterized in that: The method further comprises: When an exception occurs during the execution of the target process, the exception is thrown to block the execution of the target process; Alternatively, when an exception occurs during the execution of the target process, the exception is captured and processed so that the target process continues to flow; Abnormal behaviors during the execution of the target process are recorded in the error log.