Hi @john.ng,
Below is a simplified model.
-
“anyRejection” variable is initialized to false each time work returns to Task 1.
-
In case of rejection, a message is sent causing the work of all sub-processes to interrupt.
Below expression is used to send the message
#{execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation("rejected_msg").processInstanceBusinessKey(execution.processBusinessKey).setVariable("anyRejection", true).correlateAll()}
Kindly find attached a running example
any-rejection-process.bpmn (19.5 KB)