Query process instances
POST/process-instances/search
Search for process instances based on given criteria.
Request
- application/json
Body
- Array [
- ]
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedStringFilter
- MOD1
- AdvancedStringFilter
- MOD1
- AdvancedIntegerFilter
- MOD1
- AdvancedStringFilter
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedLongFilter
- MOD1
- AdvancedDateTimeFilter
- MOD1
- AdvancedDateTimeFilter
- AdvancedProcessInstanceStateFilter
- MOD1
- AdvancedStringFilter
- Array [
- ]
sort object[]
Sort field criteria.
The field to sort by.
Possible values: [ASC
, DESC
]
Default value: ASC
The order in which to sort the related field.
page object
Pagination criteria.
The index of items to start searching from.
The maximum number of items to return in one request.
Items to search after. Correlates to the lastSortValues
property of a previous search response.
Items to search before. Correlates to the firstSortValues
property of a previous search response.
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.
processDefinitionId object
The process definition ID.
string
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.
Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client.
processDefinitionName object
The process definition name.
string
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.
Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client.
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.
processDefinitionVersionTag object
The process definition version tag.
string
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.
Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client.
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.
startDate object
The start date.
string
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.
endDate object
The end date.
string
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.
state object
The process instance state.
Possible values: [ACTIVE
, COMPLETED
, CANCELED
]
Checks for equality with the provided value.
Possible values: [ACTIVE
, COMPLETED
, CANCELED
]
Checks for inequality with the provided value.
Checks if the current property exists.
Possible values: [ACTIVE
, COMPLETED
, CANCELED
]
Checks if the property matches any of the provided values.
Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client.
Whether this process instance has a related incident or not.
tenantId object
The tenant ID.
string
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.
Checks if the property matches the provided like value. Supported wildcard characters depend on the configured search client.
variables object[]
The process instance variables.
Name of the variable.
The value of the variable.
Responses
- 200
- 400
- 401
- 403
- 500
The process instance search result.
- application/json
- application/vnd.camunda.api.keys.number+json
- application/vnd.camunda.api.keys.string+json
- Schema
- Example (from schema)
Schema
- Array [
- ]
page object
Pagination information about the search results.
Total items matching the criteria.
The sort values of the first item in the result set. Use this in the searchBefore
field of an ensuing request.
The sort values of the last item in the result set. Use this in the searchAfter
field of an ensuing request.
items object[]
The matching process instances.
The key of this process instance.
The process definition key.
The parent process instance key.
The parent flow node instance key.
{
"items": [
{
"processInstanceKey": "string",
"processDefinitionKey": "string",
"parentProcessInstanceKey": "string",
"parentFlowNodeInstanceKey": "string",
"processDefinitionId": "string",
"processDefinitionName": "string",
"processDefinitionVersion": 0,
"processDefinitionVersionTag": "string",
"startDate": "2024-12-19T15:07:40.125Z",
"endDate": "2024-12-19T15:07:40.125Z",
"hasIncident": true,
"tenantId": "string"
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
page object
Pagination information about the search results.
Total items matching the criteria.
The sort values of the first item in the result set. Use this in the searchBefore
field of an ensuing request.
The sort values of the last item in the result set. Use this in the searchAfter
field of an ensuing request.
items object[]
The matching process instances.
The key of this process instance.
The process definition key.
The parent process instance key.
The parent flow node instance key.
{
"items": [
{
"processInstanceKey": 0,
"processDefinitionKey": 0,
"parentProcessInstanceKey": 0,
"parentFlowNodeInstanceKey": 0,
"processDefinitionId": "string",
"processDefinitionName": "string",
"processDefinitionVersion": 0,
"processDefinitionVersionTag": "string",
"startDate": "2024-12-19T15:07:40.126Z",
"endDate": "2024-12-19T15:07:40.126Z",
"hasIncident": true,
"tenantId": "string"
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
page object
Pagination information about the search results.
Total items matching the criteria.
The sort values of the first item in the result set. Use this in the searchBefore
field of an ensuing request.
The sort values of the last item in the result set. Use this in the searchAfter
field of an ensuing request.
items object[]
The matching process instances.
The key of this process instance.
The process definition key.
The parent process instance key.
The parent flow node instance key.
{
"items": [
{
"processInstanceKey": "string",
"processDefinitionKey": "string",
"parentProcessInstanceKey": "string",
"parentFlowNodeInstanceKey": "string",
"processDefinitionId": "string",
"processDefinitionName": "string",
"processDefinitionVersion": 0,
"processDefinitionVersionTag": "string",
"startDate": "2024-12-19T15:07:40.127Z",
"endDate": "2024-12-19T15:07:40.127Z",
"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"
}
The request lacks valid authentication credentials.
- 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"
}
Forbidden. The request is not allowed.
- 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"
}