ClassCastException when completing a referenced sub process after Boundary Event with cancelActivity = false

Description

When completing a referenced sub process with a boundary event having cancelActivity=false AND the boundary event was already fired, the following exception occurs:

java.lang.ClassCastException: org.activiti.engine.impl.bpmn.behavior.BoundaryEventActivityBehavior cannot be cast to org.activiti.engine.impl.pvm.delegate.SubProcessActivityBehavior
at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessEnd.eventNotificationsCompleted(AtomicOperationProcessEnd.java:50)

Find a small sample process attached, as well as the full trace.

Environment

None

Assignee

saeid mirzaei

Reporter

Andreas Weise

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure