Invalid event-type: UNCAUGHT_BPMN_ERROR

I added a event listener in the process level . But when I run the tests on that process, Im getting the following error

org.flowable.common.engine.api.FlowableIllegalArgumentException: Invalid event-type: UNCAUGHT_BPMN_ERROR
	at org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.getTypesFromString(FlowableEngineEventType.java:357)

BPMN

 <process id="orderFlowProcess_v122e" name="Order" isExecutable="true">
    <extensionElements>
      <flowable:eventListener events="UNCAUGHT_BPMN_ERROR" errorCode="UNCAUGHT_ERROR" throwEvent="error"></flowable:eventListener>
    </extensionElements>
    <startEvent id="sid-C738E910-9F32-430B-AC07-0E23BC523820" flowable:formFieldValidation="true"></startEvent>

Seems like FlowableEngineEventType doesn’t have the ENUM defined for UNCAUGHT_BPMN_ERROR

Using flowable engine: 6.5.0

See this PR which adds the value to org.flowable.common.engine.api.delegate.event.FlowableEngineEventType. Thanks for the report.

1 Like

Thanks for the PR @dbmalkovsky. However, the PR is only hiding the problem not really fixing it.

There won’t be an exception, but the event listener will never be invoked since such an event is never thrown.

@bijeshcnair I would suggest that you create an issue in the Flowable Issue Tracker to be able to find a solution for this.

I see 2 possible solutions:

  • Remove the option from the Modeler, so that users cannot model it
  • Track when and how support for this event was removed

Cheers,
Filip