Connecting different jBPMN projects using throw-catch signal

96 views
Skip to first unread message

Sonalika Ghosh

unread,
Jan 19, 2022, 6:25:18 AM1/19/22
to jBPM Usage
Hello,

Can anyone please let me know how can we connect two different jBPMN projects in the same space using throw-catch events.

For example, I want to make a workflow with a throw event such that its signal is captured by a catch event in a different jBPMN project workflow. 

I have tried adding the name and scope but it did not help. Can someone please let me know the steps. It will be very helpful.

Thank you.
Sonalika

Vikas Sharma

unread,
Jan 19, 2022, 9:11:19 AM1/19/22
to Sonalika Ghosh, jBPM Usage
Hi Sonalika,

It must be in the same KieBase to be able to use another project process. So, you can either define it in the same project or refer to the second project from the first one as dependency. In this case both projects assets will be merged into the same KieBase.

 

As an alternative, you can use the WorkItemHandler to start the second process through rest.


Thanks & Regards
Vikas Sharma
Application Development Consultant
Let us be kind to one another, for most of us are fighting a hard battle. - Ian McLaren

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/31030b14-c59e-4800-9c6a-ea58b8450301n%40googlegroups.com.

Sonalika Ghosh

unread,
Jan 19, 2022, 9:41:02 AM1/19/22
to Vikas Sharma, jBPM Usage
Thanks for the response Vikas. I was trying with 2 projects in the same space.

Tried using an intermediate throw signal event and mentioned the scope as 'Project'. So do I have to add a catch signal with the same name in another project or do I have to first add variables for the signal event as well. It will be very helpful if someone can answer this.
image.png

Arif Mohammed

unread,
Jan 19, 2022, 9:54:50 AM1/19/22
to Sonalika Ghosh, jBPM Usage
How are you catching the event in the target project ? I believe the start event of the target project should be of type "Start Signal"

--

Arif Mohammed

unread,
Jan 19, 2022, 10:01:35 AM1/19/22
to Sonalika Ghosh, jBPM Usage
Never mind. I thought you were trying to start a new process. 

Intermediate catch events should work, if you can share your process diagrams then it may help to answer.

Sonalika Ghosh

unread,
Jan 19, 2022, 10:06:55 AM1/19/22
to Arif Mohammed, jBPM Usage
I am trying to add an intermediate throw event in one business process of one project and intermediate catch event in another business process of another project. And then connect them such that the throw signal is catched by the catch signal event.

ENRIQUE GONZALEZ MARTINEZ

unread,
Jan 20, 2022, 1:12:03 AM1/20/22
to Sonalika Ghosh, Arif Mohammed, jBPM Usage
Hi,

There ia a difference between signals and messages.

Signals are for broadcasting (one to all) and messages are for collaborations(1:1). Try to accomplish with signals (external) to try to target one specific process is not really the way.

If you want to target one specific process you will need to create a correlation key in the target process and set the proper conditions so whenever the messages arrives to the destination the jbpm can tell whether it needs to be delivered to a certain process instance or not.

Cheers

Reply all
Reply to author
Forward
0 new messages