Hi,
I want to get the values of all the “process-variable” of a Completed process-instance but as the process has moved to History…I am not able to fetch them.
Example:
Request:
http://ip:port/engine-rest/process-instance/fad617fd-fb5b-11e7-a56f-0242ac110003/variables
Response:
{
“type”: “NullValueException”,
“message”: “execution fad617fd-fb5b-11e7-a56f-0242ac110003 doesn’t exist: execution is null”
}
Note: As the process has move to completed status i.e. in History
If I use below API:
Request:
http://ip:port/engine-rest/history/process-instance/fad617fd-fb5b-11e7-a56f-0242ac110003
Response:
{ "id": "fad617fd-fb5b-11e7-a56f-0242ac110003", "businessKey": null, "processDefinitionId": "abc:2:bdaa4db9-fb5b-11e7-a56f-0242ac110003", "processDefinitionKey": "abc", "processDefinitionName": "abc", "startTime": "2018-01-17T13:26:52", "endTime": "2018-01-19T16:32:59", "durationInMillis": 183966330, "startUserId": null, "startActivityId": "StartEvent_1", "deleteReason": null, "superProcessInstanceId": null, "superCaseInstanceId": null, "caseInstanceId": null, "tenantId": null, "state": "COMPLETED" }
How do I fetch the process-variable of a Process-instance in Completed status??
Regards,
Tushar