hello everybody
I need help please!
I need to pass information from one process to another process i read that i have to use signal event but i dont understand how to use it.
how i define Signal Reference?? how i can send a signal from a service task? can i work with two process in activiti explorer???
Thanks
Solved! Go to Solution.
> how i define Signal Reference??
> how i can send a signal from a service task? can i work with two process in activiti explorer???
You can send a signal from Throw Event by specifying the same Signal Reference as Signal Catch Event.
If you want to a signal from a service task, you can use the following public api.
You specify Signal Reference as signalName.
RuntimeService.signalEventReceived(String signalName);
RuntimeService.signalEventReceived(String signalName, String executionId);
・It is necessary to pay attention to the scope of the signal.
By default, signals are broadcast process engine wide.
If you need to deliver a signal to a specific process instance only, perform correlation manually and use signalEventReceived(String signalName, String executionId) and the appropriate query mechanisms(https://www.activiti.org/userguide/#bpmnSignalEventDefinitionQuery).
・(Reference document)Activiti User Guide 8.2.4. Signal Event Definitions
https://www.activiti.org/userguide/#bpmnSignalEventDefinition
> how i define Signal Reference??
> how i can send a signal from a service task? can i work with two process in activiti explorer???
You can send a signal from Throw Event by specifying the same Signal Reference as Signal Catch Event.
If you want to a signal from a service task, you can use the following public api.
You specify Signal Reference as signalName.
RuntimeService.signalEventReceived(String signalName);
RuntimeService.signalEventReceived(String signalName, String executionId);
・It is necessary to pay attention to the scope of the signal.
By default, signals are broadcast process engine wide.
If you need to deliver a signal to a specific process instance only, perform correlation manually and use signalEventReceived(String signalName, String executionId) and the appropriate query mechanisms(https://www.activiti.org/userguide/#bpmnSignalEventDefinitionQuery).
・(Reference document)Activiti User Guide 8.2.4. Signal Event Definitions
https://www.activiti.org/userguide/#bpmnSignalEventDefinition
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.