I need help in SignaI Catch Event (Intermediate), the workflow is reaching at it and stop (and this is correct and what I need), but I am trying to trigger it (I need the workflow to resume) using the below code (and I am running this code from java class that is called by user task):
ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc");
Note: SignalMobileDisc is the name of the signal and not the id.
But it is not resuming, but I am able to make it resume by using signalthrowingevent. So why I can not resume it using the above code?
By the way, I configured the signal to be global signal so it should be able to receive from other process using the above code. But why nothing is happen?
Where 317509 is the execution id, but it was giving me the following: Execution 317509 has not subscribed to a signal event with name 'SignalMobileDisc'
It is important really to be able to resume the Signal Catch Event (intermediate) from javacode because this will help a lot.
Could be the reason for the problem that I am using ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc"); within process and it should be only used for integration (from outside software that call java class which will run this code)?
In other words: this to be used by API and not from process?
Hello @martin.grofcik
Thank you for your kindly reply.
The process instance is subscribed to the signal.
The problem is happening if the workflow contains user task, then I can not trigger the Intermediate signal catch event by using ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc");
If the workflow is not containing user task, then it i possible to use the above code.
One more thing: if I need to trigger the Intermediate Signal Catch Event by using Intermediate Throwing Event, then it is working even if the workflow is containing user task.