Petri Net

A Petri net is a graph of places and transitions, with tokens marking the current state, that models concurrent discrete processes such as patient flow.

Status
Published, version 1.0.1
Last reviewed
22 Nov 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Petri Net for Concurrent Processes and Care Pathways

A Petri net describes a system as conditions that can hold and events that change them, drawn as circles and bars joined by arrows, with dots called tokens showing the current state. Several parts can act at once and an event can wait for several conditions together, so the notation suits clinics, where the start of a consultation needs a patient and a clinician to be ready. Health services researchers have used Petri nets to find bottlenecks in patient pathways, and the structure can be checked mathematically for deadlocks before costs are attached.

Who uses the term and how

The term comes from computer science, and the wiki label matches the standard use. Tadao Murata's 1989 review in the Proceedings of the IEEE traces the idea to Carl Adam Petri's 1962 dissertation at the Technical University of Darmstadt and calls Petri nets a graphical and mathematical modelling tool for concurrent, asynchronous and distributed systems. John F. Sowa's paper Processes and Causality uses Petri nets to write procedures, which he defines as specifications for families of discrete processes. In health care, the heart clinic study described below uses it, while the ISPOR-SMDM reports on discrete event simulation and state-transition models do not.

Places, transitions, tokens and the firing rule

Murata defines a Petri net as a directed, weighted, bipartite graph with two kinds of node, places and transitions, so that every arc joins a place and a transition. A marking assigns each place a whole number of tokens, and the initial marking gives the starting state. Read as conditions and events, the input places of a transition stand for its preconditions and the output places for its postconditions. Murata also lets tokens count available resources, which a task takes and later releases.

A transition is enabled when each input place holds at least as many tokens as the weight of the arc from that place. An enabled transition may or may not fire, and firing moves tokens.

M′(p)=M(p)−w(p,t)+w(t,p)M'(p) = M(p) - w(p,t) + w(t,p)

where M(p)M(p) is the number of tokens in place pp before transition tt fires, M′(p)M'(p) is the number afterwards, w(p,t)w(p,t) is the weight of the arc leaving pp for tt and w(t,p)w(t,p) that of the arc leaving tt for pp, each zero when there is no such arc.

Concurrency, conflict and Sowa's comparison

In Sowa's comparison of notations for procedures, a flow chart shows events and decisions, a finite-state machine shows states, and a Petri net can be considered a merger of the two, its places matching the states and its transitions the events. Flow charts and finite-state machines specify only sequential processes, and Sowa names the ability to represent concurrent processes as the major strength of Petri nets. He also states as a theorem, with a sketch of proof, that for every discrete process some Petri net has a history of execution that includes it.

Two transitions are concurrent, in Murata's terms, when they are causally independent, so either may fire before, after or alongside the other. They are in conflict when either can occur but not both, as when two transitions compete for one token, and this choice makes the net nondeterministic.

Properties that can be checked

A marking is reachable if some firing sequence leads to it. A net is bounded if no place ever holds more than a fixed number of tokens, and safe if that number is one. A live net can always go on to fire any transition, which Murata relates to the complete absence of deadlocks.

The state equation turns firing into matrix algebra.

Mk=Mk−1+ATukM_k = M_{k-1} + A^{T} u_k

where MkM_k is the marking after the kkth firing as a column vector with one entry per place, AA is the incidence matrix whose row for each transition gives the change in tokens at each place when it fires once, and uku_k is a column vector with a 1 for the transition that fires at step kk and 0 elsewhere. An S-invariant is a vector yy with Ay=0Ay = 0, and Murata shows that the weighted token count MTyM^{T}y is then the same in every reachable marking.

Time, probability and stochastic Petri nets

Time enters Murata's account through timed nets, which attach fixed delays, and stochastic nets, whose delays are given by probability distributions. In a stochastic Petri net each transition has an exponentially distributed delay between enabling and firing, and because that distribution is memoryless the reachability graph of a bounded stochastic Petri net is isomorphic to a finite continuous-time Markov chain, defined by transition rates, not the per-cycle probabilities of a cohort model. When the net is also reversible, the chain's steady-state probabilities give measures such as the expected number of tokens in a place.

Petri nets in clinic and pathway analysis

Zeinalnezhad and colleagues (2020) built a timed coloured Petri net of a heart clinic in CPN Tools and ran it as a discrete event simulation. In the simulation of the current workflow, patient reception was the main bottleneck, with patients waiting 120 minutes there on average, and in the best scenario tested, hiring three more reception staff while moving free staff to busy wards cut simulated total waiting time by 62.3%. In coloured nets tokens carry data values, so they can stand for distinguishable patients.

Such work places Petri nets beside queuing models and other constrained-resource models of patient flow. The ISPOR-SMDM report by Karnon and colleagues (2012) lists flow times, wait times, throughput and resource utilisation (costs) as common outcomes of such models and recommends that they also consider effects on health outcomes. A Petri net of a care pathway supplies the structure, and costs and health outcomes still have to be added and valued.

Worked example with two clinicians and three patients

All numbers are illustrative. A clinic has four places, Waiting, Clinician free, In consultation and Seen, and two transitions. Start takes a token from Waiting and one from Clinician free and puts one in In consultation. Finish takes a token from In consultation and puts one in Seen and one back in Clinician free. The initial marking is (3, 2, 0, 0).

Step 1. Start fires. Waiting becomes 3 − 1 = 2, Clinician free 2 − 1 = 1 and In consultation 0 + 1 = 1, giving (2, 1, 1, 0).

Step 2. Start fires again while the first consultation is still under way, giving (1, 0, 2, 0). Start is now disabled, as Clinician free is empty, so the third patient queues.

Step 3. Finish fires, giving (1, 1, 1, 1). Start fires, giving (0, 0, 2, 1). Finish fires twice, giving (0, 1, 1, 2) and then (0, 2, 0, 3).

Step 4. Start changes the marking by (−1, −1, +1, 0) and Finish by (0, +1, −1, +1), and each fired 3 times.

M=M0+3s+3f=(3,2,0,0)+(−3,−3,3,0)+(0,3,−3,3)=(0,2,0,3)M = M_0 + 3s + 3f = (3,2,0,0) + (-3,-3,3,0) + (0,3,-3,3) = (0,2,0,3)

where M0M_0 is the initial marking, ss and ff are the change vectors of Start and Finish, and MM is the final marking, which matches Step 3.

Step 5. Clinician free plus In consultation equals 2 at all seven markings, so no clinician is lost or doubled, and Waiting plus In consultation plus Seen stays at 3. The final marking enables no transition, so the net is not live. This dead marking ends the session here but would be a deadlock in a net meant to run continuously.

Boundaries with neighbouring models

A state-transition model uses mutually exclusive health states, and Siebert and colleagues (2012) say a modelled individual must be in only one state in any cycle. A Petri net marking can hold tokens for different kinds of entity at once, such as waiting patients and free clinicians, and one transition can wait for a patient and a clinician together, so a shared resource constrains the patients who need it. Discrete event simulation is a way of running a model through time, while a Petri net is a formal structure that can be analysed for reachability or deadlock as well as simulated.

Limitations and common misreadings

Murata names as a major weakness the complexity problem, with models too large for analysis even for a modest-size system, and reachability, though decidable, needs at least exponential space and time in general. An enabled transition that may fire expresses nondeterminism, not probability.

Petri nets and RHEO

The Real Health Economics Ontology (RHEO), release 0.5.1 at healtheconomics.wiki/ontologies/rheo, has a class transition specification (RHEO_0000134) for a statement of which transitions between states a model allows. In the wiki's reading a Petri net is one notation for such a specification, with markings as its states and each firing of a Petri net transition, an event, as an allowed move between them, although RHEO does not mention Petri nets.

Sources

  • Murata T. Petri nets: properties, analysis and applications. Proceedings of the IEEE. 1989;77(4):541-580. https://doi.org/10.1109/5.24143
  • Sowa JF. Processes and Causality. jfsowa.com, 2000 (copyright notice on the page). Section 4. Read 22 November 2026. http://www.jfsowa.com/ontology/causal.htm
  • Zeinalnezhad M, Chofreh AG, Goni FA, Klemeš JJ, Sari E. Simulation and improvement of patients' workflow in heart clinics during COVID-19 pandemic using timed coloured Petri nets. International Journal of Environmental Research and Public Health. 2020;17(22):8577. https://doi.org/10.3390/ijerph17228577
  • Karnon J, Stahl J, Brennan A, Caro JJ, Mar J, Möller J. Modeling using discrete event simulation: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-4. Value in Health. 2012;15(6):821-827. https://doi.org/10.1016/j.jval.2012.04.013
  • Siebert U, Alagoz O, Bayoumi AM, Jahn B, Owens DK, Cohen DJ, Kuntz KM. State-transition modeling: a report of the ISPOR-SMDM Modeling Good Research Practices Task Force-3. Value in Health. 2012;15(6):812-820. https://doi.org/10.1016/j.jval.2012.06.014
  • Baines D, Ashley M. Real Health Economics Ontology (RHEO), version 0.5.1, release of 21 November 2026, class RHEO_0000134 transition specification. Intelligent Parameters Ltd; 2026.

Frequently Asked Questions (6)

  • What is Petri Net?

    A Petri net is a graph of places and transitions, with tokens marking the current state, that models concurrent discrete processes such as patient flow.

    Source: Murata 1989

  • How does the firing rule of a Petri net work?

    In a Petri net, places hold tokens and each transition is joined to input and output places by weighted arcs. Murata gives the rule in three parts. A transition is enabled when every input place holds at least as many tokens as the weight of the arc leaving that place. An enabled transition may or may not fire, depending on whether the event takes place. When it fires, it removes tokens from each input place and adds tokens to each output place, in each case as many as the arc weight. A source transition, with no input place, is always enabled.

    Source: Murata 1989

  • Why is a Petri net better suited to concurrent processes than a flow chart?

    Sowa compares three graph notations for specifying procedures. A flow chart uses boxes for events and diamonds for decisions, and a finite-state machine uses circles for states and arcs for transitions. A Petri net can be considered a merger of the two, since its places correspond to the states and its transitions to the events. Flow charts and finite-state machines can contain branches and loops but can only specify sequential processes. Sowa names the ability of a Petri net to represent parallel or concurrent processes as its major strength, as in his bus stop net, where tokens for three waiting people and an arriving bus are present at the same time.

    Source: Sowa 2000

  • What properties of a Petri net can be checked before it is used?

    Murata separates behavioural properties, which depend on the initial marking, from structural ones. A marking is reachable if some firing sequence leads to it, and Murata reports that reachability is decidable but needs at least exponential space and time in general. A Petri net is bounded if no place ever holds more than a fixed number of tokens, which rules out overflow in places used as buffers. A live net can always go on to fire any transition, and Murata relates liveness to the complete absence of deadlocks. A reversible net can always return to its initial marking.

    Source: Murata 1989

  • How has a Petri net been used to study patient flow in a clinic?

    Zeinalnezhad and colleagues built a timed coloured Petri net of a heart clinic's patient workflow during the COVID-19 pandemic, using CPN Tools, and ran it as a discrete event simulation. Their first simulation of the current process found the main bottleneck at patient reception, where each patient waited 120 minutes on average. Of the improvement scenarios simulated, hiring three more reception staff and moving free staff to busy wards cut simulated total waiting time by 62.3%. In a coloured Petri net the tokens carry data values, so they can represent distinguishable patients. A health economic evaluation of such a change would still need its costs and health outcomes.

    Source: Zeinalnezhad et al. 2020

  • How does a Petri net differ from a state transition model in health economics?

    A state transition model in health economics is built on mutually exclusive and collectively exhaustive health states. The ISPOR-SMDM task force led by Siebert says that a modelled individual must be in only one state in any cycle, and notes that its common cohort and individual-based forms do not capture interactions between individuals. It regards such a model as a reasonable choice when interactions are not relevant and the cohort is closed. A Petri net can still keep each patient in one place, but its marking can also hold tokens for other entities, such as free clinicians, and one transition can wait for several inputs, such as a patient and a free clinician, so patients compete for shared resources.

    Source: Siebert et al. 2012

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 22 Nov 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-EM-DES-017

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/petri-net