Operating Live Instances
This page describes how operators inspect and act on running and completed process instances from the BPMN UI.
The two views you'll spend time in:
| View | Purpose |
|---|---|
| BPMN Instances | List of instances across all deployed processes - filter, drill in, cancel |
| Instance detail | Everything about a single instance: incidents, history, jobs, user tasks, child instances, variables, and a live diagram view |
Instances list
Open BPMN Instances from the BPMN navigation. You'll see one row per instance with instance ID, status, started timestamp, and a link into the detail view. More rows load as you reach the end of the list (cursor and limit on the API).
| Status | Meaning |
|---|---|
| RUNNING | The instance is in flight |
| COMPLETED | The instance reached an end event |
| FAILED | The instance terminated with an error |
| CANCELED | The instance was cancelled (by an operator or by a parent process) |
Filtering
The status filter is deep-linkable - ?status=RUNNING, ?status=FAILED, etc. The operational dashboard's KPI cards link directly here.
A paused filter narrows the list to paused or not-paused instances (?suspended=true / ?suspended=false on the API, omit for all). An instance counts as paused when any scope applies: the instance itself, its whole definition, or for a call-activity child an instance above it in the call chain. See Pausing and resuming.
The Process filter shows the instances of one process in all its versions, and Version narrows them to one (?processId= and ?version= on the API). The Business ID filter matches the start of the business ID, so ORDER-1 finds ORDER-17 (?businessId= on the API).
Finding instances by variable
The Variable filter on the instances list takes a FEEL boolean and returns the instances whose variables satisfy it.
amount > 50000 and customer.vip
The filter needs a process and a version, chosen with the two selects above it. An expression is written against one process's variables, so a search covers one definition version. The same filter is on the process version detail page, where the version is already fixed.
Running instances are searchable from their start. The engine keeps a copy of each instance's root variables, written in the same step that changes them, and the filter reads that copy. See Captured variables for its scope.
The predicate composes with the filters above it. Status, incident, business ID and the time range narrow the set before the expression runs, so setting them makes a search cover more ground in the same time. In a search the business ID must match in full.
Reading the results
The header above the results carries:
| Figure | Meaning |
|---|---|
| N matches | Instances found so far |
| scanned N instances in M ms | Instances read and tested to find them |
| N could not be evaluated | Instances the expression could not be applied to. Hover for the first error message |
An instance that does not carry a variable the expression names cannot be evaluated against it, and is left out of the results. When no instance at all could be evaluated, the page says so: that points at the expression rather than at the population.
Each result row adds a column for each variable the expression named.
Continuing a search
The results carry no total and no page numbers. The expression is evaluated after the rows are read, so counting the matches means testing every instance in the window.
Keep searching older instances continues from exactly where the scan stopped. A scan also stops on a 30 second deadline and offers the same continuation, so a long search returns what it found instead of timing out. When the scan reaches the end of the window it says so.
Row actions are the ones the list already has. Bulk actions over a result set are not available.
The filter is held in the URL on the instances list, so a search can be shared.
To fold instances into aggregate figures instead of listing them, see Analytics.
Auto-refresh
When any instance on the page is RUNNING, the list auto-refreshes every 8 seconds. Once everything's terminal, the polling stops.
Cancelling from the list
Each running instance has a cancel action. It asks for confirmation and then cancels the instance immediately. Completed, failed, and canceled instances cannot be cancelled. See Cancelling an instance for call-activity children.
Instance detail
Click into a row to open the detail page. The top of the page shows:
- The instance's status (with a count of incidents if any are open).
- A Paused, Definition paused or Caller paused badge for each scope that pauses the instance. An admin can resume a paused instance from here. A caller pause is resumed on the calling instance.
- The instance ID, in monospace, for copy/paste.
- A breadcrumb back to parent instances, when the instance was started by a call activity (see Drilling into child instances).
- A View Diagram action that opens a full-screen diagram view.
- A Cancel action (running instances only).
If the instance is FAILED, the failure reason is shown in a banner at the top.
The body is a multi-open accordion with the following sections.
Incidents
An incident is what an instance becomes when an activity throws an error that has nowhere to go. The instance pauses at the failed node and waits for an operator to resolve it.
Each incident shows:
| Field | Description |
|---|---|
| Node | The failed node's ID |
| Type | Error type as reported by the activity |
| Code | The BPMN error code, when the incident comes from a BPMN error |
| Message | The error message |
| Time | When the incident was created |
What causes an incident
An error becomes an incident when no matching handler can catch it. The common paths:
| Source | When it produces an incident |
|---|---|
| External worker | A worker reports an error and the retry budget is exhausted with no error boundary catching the BPMN error |
| User task | A caller submits ThrowError with no matching error boundary on the user task or up the scope chain |
| Script task | A FEEL expression in the script body raises an evaluation error - division by zero, unresolved variable, type mismatch - with no error boundary attached |
| Business-rule task | The called DMN decision fails to evaluate or the result mapping fails, with no error boundary attached |
| Message correlation key | A message's correlationKey fails to evaluate when an element subscribes to the message or throws it. The incident sits on that element, on the host activity for a boundary event. Resolving it, usually with corrected variables, evaluates the key again and subscribes or publishes |
| Uncaught error throw | An error end event or thrown error from an activity that bubbles up to the root with no matching error boundary or error event sub-process anywhere on the path |
If an error is caught - by an error boundary on the activity, a parent's boundary, or an error event sub-process - there's no incident. The token routes through the handler.
To act on an incident, open the diagram view and use the run panel - see Resolving incidents.
Activity history
A table of the instance's history entries, oldest first. The newest 200 load with the page, and Load earlier reads the ones before them.
| Field | Description |
|---|---|
| Node | The activity's ID |
| Type | The element type (serviceTask, userTask, exclusiveGateway, etc.) |
| Status | Started, Completed, Failed, Canceled or Resolved, or Lifecycle for a pause, resume, cancel, migration, variable update, modification or incident resolve |
| Time | When the entry was recorded |
| Duration | On the entry that ended an element, the time since its Started entry |
This is the same data the replay slider works from.
The braces button on a row opens its inputs and outputs. On a business rule task's row it also shows the decision evaluation that run recorded: the decision or decision service with its version, the DMN definitions version, and each evaluated decision with its value or error and the decision table rules it matched, numbered as in the table editor. Each run of the task has its own rows and its own evaluation, a loop iteration, a multi-instance item or a retry after an incident alike. The Failed and Resolved rows of a run that raised an incident show the failed evaluation, and the retry's rows show the retry's.
External jobs
Jobs the engine has dispatched for service tasks, worker-mode send tasks, and throw and end events with a quantum:taskDefinition. Useful when investigating a stuck job or confirming that a worker actually picked one up. An instance's jobs are deleted when it ends, and its activity history keeps each job's task type, retries left and worker.
| Field | Description |
|---|---|
| Node | The activity that produced the job |
| Task type | The worker type string the job was dispatched with |
| Status | PENDING, COMPLETED, FAILED, or CANCELED |
| Cancel reason | The reason the job was cancelled, when applicable |
| Created / Completed | Timestamps |
For the worker-author side of this, see External workers.
User tasks
The user-task lifecycle for the instance:
| Field | Description |
|---|---|
| Node | The user task's ID |
| Assignee | The single user assigned (if any) |
| Candidate groups | Groups whose members may complete the task |
| Due | When the task is due, marked overdue while an open task is past it |
| Priority | From 0 to 100, higher is more urgent |
| Status | CREATED, COMPLETED, FAILED, or CANCELED |
| Detail | Error code (FAILED) or cancel reason (CANCELED) |
| Created | When the task was registered |
Child instances
Instances spawned by call activities in this process. Each row links to the child's detail page, clicking Open preserves the breadcrumb so you can walk back up.
Variables
The instance's current variable scope as a JSON object. Empty when the instance has no variables set. With edit permission, Edit changes them, which records a "Variables updated" entry in the history.
Diagram view
The View Diagram action opens a full-screen modal with the deployed BPMN diagram, overlaid with the instance's live state.
Overlay colors
| Color | Meaning |
|---|---|
| Active | The node is currently executing |
| Completed | The node finished normally |
| Failed | The node threw an error |
| Canceled | The node was cancelled, drawn gray with a dotted outline |
| Incident | The node has an unresolved incident |
Sequence flows a token travelled are drawn in the completed colour, so the path the instance took reads off the diagram: the branch an exclusive gateway chose, the flows that reached a join, and the catch event that won behind an event-based gateway. A join that is still waiting shows the flows that have already arrived, and a pill such as 2/3 counts them against its incoming flows. For an inclusive gateway the second number is the most that can arrive.
The overlay updates every 3 seconds while the instance is running.
Replay slider
Below the diagram, a replay slider steps through the loaded history, the newest 200 entries and those recorded since, one entry at a time. Each tick is labelled with the node ID and its status (Started, Completed, Failed, Canceled or Resolved). A pause, resume, cancel, migration, variable update, modification or incident resolve shows its own label.
| Mode | Behavior |
|---|---|
| Live (default) | The diagram shows the current state, the run panel is interactive |
| Replay | The diagram shows historical state at the chosen step, the run panel is hidden |
Click Live to drop out of replay mode and return to the current state.
Run panel
To the right of the diagram (visible when you have edit permission and the slider is not in replay mode), the run panel shows the instance and lets you act on it directly. Its controls that change the instance appear while the instance is RUNNING.
The panel sections, top to bottom:
Active elements
A list of nodes that are currently active - the same nodes highlighted on the diagram.
Pending tasks
For each pending external job, a card lets you:
- Inspect the job's input variables and headers.
- Complete the job by submitting an output variables JSON - the engine treats this exactly like a worker completion.
- Throw error by submitting an error code and optional variables - the engine treats this as a worker-reported BPMN error, which routes the token through any matching error boundary.
This is most useful when you have no worker yet and want to drive the instance forward by hand, or to recover from a stuck worker.
Pending user tasks
For each open user task, a card shows its input variables and lets you Complete it with output variables or Throw error with an error code, as the user task API does.
Ad-hoc scopes
When the instance is inside an ad-hoc sub-process, the run panel offers per-scope controls:
- Activate inner - pick one of the ad-hoc's child activities and start it. Useful when the scope's
activeElementsCollectiondoesn't match what you want, or when activities should be triggered manually. - Update scope variables - submit a JSON object that's merged into the scope's variables. The completion condition is re-evaluated.
Incidents
Each open incident shows the node ID, error message, and error code (if any) with a Retry button. Retrying resolves the incident and re-executes the failed node from the beginning.
Publish signal or message
Send a signal or message directly from the panel.
For a signal (broadcast - wakes every subscriber):
| Field | Notes |
|---|---|
| Name | Signal name to broadcast |
| Variables | JSON payload merged into the recipients' scope |
| TTL | Optional buffer expiry - ISO 8601 duration (PT30M), duration string (30m), or absolute timestamp |
For a message (point-to-point - wakes one matching subscriber):
| Field | Notes |
|---|---|
| Name | Message name |
| Correlation | Either a single value (number, boolean, or string) or a JSON object - leave empty for "no correlation" |
| Variables | JSON payload |
| TTL | Optional buffer expiry, same formats as signal |
If the value field has a number, boolean, or quoted string, it's parsed and sent with the right type. Anything else is sent as a plain string.
On a test run the panel sends the signal or message under its name with the draft: prefix, which is how a test run receives it. The name field shows the name sent.
Variables
The instance's current variables as a collapsible JSON block. Expands to a scrollable code view.
Activity history
A condensed view of the activity table from the detail page - node, status (with badge), start time, duration. Useful when you want to glance at recent activity without leaving the diagram view.
Cancelling an instance
A Cancel action is available in two places:
- The cancel icon next to each running row in the instances list.
- The cancel button in the instance detail header (running instances only).
Both ask for confirmation and terminate the instance immediately. Cancellation propagates to child instances spawned by call activities. A call-activity child is cancelled through its parent: cancelling the child directly while the parent runs answers 400.
Pausing and resuming
Suspension pauses execution without cancelling anything. There are two independent scopes:
| Scope | Endpoint | Effect |
|---|---|---|
| Instance | POST .../bpmn/instances/{instanceID}/suspend | Pauses forward execution of one instance |
| Definition | POST .../bpmn/processes/{processID}/versions/{version}/suspend | Pauses every running instance of a deployed process version and rejects new starts on it |
Both accept an optional reason and have a matching /resume endpoint.
What to expect while paused:
- The instance's lifecycle status stays RUNNING. The instances list marks paused rows with a pause icon, with a distinct tooltip when the pause comes from the definition.
- A paused definition rejects
StartBpmnInstanceuntil resumed. Definition and process views show a paused badge, and process summaries exposesuspendedVersionCount. - A call activity that calls a paused definition raises a
ProcessSuspendedincident on the call activity. Resume the definition, then retry the incident. - Job and user task completions, messages and signals that reach a paused instance are accepted and take effect after the resume, in the order they arrived. Its timers fire after the resume. A cancel, an incident retry and a variable update apply at once, and what they start waits for the resume.
- Publishing a message or signal that would start a paused definition answers
400with codeBAD_REQUESTand publishes nothing, not even to running instances waiting for that name. Publish it again once the definition is resumed. A message or signal thrown inside a running process skips the paused start and logs a warning. Timer starts are skipped until resume. - Resume acts on one scope at a time. Resuming a definition leaves instances that were also paused individually still paused, clear those per instance.
- Pausing an instance pauses its call-activity children with it, at every level of the call chain, and resuming it resumes them. A child shows a "Caller paused" badge and
parentSuspensionwhile this holds, and the instances list marks it paused (parentSuspended). A child you paused on its own stays paused until you resume it. Definition pauses stay with that definition's instances and do not reach their children. - The API exposes
suspendedAt,suspendedByandsuspendReasonon instances and definitions, plusdefinitionSuspendedon instances so you can tell the scopes apart. Every pause and resume is also recorded in the instance timeline.
Resolving incidents
When an instance has unresolved incidents, work the diagram view:
- Click View Diagram on the instance detail page.
- In the run panel, find the incident in the Incidents section.
- Click Retry. The engine clears the incident and re-runs the activity that produced it.
What "retry" actually does
A retry does not restart the whole instance. It re-runs only the activity that the incident is bound to:
- For a service task, the engine creates a fresh job in the queue. A worker (or an operator using Pending tasks) picks it up and tries again.
- For a user task, the task is re-registered as
CREATEDand waits for an assignee to act on it. - For a script task or business-rule task, the engine re-evaluates the script or the decision.
Variables and tokens elsewhere in the instance are unaffected. The activity runs again in the scope it failed in, and its input mappings are evaluated again, so variables the resolve supplies reach them.
Adjusting input before retry
The resolve API accepts an optional variables map that's merged into the activity's scope before the retry runs. Use this when the input itself was the problem - for example, a FEEL expression failed because a value was missing or had the wrong shape, and you want to inject a correction without changing the model.
The run panel's Retry button submits an empty variables map by default. To pass corrections, call the API directly:
POST /projects/{projectID}/bpmn/instances/{instanceID}/incidents/{incidentID}/resolve
{ "variables": { "amount": 49.95 } }
When the cause persists
Resolving doesn't fix the underlying problem - it just re-runs the activity. If the cause is still there (the worker is still buggy, the input is still bad, the decision is still misconfigured), the activity fails again and a new incident is created on the next failure.
If you need to abandon the instance entirely, cancel it instead of retrying.
Drilling into child instances
Call activities spawn child instances. The detail view exposes the parent/child relationship in two places:
- The Child instances accordion section lists all children spawned by this instance.
- The diagram view's call-activity nodes are clickable when an instance is running - clicking jumps to the child's detail page.
Both paths preserve a breadcrumb in the URL, so the navigation walks back up cleanly. If you deep-link directly to a child instance (no URL breadcrumb but the API knows it has a parent), an Up to parent button appears in the header for a single hop.
What's API-only today
Two operational features exist on the API but don't yet have a UI:
| Feature | Effect |
|---|---|
| Modify token state | Insert a new token before a node (START_BEFORE_NODE) or cancel an active token (CANCEL_TOKEN) |
| Migrate to a new process version | Move running instances to a new deployed version with an explicit migration plan |
Both are exposed through the REST API. UI surfaces are on the roadmap.
A modification applies all of its instructions or none. Scopes it empties complete only after all of them applied, so cancel a stuck token and start its replacement in one request: sent as two requests, the cancel can end the instance before the start arrives. Cancelling a sub-process or ad-hoc sub-process ends it, and the flow does not go on past it.
A migration plan that would leave a running token on an element the target version lacks is refused, and nothing changes. Once applied, every waiting job and user task is recreated from the target version under a new key: a worker still holding the old job gets a not-found error when it reports, and fetches the job again.