BPMN
BPMN gateways explained: exclusive, parallel, inclusive and event-based
By Abdessamad BettalPublished 5 min read
The short answer
A BPMN gateway controls how a process splits and joins. An exclusive gateway (X) sends the flow down exactly one path. A parallel gateway (+) sends it down every path at once and, when joining, waits for all of them. An inclusive gateway (O) takes every path whose condition is true and waits only for those. An event-based gateway waits for whichever event happens first, such as a reply or a timeout. The common errors come from mismatched pairs: an exclusive split closed by a parallel join waits forever, and a parallel split closed by an exclusive merge runs the next task twice.
Gateways are the part of BPMN that most often look right and behave wrong. A flowchart diamond only splits; a BPMN gateway also defines what happens when paths come back together. That joining behavior is where deadlocks and duplicated work hide, and it is invisible unless you know how to read it.
The clearest way to understand gateways is the token model that the BPMN 2.0 specification uses to define them.
The token model in one paragraph
Imagine a token, like a game piece, that starts at the start event and moves along sequence flows. An activity runs when a token arrives and passes the token on when it finishes. The process instance is complete when no tokens are left. Gateways are the places where tokens are routed, copied or waited for. Every gateway question reduces to two: how many tokens leave when one arrives (the split), and how many must arrive before one leaves (the join)?
The four gateways you will use
| Gateway | Marker | Split: one token arrives | Join: tokens arriving |
|---|---|---|---|
| Exclusive (XOR) | X, or an empty diamond | One token leaves, on the first flow whose condition is true | Each arriving token passes straight through; no waiting |
| Parallel (AND) | + | One token leaves on every outgoing flow; no conditions | Waits until a token has arrived on every incoming flow, then one leaves |
| Inclusive (OR) | O (circle) | One token leaves on every flow whose condition is true; at least one | Waits for tokens on every incoming flow that can still receive one, then one leaves |
| Event-based | Pentagon inside a double circle | The token waits; the first of the following events to occur wins | Not used to join |
BPMN also defines a complex gateway (an asterisk) for custom join rules, such as "continue when two of three reviewers have approved". It is rarely needed and harder for readers, so most diagrams never use it.
Exclusive gateway: exactly one path
Use it for a decision whose answers are mutually exclusive: Order value? → under 500 / 500 or more. Put the question on the gateway and a condition on each outgoing flow. The conditions should cover every case. To guarantee that, mark one flow as the default flow with a small slash across its start; it is taken when no other condition is true.
When exclusive branches rejoin, you can use an exclusive gateway as a merge, or point the branches straight at the next activity. Both mean the same thing: whichever token arrives continues.
Parallel gateway: every path, then wait for all
Use it when work can happen at the same time and the process must wait for all of it: once leave is approved, Update HR system and Notify the team run in parallel, and the request counts as booked only when both are done. The split needs no conditions, because every path is always taken. The join is what makes it useful: Leave booked is not reached until both tokens have arrived.
Inclusive gateway: some paths, wait for those
Use it when any combination of paths may apply: notify the customer by email, SMS, or both, depending on their preferences. The split sends tokens down each path whose condition is true. The join waits for exactly those tokens, no more.
That join is easy to draw and hard to reason about, because a reader has to work out which paths could have been activated. If exactly one path ever applies, use an exclusive gateway. If all paths always apply, use a parallel gateway. Reserve inclusive for genuinely variable combinations.
Event-based gateway: whichever happens first
Use it when the process waits for something outside its control and must react to whichever happens first: after sending a quote, wait for Quote accepted (a message), Quote rejected (another message) or 14 days pass (a timer). The gateway is followed directly by intermediate catching events or receive tasks. The first event to occur takes the token, and the other paths are withdrawn.
This is the gateway that turns "and if they never reply?" from a margin note into part of the model, which is often the most valuable thing a BPMN diagram adds over a swimlane diagram.
Mismatched pairs: deadlock and double work
Most gateway bugs come from closing a split with the wrong kind of join.
| Split | Join | Result |
|---|---|---|
| Exclusive | Parallel | Deadlock. Only one branch gets a token, and the parallel join waits forever for the others. |
| Parallel | Exclusive | Double work. Both tokens pass through the exclusive merge, so the next activity runs twice. |
| Inclusive | Parallel | Deadlock whenever not every condition was true. |
| Parallel | Parallel | Correct: all branches run, the join waits for all. |
| Exclusive | Exclusive (or none) | Correct: one branch runs, its token continues. |
| Inclusive | Inclusive | Correct: the join waits only for the branches that were activated. |
The rule of thumb is to close a split with the same kind of gateway that opened it, and to keep splits and joins visibly paired, ideally aligned so a reader can see which join closes which split.
Other conventions worth following
- Gateways route; they do not decide. The decision itself, such as checking a credit limit, is an activity before the gateway. The gateway only reads the result.
- Avoid a gateway that both joins and splits. BPMN allows one gateway with several incoming and several outgoing flows, but it hides which behavior applies when. Use two gateways in a row.
- Label exclusive and inclusive gateways with a question, and every outgoing flow with its condition. Parallel gateways need no labels.
- Do not let a parallel branch silently end. If one branch reaches an end event and the other reaches a join, the join waits forever. Either join both or end both.
Drawing gateways in flowchart.tools
The BPMN shape set in the editor includes exclusive, parallel and inclusive gateways, start, intermediate and end events, timer and message events, tasks, sub-processes, data objects and lanes. It does not have a dedicated event-based gateway symbol; draw the following events with the timer and message shapes and add a text annotation, or keep that part of the model in a BPMN-specific tool.
The leave approval template has an exclusive decision followed by a parallel split and a matching parallel join: updating the HR system and notifying the team run at the same time, and the process waits for both. The order fulfilment template shows an exclusive gateway whose out-of-stock branch waits on a timer, then rejoins the main path without a merge gateway. Open either, follow the tokens with your finger, and check that every join waits for exactly what its split sent.
Common questions
- Is the X inside an exclusive gateway required?
- No. The BPMN 2.0 specification allows an exclusive gateway to be drawn as an empty diamond. Pick one style for the whole diagram; many teams use the X because an empty diamond is easy to misread as a flowchart decision or an unfinished shape.
- Where do the conditions go, on the gateway or on the arrows?
- On the outgoing sequence flows. The gateway's label can pose the question ("Order value?"), and each outgoing flow carries its condition ("under 500", "500 or more"). The default flow, marked with a slash near its start, needs no condition.
- Do I always need a joining gateway?
- Not always. Exclusive branches can flow straight into the next activity without a merge gateway. Parallel branches need a parallel join if anything after them must wait for both; if each branch ends in its own end event, no join is needed and the process completes when every branch has finished.
- When should I use an inclusive gateway?
- When any combination of paths can apply, such as notifying the customer by email, SMS or both depending on their preferences. If exactly one path applies, use exclusive; if all paths always apply, use parallel. Inclusive joins are harder for readers to reason about, so use them only when the combination is genuinely variable.