BPMN exclusive gateway (XOR)
A BPMN exclusive gateway (XOR) is a diamond, drawn empty or with an X, that sends the process down exactly one of its outgoing paths. Each outgoing flow carries a condition, the first condition that is true wins, and a default flow catches the case where none is. The same symbol is also used to merge alternative paths back into one.

Open and edit this example↓ Download this example (.bpmn)
How an exclusive gateway decides
The gateway does not decide anything by itself. It reads data that a task before it produced and compares it with the conditions on its outgoing flows:
- The task before the gateway does the work: "Check claim" establishes the amount.
- The gateway asks one question: "Amount over 500 EUR?".
- Each outgoing flow is labelled with an answer: "Yes", "No".
- The conditions are checked in order, and the first one that is true is taken. Only that one.
- If no condition is true, the default flow is taken. It is drawn with a small slash across its start.
A gateway with no default flow and no true condition is an error: the BPMN specification says an exception is thrown, and process engines stop the instance with an incident. That is why every exclusive split in the example has a default.
Splitting and merging
The exclusive gateway has two jobs, and one symbol should do only one of them:
| Split (diverging) | Merge (converging) | |
|---|---|---|
| Flows | One in, several out | Several in, one out |
| What it does | Picks one path by condition | Passes on whichever path arrives |
| Name | A question | None |
| Waits for anything? | No | No |
In the example, the unnamed gateway before "Pay claim" is a merge. Small claims arrive from one side and approved claims from the other, and whichever arrives goes straight on. An exclusive merge never waits for a second path, which is what makes it the wrong way to close a parallel split.
A merge is optional when the branches end separately. "Claim rejected" has its own end event here, so that branch is never merged at all. One end event per outcome is often clearer than forcing every path back together.
Rules for exclusive gateways
- Name the gateway as a question and each outgoing flow as an answer. A reader should be able to follow the decision without opening any properties.
- Put the work in a task before the gateway. "Manager approves the claim" is a task; "Approved?" is the gateway.
- Mark one outgoing flow as the default. For a yes/no question it is usually the "No".
- Make the conditions exclude each other. "Under 500" and "Over 500" leaves out exactly 500. If two conditions can both be true, you want an inclusive gateway.
- Do not split and merge in one gateway. A gateway with several flows in and several out is legal, but readers and linters trip over it.
The mistakes people make with it
- Using it for work that happens at the same time. "Notify the customer and update the stock" is not a choice. That is a parallel gateway.
- Closing a parallel split with it. Every branch arrives, the merge passes each one through, and everything after it runs once per branch.
- Leaving the flows unlabelled. Two arrows out of a diamond with no text force the reader to guess which is the happy path.
- Using it to wait. "Has the customer answered?" cannot be decided from data the process already has. Waiting for something to happen is the job of an event-based gateway.
Exclusive, inclusive or parallel?
Ask how many of the outgoing paths can be taken at once: exactly one is exclusive, all of them is parallel, any number from one upwards is inclusive. BPMN gateways explained compares all of them side by side, and the invoice approval example uses three exclusive gateways in a full process.
To see where the exclusive gateways fall in your own process, describe its decisions in the BPMN Studio editor: every "if" in your text becomes a named gateway with labelled flows.
Frequently asked questions
What does XOR mean in BPMN?
XOR is short for exclusive or: exactly one of the outgoing paths is taken, never two and never none. XOR gateway and exclusive gateway are two names for the same symbol, a diamond that is empty or has an X inside.
Can two exclusive gateways follow each other in BPMN?
Yes. One exclusive gateway can lead straight into another when two separate questions are asked in a row, such as "Amount over 500 EUR?" and then "Budget available?". Keep them as two gateways with one question each; do not fold two questions into one gateway with four combined answers.
Is an exclusive gateway with no marker different from one with an X?
No. BPMN 2.0 allows the exclusive gateway to be drawn as an empty diamond or with an X, and they mean the same. Use one style throughout a diagram; the X is clearer next to parallel and inclusive gateways.