Man illustrationFlower illustration


Sub process

Estimated reading: 2 minutes 88 views

Sub process activity is a graphical object within a process that contains activities, gateways, events and sequence flows. It can also contain sub processes.

ExclusiveWhen it receives a special job from a specific process example, it makes jobs run in order.
Data objectsDefines the Data Objects of the process or sub process. Each data object is initialized as a process variable under the defined name.
Execution listenersListener of activity. Listeners are created at the start and end of activity.
Multi-instance typeDetermines if multiple instances of this activity are created.
Cardinality (Multi-instance)An expression or numeric value (integer) that determines how many instances are created.
Collection (Multi-instance)The number of instances is determined by the elements of a collection. For each element in the collection, a new instance is created.
Element Variable (Multi-instance)The variable under which each element is available to the newly created instance.
Completion Condition (Multi-instance)An expression that, if it evaluated to true, stops the creation of new instances.
Is a transaction sub processIdentifies whether this sub process is type of transaction. A BPMN transaction is a set of activities that logically belongs together. Transactions can be canceled through the Cancel End Event and handled through the Cancel Intermediate Boundary Event.

You can use the Execution listeners as shown in the examples.




You can use the Multi-instance type as shown in the examples.

Default, only one instance is created:


Activities are created in parallel. This is a good practice for User tasks activity:


Activities are created sequentially. This is a good practice for Service tasks activity:


You can use the Cardinality (Multi-instance) as shown in the examples.



You can use the Collection (Multi-instance) as shown in the example.


You can use the Element variable (Multi-instance) as shown in the example.


You can use the Completion Condition (Multi-instance) as shown in the example.


A Sub-Process can only have one none start event; no other start event types are allowed. A Sub-Process must at least have one end event.