BPMN Mining
VI EN
Log in Sign up free
Docs / Formulas

Exclusive gateway (XOR)

The weighted expected value and how scenarios are generated.

At an exclusive gateway, each case takes only one branch. The question is no longer “how long does it take” but “how long does it take on average”.

The formula

E[TXOR]=n∑i = 1pi·Ti     where n∑i = 1pi=1
(4)

This is the familiar mathematical expectation: a probability-weighted average. Cost uses exactly this formula with Ci.

Example

🧮 Approval by authorisation limit

After the requisition step, the process branches on the order value:

BranchProbabilityTime
≤ 50 million — team leader approves75%45 minutes
> 50 million — director approves25%180 minutes
E[TXOR]=0,75·45+0,25·180=33,75+45=78,75 minutes

No case takes exactly 78,75 minutes — they take 45 or 180. The expected number is for resource planning; to commit to a customer you have to look at P90.

How the expected value differs from the scenarios

An exclusive gateway generates several scenarios, each one a real path with its own probability. The tool shows both points of view:

ViewGivesUse when
Expected value (formula 4)A single numberBudgeting, capacity planning
The scenario listFastest / slowest / each individual pathUnderstanding why the difference exists
SimulationA distribution, P90Committing to an SLA
ℹ
When you declare no probability
The branches are split evenly. Two branches become 50/50 — rarely true in practice, so fill in the real number as soon as you have it. See Branch probabilities for how they are normalised when the declaration is incomplete.

Inclusive gateway (OR)

An OR gateway allows one or more branches to run together. Because which combination of branches runs depends on real data the model does not have, the tool currently handles OR as AND: assuming every branch runs. This is a conservative estimate — time and cost will not be undercounted.

Anything unclear or missing?