cancel
Showing results for 
Search instead for 
Did you mean: 

MessageCatchEvent with a timeout?

zlatan316
Champ on-the-rise
Champ on-the-rise
Hi,

I have a messagecatchevent node in a diagram in 5.14, which waits until it is triggered by an external JAR running outside of Activiti. Sometimes this jar may have an unhandled exception, after which it doesn't message back to the activiti diagram's messagecatchevent.

Is there a way to set a maximum duration to the messagecatchevent so that if it hasnt recieved anything by a given time, it carries on automatically, or takes another route?

Regards,
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Add a timer boundary next to the message catch to get that timeout.

zlatan316
Champ on-the-rise
Champ on-the-rise
Thanks Jorram, but wont this mean that the MessageCatchEvent will remain open forever in the database? Hence someone could theoretically start that event and redo work already executed by the timer next in the sequence?

jbarrez
Star Contributor
Star Contributor
No, the message catch event will be deleted when the embedded subprocess is destroyed.