AnsweredAssumed Answered

REST API to get state of a running process in json response

Question asked by activitinike on May 11, 2016
Latest reply on May 18, 2016 by jbarrez
Hello,

I am trying to fetch state of a running process details using below REST call

https://docs.alfresco.com/activiti/docs/dev-guide/1.4.0/#_get_process_instance_details
api/enterprise/process-instances/{processInstanceId}

For e.g: I have a process, which is waiting at UserTask, so I expect response of REST call to provide this information.

It returns following response:

 
{
  "id": "40026",
  "name": "TestProcess",
  "businessKey": null,
  "processDefinitionId": "TestProcess:1:2504",
  "tenantId": "tenant_1",
  "started": "2016-05-11T19:22:22.927+0000",
  "ended": null,
  "startedBy": {
    "id": 1,
    "firstName": null,
    "lastName": "Administrator",
    "email": "a@a.com"
  },
  "processDefinitionName": "TestProcess",
  "processDefinitionDescription": "First version copy",
  "processDefinitionKey": "TestProcess",
  "processDefinitionCategory": "http://www.activiti.org/processdef",
  "processDefinitionVersion": 1,
  "processDefinitionDeploymentId": "2501",
  "graphicalNotationDefined": true,
  "startFormDefined": true,
  "variables": []
}


In this response, I don't see any field related to current state of the process.

Please guide if there are any other REST api to use to get useful information.

Thanks

Outcomes