I am trying to create a nested workflow, where a workflow can have sub processes or call activity. In sub process, we can add any number of service tasks with boundary error event with error code as 'SERVICE_ERROR'. In implementation of the service task, BPMN error will be thrown with the mentioned error code. Same structure will be having for a child activity.
If the error has been thrown from the implementation class executing for the service task which lies under the child activity. The error is not getting caught by the boundary event attached to that particular service task. Instead the process instances are getting deleted from the db itself.
Please note I am not adding any boundary event to the call activity element.
I am using Spring Boot Activiti project