Version: latest
Event-based gateway
An event-based gateway allows to make a decision based on events.
An event-based gateway must have at least two outgoing sequence flows. Each sequence flow must to be connected to an intermediate catch event of type timer or message.
When an event-based gateway is entered then the workflow instance waits at the gateway until one of the events is triggered. When the first event is triggered then the outgoing sequence flow of this event is taken. No other events of the gateway can be triggered afterward.
#
Additional resourcesXML representation
An event-based gateway with two outgoing sequence flows:
Using the BPMN modeler
Adding an event-based gateway with two outgoing sequence flows:
Workflow lifecycle
Workflow instance records of an event-based gateway:
Intent | Element Id | Element Type |
---|---|---|
ELEMENT_ACTIVATING | gateway | EVENT_BASED_GATEWAY |
ELEMENT_ACTIVATED | gateway | EVENT_BASED_GATEWAY |
... | ... | ... |
EVENT_OCCURRED | gateway | EVENT_BASED_GATEWAY |
ELEMENT_COMPLETING | gateway | EVENT_BASED_GATEWAY |
ELEMENT_COMPLETED | gateway | EVENT_BASED_GATEWAY |
ELEMENT_ACTIVATING | payment-details-updated | INTERMEDIATE_CATCH_EVENT |
References: