Hello,
In one of our workflow, there is a task that can throw a Bpmn error for a business validation. I have added a bounderyErrorEvent on the sub-process where it can occur.
When the Bpmn Error is thrown, the process is stopped as we want… but even if my BounderyErrorEvent is pointing to an End Event, the process instance is not ended properly.
This call List<HistoricProcessInstance> procHist = historyService.createHistoricProcessInstanceQuery().unfinished().list();
will return this process instance forever!
How can i end properly a process on a Bpmn error?
Regards