AnsweredAssumed Answered

Activiti signaling

Question asked by vilmos.nagy on Jun 25, 2015
Latest reply on Jun 29, 2015 by martin.grofcik
Hi!

I'm trying to use Activiti signals in my process, but without any success.

I've a process, where I'd like to use signals.


<signal id="processSignal" name="processSignal"></signal>
  <message id="processMsg" name="processMsg"></message>
  <process id="process" isExecutable="true">
  …
  <startEvent id="sid-ED86F819-9388-4FA7-99AD-BEDF84E3C014">
      <messageEventDefinition messageRef="processMsg"></messageEventDefinition>
    </startEvent>
   <intermediateCatchEvent id="sid-27EFF415-93A6-4787-AD24-D4D5112D74C1">
      <signalEventDefinition signalRef="processSignal"></signalEventDefinition>
    </intermediateCatchEvent>
  </process>


I start this process from my Java code, and would like to trigger the signal:

ProcessInstance processInstance = runtimeService.startProcessInstanceByMessage(processName);
runtimeService.signalEventReceived(signalName, processInstance.getId());


Then the following exception is throwed:
org.activiti.engine.ActivitiException: Execution '22556' has not subscribed to a signal event with name 'processSignal'.


What am I doing wrong? Thanks!

Outcomes