Query process instances (alpha)
POST/process-instances/search
Search for process instances based on given criteria.
Note that this endpoint is an alpha feature and not enabled on Camunda clusters out of the box. The Camunda 8 API (REST) Overview page provides further details.
This endpoint is an alpha feature and may be subject to change in future releases.
Request
- application/json
Body
- Array [
- ]
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedIntegerFilter
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedLongFilter
sort object[]
Default value: asc
page object
filter object
Process instance search filter.
processInstanceKey object
The key of this process instance.
integer
Checks for equality with the provided value.
Checks for inequality with the provided value.
Checks if the current property exists.
Checks if the property matches any of the provided values.
Greater than comparison with the provided value.
Greater than or equal comparison with the provided value.
Lower than comparison with the provided value.
Lower than or equal comparison with the provided value.
The process definition ID.
The process definition name.
processDefinitionVersion object
The process definition version.
integer
Checks for equality with the provided value.
Checks for inequality with the provided value.
Checks if the current property exists.
Greater than comparison with the provided value.
Greater than or equal comparison with the provided value.
Lower than comparison with the provided value.
Lower than or equal comparison with the provided value.
Checks if the property matches any of the provided values.
The process definition version tag.
processDefinitionKey object
The process definition key.
integer
Checks for equality with the provided value.
Checks for inequality with the provided value.
Checks if the current property exists.
Checks if the property matches any of the provided values.
Greater than comparison with the provided value.
Greater than or equal comparison with the provided value.
Lower than comparison with the provided value.
Lower than or equal comparison with the provided value.
parentProcessInstanceKey object
The parent process instance key.
integer
Checks for equality with the provided value.
Checks for inequality with the provided value.
Checks if the current property exists.
Checks if the property matches any of the provided values.
Greater than comparison with the provided value.
Greater than or equal comparison with the provided value.
Lower than comparison with the provided value.
Lower than or equal comparison with the provided value.
parentFlowNodeInstanceKey object
The parent flow node instance key.
integer
Checks for equality with the provided value.
Checks for inequality with the provided value.
Checks if the current property exists.
Checks if the property matches any of the provided values.
Greater than comparison with the provided value.
Greater than or equal comparison with the provided value.
Lower than comparison with the provided value.
Lower than or equal comparison with the provided value.
The path of keys to this process instance, separated by '/'.
The start date.
The end date.
Possible values: [ACTIVE
, COMPLETED
, CANCELED
]
The state, one of ACTIVE, COMPLETED, CANCELED.
Whether this process instance has a related incident or not.
The tenant ID.
Responses
- 200
- 400
- 500
The process instance search result.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
page object
items object[]
The key of this process instance.
The process definition ID.
The process definition name.
The process definition version.
The process definition version tag.
The process definition key.
The parent process instance key.
The parent flow node instance key.
The path of keys to this process instance, separated by '/'.
The start date.
The end date.
Possible values: [ACTIVE
, COMPLETED
, CANCELED
]
The state, one of ACTIVE, COMPLETED, CANCELED.
Whether this process instance has a related incident or not.
The tenant ID.
{
"items": [
{
"processInstanceKey": 0,
"processDefinitionId": "string",
"processDefinitionName": "string",
"processDefinitionVersion": 0,
"processDefinitionVersionTag": "string",
"processDefinitionKey": 0,
"parentProcessInstanceKey": 0,
"parentFlowNodeInstanceKey": 0,
"treePath": "string",
"startDate": "2024-11-14T15:06:47.115Z",
"endDate": "2024-11-14T15:06:47.115Z",
"hasIncident": true,
"tenantId": "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"
}