BPMN engine events are generated during process execution. They represent significant points in the lifecycle of processes and process activities, such as when an activity starts, is cancelled, or completes.
You can use triggers to monitor BPMN engine events and publish events when specific criteria are met. For example, a trigger can publish an event when a particular activity starts or when a timer with a specific identifier is fired.
BPMN Activity Started
The BPMN Activity Started trigger is fired when an activity configured as a part of the process is started. The configuration parameters for the trigger are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| elementID | The identifier of the BPMN element associated with the event, such as Activity_102rnb9. Use this parameter to monitor a specific element within a process definition. |
| activityName | The name of the activity associated with the event, such as Set document metadata. |
| activityType | The BPMN activity type associated with the event, such as userTask, serviceTask, or scriptTask. |
BPMN Activity Cancelled
The BPMN Activity cancelled trigger is fired when an activity configured as a part of the process is cancelled. The configuration parameters for the trigger are:
| Parameter | Definition |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| elementID | The identifier of the BPMN element associated with the event, such as Activity_102rnb9. Use this parameter to monitor a specific element within a process definition. |
| activityName | The name of the activity associated with the event, such as Set document metadata. |
| activityType | The BPMN activity type associated with the event, such as userTask, serviceTask, or scriptTask. |
| cause | Cause of the activity cancellation, for example Operation cancelled by the user. |
BPMN Activity Completed
The BPMN Activity completed trigger is fired when an activity configured as a part of the process is completed. The configuration parameters for the trigger are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| elementID | The identifier of the BPMN element associated with the event, such as Activity_102rnb9. Use this parameter to monitor a specific element within a process definition. |
| activityName | The name of the activity associated with the event, such as Set document metadata. |
| activityType | The BPMN activity type associated with the event, such as userTask, serviceTask, or scriptTask. |