Query user tasks
POST/user-tasks/search
Search for user tasks based on given criteria.
Request
- application/json
Body
- Array [
- ]
- MOD1
- AdvancedStringFilter
- MOD1
- AdvancedIntegerFilter
- MOD1
- AdvancedStringFilter
- MOD1
- AdvancedStringFilter
- Array [
- ]
- 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
User task filter request.
The key for this user task.
Possible values: [CREATED
, COMPLETED
, CANCELED
, FAILED
]
The state of the user task.
assignee object
The assignee of the user task.
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.
priority object
The priority of the user task.
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 element ID of the user task.
candidateGroup object
The candidate group for this user task.
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.
candidateUser object
The candidate user for this user task.
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.
The key of the process definition.
The key of the process instance.
Tenant ID of this user task.
The ID of the process definition.
The key of the element instance.
processInstanceVariables object[]
Process Instance variables associated with the user task.
Name of the variable.
The value of the variable.
localVariables object[]
Local variables associated with the user task.
Name of the variable.
The value of the variable.
Responses
- 200
- 400
- 401
- 403
- 500
The user task search result.
- application/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 user tasks.
The key of the user task.
The name for this user task.
Possible values: [CREATED
, COMPLETED
, CANCELED
, FAILED
]
The state of the user task.
The assignee of the user task.
The element ID of the user task.
The key of the element instance.
The candidate groups for this user task.
The candidate users for this user task.
The ID of the process definition.
The key of the process definition.
The key of the process instance.
The key of the form.
The creation date of a user task.
The completion date of a user task.
The follow date of a user task.
The due date of a user task.
Tenant ID of this user task.
The external form reference.
The version of the process definition.
customHeaders object
Custom headers for the user task.
Possible values: <= 100
Default value: 50
The priority of a user task. The higher the value the higher the priority.
{
"items": [
{
"userTaskKey": 0,
"name": "string",
"state": "CREATED",
"assignee": "string",
"elementId": "string",
"elementInstanceKey": 0,
"candidateGroups": [
"string"
],
"candidateUsers": [
"string"
],
"processDefinitionId": "string",
"processDefinitionKey": 0,
"processInstanceKey": 0,
"formKey": 0,
"creationDate": "2024-12-13T13:19:42.518Z",
"completionDate": "2024-12-13T13:19:42.518Z",
"followUpDate": "2024-12-13T13:19:42.518Z",
"dueDate": "2024-12-13T13:19:42.518Z",
"tenantId": "string",
"externalFormReference": "string",
"processDefinitionVersion": 0,
"customHeaders": {},
"priority": 50
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
The user task 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"
}