Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of Version

product version 2021 Autumn | component version 

Request MethodGET
Response FormatJSON
Description


Excerpt

Retrieves the task specified by taskId.


Optionally, the boolean query parameter includeProcessVariables can be added to the request URL in order to include process variables in the result. Default is false.

Meaning of HTTP status codes:

HTTP Status CodeDescription
200The task was found and returned.
401The calling user is not authorized.
404The requested task was not found.


Request HeaderContent-Type: application/json
Request Example
https://<host>/bpm-engine/api/tasks/8
Response Example


Code Block
languageyml
{
  "assignee": "kermit",
  "claimTime": "2018-04-17T10:17:43.902+0000",
  "createTime": "2013-04-17T10:17:43.902+0000",
  "description": "Task description",
  "formKey": "myKey",
  "id": 8,
  "name": "My task",
  "parentTaskId": "null",
  "processDefinitionId": 123,
  "processInstanceId": 123,
  "suspended": true,
  "variables": [
    {
      "name": "myVariable",
      "scope": "myScope",
      "type": "myScopemyType",
      "value": "test",
      "valueUrl": "http://...."
    }
  ]
}


...