What is a BPMN gateway?
A BPMN gateway (German: Gateway or Verzweigung) is a control element in BPMN 2.0 that splits or merges the sequence flow. It is drawn as a diamond. The symbol inside the diamond indicates the type. A gateway itself performs no work, but determines which paths a process follows.
Gateway types
- Exclusive gateway (XOR): Exactly one outgoing path is chosen, depending on a condition. When merging, the arrival of one path is sufficient.
- Parallel gateway (AND): All outgoing paths are started simultaneously. When merging, it waits until all incoming paths have arrived.
- Inclusive gateway (OR): One or more paths are chosen, depending on which conditions apply. The merging gateway waits for all activated paths.
- Event-based gateway: The path is determined not by data but by the event that occurs first, for example a message or a timeout. BPMN events or receive tasks follow.
Distinction: Gateway and activity
Activities (tasks, subprocesses) perform work; gateways only set the course. A decision that causes effort in business terms is modeled as an activity; the gateway then branches based on the result.
Example
After an application has been reviewed, an exclusive gateway branches into "approved" and "rejected". For an approved order, a parallel gateway starts shipping and invoicing at the same time. A second parallel gateway merges the two paths again.
Related terms
- Business Process Model and Notation (BPMN) – the standard that defines gateways.
- BPMN event – triggers and results in the flow.
- Business rule – often supplies the conditions at branches.
- Swimlane diagram – assigns flows with gateways to responsible parties.