AnsweredAssumed Answered

Throwing BPMNError does not end process instance properly

Question asked by bcampeau1 on Aug 29, 2016
Latest reply on Aug 30, 2016 by bcampeau1

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?