The request body of this method takes a JSON-serialized query. Some query types (e.g., task queries) allow to specify EL expressions in their parameters and may therefore be abused for remote code execution. See the section on security considerations for custom code in the user guide for details.
Method
POST
Parameters
Result
A JSON object corresponding to the corresponding entity interface in the engine. This dependson the saved query in the filter. Therefore it is not possible specify a generic result format,i.e., if the resource type of the filter is Task
the result will correspond to the Task
interface in the engine.
Response Codes
Code | Media type | Description |
---|---|---|
200 | application/json | Request successful. |
200 | application/hal+json | Request successful. In case of an expected response. |
204 | Request successful, but the result was empty. | |
400 | application/json | The executed filter returned more than one single result or the extending query was invalid. See the Introduction for the error response format. |
403 | application/json | The authenticated user is unauthorized to read this filter. See the for the error response format. |
404 | application/json | Filter with given id does not exist. See the Introduction for the error response format. |
Example
POST filter/aTaskFilterId/singleResult
Note: The examples show a task filter. So the request body corresponds to a task query. For other resource types the request body will differ.
Status 200.
"assignee": "jonny1",
"caseDefinitionId": null,
"caseExecutionId": null,
"created": "2014-09-15T15:45:48.000+0200",
"delegationState": null,
"description": null,
"due": null,
"executionId": "aExecutionId",
"formKey": null,
"id": "aTaskId",
"owner": null,
"parentTaskId": null,
"priority": 50,
"processDefinitionId": "aProcessId",
"processInstanceId": "aProcessInstanceId",
"suspended": false,
}