Versions Compared

Key

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

...

As of Version

product version 2021 Winter | component version 

Request MethodGET
Response FormatJSON
Description


Excerpt

Retrieves the history of the process instance specified by processInstanceId.

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

Query ParameterTypeDescriptionDefault Value
includeIdentityLinksboolean

Decides whether the identityLinks list is included (true) in the individual tasks' history or not (false).

false
includeCommentsbooleanDecides whether the Comments list is included (true) in the process history or not (false).false

Meaning of HTTP status codes:

HTTP Status CodeDescription
200The process instance history was found and returned.
400Bad Request.
403Forbidden.
404The requested process instance specified by processInstanceId was not found.
409Conflict.
415Unsupported Media Type.
500Internal Server Error.

Each error is thrown in the response body in JSON format containing an error message and an exception string.

Request HeaderContent-Type: application/json
Request Example

https://<host>/bpm-engine/api/processes/00000000-0000-0000-0000-000000000000/history

Response Example


Code Block
languageyml
{
  "tasks": [
    {
      "id": "00000000-0000-0000-0000-000000000000000000000123",
      "name": "My 1st_task",
      "description": "Task descriptionIn this case, you have to do several things as they are:\n1. subtask\n2. subtask",
      "assignee": "user003aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "owner": null,
      "createTime": "2021-11-01T12:28:46.388Z",
"user003"      "claimTime": null,
      "endTime": null,
      "identityLinks": [
        {
          "type": "assignee",
          "userId": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
          "groupId": null,
          "createTimetimestamp": "2021-11-01T0801T12:5028:2246.355Z"447Z"
        }
      ]
    }
  ],
  "comments": [
    {
      "claimTimeid": "2018-04-17T10:17:43.902+000000000001-0001-0001-0001-000000000001",
      "author": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "message": "This is the first example comment for the first task.",
      "endTimetime": "2021-11-01T0802T13:5005:22.355Z29.099Z",
      "processInstanceId": "00000000-0000-0000-0000-000000000000",
      "taskId": "00000000-0000-0000-0000-000000000123"
    }
  ]
}