GET /bpm-engine/api/tasks
As of Version | product version 2021 Autumn | component version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Request Method | GET | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Format | JSON | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description | Retrieves a list of tasks of the currently active user that are matching the conditions defined in various query parameters. The following query parameters can optionally be added to the request URL.
Meaning of HTTP status codes:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Header | Content-Type: application/json | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request Example | https://<host>/bpm-engine/api/tasks?page=0&size=1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Response Example | { "objects": [ { "id": "187", "name": "1st_task", "description": "In this case, you have to do several things as they are:\n1. subtask\n2. subtask", "assignee": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "owner": aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa5, "createTime": "2021-11-01T12:28:46.388Z", "claimTime": "2021-11-01T13:29:47.389Z", "processDefinitionId": "twosteptest_proc:4:8dc694a2-10b1-11ec-99ef-027ea5eeae02", "processInstanceId": "00000000-0000-0000-0000-000000000000", "parentTaskId": null, "formKey": "twosteptest_proc:1st_task", "taskDefinitionKey": "sid-4CAF2A19-B303-46C6-A7C0-2F506F1613D4", "delegationState": "pending", "suspended": true, "variables": [ { "name": "whatabout", "type": "string", "value": "testValue", "scope": "global" }, { "name": "initiator", "type": "string", "value": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa5", "scope": "global" } ] } ], "numItems": 1, "totalNumItems": 1, "hasMoreItems": false } |