Process Instance
One specific execution of a process definition — the "record" that flows through the diagram.
What a process instance is
A process instance is one specific run of a process definition. The definition is the diagram — the abstract description of what happens. The instance is a single execution of that definition for a single case: "invoice 2026-0472", "candidate Marie Dupont", "support ticket #8812". Every activity inside that instance has exactly one state (pending, in progress, completed); the definition has none.
A process instance is the unit that BPMN engines track. When you see a dashboard showing "237 running instances of the Invoice Approval process", each of those 237 is a distinct instance with its own tokens, data, and history. The diagram is shared across all of them; the instance state is not.
How instances and tokens relate
A process instance can have many tokens simultaneously — one for each active parallel branch, plus one in each running sub-process, plus any in multi-instance iterations. Tokens are the execution markers inside the instance; the instance is the container. When all tokens are consumed by end events (or a terminate end event fires), the instance completes.
- One instance — one execution, one customer, one case.
- Many tokens per instance — one for each concurrently active path.
- Many instances per definition — the same diagram, running simultaneously for many cases.
Process instances in LucidFlow
LucidFlow computes "cost per instance" and "cost per month" separately, and the distinction matters. Cost per instance is the weighted expected cost of running the process once — what you would pay for a single invoice, ticket, or onboarding. Cost per month is that number multiplied by the monthly execution frequency — what the business actually spends. When you see the cost dashboard say "$42 per instance, $12,600 per month at 300 instances", the first number is the design cost and the second is the burn rate.
Frequently asked questions
Can an instance go backwards through the diagram?
Normally no — tokens move forward along sequence flows. The exception is loops, where the token returns to the start of the loop body. Arbitrary backtracking is not part of BPMN semantics.
How is an instance created?
Typically by a start event firing. A timer start event creates instances on a schedule; a message start event creates one when a message arrives; a plain start event is triggered by an API call or a manual start from the user interface.
What happens to instance data when the instance completes?
That depends on the engine. BPMN 2.0 does not prescribe retention — some engines delete, some archive, some keep everything forever. Regulatory needs usually drive the choice, and retention is often configurable per process.