BPMN Studio logoBPMN Studiov2.0 Try it free
ContentsOverview

BPMN gateways explained

A BPMN gateway is a diamond that controls branching and merging in a process. The marker inside the diamond tells you the behaviour: an X means choose one path, a + means all paths at once, a circle means one or more, and a pentagon means the path depends on which event fires first. Getting gateways right is what separates a correct BPMN diagram from a misleading one.

or open a blank editor

Opens the editor with your text in the chat. Generating needs a free account, no card.

Exclusive gateway (X) - choose one path

The most common gateway. The flow takes exactly one outgoing path, based on a condition.

  • Use it for: yes/no or either/or decisions - "Approved?", "In stock?", "Payment successful?"
  • Rule: label each outgoing flow with its condition, and provide a default flow (marked with a slash) for when no condition matches. Without one, the BPMN spec says the gateway throws an exception, and engines raise an error or an incident instead of moving on.
  • Merging: an exclusive gateway can also merge paths back together (it just passes through whichever branch arrives).

Worked example, the default flow and the rules in full: the exclusive gateway (XOR).

Parallel gateway (+) - all paths at once

Splits the flow into concurrent branches that all run at the same time.

  • Use it for: independent work that happens simultaneously - "provision laptop" and "create email account" and "assign a buddy."
  • Rule: a parallel split should be matched by a parallel join that waits for all branches to finish before continuing. Forgetting the join is a common cause of broken diagrams.

Why the join waits, and the two ways it deadlocks: the parallel gateway (AND).

Inclusive gateway (O) - one or more paths

Takes every outgoing path whose condition is true - could be one, could be several.

  • Use it for: "notify by email if they opted in, and by SMS if they have a mobile number" - the two are independent and either or both can apply.
  • Rule: the merging inclusive gateway waits only for the branches that were actually activated.

How that join works, and the simpler pattern that replaces it: the inclusive gateway (OR).

Event-based gateway - whichever happens first

The path depends on which event occurs first after the gateway.

  • Use it for: "wait for payment confirmation or a 24-hour timeout, whichever comes first."
  • Followed by catch events (message, timer, signal, conditional) or receive tasks, not other tasks. Use either message events or receive tasks after one gateway, not both. The first event to trigger wins; the others are cancelled.

What may follow it, and when a timer boundary event does the same job: the event-based gateway.

Quick reference

Gateway Marker Split behaviour
Exclusive X Exactly one path
Parallel + All paths simultaneously
Inclusive O One or more paths (each true condition)
Event-based Pentagon in a double circle The path of the first event to occur
Complex Asterisk A custom rule (rarely needed)

The complex gateway handles rules the others can't, such as "continue once 3 of 5 reviewers have answered". Most diagrams never need it, and many teams avoid it because readers have to look up its rule.

The #1 gateway mistake: unbalanced splits and joins

A parallel or inclusive split needs a matching join of the same type: without one the branches never reconcile, and a join of the wrong type can deadlock the process. An exclusive split doesn't need a merge: its branches can end at separate end events, one per outcome, which is often clearer. When exclusive branches do come back together, merge them with an exclusive gateway. If a diagram feels "off," check gateway balance first. More in common BPMN mistakes.

Not sure which gateway your process needs? Describe the decision in plain English in the BPMN Studio editor and it picks and places the gateway, so you can see why it chose it. An event-based gateway only makes sense once you know the events that follow it: BPMN events explained covers message and timer events and how boundary events differ. To place and connect gateways by hand, use the free online BPMN editor. See also the full symbol reference.

Frequently asked questions

What is a gateway in BPMN?

A gateway is a diamond-shaped symbol that controls how a process path splits or merges. It decides which sequence flows are taken after a point in the process - one path, all paths, or some paths - depending on the gateway type.

What is the difference between an exclusive and a parallel gateway?

An exclusive gateway (X) takes exactly one outgoing path based on a condition - like an either/or decision. A parallel gateway (+) takes all outgoing paths at the same time, splitting the flow into concurrent branches that later synchronise.

When should I use an inclusive gateway?

Use an inclusive gateway (circle marker) when one or more paths can be taken based on independent conditions - for example, 'notify by email AND/OR SMS' where each is evaluated separately. Every branch whose condition is true runs.