Activiti7---understanding of core concepts

1. BpmnModel

BpmnModel is actually the process definition model object obtained after the bpmn file is parsed through xml. This object records all the content of the process definition, and can get the incoming and outgoing information of each node and each node.

2. FlowNode

FlowNode is the parent class of nodes. In activiti, nodes are divided into three categories, namely Event (event), Task (task), and Gateway. For example, the start node and the end node are start event and end event. The tasks and gateways are easy to understand, so I won't say more. In short, FlowNode is an abstraction of all nodes. The basic information of the node can be obtained in this object, including which node the node comes from (IncomingFlows) and which node to go to (OutgoingFlows).

3. SequenceFlow

SequenceFlow is the information related to the lines of the flowchart. To define a line, you must know which node passes through the line to which node, that is, the information from the source node to the target node, and the SequenceFlow object can get this information. The IncomingFlows and OutgoingFlows mentioned above belong to SequenceFlow.

4. Execution

The concept of Execution is difficult to understand at first. In activiti, if there is no branch, then the whole process is an Execution. If there are branches, there will be multiple Executions. My understanding is that Execution is a small piece of execution path. For example, the path taken by branch 1 and the path taken by branch 2.

Insert picture description here

Guess you like

Origin blog.csdn.net/Lv_vI/article/details/108220108