How to cancel the timer when a condition is met

I am using timer to send escalation mails until a task is not completed on daily basis. If the task is completed I need to cancel the timer event.

Pls suggest.


Hi Esther,

There is a key difference between the interrupting and non interrupting timer event. Non-interrupting means the original activity is not interrupted but stays as it was. The interrupting behavior is the default. In the XML representation, the cancelActivity attribute is set to false:

<boundaryEvent id="escalationTimer" cancelActivity="false" attachedToRef="firstLineSupport"/>

Note: boundary timer events are only fired when the async executor is enabled ( asyncExecutorActivate needs to be set to true in the flowable.cfg.xml, since the async executor is disabled by default).