Executes the saved query of the filter by id and returns the result list.

Method

GET /filter/{id}/list

Parameters

Path Parameters

Name Description
id The id of the filter to execute.

Query Parameters

Name Description
firstResult Pagination of results. Specifies the index of the first result to return.
maxResults Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.

Result

A JSON array containing JSON objects corresponding to the matching entity interface in the engine.This depends on the saved query in the filter. Therefore it is not possible to specify a genericresult format, i.e., if the resource type of the filter is Task the result will correspond to theTask 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 HAL response.
403 application/json The authenticated user is unauthorized to read this filter. See the Introduction for the error response format.
404 application/json Filter with given id does not exist. See the Introduction for the error response format.

Example

Request

GET /filter/aTaskFilterId/list/?firstResult=0&maxResults=2

Response

Status 200.

Note: The examples show the result of a task filter. So the response corresponds to a task, but for other filters the response format will differ.

  1. [
  2. {
  3. "assignee": "jonny1",
  4. "caseDefinitionId": null,
  5. "caseExecutionId": null,
  6. "caseInstanceId": null,
  7. "created": "2014-09-15T15:45:48.000+0200",
  8. "delegationState": null,
  9. "description": null,
  10. "due": null,
  11. "executionId": "aExecutionId",
  12. "followUp": null,
  13. "formKey": null,
  14. "id": "aTaskId",
  15. "name": "Task 2",
  16. "owner": null,
  17. "parentTaskId": null,
  18. "priority": 50,
  19. "processDefinitionId": "aProcessId",
  20. "processInstanceId": "aProcessInstanceId",
  21. "suspended": false,
  22. "taskDefinitionKey": "aTaskKey"
  23. },
  24. {
  25. "assignee": "demo",
  26. "caseDefinitionId": null,
  27. "caseExecutionId": null,
  28. "caseInstanceId": null,
  29. "created": "2014-09-15T10:42:18.000+0200",
  30. "delegationState": null,
  31. "description": null,
  32. "due": null,
  33. "executionId": "anotherExecutionId",
  34. "followUp": null,
  35. "formKey": null,
  36. "id": "anotherTaskId",
  37. "name": "Task 2",
  38. "owner": null,
  39. "parentTaskId": null,
  40. "priority": 50,
  41. "processDefinitionId": "anotherProcessId",
  42. "processInstanceId": "anotherProcessInstanceId",
  43. "suspended": false,
  44. "taskDefinitionKey": "anotherTaskKey"
  45. }
  46. ]

原文: https://docs.camunda.org/manual/7.9/reference/rest/filter/get-execute-list/