Business process arrangement method, device and system and medium
By configuring task nodes and dependencies in a visual editing interface, combined with dynamic scheduling and data transfer mechanisms, the problem of insufficient flexibility and adaptability in business process orchestration in existing technologies is solved, achieving more efficient business process management and resource utilization.
Patent Information
- Application Number
- CN202411058495.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-08
AI Technical Summary
Existing technologies require extensive configuration and customization when building and managing IT workflows in complex scenarios, resulting in complex systems that are difficult to adapt flexibly to changes in business needs, and insufficient flexibility and adaptability in business process orchestration.
The flowchart can be obtained through a visual editing interface, the execution information and dependencies of task nodes can be configured, trigger conditions can be defined, and a scheduling execution plan can be generated. It supports multiple trigger conditions and dependencies, and combined with dynamic scheduling mechanism and efficient data transmission mechanism, it can realize flexible execution and retry processing of tasks.
It improves the flexibility and adaptability of business process orchestration, optimizes resource utilization, reduces error rate and processing time, enhances system scalability and maintainability, and supports the implementation of complex business logic.
Smart Images

Figure CN118917616A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology, and in particular to a business process orchestration method, device, system and medium. Background Art
[0002] Financial business process orchestration system is an important solution technology in the field of information technology. It is a software solution mainly used to manage and automate complex business processes in the financial industry, simplify and optimize IT tasks and workflows to improve efficiency and reduce human errors.
[0003] There are some solutions, products and technologies for automated orchestration and execution of business processes in the industry. These products can define processes through interfaces or configuration files. However, they generally have some defects and shortcomings. This is mainly reflected in the need to handle a large amount of configuration and customization when building and managing IT workflows in complex scenarios, which makes the system complex and difficult to maintain, and difficult to flexibly adapt to changes in business needs. Therefore, how to improve the flexibility and adaptability of business process orchestration so that business process orchestration can be easily expanded and maintained is an issue that needs to be addressed urgently. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a business process orchestration method, device, system and medium that can be applied to financial technology or other related fields. Its main purpose is to improve the flexibility and adaptability of business process orchestration to adapt to business process requirements in complex scenarios.
[0005] The technical solution of the present invention is as follows:
[0006] A first aspect of the present invention provides a business process orchestration method, comprising:
[0007] In response to the user's editing operation in the visual editing interface, a flowchart of the task to be arranged is obtained, wherein the flowchart includes a plurality of task nodes;
[0008] In response to the task configuration instruction, configure the execution information of each task node in the flow chart;
[0009] In response to the dependency instructions, define the dependency relationships and triggering conditions between the various task nodes;
[0010] Obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-scheduled task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
[0011] In one embodiment, in response to the task configuration instruction, configuring the execution information of each task node in the flowchart includes:
[0012] Displaying a configuration dialog box, and receiving a task configuration instruction input by a user in the configuration dialog box;
[0013] The executor and execution parameters of each task node in the flowchart are configured according to the task configuration instruction.
[0014] In one embodiment, the definition of the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction specifically includes:
[0015] In response to the dependency instruction, the predecessor task nodes of each task node are defined, and the triggering conditions between the task nodes are configured as time triggering, event triggering and / or data triggering.
[0016] In one embodiment, after defining the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction, the method includes:
[0017] The flowchart is parsed and converted to obtain the task nodes, dependency relationships and trigger conditions of the task nodes in the flowchart, and generate a business process document in a specified format.
[0018] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0019] Obtain contextual data for different task executions;
[0020] The task execution results are transferred between tasks and the intermediate data is shared according to the context data of different task executions.
[0021] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0022] Collect task execution results. When a task fails, retry the failed task according to the preset error and retry strategy.
[0023] In one embodiment, the collecting of task execution results and retrying the failed task according to a preset error and retry strategy when the task execution fails include:
[0024] Collect log information of task execution and monitor the execution status of tasks in real time;
[0025] When a task fails to execute, historical error information is confirmed according to the log information, and the failed task is retried in combination with a preset number of retries and a retry interval.
[0026] A second aspect of the present invention provides a business process orchestration device, comprising:
[0027] A visual editing module, used for obtaining a flowchart of a task to be arranged in response to an editing operation of a user in a visual editing interface, wherein the flowchart includes a plurality of task nodes;
[0028] A task configuration module, configured to configure the execution information of each task node in the flow chart in response to a task configuration instruction;
[0029] A dependency definition module, used to define the dependency relationships and trigger conditions between various task nodes in response to dependency instructions;
[0030] The scheduling configuration execution module is used to obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
[0031] A third aspect of the present invention provides a business process orchestration system, the system comprising at least one processor; and
[0032] a memory communicatively connected to the at least one processor; wherein,
[0033] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned business process orchestration method.
[0034] A fourth aspect of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors can execute the above-mentioned business process orchestration method.
[0035] Beneficial effects: The present invention discloses a business process orchestration method, device, system and medium. Compared with the prior art, the embodiment of the present invention responds to the user's editing operation in the visual editing interface to obtain a flowchart of the task to be orchestrated, which includes multiple task nodes; responds to the task configuration instruction, configures the execution information of each task node in the flowchart; responds to the dependency instruction, defines the dependency and trigger conditions between each task node; obtains the scheduling execution plan of each task node, and controls each task node to execute the corresponding task to be orchestrated according to the scheduling execution plan with the corresponding execution information, dependency and trigger conditions. By configuring the execution information, dependency and trigger conditions of each task node and configuring the corresponding scheduling execution plan, users can design the orchestration process based on complex business logic, so that the workflow can flexibly adapt to changes in business needs, thereby improving the flexibility and adaptability of business process orchestration. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0037] Figure 1 A flow chart of a business process orchestration method provided by an embodiment of the present invention;
[0038] Figure 2 A flow chart of step S102 in the business process orchestration method provided in an embodiment of the present invention;
[0039] Figure 3 A flow chart of data transmission and sharing in the business process orchestration method provided in an embodiment of the present invention;
[0040] Figure 4 A flowchart of error and retry processing in the business process orchestration method provided by an embodiment of the present invention;
[0041] Figure 5 A schematic diagram of the functional modules of a business process orchestration device provided by an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the hardware structure of a business process orchestration system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The embodiments of the present invention are described below in conjunction with the accompanying drawings.
[0044] Financial business process orchestration system is an important solution technology in the field of information technology. It is a software solution mainly used to manage and automate complex business processes in the financial industry, simplify and optimize IT tasks and workflows to improve efficiency and reduce human errors.
[0045] There are some solutions, products and technologies for automated orchestration and execution of business processes in the industry. These products can define processes through interfaces or configuration files. However, they generally have some defects and shortcomings. This is mainly reflected in the need to handle a large amount of configuration and customization when building and managing IT workflows in complex scenarios, which makes the system complex and difficult to maintain, and difficult to flexibly adapt to changes in business needs. Therefore, how to improve the flexibility and adaptability of business process orchestration so that business process orchestration can be easily expanded and maintained is an issue that needs to be addressed urgently.
[0046] In order to solve the above problems, the present invention proposes a business process arrangement method. Figure 1 , Figure 1 The flowchart of an embodiment of the business process orchestration method provided by the present invention. The system architecture of the business process orchestration method provided by this embodiment may include a first terminal device, a second terminal device, a third terminal device, a network and a server. The network is used to provide a medium for a communication link between the first terminal device, the second terminal device, the third terminal device and the server. The network may include various connection types, such as wired and / or wireless communication links, etc.
[0047] The user may use the first terminal device, the second terminal device, and the third terminal device to interact with the server through the network to receive or send messages, etc. Various communication client applications may be installed on the first terminal device, the second terminal device, and the third terminal device, such as knowledge reading applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software, etc. (only as examples).
[0048] The first terminal device, the second terminal device, and the third terminal device may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0049] The server may be a server that provides various services, such as a background management server that provides support for the content browsed by the user using the first terminal device, the second terminal device, and the third terminal device (for example only). The background management server may analyze and process the received data such as the user request, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server for a distributed system, or a server combined with a blockchain.
[0050] It should be noted that the business process orchestration method provided in the embodiment of the present invention can generally be executed by the first terminal device, the second terminal device or the third terminal device. Correspondingly, the business process orchestration device provided in the embodiment of the present invention can also be set in the first terminal device, the second terminal device or the third terminal device.
[0051] Alternatively, the business process orchestration method provided in the embodiment of the present invention may also be generally executed by a server. Accordingly, the business process orchestration device provided in the embodiment of the present invention may generally be arranged in a server. The business process orchestration method provided in the embodiment of the present invention may also be executed by a server or server cluster that is different from the server and can communicate with the first terminal device, the second terminal device, the third terminal device and / or the server. Accordingly, the business process orchestration device provided in the embodiment of the present invention may also be arranged in a server or server cluster that is different from the server and can communicate with the first terminal device, the second terminal device, the third terminal device and / or the server.
[0052] It should be understood that the numbers of the above terminal devices, networks and servers are only illustrative. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0053] like Figure 1 As shown, the business process orchestration method provided in this embodiment specifically includes the following steps:
[0054] S101 . In response to an editing operation of a user in a visual editing interface, a flowchart of a task to be arranged is obtained, wherein the flowchart includes a plurality of task nodes.
[0055] In this embodiment, the business process orchestration system provides a visual operation interface for process editing and configuration operations. After logging into the system, the user can enter the visual editing interface and input editing operations such as click, drag, box selection, move, connect, etc. in the visual editing interface. After receiving the editing operations input by the user, the system responds to these editing operations and obtains the flowchart of the task to be orchestrated currently drawn by the user on the visual editing page, which includes multiple task nodes. Through the intuitive visual interface, the complexity of process design is reduced, so that non-technical users can also easily build and manage automated processes.
[0056] In specific implementation, the front-end technology stack Vue can be used to develop a dynamic and responsive user interface, and the SVG front-end technology can be used to realize the drawing and interaction of flowcharts. A user-friendly graphical interface is provided on the front end, which includes icons and templates of elements such as task nodes, conditional judgments, parallel execution, and task dependencies, allowing users to add, move, and connect various graphic elements (such as task nodes and decision points) by dragging and dropping, so that users can create and edit flowcharts by dragging and dropping, so that the received editing operation obtains the flowchart with multiple task nodes and their connection relationships drawn by the user based on business process requirements. Since Vue is a responsive system, when the data changes, the view will be automatically updated, so that the interface can respond to user operations and data changes in real time.
[0057] S102: In response to the task configuration instruction, configure the execution information of each task node in the flowchart.
[0058] In this embodiment, the user can further input the task configuration instruction in the visual editing interface based on the task requirements, and can specifically input the task configuration instruction through controls such as drop-down menus, text boxes, check boxes, dialog boxes, etc., or can also trigger the task configuration instruction by importing a pre-generated configuration file, which contains the execution information of the task node, etc. When the system receives the task configuration instruction, it responds to it and configures detailed execution information for each task node based on the received task configuration instruction, such as the selection of the executor, command parameters, API details or script content, etc., so as to flexibly configure each task node to meet the needs of different tasks.
[0059] In one embodiment, Figure 2 As shown, in response to the task configuration instruction, configuring the execution information of each task node in the flowchart includes:
[0060] S201, displaying a configuration dialog box, and receiving a task configuration instruction input by a user in the configuration dialog box;
[0061] S202: Configure the executor and execution parameters of each task node in the flowchart according to the task configuration instruction.
[0062] In this embodiment, a visual dialog box is provided to configure the execution information of the task node. The user can enter the corresponding task configuration instructions through the configuration dialog box, and configure the corresponding executor and specific execution parameters for each task node based on the task configuration instructions, that is, the execution information includes the selection of the executor, command parameters, API details or script content, etc., to ensure that each task has a corresponding executor to perform the actual operation. Specifically, multiple types of executors are supported, including but not limited to script executors, remote service call executors, API call executors, and command line executors, that is, command, remote service, API call, script execution and other task types are supported at the same time. At the same time, new task types and corresponding configuration interfaces can be expanded through the plug-in mechanism to adapt to different executor requirements. This embodiment supports a wider range of execution methods through flexible task configuration, including the latest API interface, multiple scripting languages and remote service calls, etc., so as to meet diverse business needs.
[0063] Preferably, after configuring the executor and execution parameters of each task node, the configured execution parameters are further verified to confirm whether they meet the parameter requirements of the executor. If not, corresponding prompts are output to ensure the correctness and ease of use of the user configuration.
[0064] S103. In response to the dependency instruction, define the dependency relationship and triggering conditions between the task nodes.
[0065] In this embodiment, based on the dependency relationship and execution logic between tasks, the user can further input dependency instructions in the visual editing interface. Specifically, the connection between task nodes can be created on the flowchart by dragging and dropping operations, and the dependency relationship can be intuitively defined to input dependency instructions. Alternatively, the task nodes and their dependencies can be declared in a structured configuration file format, and the dependency instructions can be triggered by uploading the dependency configuration file, etc. When the system receives the dependency instruction, it responds to it and defines the dependency relationship and trigger conditions between each task node based on the received dependency instruction. Specifically, the predecessor task node of each task node is defined by the dependency instruction to ensure that the current task is executed only after the predecessor task is completed; at the same time, the trigger conditions of the task are also configured, and the trigger conditions between each task node are configured as time trigger, event trigger and / or data trigger, so that each task node will be automatically executed when the trigger conditions are met. By supporting complex dependencies and multiple trigger conditions, the workflow can flexibly adapt to changes in business needs without redesigning the process for each specific scenario, thereby improving the flexibility and adaptability of the workflow.
[0066] S104: Obtain a scheduling execution plan for each task node, and control each task node to execute a corresponding task to be scheduled according to the scheduling execution plan with corresponding execution information, dependency relationship, and trigger condition.
[0067] In this embodiment, the user can flexibly set the scheduling execution plan of the task according to the business process requirements, for example, configure the scheduling execution plan of each task node through a scheduling configuration file or a visual editing interface, and adjust the execution time, number of retries, timeout time, etc. of the task through the scheduling execution plan. Based on the acquired scheduling execution plan, the execution of the task can be managed through a built-in scheduler or an integrated third-party scheduling service, and each task node can be controlled to execute the corresponding task to be scheduled according to the scheduling execution plan with corresponding execution information, dependencies and trigger conditions. Specifically, a timed task manager can be used to implement time-based task scheduling, and an event subscription mechanism (RabbitMQ message middleware) can be combined to support event-based triggering. The dynamic scheduling mechanism optimizes the task execution order according to the actual dependencies and trigger conditions of the task, effectively reducing resource idle time and improving resource utilization efficiency.
[0068] In one embodiment, after defining the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction, the method includes:
[0069] The flowchart is parsed and converted to obtain the task nodes, dependency relationships and trigger conditions of the task nodes in the flowchart, and generate a business process document in a specified format.
[0070] In this embodiment, based on a specified format, such as JSON format, a set of process definition format parsing languages are predefined, and the definition includes information such as task nodes, dependencies, trigger conditions, etc. Through the process definition format parsing language, the flowchart designed by the user in the visual editing interface can be parsed and converted, the task nodes in the flowchart, the dependencies and trigger conditions of each task node can be obtained, and a business process document in a specified format can be generated. The flowchart drawn by the user is converted into a document in a specified format for easy storage and parsing. The business process document in the specified format can be imported or exported, so that users can reuse historical process designs more easily. At the same time, for the same business, version control can be performed based on the generated business process document, that is, each time the business process version is updated, the corresponding version of the business process document is exported and saved, so that users can manage the change history of the process.
[0071] In one embodiment, Figure 3 As shown, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0072] S301, obtaining context data for execution of different tasks;
[0073] S302 : transferring task execution results between tasks and sharing intermediate data according to context data of different task executions.
[0074] In this embodiment, during the task execution process, a summer storage module is also used to manage the context data of task execution. By obtaining the context data of different task executions, the task execution results are transferred between tasks based on the context data of different task executions and the intermediate data is shared. Specifically, the key-value pair storage Redis technology is used to realize the fast reading, writing and sharing of data. For example, according to the needs of data sharing in the business process, a suitable key-value pair structure is defined, the key can be the unique identifier of the task node, and the value can be the data related to the task node; the Redis client library is integrated in the business process orchestration system, so that it can interact with the Redis server programmatically; when a task node completes execution and generates output data, the Redis client is used to write the data to Redis in the form of a key-value pair; when the data of the task node needs to be read, the key is used to query and obtain the corresponding value through the Redis client; in the business process, if multiple task nodes need to share data, the data stored in Redis can be accessed through the same key. Furthermore, since Redis stores strings, non-string data (such as objects and arrays) need to be serialized (converted to strings) and deserialized (converted from strings back to the original format), thereby supporting data serialization and deserialization, ensuring the compatibility of data formats between different tasks, allowing data to be flexibly transferred and shared between tasks, and supporting the processing of complex data structures. This embodiment introduces an efficient data transfer and sharing mechanism by combining context variables, message queues, and database technologies, allowing data to be flexibly transferred and shared between different tasks, making the ability to share data between tasks more flexible and efficient, and supporting more complex business logic to meet the needs of complex business scenarios.
[0075] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0076] Collect task execution results. When a task fails, retry the failed task according to the preset error and retry strategy.
[0077] In this embodiment, the task execution status is monitored, the execution results of each task are collected, and the error and retry strategies are predefined, including the number of retries, retry intervals, and error notification rules when the task fails. When the task fails to execute, the failed task is automatically error-handled and retried according to the preset error and retry strategies, and the error handling and retry mechanism is implemented, so that the system can automatically try to retry or notify the user when the task fails. Through a comprehensive and flexible error handling and retry mechanism, users are allowed to customize the error handling logic according to specific business needs, thereby improving the stability and reliability of task execution, and the error handling and retry mechanism can also quickly respond to errors in task execution, automatically retry or alarm, so that the system can automatically recover from temporary errors, reducing the need for manual intervention and error handling time, reducing service interruptions caused by task failures, and providing a more stable and reliable user experience.
[0078] In one embodiment, Figure 4 As shown, the task execution results are collected, and when the task execution fails, the failed task is retried according to the preset error and retry strategy, including:
[0079] S401, collecting log information of task execution and monitoring the execution status of the task in real time;
[0080] S402: When a task fails to execute, historical error information is confirmed according to the log information, and the failed task is retried in combination with a preset number of retries and a retry interval.
[0081] In the present embodiment, the error code or exception type when the task execution fails is pre-set, and the processing strategy corresponding to each error is defined, such as retry, skip, termination, etc., and the maximum delay time of the number of retries, retry interval and retry is configured for each task node. When the task is executed, through the integrated log framework (such as log4j, etc.), when the task is executed successfully or failed, the detailed log information of the task execution is collected, including time, task status, execution duration, error information, etc., and the execution status of the task is monitored in real time in combination with the real-time monitoring tool. When the task execution fails, the historical error information is confirmed according to the log information of the task, and the task that failed to execute is retried in combination with the preset number of retries and retry interval. That is, when a task fails to execute, the log information is combined to confirm the specific number of failures, the number of retries, the time of the most recent retry, and other historical error information of the task. The time of this retry is determined based on the historical error information and the set number of retries, retry interval, and maximum delay time of the retries. Then, through intelligent retry strategies, resources can be allocated more reasonably to avoid waste of resources caused by errors, so that the business process orchestration system can execute complex business processes more stably and reliably, while providing powerful monitoring and problem diagnosis capabilities.
[0082] The embodiments of the present invention provide the following technical advantages:
[0083] 1. Improved flexibility and adaptability of workflows: By supporting complex dependencies and multiple trigger conditions, workflows can flexibly adapt to changes in business needs without having to redesign the process for each specific scenario.
[0084] 2. Optimized resource utilization: The dynamic scheduling mechanism optimizes the task execution order according to the actual dependencies and trigger conditions of the tasks, effectively reducing resource idle time and improving resource utilization efficiency.
[0085] 3. Reduced error rate and processing time: The error handling and retry mechanism can quickly respond to errors in task execution, automatically retry or alarm, reducing the need for manual intervention and error handling time.
[0086] 4. Improved system scalability and maintainability: The modular design makes the system easy to expand and maintain, and new functions and actuators can be easily integrated into the system, improving the long-term sustainable development capabilities of the system.
[0087] 5. Efficient data transfer and sharing mechanism: allows flexible data transfer and sharing between different tasks, supporting more complex business logic.
[0088] It should be noted that there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0089] Another embodiment of the present invention provides a business process arrangement device, such as Figure 5 As shown, the device 1 comprises:
[0090] The visual editing module 11 is used to obtain a flowchart of the task to be arranged in response to the user's editing operation in the visual editing interface, wherein the flowchart includes a plurality of task nodes;
[0091] A task configuration module 12, configured to configure the execution information of each task node in the flow chart in response to the task configuration instruction;
[0092] A dependency definition module 13, for defining the dependency relationships and triggering conditions between various task nodes in response to the dependency instructions;
[0093] The scheduling configuration execution module 14 is used to obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-organized task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
[0094] The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which are more suitable for describing the business process orchestration execution process than programs. For the specific implementation methods of each module, please refer to the corresponding method embodiments above, which will not be repeated here.
[0095] In one embodiment, the task configuration module 12 includes:
[0096] A dialog display unit, used to display a configuration dialog box and receive a task configuration instruction input by a user in the configuration dialog box;
[0097] The task configuration unit is used to configure the executor and execution parameters of each task node in the flowchart according to the task configuration instruction.
[0098] In one embodiment, the dependency definition module 13 is specifically used to:
[0099] In response to the dependency instruction, the predecessor task nodes of each task node are defined, and the triggering conditions between the task nodes are configured as time triggering, event triggering and / or data triggering.
[0100] In one embodiment, the device 1 further comprises:
[0101] The process analysis module is used to parse and convert the flowchart, obtain the task nodes in the flowchart, the dependency relationship and trigger conditions of each task node, and generate a business process document in a specified format.
[0102] In one embodiment, the device 1 further comprises:
[0103] Data acquisition module, used to obtain context data for different task executions;
[0104] The transfer sharing module is used to transfer task execution results between tasks and share intermediate data based on the context data of different task executions.
[0105] In one embodiment, the device 1 further comprises:
[0106] The error and retry module is used to collect task execution results. When a task fails, the failed task is retried according to the preset error and retry strategy.
[0107] In one embodiment, the error and retry module includes:
[0108] The collection unit is used to collect the log information of task execution and monitor the execution status of the task in real time;
[0109] The error and retry unit is used to confirm the historical error information according to the log information when the task execution fails, and retry the failed task in combination with the preset retry times and retry interval.
[0110] Another embodiment of the present invention provides a business process orchestration system, such as Figure 6 As shown, the system 10 includes:
[0111] One or more processors 110 and memory 120, Figure 6 A processor 110 is used as an example for description. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0112] The processor 110 is used to complete various control logics of the system 10, and it can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP and / or any other such configuration.
[0113] The memory 120 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions corresponding to the business process orchestration method in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the system 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implements the business process orchestration method in the above method embodiment.
[0114] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the system 10, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the system 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0115] One or more units are stored in the memory 120. When executed by one or more processors 110, the business process orchestration method in any of the above method embodiments is executed, for example, the following steps are executed:
[0116] In response to the user's editing operation in the visual editing interface, a flowchart of the task to be arranged is obtained, wherein the flowchart includes a plurality of task nodes;
[0117] In response to the task configuration instruction, configure the execution information of each task node in the flow chart;
[0118] In response to the dependency instructions, define the dependency relationships and triggering conditions between the various task nodes;
[0119] Obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-scheduled task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
[0120] In one embodiment, in response to the task configuration instruction, configuring the execution information of each task node in the flowchart includes:
[0121] Displaying a configuration dialog box, and receiving a task configuration instruction input by a user in the configuration dialog box;
[0122] The executor and execution parameters of each task node in the flowchart are configured according to the task configuration instruction.
[0123] In one embodiment, the definition of the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction specifically includes:
[0124] In response to the dependency instruction, the predecessor task nodes of each task node are defined, and the triggering conditions between the task nodes are configured as time triggering, event triggering and / or data triggering.
[0125] In one embodiment, after defining the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction, the method includes:
[0126] The flowchart is parsed and converted to obtain the task nodes, dependency relationships and trigger conditions of the task nodes in the flowchart, and generate a business process document in a specified format.
[0127] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0128] Obtain contextual data for different task executions;
[0129] The task execution results are transferred between tasks and the intermediate data is shared according to the context data of different task executions.
[0130] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0131] Collect task execution results. When a task fails, retry the failed task according to the preset error and retry strategy.
[0132] In one embodiment, the collecting of task execution results and retrying the failed task according to a preset error and retry strategy when the task execution fails include:
[0133] Collect log information of task execution and monitor the execution status of tasks in real time;
[0134] When a task fails to execute, historical error information is confirmed according to the log information, and the failed task is retried in combination with a preset number of retries and a retry interval.
[0135] An embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the business process orchestration method in any of the above method embodiments is executed, for example, the following steps are executed:
[0136] In response to the user's editing operation in the visual editing interface, a flowchart of the task to be arranged is obtained, wherein the flowchart includes a plurality of task nodes;
[0137] In response to the task configuration instruction, configure the execution information of each task node in the flow chart;
[0138] In response to the dependency instructions, define the dependency relationships and triggering conditions between the various task nodes;
[0139] Obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-scheduled task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
[0140] In one embodiment, in response to the task configuration instruction, configuring the execution information of each task node in the flowchart includes:
[0141] Displaying a configuration dialog box, and receiving a task configuration instruction input by a user in the configuration dialog box;
[0142] The executor and execution parameters of each task node in the flowchart are configured according to the task configuration instruction.
[0143] In one embodiment, the definition of the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction specifically includes:
[0144] In response to the dependency instruction, the predecessor task nodes of each task node are defined, and the triggering conditions between the task nodes are configured as time triggering, event triggering and / or data triggering.
[0145] In one embodiment, after defining the dependency relationship and triggering conditions between the task nodes in response to the dependency instruction, the method includes:
[0146] The flowchart is parsed and converted to obtain the task nodes, dependency relationships and trigger conditions of the task nodes in the flowchart, and generate a business process document in a specified format.
[0147] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0148] Obtain contextual data for different task executions;
[0149] The task execution results are transferred between tasks and the intermediate data is shared according to the context data of different task executions.
[0150] In one embodiment, after obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger condition, the method further includes:
[0151] Collect task execution results. When a task fails, retry the failed task according to the preset error and retry strategy.
[0152] In one embodiment, the collecting of task execution results and retrying the failed task according to a preset error and retry strategy when the task execution fails include:
[0153] Collect log information of task execution and monitor the execution status of tasks in real time;
[0154] When a task fails to execute, historical error information is confirmed according to the log information, and the failed task is retried in combination with a preset number of retries and a retry interval.
[0155] As an example, non-volatile storage media can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) as external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.
[0156] In summary, the present invention discloses a method, device, system and medium for orchestrating a business process, wherein the method includes: in response to the editing operation of the user in the visual editing interface, obtaining a flowchart of the task to be orchestrated, wherein the flowchart includes multiple task nodes; in response to the task configuration instruction, configuring the execution information of each task node in the flowchart; in response to the dependency instruction, defining the dependency and trigger conditions between each task node; obtaining the scheduling execution plan of each task node, and controlling each task node to execute the corresponding task to be orchestrated according to the scheduling execution plan with the corresponding execution information, dependency and trigger conditions. By configuring the execution information, dependency and trigger conditions of each task node and configuring the corresponding scheduling execution plan, the user can design the orchestration process based on complex business logic, so that the workflow can flexibly adapt to the changes in business needs, thereby improving the flexibility and adaptability of business process orchestration.
[0157] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, a floppy disk, a flash memory, an optical storage device, etc.
[0158] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A business process orchestration method, characterized in that: include: In response to the user's editing operation in the visual editing interface, a flowchart of the task to be arranged is obtained, wherein the flowchart includes a plurality of task nodes; In response to the task configuration instruction, configure the execution information of each task node in the flow chart; In response to the dependency instructions, define the dependency relationships and triggering conditions between the various task nodes; Obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-scheduled task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
2. The business process arrangement method according to claim 1, characterized in that: The step of configuring the execution information of each task node in the flowchart in response to the task configuration instruction includes: Displaying a configuration dialog box, and receiving a task configuration instruction input by a user in the configuration dialog box; The executor and execution parameters of each task node in the flowchart are configured according to the task configuration instruction.
3. The business process arrangement method according to claim 1, characterized in that: The response to the dependency instruction defines the dependency relationship and trigger conditions between the task nodes, specifically including: In response to the dependency instruction, the predecessor task nodes of each task node are defined, and the triggering conditions between the task nodes are configured as time triggering, event triggering and / or data triggering.
4. The business process arrangement method according to claim 1, characterized in that: After defining the dependency relationship and triggering conditions between the task nodes in response to the dependency relationship instruction, the method includes: The flowchart is parsed and converted to obtain the task nodes, dependency relationships and trigger conditions of the task nodes in the flowchart, and generate a business process document in a specified format.
5. The business process arrangement method according to claim 1, characterized in that: After obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-organized task according to the scheduling execution plan with corresponding execution information, dependency relationship and trigger condition, the method further includes: Obtain contextual data for different task executions; The task execution results are transferred between tasks and the intermediate data is shared according to the context data of different task executions.
6. The business process arrangement method according to claim 1, characterized in that: After obtaining the scheduling execution plan of each task node and controlling each task node to execute the corresponding to-be-organized task according to the scheduling execution plan with corresponding execution information, dependency relationship and trigger condition, the method further includes: Collect task execution results. When a task fails, retry the failed task according to the preset error and retry strategy.
7. The business process arrangement method according to claim 1, characterized in that: The collecting task execution results and retrying the failed task according to the preset error and retry strategy when the task execution fails include: Collect log information of task execution and monitor the execution status of tasks in real time; When a task fails to execute, historical error information is confirmed according to the log information, and the failed task is retried in combination with a preset number of retries and a retry interval.
8. A business process arrangement device, characterized in that: include: A visual editing module, used for obtaining a flowchart of a task to be arranged in response to an editing operation of a user in a visual editing interface, wherein the flowchart includes a plurality of task nodes; A task configuration module, configured to configure the execution information of each task node in the flow chart in response to a task configuration instruction; A dependency definition module, used to define the dependency relationships and trigger conditions between various task nodes in response to dependency instructions; The scheduling configuration execution module is used to obtain the scheduling execution plan of each task node, and control each task node to execute the corresponding to-be-orchestrated task according to the scheduling execution plan with corresponding execution information, dependency and trigger conditions.
9. A business process orchestration system, characterized in that: The system includes at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the business process orchestration method according to any one of claims 1 to 7.
10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by one or more processors, enable the one or more processors to execute the business process orchestration method according to any one of claims 1 to 7.
Citation Information
Cited By
Method and device for interacting with large model through visual editor, equipment and medium
CN119831006A
Multi-layer nested service visual scheduling engine and method based on graph structure
CN121300766A
