I have some serviceTask in my sequential sub process. Any of this tasks can generate exception.
And i need to catch this, do some logic and go back to iterative process.
I have tried bpmn:boundaryEvent like this :
but it generates
Caused by: org.activiti.engine.ActivitiException: Errors while parsing:
[Validation set: 'activiti-executable-process' | Problem: 'activiti-seq-flow-invalid-target'] : Invalid target for sequenceflow, the target isn't defined in the same scope as the source - [Extra info : processDefinitionId = notificationsNewsSendProc | id = sid-db0a2e21-f460-4e32-84f4-f2ca88481434 | ] ( line: 100, column: 223)
id = sid-db0a2e21-f460-4e32-84f4-f2ca88481434 is sequenceFlow from error event to external task.
i read here https://www.activiti.org/userguide/#exceptionMapping that i can route exception from service task, but it is not my way, because i dont want to stop subprocess. I just need to catch exception and go back.
Please help me with xml diagram of catching exceptions.