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 the process instance is not ended properly.
If i try to transit from the ErrorBoundaryEvent -> WhateverEndEvent , i get the infamous already taking a transition exception.
This call List procHist = historyService.createHistoricProcessInstanceQuery().unfinished().list();
will return this process instance forever!
How can i end properly a process on a Bpmn error?
To run the unit test: running : gradle clean test in the root folder should do the job