Skip to main content

Get Task Id

Overview

Getting the Task Id by providing the Process Instance

URL: api/processinstance/tasks?processInstanceId=

Method: GET

Request Header:

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

Query Parameter:

  • processInstanceId=917cf6d136954a52b62f8a259c898f64

Request URL:

  http://<Control Room server>/api/processinstance/tasks?processInstanceId=917cf6d136954a52b62f8a259c898f64

Response:

  • Status: 200 OK

  • Body:

       [
    {
    "taskId": 117,
    "name": "TestForm",
    "form": "DemoForm.iform",
    "processInstanceId": "917cf6d136954a52b62f8a259c898f64",
    "statusId": 2,
    "status": "Assigned",
    "isAssignedToGroup": false,
    "priorityId": 2,
    "arguments": null,
    "assignedTo": 2,
    "assignedUserTitle": "demouser1 1",
    "session": 1,
    "dueDate": "2024-04-11T10:18:02.803788",
    "created": "2024-04-10T10:18:03.009088",
    "createdBy": "2#demouser1 1",
    "modified": "2024-04-10T10:18:03.009088",
    "modifiedBy": "2#demouser1 1",
    "processName": "demo_process",
    "creatorName": "demouser1 1",
    "modifierName": "demouser1 1",
    "assignedDate": "2024-04-10T10:18:02.803788",
    "completedDate": null,
    "activityId": "StandardTask1",
    "originalAssignedUserTitle": "demouser1 1"
    }
    ]
  • Header:

       {
    content-length: 662
    referrer-policy: no-referrer
    x-content-type-options: nosniff
    x-xss-protection: 1; mode=block
    }