AnsweredAssumed Answered

Signal not received by engine

Question asked by andrey.nikolov on Aug 29, 2016
Latest reply on Sep 1, 2016 by martin.grofcik
I am trying to implement a signal within the process instance to receive some data and then continue the execution with Activiti 5.21.

The process definition defines the signal under definitions element.
   <signal id="Process_Signal" name="Process Signal" activiti:scope="processInstance"/>

The catch node is defined under process element.
   <intermediateCatchEvent id="Receive_Vacation_Balance" name="Receive Vacation Balance">
      <signalEventDefinition signalRef="Process_Signal"/>
   </intermediateCatchEvent>

After deployment, we can see the signal is registered in ACT_RU_EVENT_SUBSCR table.
   EVENT_TYPE = 'signal', EVENT_NAME = 'Process Signal', EXECUTION_ID = '12', PROC_INST_ID = '6', ACTIVITY_ID = 'Receive_Vacation_Balance'

After the process gets instantiated, the control stops at the catch node and awaits the signal as expected. Then programmatically sending the signal by name and execution ID, but cannot see the engine receiving it and passing it to the process instance.
   runtimeService.signalEventReceived("Process Signal", 12, VariablesMap)

What could be wrong? Are we missing something?

Outcomes