# How to cancel the timer when a condition is met

**URL:** https://forum.flowable.org/t/how-to-cancel-the-timer-when-a-condition-is-met/7388
**Category:** Flowable Engine
**Created:** [January 25, 2021, 4:47am UTC](https://forum.flowable.org/t/how-to-cancel-the-timer-when-a-condition-is-met/7388 "2021-01-25T04:47:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Esther](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@Esther](https://forum.flowable.org/u/Esther)
#### Post date: [January 25, 2021, 4:47am UTC](https://forum.flowable.org/t/how-to-cancel-the-timer-when-a-condition-is-met/7388/1 "2021-01-25T04:47:16Z")

</div>

Hi.  
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.

 ![20210125_192239](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/d/d57c12d1728962963abd9164e57da4ac74f4fea7.jpeg)

Pls suggest.

Thanks  
Esther

---

<div class="post-metadata">

### Author: ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)
#### Post date: [January 25, 2021, 2:47pm UTC](https://forum.flowable.org/t/how-to-cancel-the-timer-when-a-condition-is-met/7388/2 "2021-01-25T14:47:13Z")

</div>

Hi Esther,

> **[BPMN 2.0 Constructs · Flowable Open Source Documentation](https://flowable.com/open-source/docs/bpmn/ch07b-BPMN-Constructs/#timer-boundary-event)**
>
> This chapter covers the BPMN 20 constructs supported by Flowable, as well as custom extensions to the BPMN standard.

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:

```auto
<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).

Regards  
Martin
