Issue in REST API history/historic-process-instances/17501

While hitting the REST API history/historic-process-instances/17501 its not returning the variables data.

Can some one please help me what am i missing here?

URI: http://localhost:8091/history/historic-process-instances/17501
Response:
{
“id”: “17501”,
“url”: “http://localhost:8091/history/historic-process-instances/17501”,
“businessKey”: null,
“processDefinitionId”: “consumerprocess:2:7516”,
“processDefinitionUrl”: “http://localhost:8091/repository/process-definitions/consumerprocess:2:7516”,
“startTime”: “2017-11-13T12:40:44.811Z”,
“endTime”: “2017-11-13T12:40:52.168Z”,
“durationInMillis”: 7357,
“startUserId”: “admin”,
“startActivityId”: “startevent1”,
“endActivityId”: “endevent2”,
“deleteReason”: null,
“superProcessInstanceId”: null,
“variables”: [],
“tenantId”: “”
}

Try using the HistoricProcessInstance query (POST) option:

POST query/historic-process-instances

{
“processInstanceId” : “5140”,
“includeProcessVariables”:“true”
}

This works for me.
Greg

1 Like

@gdharley Thank you Greg,this solution worked for me.