Timer event and resetting it from event subprocess

444 views
Skip to first unread message

Cristian Cerb

unread,
Oct 15, 2015, 12:51:57 PM10/15/15
to camunda BPM users
Hi there,

If we have a process that at some point uses an event based gateway having as one of its outgoing gates a timer event based on a process variable and then in the same process we have an event subprocess which may reset the process variable on which the timer event is based, will the process work as expected? More concretely, if the timer event is set to be triggered two weeks from today and 4 days later we decide to reset it back to two full weeks, would it work to do so from the event subprocess mentioned earlier?

Thank you,

Cristian

Philipp Ossler

unread,
Oct 16, 2015, 2:23:58 AM10/16/15
to camunda BPM users
Hi Cristian,

when a process instances arrives an intermediate timer event then a timer job is created. If the timer event contains an expression then the expression is evaluated first. But the timer job will not be updated if the expression or process variable change their value. 
So you should leave the timer event and enter it again. See the example process:

Otherwise, you can modify the timer job manual but it is not a recommended way.


Greetings,

Philipp

  

Cristian Cerb

unread,
Oct 16, 2015, 11:49:06 AM10/16/15
to camunda BPM users
Thank you for your reply. I suspected that it won't work, that's why I asked. But the way you modeled is incorrect. Besides the minor thing of connecting reset timeout event to Calculate timeout task, instead of to the gateway, I don't think you can 
throw a message event from event subprocess to the process containing event subprocess. See http://brsilver.com/the-rules-of-bpmn/ 

BPMN 0301.  A message flow cannot connect nodes in the same pool.

Thank you

Cristian

Cristian Cerb

unread,
Oct 16, 2015, 12:02:29 PM10/16/15
to camunda BPM users
Anyway, I just wanted to know if it works, and now that I know it won't, I will remodel it to make it work.
Reply all
Reply to author
Forward
0 new messages