cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived()

bghayad
Champ on-the-rise
Champ on-the-rise

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

1 ACCEPTED ANSWER

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?

View answer in original post

12 REPLIES 12

mdtabrezmca
Star Contributor
Star Contributor

Hi Bilal,

  

    I would like Bassam Al-Sarori‌ or Daisuke _  to this thread to help us around.

Thanks & Regards

Tabrez

bassam_al-saror
Star Collaborator
Star Collaborator

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 

bghayad
Champ on-the-rise
Champ on-the-rise

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

bghayad
Champ on-the-rise
Champ on-the-rise

Hello tabrez khanBassam Al-SaroriDaisuke _daisuke-yoshimoto _

Can you please help? 

And a fully thanks in advance.

Regards

Bilal

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?

Getting started

Explore our Alfresco products with the links below. Use labels to filter content by product module.