Add timer boundary events programmatically for every User task

Hello all,

I have many tasks in one process (For example 25-30 User tasks),
I want to add 6 different timer boundary event for every tasks.
Timer boundary event is for notifications (redirected to send task).
All 6 events has the same logic for notifications.
So, I think to model every events fro every user tasks is not a correct.

What is the best way to do that ?


I’m not sure what would be the best way to model it, but IF attaching six boundary events to each task is the right way, you could do it using a process model loading listener. The listener would modify the process model when it’s loaded by the engine. E.g. attach boundary events to each activity of type “user task”.

Hi @paata,

this is a good use case for the timeout task listeners, introduced in Camunda 7.12.

Hope this helps, Ingo

1 Like

Hello Ingo,
Thank you very much and I really appreciate your timely and proper help.
This solution is exactly what I want to receive.

Thank again,