BPMN control-flow patterns
A token marks a point a process can continue from. These teaching simulations show one process instance and one step per action. Filled circles indicate tokens once you start a simulation. The diagrams and descriptions also explain each example on their own.
Sequence
Section titled “Sequence”The start activates Review. Once the reviewer finishes, the token moves to Approve. Completion of Approve leads to the end event.
A sequence flow connects the activities in a defined order.
Exclusive split and simple merge
Section titled “Exclusive split and simple merge”The first exclusive gateway selects either full review or summary review. The merge forwards the one arriving token to the end. Try both routes and compare which task becomes active. A deployed Getriebe model selects the branch by condition and default rules. The buttons stand for the results of those rules.
See exclusive routing and the modelling example.
Parallel split and join
Section titled “Parallel split and join”The split activates Check references and File document together. After either task finishes, its token waits on its incoming flow to the join. The other branch can still run. When both arrivals are present, the join passes one token to the end.
See the parallel routing contract and the modelling example.
Structured loop
Section titled “Structured loop”The merge before Review accepts the first entry or the loopback. After each review, the decision either sends the token back for another iteration or forwards it to the end. Repeat twice, then leave the loop. The simulation represents a graph loop with a single entry and regular exit, with a manual choice standing in for the route condition.
See the iteration contract.
Implicit Termination (WCP-11)
Section titled “Implicit Termination (WCP-11)”Review round starts Check budget and Check purchasing in parallel. Each task leads to its own None End Event. That event consumes the token of its path. The other path can still have work. The enclosing process activates Review result once the Sub-Process has no remaining work.
Try either completion order. After the first task, the remaining task is still inside the Sub-Process. After the second task, the single token for Review result is outside it. The revised 2006 pattern catalogue calls termination upon exhaustion of work Implicit Termination. Getriebe requires explicit None End Events on the individual paths. Workflow Control-Flow Patterns, WCP-11.
Download the BPMN model, or see the execution evidence for the same behavior through the Effect server.
Multiple Instances with a priori Run-Time Knowledge (WCP-14)
Section titled “Multiple Instances with a priori Run-Time Knowledge (WCP-14)”An order supplies its required review kinds. The same Review order activity creates two or three tasks when it starts. Each task can complete independently, then all meet at the activity’s outgoing flow. See the revised 2006 Workflow Control-Flow Patterns, §3.3.4.
all(reviewVotes)| Input order | Completion order | Published votes | Next task |
|---|---|---|---|
| Budget, Purchasing | Purchasing approves, then Budget approves | [true, true] | Confirm order |
| Budget, Purchasing, Compliance | Compliance approves, Budget approves, then Purchasing rejects | [true, false, true] | Revise order |
The simulation shows the relationship between input order, completion order and the next step. The modeling guide has a runnable BPMN file. Execution evidence covers concurrent completion and restart.
Cancel Activity (WCP-19)
Section titled “Cancel Activity (WCP-19)”The separate order deadline tutorial illustrates the Cancel Activity pattern from Russell and colleagues’ revised 2006 catalogue. The deadline is an interrupting BPMN Boundary Timer attached to Review order. The two outcomes consume the same waiting activation. Workflow Control-Flow Patterns, §3.3.6.
| First event processed | Result |
|---|---|
| The reviewer completes the task | Review order completes and the regular path continues. |
| The timer fires at or after the deadline | Review order is withdrawn. The timeout path activates Senior review. |
The buttons represent processing order. For a live clock, task history and restart, use the order deadline tutorial.
Cancel Region (WCP-25)
Section titled “Cancel Region (WCP-25)”The Await order confirmation Sub-Process is the region. A 30-second non-interrupting Boundary Timer on Confirm order starts the reminder path while the task stays open. The 1 min deadline on the Sub-Process withdraws outstanding work inside the region and opens Senior sign-off outside it. The revised workflow patterns catalogue describes this as Cancel Region. Workflow Control-Flow Patterns, WCP-25.
Try early confirmation, an overdue deadline, and escalation while the reminder is running. Dashed outlines mark withdrawn work. The simulation advances on each button press. The modeling guide runs the same scope in the Effect server.
Blocked join
Section titled “Blocked join”This example intentionally connects an exclusive split to a parallel join. Only one review receives a token. Whichever path you complete, the join is still waiting for the other input. The end remains unreachable along this run.
Open the blocked model in the Modeler and
choose Validate. The structural report identifies the two gateways
as unmatched-gateway and blocks deployment. That check runs before
behavioural analysis. See how to read a model report.
Process data and Service Tasks
Section titled “Process data and Service Tasks”A Service Task can read a typed process field and map its result to another
field. In the modelling tutorial,
Check amount receives the exact decimal string "125.50" and its
registered handler returns the Boolean true for eligible.
The service work contract explains when the engine accepts a result.