Skip to main content

Processinstances overview

Non-Production Preview

The Process Orchestration APIs are currently available as a Non-Production Preview (NPP) feature and are not available to all clients. For more information, see Process Orchestration.

External Orchestration only

Process instances are only available for External Orchestration pattern processes. Core Extensions and API Composition processes execute synchronously within a CBE request and do not create persistent instances.

The Process Instances API provides full lifecycle management for External Orchestration process instances. Use it to start new instances, inspect running or historical instances, manage process variables, cancel running instances, and search across all instances.

External Orchestration processes run asynchronously and create persistent instances — this API is your primary interface for interacting with them.

Endpoint summary

MethodPathDescription
POST/processinstances/{processDefinitionKey}:startStart a new process instance
GET/processinstances/{processInstanceId}Get historical data for a specific instance
GET/processinstances/{processInstanceId}/history/activitiesList historical activities for an instance
GET/processinstances/{processInstanceId}/history/variablesList historical variables for an instance
POST/processinstances/{processInstanceId}/variablesSet multiple process-scoped variables atomically
PUT/processinstances/{processInstanceId}/variables/{name}Set a single process-scoped variable
POST/processinstances/{processInstanceId}:cancelCancel a running process instance
GET/processinstances/{processInstanceId}/jobsList background jobs (including dead-letter jobs) for an instance
GET/processinstances/{processInstanceId}/job-logsList job execution logs for an instance
POST/processinstances/{processInstanceId}/jobs/{jobId}:retryRetry a dead-letter job
DELETE/processinstances/{processInstanceId}/jobs/{jobId}Delete a dead-letter job
POST/processinstances:searchSearch process instances

Starting a process instance

Start an External Orchestration process by providing the process key and any input variables the process requires. Input variables are passed as a flat JSON object.

Managing process variables

You can read and write process-scoped variables at runtime. Writing variables allows your external system to inject data into a running process.

Cancelling an instance

Cancel a running instance to terminate it before it reaches an end event. Cancellation is immediate and cannot be undone.

Instance status values

StatusDescription
RUNNINGProcess is currently executing or waiting at a human task, callback, or timer
COMPLETEDProcess reached an end event successfully
FAILEDProcess encountered an unhandled error and terminated
CANCELLEDProcess was cancelled externally via the cancel endpoint