I want to build simple approval process; let say two levels of approval. So I will have:
start=>approval 1=>approval2=>end
I call rest from application to initiate process:
process-definition/key/approval-test-process/start
In result I get:
{
"links": [
{
"method": "GET",
"href": "http://localhost:8080/engine-rest/process-instance/11193cac-8c9e-11eb-a1a7-049226bdb658",
"rel": "self"
}
],
"id": "11193cac-8c9e-11eb-a1a7-049226bdb658",
"definitionId": "approval-test-process:2:ab34d9fa-8c03-11eb-81fa-049226bdb658",
"businessKey": null,
"caseInstanceId": null,
"ended": false,
"suspended": false,
"tenantId": null
}
Is there any method to get current state of the process (reached ‘approval2’ level or still waits for approval1?) ? All the time using same ID or other variable. Without reading all task and getting right ID.
How do you handle that?
Regards