Hello,
I have a standalone subprocess, within which a BPMN error can be thrown. The resolution of the error can be either retry or rethrow.
I would like to catch this rethrow in parent process, which uses call activity to call the subprocess.
The logic works. It really retries if the decision is to retry. It rethrows if not and even the parent process catches the error, so it can be handled there. However the process ends with an exception:
It’s difficult to say without having the full error message and the BPMN XMLs of these process definitions. Would it be possible to create a unit test showing the issue? That would make it easy for us to reproduce.
I added further unit tests to the repo to demonstrate this issue (ProcessTestHelloWorldWithBothSubprocessTypes).
One unit test is failing:
Calling standalone subprocess - the process fails, when error is caught within standand subprocess and then thrown to parent process from error handling
Two unit tests are passing:
Calling embedded subprocess - here the error flow works, altough it’s logically the same as the non-working error handling in standalone subprocess
Calling standalone subprocess - here the error flow works, if the error is not thrown from local error handling, but from the process directly
Please let me know if there is anything we can try to resolve this issue.