Skip to main content

Get Activity Instance Info

Overview

Getting Activity inside process by providing the Process Instance Id and Activity Instance Id.

URL:

api/processinstance/activityInstanceById?processInstanceId=?&activityInstanceId=?

Method: GET

Request Header:

{ "accept": "'*/*'", "Authorization": Bearer ACCESS_TOKEN }

Query Parameter:

  • activityInstanceById=d46b970f-0cd3-40e7-95aa-9a5b9fcd7334,
  • processInstanceId=5a166c1fa3c141d9bc77267cea0d9072
http://<Control Room server>/api/processinstance/activityInstanceById?processInstanceId=5a166c1fa3c141d9bc77267cea0d9072&activityInstanceId=d46b970f-0cd3-40e7-95aa-9a5b9fcd7334

Response:

  • Status: 200 OK

  • Body:

       {
    "id": "83fdea32fa64462a878ee0129d10aadb",
    "name": "LeaveRequest",
    "session": 1,
    "status": "Passed",
    "startedAt": "2024-06-27T13:24:02.202564",
    "endedOn": "2024-06-27T13:24:02.24273",
    "duration": "00:00:00.0401660",
    "activityId": "StartTask1",
    "activityInstanceId": "d46b970f-0cd3-40e7-95aa-9a5b9fcd7334"
    }
  • Header:

       {
    content-length: 288
    content-security-policy: default-src 'self' fonts.googleapis.com fonts.gstatic.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' fonts.googleapis.com fonts.gstatic.com cdn.form.io blob:;style-src 'self' 'unsafe-inline' fonts.googleapis.com fonts.gstatic.com;img-src 'self' fonts.googleapis.com fonts.gstatic.com data:;font-src 'self' fonts.googleapis.com fonts.gstatic.com
    content-type: application/json; charset=utf-8
    date: Wed,10 Jul 2024 08:07:08 GMT
    referrer-policy: no-referrer
    x-content-type-options: nosniff
    x-xss-protection: 1; mode=block
    }