AnsweredAssumed Answered

Events and Signals Scope

Question asked by matt1 on Apr 8, 2015
Latest reply on Apr 9, 2015 by matt1
From what I can tell from experimenting and from the docs neither Events (Messages) nor Signals are by default scoped to the current process instance. 

The docs state:

<em>To restrict the scope of the signal event, add the (non-BPMN 2.0 standard!) scope attribute to the signal event definition:
&lt;signal id="alertSignal" name="alert" activiti:scope="processInstance"/&gt;
</em>

I just want to be certain because later in the docs it says the following which seems to contradict what is above:

<em>Note: the signal event does not perform any kind of correlation to a specific process instance. On the contrary, it is broadcast to all process instances. If you need to deliver a signal to a specific process instance only, perform correlation manually and use signalEventReceived(String signalName, String executionId) and the appropriate query mechanisms.</em>

I'm just not sure and can someone please verify the exact behavior?

Many Thanks,
Matt

Outcomes