cancel
Showing results for 
Search instead for 
Did you mean: 

How to know which signal event triggered

penusila611621
Champ in-the-making
Champ in-the-making

I have a requirement like where I am attaching two boundary signal events to an user task and these two boundary signal events are further connected to one more user task.  Based on the requirement, these two boundary signal events triggered, so upon execution of either of these two task will be created for the other usr task connected from these two boundary signal events.

So is there any way which boundary signal event triggered in the user task connected from the signal events.

7 REPLIES 7

jbarrez
Star Contributor
Star Contributor
I'm not yet following? What are you trying to do and why? Isn't it enough to just fire the signal and see which task gets created? Why do you need to know which of the signals fired?

penusila611621
Champ in-the-making
Champ in-the-making
Based on which signal fired, i will update the application database with some status & this status will change based on which signal fired. for that reason I desperately need to know which signal fired.

jbarrez
Star Contributor
Star Contributor
So why don't you attach an execution listener to the  outgoing sequence flow? And put the logic for updating your database in the listener class?

penusila611621
Champ in-the-making
Champ in-the-making
I am using Activiti 5.15 version, I am not seeing listener property in out going sequence flows to attache execution listener. Out going sequence flows has the following properties only.

Id, Name, Documentation, Flow Condition, Default Flow and Flow Condition. Please check and suggest whether I am looking at wrong place.

penusila611621
Champ in-the-making
Champ in-the-making
Many thanks for your response. I need these listeners should be available in out going sequence flows which I am not finding as I mentioned.

jbarrez
Star Contributor
Star Contributor
Um did you check the docs Iinked to? The example there is showing exactly that:

<code>
<extensionElements>
      <activiti:executionListener class="org.activiti.examples.bpmn.executionListener.ExampleExecutionListenerTwo" />
    </extensionElements>
    </sequenceFlow>
</code>