Seems like this has been worked on, at least partly:
Leaving this as a reference here, as I find the use case interesting and valuable too.
Edit:
Verified it works with a simple model:
Test Case passes
The startEvent of the eventSubProcess just needs the attribute to store the BPMN Error code in a variable:
<startEvent id="startErrorEvent1" isInterrupting="true">
<errorEventDefinition flowable:errorVariableName="error_code"></errorEventDefinition>
</startEvent>
There are also flowable:errorVariableTransient="true|false"
and flowable:errorVariableLocalScope="true|false"
attributes available.
1 Like