Multiple Timer boundary event for every user task

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.


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.

1 Like

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

1 Like

Hi @Niall,

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

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 :slight_smile:

1 Like

@hassang I think this would work for parallel user tasks


Hello @Niall, @StephenOTT
I appreciate your support.

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


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

1 Like

Thank you very much.


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!!