11-24-2018 11:11 AM
Hello;
Please I need help.
How I can test this code:
ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalName");
I am trying to test it within process code but it is not working (nothing is happening and the signal catch event is not triggered), does this mean that it is only possible to use it by other application (integration purposes) that will call java class that will use this code?
Regards
Bilal
12-01-2018 07:10 AM
I've tested the process you provided using latest 5.x code base and it's working as expected. Signal is received and process completes normally. Did you try on latest 5.22?
11-27-2018 09:18 PM
Hi Bilal,
I would like Bassam Al-Sarori or Daisuke _ to this thread to help us around.
Thanks & Regards
Tabrez
11-28-2018 02:46 AM
Bilal Ghayad can you provide a simple runnable example or a unit test that can be used to reproduce your issue?
What version of Activiti are you using? Here are some unit tests of signal events in Activiti 6
Activiti/SignalEventTest.java at 6.x · Activiti/Activiti · GitHub
11-28-2018 08:43 AM
Thank you Bassam Al-Sarori and tabrez khan and daisuke-yoshimoto _ Daisuke _
The problem is happening when the process contains user task. Once the process is containing user task, then Intermediate Signal Catching Event is not triggered using ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalName");
But it is possible to trigger it using the Intermediate Signal Throwing Event (even if the process is containing user task).
Please note that my maven pm file is showing the following details regarding the activiti version:
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>5.16.2</version>
Kindly find as attachment for a process as example that can let you see the problem if you deploy it and tried it.
Please appreciate the kindly help.
Regards
Bilal
11-29-2018 10:07 PM
Hello tabrez khan Bassam Al-Sarori Daisuke _ daisuke-yoshimoto _
Can you please help?
And a fully thanks in advance.
Regards
Bilal
12-01-2018 07:10 AM
I've tested the process you provided using latest 5.x code base and it's working as expected. Signal is received and process completes normally. Did you try on latest 5.22?
Explore our Alfresco products with the links below. Use labels to filter content by product module.