We are currently using Activiti in my company and are wondering how to achieve the following.
In short : we would like to be able to cancel the process at anytime and from anywhere in the diagram.
An ideal design would look like :
With the "Signal Catching Event" symbol being triggered by a signal (signal ref on a specified signal).
But we have the feeling that it should not be used that way... and when searching a little more in the documentation, we tried to do the following :
With a Signal Boundary Event on a subprocess.
But when we try to trigger the associated signal, "cancelSignal", by doing runtimeService.signalEventReceived("cancelSignal"), or runtimeService.signalEventReceived("annulationSignal", "117505") with the execution Id, the following exception is thrown :
Execution 117505 has not subscribed to a signal event with name "cancelSignal"
Could you please help us find the right solution for this use case?
Many thanks in advance