Business process processing method and device, computer equipment, readable storage medium and program product
By automatically executing node tasks and determining execution paths based on business variables, the problem of insufficient efficiency and flexibility of traditional workflow management in complex business process processing is solved, and efficient automatic execution of business instances is achieved.
Patent Information
- Application Number
- CN202411842339.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-21
AI Technical Summary
When traditional workflow management processes complex, multi-branched business processes, efficiency and flexibility are difficult to meet the needs of modern enterprises, and lacks deep automation, resulting in slow response speed.
Provide a business process processing method, by receiving business process processing requests, automatically performing node tasks according to operation instructions, and determining the execution path of business instances based on business variables, so as to achieve efficient automatic execution of business instances.
It improves the execution efficiency of business process processing, realizes efficient automatic execution of business examples, can respond to high-frequency business changes more quickly, and ensures continuous and efficient execution.
Smart Images

Figure CN119671506A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business process processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the rapid development of information technology in enterprises, enterprises have higher and higher requirements for workflow management. In order to adapt to the rapidly changing market demand and the growing business complexity, the traditional workflow management method has gradually exposed its limitations, especially when dealing with complex and multi-branch business processes, the efficiency and flexibility are difficult to meet the needs of modern enterprises.
[0003] With the popularization of open source workflow engines, flexible process definition, dynamic configuration and distributed architecture can efficiently support multi-identity, multi-role and multi-branch business process flows.
[0004] However, most companies still rely on manual configuration and human intervention in the process of use, lacking deep automation. This approach has a slow response speed when facing high-frequency business changes, and it is difficult to ensure continuous and efficient execution. Summary of the invention
[0005] Based on this, it is necessary to provide a business process processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve execution efficiency in response to the above technical problems.
[0006] In a first aspect, the present application provides a business process processing method, comprising:
[0007] Receive a business process processing request; the business process processing request carries business variables and operation instructions;
[0008] According to the operation instruction, a node task in a to-be-executed business instance corresponding to the business process processing request is executed; the to-be-executed business instance is generated after the initial business instance executes at least one node task; the initial business instance is created by a pre-configured process engine;
[0009] According to the business variables, an execution path of the business instance to be executed is obtained; the execution path is used to determine the flow direction of the business instance to be executed.
[0010] In one embodiment, executing the node task in the to-be-executed business instance corresponding to the business process processing request according to the operation instruction includes:
[0011] When the operation instruction includes a creation instruction, the initial business instance corresponding to the business process processing request is created, and the node tasks in the initial business instance are executed according to the execution instruction.
[0012] In one embodiment, the configuration process of the process engine includes:
[0013] Add the relevant dependencies of the process engine in the current running environment to obtain the process engine integration environment;
[0014] A process service class is created in the process engine integrated environment, and the interaction logic of the process engine is encapsulated by the service class to obtain the pre-configured process engine.
[0015] In one embodiment, obtaining the execution path of the to-be-executed business instance according to the business variable includes:
[0016] Acquire a business template corresponding to the business instance to be executed; the business template includes multiple branch paths;
[0017] The business variables are matched with each of the branch paths to obtain the execution path of the business instance to be executed.
[0018] In one embodiment, the service template is pre-generated; the process of generating the service template includes:
[0019] Receiving an operation user instruction; the operation user instruction includes a node type, a node condition, and a node execution order;
[0020] The service template is generated according to the node type, the node condition and the node execution order.
[0021] In one of the embodiments, the business process processing request is generated by the front end according to the business variables and the operation instructions filled in by the operating user on the business form.
[0022] In a second aspect, the present application also provides a business process processing device, including:
[0023] The receiving module is used to receive a business process processing request; the business process processing request carries business variables and operation instructions.
[0024] An execution module is used to execute a node task in a to-be-executed business instance corresponding to the business process processing request according to the operation instruction; the to-be-executed business instance is generated after the initial business instance executes at least one node task; the initial business instance is created by a pre-configured process engine.
[0025] The path determination module is used to obtain the execution path of the to-be-executed business instance according to the business variables; the execution path is used to determine the flow direction of the to-be-executed business instance.
[0026] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.
[0027] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0028] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the method in any one of the above embodiments when executed by a processor.
[0029] The above-mentioned business process processing method, apparatus, computer equipment, computer-readable storage medium and computer program product, after receiving a business process request, automatically executes the node task according to the operation instructions in the business process request, and after executing the node task, determines the execution path of the business instance according to the business variables, thereby realizing efficient automatic execution of the business instance. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 A flowchart of a business process processing method in one embodiment;
[0032] Figure 2 A schematic diagram of a service template in an embodiment;
[0033] Figure 3 A schematic diagram of setting business variables in an embodiment;
[0034] Figure 4 is a structural block diagram of a business process processing device in an embodiment;
[0035] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0037] In one embodiment, Figure 1 As shown, a business process processing method is provided. This embodiment takes the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0038] Step 102, receiving a business process processing request; the business process processing request carries business variables and operation instructions.
[0039] Among them, the business process processing request refers to the request initiated by the front-end system, which contains two main components: business variables and operation instructions. Business variables are parameters used to transfer and store data in the business process, and these variables play a key role in the process execution. Business variables may include applicant ID, adjustment amount, application reason, etc., which will affect the allocation of subsequent tasks, the flow path of the process, etc. Operation instructions are a set of instructions contained in the process request, which are used to specify the process engine to perform specific operations. Operation instructions usually include starting a process instance, completing a task, querying the process status, etc.
[0040] Optionally, the business process request can be generated by a form or interface filled out by the user on the front end, which includes business variables and operation instructions. The front end packages this data and transmits it to the back end through the network. After receiving the request, the back end parses the business variables and operation instructions and processes them according to the configured process engine.
[0041] For example, after the user completes the form on the front-end page, such as the application amount, applicant information, etc., and clicks the "Submit" button, the front-end sends the data in the form and the operation instructions to the back-end. After receiving the request, the back-end system will parse the content and start the corresponding process task.
[0042] Step 104, according to the operation instruction, execute the node task in the to-be-executed business instance corresponding to the business process processing request; the to-be-executed business instance is generated after the initial business instance executes at least one node task; the initial business instance is created by a pre-configured process engine.
[0043] In this embodiment, the business instance to be executed refers to a process instance that is still in a pending state after the initial business instance executes at least one node task. The initial business instance is created by the process engine when it receives a business process processing request and is usually the starting point of the business process. The execution process of each business process instance is usually divided into multiple nodes, each node corresponding to an operating user and a task node. When the node flow of the business instance to be executed is transferred to the current operating user, the current operating user needs to input business variables and operating instructions from the front end to instruct the back end to complete the current task node.
[0044] Optionally, when the node of the business instance to be executed is transferred to the current operating user, the current operating user needs to input relevant business variables and provide operation instructions through the front-end interface to instruct the back-end system to complete the current task node. Business variables may include approval amount, applicant information, task description, etc., and operation instructions instruct the back-end system to take actions, such as completing the task, transferring the task, or starting a new task.
[0045] Optionally, since the operating user may need to process node tasks in multiple pending business instances, the front-end system will display the task nodes from different pending business instances on the front-end interface. For example, the user may need to process node 1 from process A and node 2 from process B. On the front-end interface, the user can see the detailed information of each task and select a specific process, such as clicking process 1 to enter the task processing page, fill in the relevant business variables and send the operation instructions. At this time, the business variables and operation instructions filled in by the user will be submitted to the back-end system through the front-end form, and the back-end system will complete the task of the current node according to the received operation instructions and business variables.
[0046] Optionally, the operation instruction can include different types of commands, such as starting a new process, completing the current task, transferring the task, or marking the task as completed. For example, in an approval process, after the operating user completes the approval task, he can choose to "pass" or "reject" the current task. The backend system will transfer the process to the next node or return to the modification node according to the instruction. In addition, the operation instruction can also instruct to transfer the task to other users, or pause the process, etc.
[0047] Optionally, the specific process of completing the node task can be implemented by calling the task interface provided by the process engine. The process engine is the core component for executing business processes, responsible for managing functions such as process definition, process instances, task allocation, node flow and task execution. The back-end system will call the corresponding process engine interface according to the type of operation instruction to execute the corresponding node task. For example, if the operation instruction is "complete the current task", the process engine will mark the task of the current node as completed, update the process status and transfer the business instance to the next node. If it is "transfer task", the process engine will assign the task to other users.
[0048] Optionally, the process engine can be an open source process engine, such as Flowable, Activiti, etc. These engines provide highly configurable and extensible functions and can support various types of business process management and task flow. With the support of these process engines, the system can flexibly configure business processes and interact with other systems through integrated interfaces to achieve efficient business process management and task execution.
[0049] It should be noted that Flowable is used in this embodiment because Flowable, as an open source process engine, is highly configurable and flexible and can meet the needs of complex business processes.
[0050] Step 106, obtaining the execution path of the to-be-executed business instance according to the business variables; the execution path is used to determine the flow direction of the to-be-executed business instance.
[0051] After completing the current node, the business instance to be executed will flow to the next node. Since there may be multiple branch paths to the next node, for example, the next node is an approval node, and the approval node may have multiple approvers, such as supervisors or managers for approval. Therefore, based on the business variables, the system will determine the execution path of the business instance to be executed. Business variables play a key role in this process because they include key information required for decision-making, such as the authority of the approver, the urgency of the business, and the priority. This information directly affects the flow direction of the business instance to be executed. For example, in an approval process, if the business variable specifies the authority of the supervisor, the approval task will flow to the supervisor, otherwise it may flow to the manager.
[0052] Optionally, the system will further determine the execution path of the business instance to be executed based on the conditional gateway pre-set in the business instance to be executed. The conditional gateway is a control structure in the business process that allows the process to determine the execution path based on specific conditions. For example, an approval node may only flow to a senior manager for approval when the approval amount exceeds a certain threshold, otherwise it will flow directly to the supervisor for approval. The conditional gateway can determine the value of the business variable based on the preset business rules, and determine the next execution path based on the judgment result. Since the business instance to be executed is generated based on the business template, and the business template includes the complete business process definition, node type, node condition, branch path and other contents, the business instance to be executed will automatically select the most appropriate flow path based on these settings.
[0053] Exemplarily, in actual operation, the generation process of a business template includes defining the role and task of each node, and setting the relationship and conditions between different nodes. In the template, the branch path between nodes is usually controlled by a conditional gateway, which determines the flow direction of the next node based on the specific data in the business variable. For example, if an approval node sets a conditional gateway based on the amount, it will flow to the supervisor when the amount is less than a certain value, and to the manager when the amount is greater than this value, then the decision is based on the amount information provided in the business variable. The execution path refers to the path in the business process that determines which node the current business instance will flow to based on the different values of the business variable. Each business process may have multiple execution paths, and the selection of the execution path is usually determined by the value in the business variable. For example, if the application amount exceeds a certain threshold, the business process may need to flow to the "Advanced Approval" node, while if the amount is small, it may flow directly to the "Ordinary Approval" node.
[0054] Optionally, in actual applications, the execution path is usually implemented through the conditional judgment and branch control functions provided by the process engine. The system will select the most appropriate path based on the business variables and transfer the business process to the next node.
[0055] For example, when a user submits a business form containing an amount field, the system will determine whether the current process is to follow the general approval path or the advanced approval path based on the value of the field. If the amount exceeds the preset limit, the system will select the advanced approval path and transfer the business process to the supervisor approval node. If the amount is small, the process will be directly transferred to the manager approval node to reduce the approval level.
[0056] In the above-mentioned business process processing method, after receiving the business process request, the node task is automatically executed according to the operation instructions in the business process request, and after executing the node task, the execution path of the business instance is determined according to the business variables, thereby realizing efficient automatic execution of the business instance.
[0057] In one embodiment, the operation instruction includes a creation instruction and an execution instruction; according to the operation instruction, the node task in the to-be-executed business instance corresponding to the business process processing request is executed, including: when the operation instruction includes a creation instruction, an initial business instance corresponding to the business process processing request is created, and the node task in the initial business instance is executed according to the execution instruction.
[0058] In this embodiment, the operation instructions are divided into creation instructions and execution instructions. The creation instruction is used to start a new business process instance, while the execution instruction is used to execute a specific task node in an existing business process instance. The creation instruction is used to activate a new business process and start a new process instance; the execution instruction is used to trigger the execution of a specific task node in an existing business process.
[0059] When receiving a business process request submitted by a user, if the operation instruction includes a creation instruction, the system will create a new initial business instance based on the predefined business process template. At this time, the initial business instance has not started to execute any tasks, it is just a process instance to be processed, and its subsequent node tasks will depend on the flow rules of the business process and the user's subsequent operations.
[0060] After the initial business instance is created, the system will execute the first node task in the initial business instance according to the execution instruction in the operation instruction.
[0061] In one embodiment, the configuration process of the above-mentioned process engine includes: adding relevant dependencies of the process engine in the current running environment to obtain a process engine integration environment; creating a process service class in the process engine integration environment, encapsulating the interaction logic of the process engine through the service class, and obtaining a pre-configured process engine.
[0062] The process engine integration environment refers to the technical infrastructure used to support business process management built in the current operating environment by adding process engine related dependencies (such as Flowable).
[0063] Among them, the process service class refers to a class created in the business service layer specifically for interacting with the process engine, which encapsulates common operations such as starting a process instance, completing a task, and querying the process status.
[0064] Optionally, in the process of configuring the process engine, you first need to introduce Flowable related dependencies in the project and build the process engine integration environment. Then, create a process service class in the business service layer, and use this class to encapsulate the interaction logic with the process engine to achieve automated management of business processes. Data flows through the steps of introducing dependencies, configuring the environment, creating service classes, and encapsulating logic, and finally forms a pre-configured process management module to support efficient execution and dynamic adjustment of business processes.
[0065] Exemplarily, by adding Flowable related dependencies in the project's build configuration file (such as Maven's pom.xml), the process engine is integrated into the application to build a technical environment that supports business process management.
[0066] In this way, by adding Flowable related dependencies in the current running environment and creating and encapsulating process service classes in the business service layer, a pre-configured process engine module is built. This module is highly flexible and scalable, and can support complex business scenarios such as multi-dimensional, multi-identity, and multi-branch. With the help of the custom configuration layer, the workflow can dynamically adjust the process flow path according to business needs, improve the speed of business adaptation, reduce the cost of system maintenance, and realize the efficiency and automation of business process management.
[0067] In one embodiment, the above-mentioned obtaining the execution path of the business instance to be executed based on the business variables includes: obtaining a business template related to the business instance to be executed; the business template includes multiple branch paths; matching the business variables with each branch path to obtain the execution path of the business instance to be executed.
[0068] During the execution of a business process, when the task of the current node is completed, it is necessary to determine the flow direction of the business instance to be executed, that is, to determine its next processing node. For example, depending on different approval conditions, the business instance to be executed may flow to nodes such as supervisor approval or manager approval. In this process, it is first necessary to obtain the business template associated with the business instance to be executed from the database or process engine. The business template predefines multiple possible branch paths, each of which represents a different processing flow. Specifically, the business template includes multiple branch paths, and the selection between these paths is determined based on different business variables.
[0069] Continuing with the above example, branch path 1 may transfer the business process to the supervisor approval node, while branch path 2 may transfer the business process to the manager approval node. For the current business instance to be executed, the system will determine which branch path the instance should flow to based on the specific value of the business variable. For example, if the business variable is "the amount is greater than 100,000 yuan", the business instance will match branch path 1 and flow to the supervisor approval node; if the business variable is "the amount is less than or equal to 100,000 yuan", it will match branch path 2 and flow to the manager approval node.
[0070] In this way, the execution path of the business instance to be executed can be dynamically determined according to the value of the current business variable. The conditional judgment of each branch path is completed by matching the business variable with the pre-defined business template, thus ensuring the automatic flow and accurate execution of the business process.
[0071] In one embodiment, the above-mentioned business template is pre-generated; the generation process of the business template includes: receiving operating user instructions; the operating user instructions include node type, node condition and node execution order; generating the business template according to the node type, node condition and node execution order.
[0072] The generation of business templates is usually completed by the collaboration of the front-end and the back-end. In actual operation, the front-end will display a visual business template design page, through which the operating user can build and customize the business process. The front-end page usually includes multiple design areas and functional components. The operating user can build the business process by dragging the node type, setting node conditions, adjusting the node execution order, etc. On the front-end page, the operating user can define the type of each node, such as approval node, task node, etc., and use connecting lines to determine the order and dependency between nodes, thereby forming a complete workflow.
[0073] For example, the operating user drags the "Supervisor Approval" node and the "Manager Approval" node on the front-end page and sets the flow order of the nodes through the connecting lines. When the operating user completes the node setting on the front-end, the front-end page will pass these node types, node conditions, and node execution order information to the back-end through the API. After receiving this information, the back-end will generate a business template based on the node type, node condition, and node execution order entered by the operating user.
[0074] Optionally, during the specific implementation process, the conditions of the nodes may change according to business needs. For example, a node may set a condition requiring that the node will only be executed when a specific business variable meets certain conditions. Exemplarily, node A can be a "supervisor approval" node, which can be approved by a supervisor or manager, and the specific roles that perform the approval are set by the operating user on the front end. When setting conditions, the operating user can select different approval roles through the front-end interface and set specific conditional logic for each node, such as when the amount is greater than 100,000 yuan, it will be approved by the supervisor, and when the amount is less than 100,000 yuan, it will be approved by the manager.
[0075] In addition, the front-end interface may also include functions such as setting priorities and urgency to help operational users further customize the execution order of business processes. For example, some nodes may be set to high priority, requiring these nodes to be executed before other nodes. Operational users can select different priorities on the front-end interface and pass these settings to the back-end, which adjusts the execution order of business templates based on information such as node priority sent from the front-end.
[0076] Exemplary, combined Figure 2 As shown, Figure 2 The figure is a schematic diagram of a business template in an embodiment. The front-end interface provides visual operation options. Users can connect various nodes according to business logic through simple drag-and-drop operations to build a complete business process template. When creating a process template, users can also enter business variables such as the node's approver, task priority, processing time, etc. according to the control panel on the right side of the front end. In this way, users can not only design the nodes and flow paths of the process, but also predefine the parameters of the business process during the design process, providing more flexibility for the execution of the process.
[0077] Combination Figure 3 , Figure 3 FIG. 1 is a schematic diagram of setting business variables in an embodiment. Figure 3 In the , the user can see an interface for configuring business variables, which lists multiple configurable business variable items. Each business variable item can be customized by the user.
[0078] Figure 3 Each input box and control item in the can be bound to the process template designed in the front end in real time. Figure 2 When an approval node is selected in Figure 3 The business variable setting interface in will automatically display the variable configuration items related to the node. Users can enter parameters such as approver and approval time. These business variables will be passed to the corresponding node tasks when the backend executes the process to ensure that the process can be executed as expected. Figure 2 and Figure 3 With the visual design in, users can create and configure business processes more intuitively and conveniently, ensuring that each node and parameter of the process meets actual needs.
[0079] In this embodiment, in this way, the operating user can flexibly configure and customize the workflow on the front-end page according to his own needs and business scenarios, and the back-end system will dynamically generate a matching business template based on the operating user's input.
[0080] In one embodiment, the business process processing request is generated by the front end according to the business variables and operation instructions filled in by the operating user on the business form.
[0081] Among them, the business form refers to the form submitted by the operating user through the front-end interface, which contains the information required for a specific business process. This form usually includes multiple fields, which are used to collect variables and instructions related to the business process, such as task description, approver, time limit, amount, etc. The business form not only contains the basic data that the operating user needs to provide, but also may include some decision-making information, such as node conditions, approval order, etc., which will affect the execution of subsequent processes.
[0082] Optionally, the business form includes different types of input boxes, drop-down menus, date selectors and other controls, through which the operating user fills in specific business data. For example, a common approval process form may include the "approval amount" field, the "approver" field, the "urgency" field, etc. The information filled in these fields will directly affect the flow and execution of subsequent workflows.
[0083] For example, when the operating user fills in the business form on the front end and submits it, the back end will receive a business process request containing these business variables and operating instructions. The business process request carries all the field data filled in by the operating user. The back end system will determine the execution path of the business instance to be executed based on this data and the existing business template. For example, the back end system can determine whether a high-level approval is required based on the "approval amount" filled in by the operating user, or assign the task to the corresponding approval node based on the "approver" field.
[0084] Optionally, after submitting the business form on the front end, the back end will not only identify the corresponding business process instance based on the business variables, but also trigger the execution of the corresponding node tasks based on the operation instructions. These operation instructions may include executing tasks, changing the approval process, or starting other process nodes. The back end will match and transfer the corresponding business instance through the process engine based on the received request data, and continue to process the subsequent steps of the business instance according to the pre-set process rules and conditions.
[0085] For example, in an approval process, if the "Urgency" field in the business form is displayed as "High", the back-end system may automatically process the approval task in advance to ensure a fast flow of the process; if the "Approval Amount" exceeds a certain threshold, the process may enter a higher-level approval node. In addition, the back-end can also determine whether to initiate a notification, generate a report, or perform other automated operations based on the operation instructions.
[0086] In this embodiment, through the close cooperation between the front-end and the back-end, the business process can be accurately processed at the moment the user submits the form, with a high degree of automation, and the business flow efficiency is also significantly improved.
[0087] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0088] Based on the same inventive concept, the embodiment of the present application also provides a business process processing device for implementing the business process processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more business process processing device embodiments provided below can refer to the limitations on the business process processing method above, and will not be repeated here.
[0089] In an exemplary embodiment, Figure 4 As shown, a business process processing device is provided, including: a receiving module, a query module, an execution module and a path determination module, wherein:
[0090] The receiving module is used to receive a business process processing request; the business process processing request carries business variables and operation instructions.
[0091] An execution module is used to execute a node task in a to-be-executed business instance corresponding to the business process processing request according to the operation instruction; the to-be-executed business instance is generated after the initial business instance executes at least one node task; the initial business instance is created by a pre-configured process engine.
[0092] The path determination module is used to obtain the execution path of the business instance to be executed according to the business variables; the execution path is used to determine the flow direction of the business instance to be executed.
[0093] In one embodiment, the execution module includes:
[0094] A new creation unit is used to create the initial business instance corresponding to the business process processing request when the operation instruction includes a creation instruction, and execute the node task in the initial business instance according to the execution instruction.
[0095] In one embodiment, the above device further includes an engine building module, and the engine building module includes:
[0096] The environment building unit is used to add the relevant dependencies of the process engine in the current running environment to obtain the process engine integration environment.
[0097] The encapsulation unit is used to create a process service class in the process engine integration environment, and encapsulate the interaction logic of the process engine through the service class to obtain a pre-configured process engine.
[0098] In one embodiment, the path determination module includes:
[0099] The template acquisition unit is used to acquire a business template of a business instance to be executed; the business template includes multiple branch paths.
[0100] The matching unit is used to match the business variables with each branch path to obtain the execution path of the business instance to be executed.
[0101] In one embodiment, the path determination module further includes a template building unit, and the template building unit includes:
[0102] The instruction receiving subunit is used to receive operation user instructions; the operation user instructions include node type, node condition and node execution order.
[0103] Build subunits to generate business templates based on node types, node conditions, and node execution order.
[0104] In one embodiment, the business process processing request in the receiving module is generated by the front end according to the business variables and operation instructions filled in by the operating user on the business form.
[0105] Each module in the above-mentioned business process processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0106] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business variables. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business process processing method is implemented.
[0107] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0108] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the method in any one of the above embodiments when executing the computer program.
[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0110] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the method in any one of the above embodiments when executed by a processor.
[0111] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0112] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0113] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A business process processing method, characterized in that: The method comprises: Receive a business process processing request; the business process processing request carries business variables and operation instructions; According to the operation instruction, a node task in a to-be-executed business instance corresponding to the business process processing request is executed; the to-be-executed business instance is generated after the initial business instance executes at least one node task; the initial business instance is created by a pre-configured process engine; According to the business variables, an execution path of the business instance to be executed is obtained; the execution path is used to determine the flow direction of the business instance to be executed.
2. The method according to claim 1, characterized in that The operation instruction includes a creation instruction and an execution instruction; and executing the node task in the to-be-executed business instance corresponding to the business process processing request according to the operation instruction includes: When the operation instruction includes a creation instruction, the initial business instance corresponding to the business process processing request is created, and the node task in the initial business instance is executed according to the execution instruction.
3. The method according to claim 1, characterized in that: The configuration process of the process engine includes: Add the relevant dependencies of the process engine in the current running environment to obtain the process engine integration environment; A process service class is created in the process engine integrated environment, and the interaction logic of the process engine is encapsulated by the service class to obtain the pre-configured process engine.
4. The method according to claim 1, characterized in that The obtaining, according to the business variable, an execution path of the business instance to be executed includes: Acquire a business template corresponding to the business instance to be executed; the business template includes multiple branch paths; The business variables are matched with each of the branch paths to obtain the execution path of the business instance to be executed.
5. The method according to claim 4, characterized in that The service template is pre-generated; the process of generating the service template includes: Receiving an operation user instruction; the operation user instruction includes a node type, a node condition, and a node execution order; The service template is generated according to the node type, the node condition and the node execution order.
6. The method according to claim 1, characterized in that The business process processing request is generated by the front end according to the business variables and the operation instructions filled in by the operating user on the business form.
7. A business process processing device, characterized in that: The device comprises: A receiving module, used to receive a business process processing request; the business process processing request carries business variables and operation instructions; An execution module, configured to execute, according to the operation instruction, a node task in a to-be-executed business instance corresponding to the business process processing request; the to-be-executed business instance is generated after an initial business instance executes at least one node task; the initial business instance is created by a pre-configured process engine; The path determination module is used to obtain the execution path of the to-be-executed business instance according to the business variables; the execution path is used to determine the flow direction of the to-be-executed business instance.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Smart medical process management method and system based on cloud computing, and cloud platform
CN119889624A
Intelligent Medical Process Management Method, System and Cloud Platform Based on Cloud Computing
CN119889624B
Business process construction method and system, electronic equipment and storage medium
CN120610689A
A business process construction method, system, electronic device and storage medium
CN120610689B
Task dynamic execution method and device, electronic equipment and storage medium
CN120952712A