Data query method and device based on process engine

By pre-stored process templates and generated process instances and task instances in the cache, and querying data objects with token ID, the problem of frequent database IO reading and writing in the process engine is solved, and the efficiency and performance of process business processing is improved.

CN120386795APending Publication Date: 2025-07-29INNER MONGOLIA YILI IND GROUP CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410116692.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-26
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

The frequent database IO read and write operations of existing process engines during data query increases server resource pressure and reduces the efficiency of process business processing.

Method used

By pre-storing process templates and generated process instances and task instances in the cache, and using token binding mechanisms, direct query of the database is reduced, and data objects are queried using token ID until the task process is completed.

Benefits of technology

It reduces the complexity of data query, improves the efficiency of process business processing, reduces the frequency of database IO reading and writing, and improves performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386795A_ABST
    Figure CN120386795A_ABST
Patent Text Reader

Abstract

The invention discloses a data query method and device based on a process engine, and the method comprises the steps: receiving a task submission request of a user, and calling a preset process template according to the task submission request; according to the BPMN graph and the task submission data, a process instance and a task instance of the current task node are generated; the process instance comprises a process instance ID; creating a token for the current task node, binding the flow template, the flow instance and the task instance of the current task node with the token of the current task node, and storing the token of the current task node into a cache; when the current task node receives a task query request fed back by the rear end, querying the token of the current task node from the cache according to the flow instance ID of the current task node; and querying the corresponding data object from the cache according to the token ID of the current task node. According to the invention, the query complexity can be reduced, and the flow business processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly to a data query method and device based on a process engine. Background Art

[0002] This section aims to provide background or context for the embodiments of the present invention described in the claims. The description herein is not admitted to be prior art merely because it is included in this section.

[0003] Currently, all enterprises are facing digital transformation. Processization is one of the three key factors in digital transformation. Each enterprise realizes business automation in the form of processes to achieve the purpose of cost reduction and efficiency improvement. The performance of the process engine determines the upper limit of business automation efficiency. In the existing methods, when a user submits a task operation request, the backend service can only query relevant data objects from the database, and there will also be multiple operations of adding or updating data in the middle. Frequent database I / O reads and writes greatly increase the pressure on resources such as the CPU and memory of the database server, and also reduce the efficiency of process business processing. Summary of the Invention

[0004] Embodiments of the present invention provide a data query method based on a process engine to reduce the complexity of data object query and improve the efficiency of process business processing. The method includes:

[0005] Receiving a task submission request from a user, and calling a preset process template according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram;

[0006] Generating a process instance and a task instance of the current task node according to the BPMN diagram and the task submission data, and storing the process instance and the task instance in the cache; the process instance includes a process instance ID;

[0007] Creating a token for the current task node, binding the process template, the process instance and the task instance of the current task node with the token of the current task node, and storing the token of the current task node in the cache; the token includes a token ID;

[0008] When the current task node receives a task query request fed back by the backend, querying the token of the current task node from the cache according to the process instance ID of the current task node; querying the corresponding data object from the cache according to the token ID of the current task node; the data object includes a process template, a process instance and a task instance;

[0009] After completing the data object query of the current task node, repeat the following steps until all task nodes of the task process are executed:

[0010] Parse the BPMN diagram based on the data object queried in the previous task node, generate the process instance and task instance of the next task node, and store them in the cache; create a token for the next task node, bind the process template, the process instance and task instance of the next task node, and the token of the next task node, and store the token of the next task node in the cache; when receiving the task query request forwarded by the previous task node, query the token of the next task node from the cache according to the process instance ID of the next task node; query the corresponding data object from the cache according to the token ID of the next task node.

[0011] An embodiment of the present invention further provides a data query device based on a process engine, which is used to reduce the complexity of data object query and improve the efficiency of process service processing. The device includes:

[0012] A process template invocation module, configured to receive a task submission request from a user and invoke a preset process template according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram;

[0013] A current task node process instance and task instance generation module, configured to generate a process instance and a task instance of the current task node according to the BPMN diagram and the task submission data, and store the process instance and the task instance in the cache; the process instance includes a process instance ID;

[0014] A token binding module, configured to create a token for the current task node, bind the process template, the process instance and task instance of the current task node, and the token of the current task node, and store the token of the current task node in the cache; the token includes a token ID;

[0015] A first data object query module, configured to, when the current task node receives a task query request fed back by the backend, query the token of the current task node from the cache according to the process instance ID of the current task node; query the corresponding data object from the cache according to the token ID of the current task node; the data object includes a process template, a process instance and a task instance;

[0016] A second data object query module, configured to, after completing the data object query of the current task node, repeat the following steps until all task nodes of the task process are executed:

[0017] Parse the BPMN diagram based on the data object queried in the previous task node, generate the process instance and task instance of the next task node, and store them in the cache; create a token for the next task node, bind the process template, the process instance and task instance of the next task node, and the token of the next task node, and store the token of the next task node in the cache; when receiving the task query request forwarded by the previous task node, query the token of the next task node from the cache according to the process instance ID of the next task node; query the corresponding data object from the cache according to the token ID of the next task node.

[0018] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-mentioned data query method based on a process engine is implemented.

[0019] An embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above-mentioned data query method based on a process engine is implemented. [[ID=Y]]

[0020] An embodiment of the present invention further provides a computer program product. The computer program product includes a computer program. When the computer program is executed by a processor, the above-mentioned data query method based on a process engine is implemented.

[0021] In an embodiment of the present invention, by receiving a task submission request from a user, a preset process template is called according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in a cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram; according to the BPMN diagram and the task submission data, a process instance and a task instance of the current task node are generated, and the process instance and the task instance are stored in the cache; the process instance includes a process instance ID; a token is created for the current task node, and the process template, the process instance and the task instance of the current task node are bound to the token of the current task node, and the token of the current task node is stored in the cache; the token includes a token ID; when the current task node receives a task query request fed back by the backend, the token of the current task node is queried from the cache according to the process instance ID of the current task node; according to the token ID of the current task node, a corresponding data object is queried from the cache; the data object includes a process template, a process instance and a task instance; after the data object query of the current task node is completed, the following steps are repeatedly executed until all task nodes of the task process are executed: parsing the BPMN diagram according to the data object queried by the previous task node, generating a process instance and a task instance of the next task node, and storing them in the cache; creating a token for the next task node, binding the process template, the process instance and the task instance of the next task node to the token of the next task node, and storing the token of the next task node in the cache; when receiving a task query request forwarded by the previous task node, querying the token of the next task node from the cache according to the process instance ID of the next task node; according to the token ID of the next task node, querying a corresponding data object from the cache. In the above process, in the embodiment of the present invention, by binding the process instance, the task instance and the process template of each task node to the token of the corresponding task node, only the token ID needs to be used for data query, and the commonly used data objects of the task process can be conveniently queried, thereby reducing the complexity of the query and improving the efficiency of the process service processing. Brief Description of the Drawings

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings. In the drawings:

[0023] Figure 1 It is a flowchart of a data query method based on a process engine in an embodiment of the present invention;

[0024] Figure 2 It is a flowchart of task submission in an embodiment of the present invention;

[0025] Figure 3 Schematic diagram of the token life cycle in an embodiment of the present invention;

[0026] Figure 4 Flowchart of the approval pending task in an embodiment of the present invention;

[0027] Figure 5 Flowchart of task archiving in an embodiment of the present invention;

[0028] Figure 6 Schematic diagram of the data query device based on the process engine in an embodiment of the present invention;

[0029] Figure 7 Schematic diagram of the specific data query device based on the process engine in an embodiment of the present invention. Detailed implementation manners

[0030] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer and more understandable, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Herein, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but not to limit the present invention.

[0031] First, several technical terms are explained:

[0032] 1. processDef: Process definition, including the BPMN flowchart, which refers to the process template designed by the designer. According to the process template, a process instance is created;

[0033] 2. processInst: Process instance, which is the actual process object initiated by the user submitting a work order and is the true instantiation object of the process definition;

[0034] 3. currentTask: The current task node to be processed in the process instance;

[0035] 4. Task: Task instance. After the process instance is started, task instances Task will be created according to the nodes Node in the BPMN diagram;

[0036] 5. Process engine: The process engine is a process system that, based on the BPMN flowchart, converts complex offline business processing into online and automated processing;

[0037] 6. Cache: Cache service. Common types include: redis, ES, and mongodb, etc.

[0038] Based on the understanding of the relevant technical terms, the embodiments of the present invention are described in detail. Figure 1 Flowchart of the data query method based on the process engine in an embodiment of the present invention. The method includes:

[0039] Step 101: Receive the user's task submission request and call a preset process template according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram.

[0040] Step 102: Generate a process instance and a task instance for the current task node according to the BPMN diagram and the task submission data, and store the process instance and the task instance in the cache; the process instance includes a process instance ID.

[0041] Step 103: Create a token for the current task node, bind the process template, the process instance and the task instance of the current task node to the token of the current task node, and store the token of the current task node in the cache; the token includes a token ID.

[0042] Step 104: When the current task node receives a task query request fed back by the backend, query the token of the current task node from the cache according to the process instance ID of the current task node; query the corresponding data object from the cache according to the token ID of the current task node; the data object includes a process template, a process instance and a task instance.

[0043] Step 105: After completing the query of the data object of the current task node, repeat the following steps until all task nodes of the task process are executed:

[0044] Parse the BPMN diagram according to the data object queried by the previous task node, generate a process instance and a task instance for the next task node, and store them in the cache; create a token for the next task node, bind the process template, the process instance and the task instance of the next task node to the token of the next task node, and store the token of the next task node in the cache; when receiving a task query request forwarded by the previous task node, query the token of the next task node from the cache according to the process instance ID of the next task node; query the corresponding data object from the cache according to the token ID of the next task node.

[0045] The following elaborates each step in detail.

[0046] In Step 101, receive the user's task submission request and call a preset process template according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram.

[0047] In a specific embodiment, such as Figure 2As shown in the figure, where processDef is the process definition; processInst is the process instance. When a user submits an application, a specific process instance is generated from the process definition; Token is the token; Task is a task node in the process instance; Node is the node definition in the process definition; currentTask is the currently being processed task; Complete indicates that the task has passed; NextTask is the next-level task to be carried out.

[0048] After the user sends a task submission request, the backend controller controller receives the user's submission request, calls the business layer service service, first queries the process definition processDef corresponding to the process from the database, and by parsing the BPMN diagram (Business Process Modeling Notation) in processDef, together with the data submitted by the user, creates data objects such as the process instance processInst, the task task, and the next task nextTask.

[0049] In step 102, according to the BPMN diagram and the task submission data, a process instance and a task instance of the current task node are generated, and the process instance and the task instance are stored in the cache; the process instance includes a process instance ID.

[0050] In a specific embodiment, different from the conventional solution, service does not directly store the data object in the database, but first saves it in the Cache cache, and after all business processing is completed, the latest data of processInst and task is uniformly saved to the database. Thus, the purpose of reducing the frequency of database I / O reads and writes and improving performance is achieved. Among them, during the process of processing the task submission, service will continuously update the latest data of the objects such as processInst, processDef, and currentTask bound to the token, so as to facilitate subsequent query of the latest data of these objects.

[0051] In step 103, a token is created for the current task node, the process template, the process instance and the task instance of the current task node are bound to the token of the current task node, and the token of the current task node is stored in the cache; the token includes a token ID.

[0052] In a specific embodiment, such as Figure 3As shown, the token is bound to the process instance (processInst), process definition (processDef), and current task (currentTask) in a one-to-one relationship. When the process instance (processInst) is created, the token is created and bound; when the process instance (processInst) is archived at the end, the token is destroyed and the Cache cache resources are released. During the processing of each task node in the process instance, the token is locked when entering the node and released when exiting the node. During the node processing, the latest data of the objects such as processInst, processDef, and currentTask bound to the token are updated in real time, so that the latest data of these objects can be conveniently queried through the tokenId later, achieving the purpose of reducing the frequency of database I / O reads and writes and improving performance.

[0053] In step 104, when the current task node receives a task query request feedback from the backend, the token of the current task node is queried from the cache according to the process instance ID of the current task node; according to the token ID of the current task node, the corresponding data object is queried from the cache; the data object includes the process template, process instance, and task instance.

[0054] In step 105, after the data object query of the current task node is completed, the following steps are repeatedly executed until all task nodes of the task process are executed:

[0055] Parse the BPMN diagram according to the data object queried from the previous task node, generate the process instance and task instance of the next task node, and store them in the cache; create a token for the next task node, bind the process template, the process instance and task instance of the next task node, and the token of the next task node, and store the token of the next task node in the cache; when receiving the task query request forwarded by the previous task node, query the token of the next task node from the cache according to the process instance ID of the next task node; according to the token ID of the next task node, query the corresponding data object from the cache.

[0056] In a specific embodiment, as Figure 4 shown, the token bound to the process is found from the Cache cache. Through the tokenID, the data objects such as the process instance (processInst), process definition (processdef), and current task node (currentTask) can be directly found from the Cache cache. With this data, the service can complete operations such as parsing the BPMN diagram, processing the current task node (task), and the next-level task (nextTask).

[0057] In one embodiment, after all task nodes in the task process are executed, it includes:

[0058] According to the archiving request sent by the user, cancel the tokens of all task nodes in the task process.

[0059] In a specific embodiment, as Figure 5 shown, when the backend controller controller receives the user's archiving request, it calls the service to query the information of processInst, processDef, and the current task currentTask from the Cache cache through the token. Based on this information, the service sequentially completes parsing the BPMN diagram, closing the current task node task, and canceling the token, etc. After all business processes are completed, the latest data of processInst and task are uniformly submitted to the database, and the database updates the archived task: status complete, and then updates the process instance processInst: status complete.

[0060] In one embodiment, it further includes:

[0061] During the execution of the task process, update the data objects of each task node in real time according to the user's request and store them in the cache.

[0062] In a specific embodiment, during the process of the service handling task submission, it continuously updates the latest data of objects such as processInst, processDef, and currentTask bound to the token, so as to facilitate subsequent querying of the latest data of these objects.

[0063] In one embodiment, it further includes:

[0064] After all task nodes in the task process are executed, store the latest data objects of each task node in the cache into the database.

[0065] In an embodiment of the present invention, a data query device based on a process engine is also provided, as described in the following embodiments. Since the principle of the device for solving problems is similar to that of the data query method based on the process engine, the implementation of the device can refer to the implementation of the data query method based on the process engine, and the repeated parts will not be described again. As Figure 6 shown, the device includes:

[0066] A process template calling module 601, configured to receive a task submission request from a user, and call a preset process template according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram;

[0067] The current task node process instance and task instance generation module 602 is used to generate the process instance and task instance of the current task node according to the BPMN diagram and task submission data, and store the process instance and task instance in the cache; the process instance includes a process instance ID;

[0068] The token binding module 603 is used to create a token for the current task node, bind the process template, the process instance and task instance of the current task node to the token of the current task node, and store the token of the current task node in the cache; the token includes a token ID;

[0069] The first data object query module 604 is used to, when the current task node receives a task query request fed back by the backend, query the token of the current task node from the cache according to the process instance ID of the current task node; query the corresponding data object from the cache according to the token ID of the current task node; the data object includes a process template, a process instance and a task instance;

[0070] The second data object query module 605 is used to, after the data object query of the current task node is completed, repeat the following steps until all task nodes of the task process are executed:

[0071] Parse the BPMN diagram according to the data object queried by the previous task node, generate the process instance and task instance of the next task node, and store them in the cache; create a token for the next task node, bind the process template, the process instance and task instance of the next task node to the token of the next task node, and store the token of the next task node in the cache; when receiving a task query request forwarded by the previous task node, query the token of the next task node from the cache according to the process instance ID of the next task node; query the corresponding data object from the cache according to the token ID of the next task node.

[0072] As Figure 7 shown, in an embodiment, it further includes a token cancellation module 701, which is specifically used for:

[0073] After all task nodes of the task process are executed, cancel the tokens of all task nodes in the task process according to the archiving request sent by the user.

[0074] In an embodiment, it further includes a database update module, which is specifically used for:

[0075] During the execution of the task process, update the data objects of each task node in real time according to the user request and store them in the cache.

[0076] In an embodiment, it further includes a database storage module, which is specifically used for:

[0077] After all task nodes in the task process are executed, the latest data objects of each task node in the cache are stored in the database.

[0078] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above-mentioned data query method based on the process engine is implemented.

[0079] An embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned data query method based on the process engine is implemented.

[0080] An embodiment of the present invention further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the above-mentioned data query method based on the process engine is implemented.

[0081] In an embodiment of the present invention, by receiving a task submission request from a user, a preset process template is called according to the task submission request; the task submission request carries task submission data; the process template is pre-stored in a cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram; according to the BPMN diagram and the task submission data, a process instance and a task instance of the current task node are generated, and the process instance and the task instance are stored in the cache; the process instance includes a process instance ID; a token is created for the current task node, the process template, the process instance and the task instance of the current task node are bound to the token of the current task node, and the token of the current task node is stored in the cache; the token includes a token ID; when the current task node receives a task query request fed back by the backend, the token of the current task node is queried from the cache according to the process instance ID of the current task node; according to the token ID of the current task node, a corresponding data object is queried from the cache; the data object includes a process template, a process instance and a task instance; after the data object query of the current task node is completed, the following steps are repeatedly executed until all task nodes of the task process are executed: parsing the BPMN diagram according to the data object queried from the previous task node, generating a process instance and a task instance of the next task node, and storing them in the cache; creating a token for the next task node, binding the process template, the process instance and the task instance of the next task node to the token of the next task node, and storing the token of the next task node in the cache; when receiving a task query request forwarded by the previous task node, querying the token of the next task node from the cache according to the process instance ID of the next task node; according to the token ID of the next task node, querying a corresponding data object from the cache. In the above process, in an embodiment of the present invention, by binding the process instance, the task instance and the process template of each task node to the token of the corresponding task node, only the token ID needs to be used for data query, and the commonly used data objects of the task process can be conveniently queried, thereby reducing the complexity of the query and improving the efficiency of process business processing.

[0082] Those skilled in the art should understand that the embodiments of the present invention may be provided as a method, a system, or a computer program product. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0083] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices produce a means for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0084] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction means that implements the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0085] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one flow Figure 1 one flow or multiple flows and / or blocks Figure 1 or multiple blocks.

[0086] The specific embodiments described above further elaborate on the purpose, technical solutions, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A data query method based on a process engine, characterized in that, It includes: Receiving a task submission request from a user and invoking a preset process template according to the task submission request; The task submission request carries task submission data; The process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram; Generating a process instance and a task instance of the current task node according to the BPMN diagram and the task submission data, and storing the process instance and the task instance in the cache; The process instance includes a process instance ID; Creating a token for the current task node, binding the process template, the process instance and the task instance of the current task node to the token of the current task node, and storing the token of the current task node in the cache; The token includes a token ID; When the current task node receives a task query request fed back by the backend, querying the token of the current task node from the cache according to the process instance ID of the current task node; Querying the corresponding data object from the cache according to the token ID of the current task node; The data object includes a process template, a process instance and a task instance; After completing the query of the data object of the current task node, repeat the following steps until all task nodes of the task process are executed: Parsing the BPMN diagram according to the data object queried by the previous task node, generating a process instance and a task instance of the next task node, and storing them in the cache; Creating a token for the next task node, binding the process template, the process instance and the task instance of the next task node to the token of the next task node, and storing the token of the next task node in the cache; When receiving a task query request forwarded by the previous task node, querying the token of the next task node from the cache according to the process instance ID of the next task node; Querying the corresponding data object from the cache according to the token ID of the next task node.

2. The method according to claim 1, wherein After all task nodes of the task process are executed, it includes: Canceling the tokens of all task nodes in the task process according to the archiving request sent by the user.

3. The method according to claim 1, characterized in that It also includes: During the execution of the task process, updating the data objects of each task node in real time according to the user request and storing them in the cache.

4. The method according to claim 3, characterized in that, It also includes: After all task nodes of the task process are executed, storing the latest data objects of each task node in the cache in the database.

5. A data query device based on a process engine, characterized in that, It includes: A process template invocation module, which is used to receive a task submission request from a user and invoke a preset process template according to the task submission request; The task submission request carries task submission data; The process template is pre-stored in the cache, and the process template includes a Business Process Modeling Notation (BPMN) diagram; A current task node process instance and task instance generation module, which is used to generate a process instance and a task instance of the current task node according to the BPMN diagram and the task submission data, and store the process instance and the task instance in the cache; The process instance includes a process instance ID; A token binding module, which is used to create a token for the current task node, bind the process template, the process instance and the task instance of the current task node to the token of the current task node, and store the token of the current task node in the cache; The token includes a token ID; The first data object query module is used to, when the current task node receives a task query request fed back by the backend, query the token of the current task node from the cache according to the process instance ID of the current task node; and query the corresponding data object from the cache according to the token ID of the current task node; the data object includes a process template, a process instance, and a task instance. The second data object query module is used to, after the data object query of the current task node is completed, repeatedly execute the following steps until all task nodes of the task process are executed: Parse the BPMN diagram according to the data object queried by the previous task node, generate the process instance and task instance of the next task node, and store them in the cache. Create a token for the next task node, bind the process template, the process instance and task instance of the next task node, and the token of the next task node, and store the token of the next task node in the cache. When receiving the task query request forwarded by the previous task node, query the token of the next task node from the cache according to the process instance ID of the next task node. Query the corresponding data object from the cache according to the token ID of the next task node.

6. The device according to claim 5, characterized in that, It further includes a token cancellation module, which is specifically used for: After all task nodes of the task process are executed, cancel the tokens of all task nodes in the task process according to the archiving request sent by the user.

7. The device according to claim 5, characterized in that It further includes a data update module, which is specifically used for: During the execution of the task process, update the data objects of each task node in real time according to the user request and store them in the cache.

8. The apparatus according to claim 7, characterized in that It further includes a database storage module, which is specifically used for: After all task nodes of the task process are executed, store the latest data objects of each task node in the cache into the database.

9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the method according to any one of claims 1 to 4.

11. A computer program product, characterized in that, The computer program product includes a computer program, and when the computer program is executed by the processor, it implements the method according to any one of claims 1 to 4.

Citation Information

Cited By

  • Method and system for single-step debugging in data processing flow

    CN120849254A