Throwing a BPMNError does not end the process properly

Description

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 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?

Regards

To run the unit test: running : gradle clean test in the root folder should do the job

Environment

Gradle, Spring

Status

Assignee

Joram Barrez

Reporter

Benoit Campeau

Labels

None

Components

Affects versions

Priority

High
Configure