Event Trigger

30 views
Skip to first unread message

vipul dawar

unread,
Aug 25, 2020, 12:45:51 PM8/25/20
to Drools Setup
Hi 

I want to design a bpmn flow, which stops the normal flow and send out an event.
When that event is triggered and complete, original flow resume.

Can someone please advise, if below two bpmn are correct?

Actual_bpm_flow.PNGevent_flow.PNG

Maurizio Carioli

unread,
Aug 25, 2020, 1:26:00 PM8/25/20
to Drools Setup
What you have there will not do what you expect. The first process must send the message or signal to the other process and then must catch the message or signal sent from the other process.

vipul dawar

unread,
Aug 25, 2020, 5:01:52 PM8/25/20
to Drools Setup
Thanks for the reply. When I add a Receiver Event, it gives me below error  

Boundary events are supported only on StateBasedNode, found node: org.jbpm.workflow.core.node.ActionNode [_7AB78080-C085-4078-BEFF-4B9021F128A7]   
 
Could you please advise, how do I change the above flow to make it run as desired?modified.PNG

rajat wadhwa

unread,
Aug 25, 2020, 5:15:41 PM8/25/20
to drools...@googlegroups.com
Hi,

For this what u can do is:

Let's say you have 2 bpmn -1&2

So in bpmn1, u need to throw an intermediate signal and let's say we give the signal name as throw and you can pass whatever data u wanna pass too.

Then in bpmn 2 you define a start signal and give it the same name "throw" and capture whatever output you were throwing. 

Now to go back to bpmn 1, similarly in this case u can define an end signal with signal name catch & the data, then go back to  bpmn1 and  define a catch intermediate signal with same name.

Main thing is that the signal name should be same.




--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/f23a8e93-83e9-45de-8b86-6bf785f93202n%40googlegroups.com.

rajat wadhwa

unread,
Aug 25, 2020, 5:55:29 PM8/25/20
to drools...@googlegroups.com
Also, dont attach the catch event to any task. Define it like:

Bpmn1: start---Task---throw signal ---- catch signal ---task---end

Bpmn2:  start signal---task---end signal


Reply all
Reply to author
Forward
0 new messages