cancel
Showing results for 
Search instead for 
Did you mean: 

Sending a signal after an event based gateway

nicolas1
Champ in-the-making
Champ in-the-making
Hi,

I have designed a process with an event-based gateway followed by an intermediate timer catching event and an intermediate signal catching event.

When a process instance reaches the event-based gateway, I try to send a signal :
- If I send the signal globally with runtimeService.signalEventReceived(signalName) it works and the process instance goes to the next step
- But if I send the signal to the specific process instance with runtimeService.signalEventReceived(signalName, processInstanceId) I receive an exception: org.activiti.engine.ActivitiException: Execution '1401' has not subscribed to a signal event with name 'testSignal'.

I have the same issue when replacing signal event with message event.
I have done the test with Activiti 5.14 and Activiti 5.16.

Can anyone help me solving this issue ?
Thanks.

Nicolas
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

The signalEventReceived method is expecting an execution id not the process instance id.

Best regards,