# Multiple Timer boundary event for every user task

**URL:** <https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [July 7, 2019, 4:45pm UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842 "2019-07-07T16:45:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![paata](https://forum.camunda.io/user_avatar/forum.camunda.io/paata/32/6263_2.png) [@paata](https://forum.camunda.io/u/paata)\
**Post date:** [July 7, 2019, 4:45pm UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/1 "2019-07-07T16:45:20Z")

</div>

Hello all,

I have about 40 user tasks in my process.  
I want to set multiple (After 1, 5, 10 minutes) timer boundary event for every task. What is the best option to do that ? then create some message event (I want to send notifications).

It is very ugly if I model everything in my bpmn. I will receive 120 event and accordingly 120 send message task.

Any ideal will be appreciated.

Regards,  
Paata.

---

<div class="post-metadata">

**Author:** ![StephenOTT](https://forum.camunda.io/letter_avatar_proxy/v4/letter/s/d2c977/32.png) [@StephenOTT](https://forum.camunda.io/u/StephenOTT)\
**Post date:** [July 7, 2019, 5:37pm UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/2 "2019-07-07T17:37:07Z")

</div>

Create a Parse listener that will add the timers to your user tasks when you deploy. Search the forum for “parse listener” and will find many examples.

Basically what happens is when you deploy the BPMN is parsed by the engine and the listener will modify the BPMN to add the various timers.

---

<div class="post-metadata">

**Author:** ![Niall](https://forum.camunda.io/user_avatar/forum.camunda.io/niall/32/15333_2.png) [@Niall](https://forum.camunda.io/u/Niall)\
**Post date:** [July 8, 2019, 6:14am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/3 "2019-07-08T06:14:58Z")

</div>

If you needed something more visual you could model it using an event sub-process.

 ![image](https://forum.camunda.io/uploads/default/original/2X/4/42b4cdc4ab748f80c2e1f61d6edf0b5019f78fb6.png)

---

<div class="post-metadata">

**Author:** ![hassang](https://forum.camunda.io/user_avatar/forum.camunda.io/hassang/32/16498_2.png) [@hassang](https://forum.camunda.io/u/hassang)\
**Post date:** [July 8, 2019, 7:07am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/4 "2019-07-08T07:07:08Z")

</div>

Hi @Niall,

The above visual solution will only work with sequential tasks, right?

---

<div class="post-metadata">

**Author:** ![Niall](https://forum.camunda.io/user_avatar/forum.camunda.io/niall/32/15333_2.png) [@Niall](https://forum.camunda.io/u/Niall)\
**Post date:** [July 8, 2019, 7:09am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/5 "2019-07-08T07:09:45Z")

</div>

Actually - it wouldn’t need to because after a user task has been finished the token will go back to the `User task has been started` conditional event. It will wait until another task starts. So in the meantime you could run a bunch of other stuff before the next user task is activated.

Edit: Sorry - i get your question now - if i had parallel tasks this would not work 🙂

---

<div class="post-metadata">

**Author:** ![Niall](https://forum.camunda.io/user_avatar/forum.camunda.io/niall/32/15333_2.png) [@Niall](https://forum.camunda.io/u/Niall)\
**Post date:** [July 8, 2019, 7:16am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/6 "2019-07-08T07:16:09Z")

</div>

@hassang I think this would work for parallel user tasks

 ![image](https://forum.camunda.io/uploads/default/original/2X/8/81ce920ad5a61e8754e2d031f9971271f5c210e0.png)

---

<div class="post-metadata">

**Author:** ![paata](https://forum.camunda.io/user_avatar/forum.camunda.io/paata/32/6263_2.png) [@paata](https://forum.camunda.io/u/paata)\
**Post date:** [July 8, 2019, 8:00am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/7 "2019-07-08T08:00:24Z")

</div>

Hello @Niall, @StephenOTT  
I appreciate your support.

@Niall  
Does the second will work for both versions ? for sequential and parallel tasks ? Or should I have both versions in my process …

Regards,  
Paata.

---

<div class="post-metadata">

**Author:** ![Niall](https://forum.camunda.io/user_avatar/forum.camunda.io/niall/32/15333_2.png) [@Niall](https://forum.camunda.io/u/Niall)\
**Post date:** [July 8, 2019, 8:01am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/8 "2019-07-08T08:01:12Z")

</div>

Just the second one - it fixes the problem that @hassang pointed out.

---

<div class="post-metadata">

**Author:** ![paata](https://forum.camunda.io/user_avatar/forum.camunda.io/paata/32/6263_2.png) [@paata](https://forum.camunda.io/u/paata)\
**Post date:** [July 8, 2019, 8:02am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/9 "2019-07-08T08:02:00Z")

</div>

@Niall  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![susana\_g](https://forum.camunda.io/user_avatar/forum.camunda.io/susana_g/32/14432_2.png) [@susana\_g](https://forum.camunda.io/u/susana_g)\
**Post date:** [May 14, 2021, 2:07pm UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/10 "2021-05-14T14:07:45Z")

</div>

Hi,

I’m trying to do exactly this because the number of timers I need to add to each task (service task but also startEvent and userTasks) is not fixed. I’m able to add the required execution listeners following examples about BPMN Parse Listener.

However, I don’t find how to modify the BPMN and add a new timer boundary event once the “notify” method of the ExecutionListener is invoked.

Could you please tell me an example?

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 11:49am UTC](https://forum.camunda.io/t/multiple-timer-boundary-event-for-every-user-task/13842/11 "2024-01-30T11:49:20Z")

</div>

Closed on January 30, 2024, 11:49am UTC


