Query process instances (alpha)
POST/process-instances/search
Search for process instances based on given criteria.
This endpoint is an alpha feature and not enabled on Camunda clusters out of the box. See the Camunda 8 REST API overview for further details.
Request
- application/json
Body
- Array [
- ]
sort object[]
Default value: asc
page object
filter object
The bpmn process ID.
variable object
Responses
- 200
- 400
- 500
The Process Instance Search successful response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
page object
items object[]
The process name.
Possible values: [ACTIVE
, INCIDENT
, COMPLETED
, CANCELED
, UNKNOWN
, UNSPECIFIED
]
operations object[]
Possible values: [RESOLVE_INCIDENT
, CANCEL_PROCESS_INSTANCE
, DELETE_PROCESS_INSTANCE
, ADD_VARIABLE
, UPDATE_VARIABLE
, MODIFY_PROCESS_INSTANCE
, DELETE_DECISION_DEFINITION
, DELETE_PROCESS_DEFINITION
, MIGRATE_PROCESS_INSTANCE
]
Possible values: [SCHEDULED
, LOCKED
, SENT
, FAILED
, COMPLETED
]
callHierarchy object[]
{
"items": [
{
"key": 0,
"processDefinitionName": "string",
"processDefinitionVersion": 0,
"bpmnProcessId": "string",
"parentKey": 0,
"parentFlowNodeInstanceKey": 0,
"startDate": "2024-10-02T22:01:21.411Z",
"endDate": "2024-10-02T22:01:21.411Z",
"state": "ACTIVE",
"incident": true,
"hasActiveOperation": true,
"processDefinitionKey": 0,
"tenantId": "string",
"rootInstanceId": "string",
"operations": [
{
"id": "string",
"batchOperationId": "string",
"type": "RESOLVE_INCIDENT",
"state": "SCHEDULED",
"errorMessage": "string",
"completedDate": "2024-10-02T22:01:21.411Z"
}
],
"callHierarchy": [
{
"instanceId": "string",
"processDefinitionId": "string",
"processDefinitionName": "string"
}
]
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
The Process Instance Search Query failed. More details are provided in the response body.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
An internal error occurred while processing the request.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}