cancel
Showing results for 
Search instead for 
Did you mean: 

Intermediate Catching Event ( Conditional )

johnm
Champ in-the-making
Champ in-the-making
Hi Guys,

I've a question about Intermediate Catching Event's..

I am reading Real-Life BPMN (by Freund and Rucker), and they talk about "Conditional" which is a type of Intermediate Catching Event. I would like to use this concept, (whereby the process waits (perhaps a long time .. days) until some condition is met.

What we are trying to do, is have the pprocess wait (with no user intervention.. so no user tasks here), until some
conditon is met. The condition we want is: the result of some java function call is true.

(detail: the actual function will execute sql to count something in our database .. when count 0 return true, we want the process to continue.. we expect some days to pass before count will be zero)

I see in your book, and in your examples there is Intermediate Catch Event's .. can I use these somehow? We are using Activiti 5.14, is this supported?

Tijs, in your book in Section B.2.2, you give overview on "Conditional sequence flow".. is this equivalent?
Does the process actually wait (indefinitly) until the condition is true? If yes, could I use this to achieve
our goal ?

Hope you can help/advise

Thanks & regards
John


3 REPLIES 3

johnm
Champ in-the-making
Champ in-the-making
Hi,

I found a similar question here. (looks like Activiti 5.14 does not have Conditional Intermediate Catch Event??)

https://forums.activiti.org/content/support-conditional-events

Could anyone advise what they've done to achieve then same effect? I was thinking we could put the process into a wait state, (by using a Receive Task).. and then signal it when (another java class has figured out if conditions are true)

Thanks you in advance
regards
John

jbarrez
Star Contributor
Star Contributor
No, nor the intermediate event and conditional sequence flow do what you do.

The way to implement this would indeed be with a receive task+signal combination, or have a service task with a timer intermediate event that loops back until a condition is satisfied.

johnm
Champ in-the-making
Champ in-the-making
Thanks Joram for your anwser.