There are several parameters (such as assigneeExpression) for specifying an EL expression. These are disabled by default to prevent remote code execution. See the section on security considerations for custom code in the user guide for details.

Method

POST /task

Parameters

Request Body

A JSON object with the following properties:


|sortBy|Mandatory. Sort the results lexicographically by a given criterion. Valid values are instanceId, caseInstanceId, dueDate, executionId, caseExecutionId,assignee, created, description, id, name, nameCaseInsensitive, priority, processVariable, executionVariable, taskVariable, caseExecutionVariable, and caseInstanceVariable.|sortOrder|Mandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order. |parameters|Mandatory when sortBy is either processVariable, executionVariable, taskVariable, caseExecutionVariable, or caseInstanceVariable. Must be a JSON object with the properties variable and type where variable is a variable name and type is the name of a variable value type.
|sortBy|Mandatory. Sort the results lexicographically by a given criterion. Valid values are instanceId, caseInstanceId, dueDate, executionId, caseExecutionId,assignee, created, description, id, name, nameCaseInsensitive, priority, processVariable, executionVariable, taskVariable, caseExecutionVariable, and caseInstanceVariable.
|sortOrder|Mandatory. Sort the results in a given order. Values may be asc for ascending order or desc for descending order.
|parameters|Mandatory when sortBy is either processVariable, executionVariable, taskVariable, caseExecutionVariable, or caseInstanceVariable. Must be a JSON object with the properties variable and type where variable is a variable name and type is the name of a variable value type.

Result

A JSON array of task objects.Each task object has the following properties:

  • For further information, please see the .

Response Codes

Example

POST /task

Response

POST

Request Body:

Response