I have a process definition.
And the process have two end event.
endEvent1 and endEvent2 are the name of the end events.
I just want to know the process instance will be finished or not when the endEvent1 was triggered.
Let me explan the process instance will be finished actully mean what.
When the process instance was finished then cannot get the process instance by the java api like below.
runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult()
But when the process instance was finished can get the process instance by the java api like below.
historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstance Id)
My english is`t enough to explan the question clearly but I did it the best of I can. Please forgive me.
Thanks you all.