Method for realizing reverse circulation based on Activiti workflow

A workflow and process technology, applied in the direction of instruments, data processing applications, resources, etc., can solve the problems of not supporting the reverse flow of the process, adding business processing branches, and the process cannot flow normally, and achieve the effect of simplifying business processes and drawing simple

Active Publication Date: 2019-12-27
FUJIAN BOSS SOFTWARE
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Directly let the process instance execute the target node of the rollback. This solution can only support simple business processes. Under this solution, relatively complex processes will cause the process to fail to flow normally. For parallel gateways, inclusive gateways, and exclusive gateways The business process of the multi-branch path generated by etc. does not support the reverse flow of the process
[0005] 2. Use the control flow to promote the reverse flow of the process, that is, when drawing the business flow chart, draw a connection that specifies the target node for the fallback for all nodes that need to be rolled back, and configure the execution conditions on the connection To ensure that the control flow is executed in the fallback situation, the processing branches of the business will be increased, which will increase the complexity of the business process to a certain extent, and will also bring inconvenience to the drawing of the business flow chart

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing reverse circulation based on Activiti workflow
  • Method for realizing reverse circulation based on Activiti workflow
  • Method for realizing reverse circulation based on Activiti workflow

Examples

Experimental program
Comparison scheme
Effect test

example ID

[0039] Use the above node ID and process instance ID query table act_hi_actinst to obtain the set of execution instance IDs that have executed these nodes;

[0040] Exclude the process instance from the execution instance ID collection, and execute the remove method call on the ExecutionEntity of the remaining collection.

[0041] S4. Determine whether the rollback node is in the concurrent branch;

[0042] To execute the rollback node, you first need to confirm whether the target node for rollback is in the concurrent branch. The judgment steps are as follows:

[0043] Use the process start node as the starting point and the fallback node as the target node to perform depth-first traversal to obtain the shortest path from the start node to the fallback node, and use the stack to save the traversed results;

[0044] Traverse the shortest path stack from the bottom of the stack, if the node is a split gateway, push the node into a temporary stack, if the node is a convergence ...

example 1

[0049] Example 1: Both the fallback node and the current node are on the main process (see Figure 6 ).

[0050] Step S1: Starting from node C, perform a breadth-first search with node A as the target node, and confirm that the fallback path is: C—B—A;

[0051] Step S2: Traversing the fallback path C—B—A, if no convergent gateway is encountered, this step ends;

[0052] Step S3: This step needs to obtain the pruning starting point first, because there is no split gateway in the fallback path, so there is no branch to be pruned, and this step ends;

[0053] Step S4: Judging that fallback node A is on the main process;

[0054] Step S5: Execute node A directly using the process instance.

example 2

[0055] Example 2: The target node of the fallback is on the branch path (see Figure 7 ).

[0056] Step S1: Starting from node D, perform a breadth-first search with node B as the target node, and confirm that the fallback path is: D—gw02—B;

[0057] Step S2: Traversing the fallback path D—gw02—B, encountering the convergent gateway gw02, starting from gw02, traversing along its two incoming lines seq1 and seq2, if seq1 can reach the fallback node B, record it as a non-compensated incoming line, Seq2 cannot reach the fallback node B, and it is not a non-compensated incoming line. Therefore, the number of execution instances that need to be compensated by the convergence gateway gw02 is 1. Use the process instance to create a sub-execution object and set it to the frozen state and the active node is the convergence gateway gw02.

[0058] Step S3: This step needs to obtain the pruning starting point first, because there is no split gateway in the fallback path, so there is no br...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for realizing reverse circulation based on an Activiti workflow. The method comprises the following steps: S1, determining a rollback path of a flow; s2, performing object compensation on the convergence gateway on the fallback path; s3, cutting an execution instance, parallel to the current node, of the split gateway; s4, judging whether the fallback node is in aconcurrent branch or not; and S5, executing the backspacing node by the execution object. The invention aims to provide the method for realizing reverse circulation based on an Activiti workflow, which does not depend on a control flow of Activiti and can support node fallback of a complex service flow, said service flow including a service flow of multiple execution paths generated by a parallelgateway, a containment gateway, an exclusive gateway and the like. The method has the advantages that the service flow is simplified, and a reverse control flow does not need to be additionally configured, so that the drawing of the flow chart becomes simple; a relatively complex business flow chart can be supported.

Description

technical field [0001] The invention relates to a method for realizing reverse flow based on Activiti workflow. Background technique [0002] Activiti is a lightweight workflow business management platform. It always drives the business process down in the form of active nodes. Its core is a fast and stable BPMN2.0 engine developed in java. BPMN defines a business flow chart, which is based on flow chart technology, and at the same time tailors the graphical model for creating business processes. The model of business process is a graphical network diagram, including a series of active nodes and control flow of operation sequence. Therefore, the direction of the business process in Activiti needs to be controlled by the control flow, that is, the connection between nodes. It is impossible to reverse the flow of the process without the control flow, that is, return to the previous step or any previous active node. [0003] There are mainly two existing methods for Activiti-...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q10/06
CPCG06Q10/0633
Inventor 黄学雯林斌翁增仁
Owner FUJIAN BOSS SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products