Petri Nets and Workflow Soundness
Places, transitions and the token game, why a fixed topology buys decidability, and what workflow nets make of it.
Carl Adam Petri introduced the nets in his 1962 dissertation, Kommunikation mit Automaten, well over a decade before the process calculi. The model has outlived most of its successors because it draws concurrency rather than encoding it. Precedence, synchronisation and resource contention are visible in the graph, and for the workflow specialisation the correctness of the whole task graph is decidable.
The token game
A Petri net is a bipartite graph : places (drawn as circles), transitions (bars), and arcs . State is a marking , a distribution of tokens over places. Writing for the input places of and for its outputs, a transition is enabled when every input place holds a token, and firing moves them:
That is the entire semantics, and the three coordination phenomena fall out of the shape of the graph. A place between two transitions expresses precedence, an obligation: the second cannot fire until the first has produced the token. A transition with several input places is a synchronisation, an AND-join that waits, structurally, for all of them. Two transitions sharing an input place are in conflict, two claimants for one token, and firing either disables the other; a resource is simply a place whose token is borrowed and returned.
Interleaving models recover these with auxiliary machinery (locks, guards, fairness assumptions). In a net they are the primitive vocabulary, and concurrency is a partial order on firings rather than a shuffle of traces.
An example
The net below is an order-fulfilment workflow. receive splits a case into two concurrent checks; both need the single resource token in ; dispatch joins the branches.
Every claim in the previous section is on screen: the split, the conflict at , and the join idling until both and are marked.
Decidability
Petri nets are not Turing-complete. A transition can test for the presence of a token but not for its absence, and that single weakness carries a great deal. Reachability of a marking is decidable,1 with its exact complexity settled only in 2021 as Ackermann-complete; boundedness and coverability are EXPSPACE-complete;2 and liveness reduces to reachability. Add inhibitor arcs, which test for zero, and the model becomes Turing-complete and every one of these questions undecidable.
The π-calculus of the previous post makes the opposite bargain. It is Turing-complete, as CCS already was without mobility, so behavioural questions are undecidable in general and one falls back on types or bisimulation proofs. What mobility adds is the passing of channel names as data, and with it a communication topology that changes as the process runs. A Petri net freezes its topology at design time, and what it receives for that rigidity is algorithmic verification.
Workflow nets and soundness
Van der Aalst’s workflow nets (1997) specialise the model to business processes: one source place , one sink place , and every node on a path from to . A case is a token injected at , and the process is correct when it is sound, which means three things.
- Option to complete: from every marking reachable from , the marking remains reachable.
- Proper completion: when is marked, nothing else is, so no orphaned work survives the case.
- No dead transitions: every task can occur in some run.
The central theorem is that a workflow net is sound if and only if the short-circuited net, obtained by adding a transition that feeds back to , is live and bounded. Both properties are decidable, so soundness is a decidable property of the task graph, checked before any case runs. There is no deadlock hunt and no test suite over interleavings; the diagram itself is the proof obligation, and tools such as Woflan discharge it. For free-choice nets, the class into which most modelling notations compile, the check is polynomial.
It is this result that made the model industrial. BPMN and the workflow patterns literature sit on workflow nets, and YAWL was built on them outright. When an orchestration language offers a static guarantee that every process instance can finish, what runs underneath is a soundness checker.
Further reading
Murata’s survey ‘Petri Nets: Properties, Analysis and Applications’ (Proceedings of the IEEE, 1989) remains the standard technical entry point, and Reisig’s Understanding Petri Nets (Springer, 2013) the gentler book-length treatment. For the workflow specialisation, van der Aalst’s ‘The Application of Petri Nets to Workflow Management’ (Journal of Circuits, Systems and Computers, 1998) states the soundness theorem, and van der Aalst and van Hee’s Workflow Management: Models, Methods, and Systems (MIT Press, 2002) develops the engineering around it.