How to notify for User for assigned User Task and remind repeatedly

I know we can attach a TaskListener to send an email to the User when a User Task is started.

How to send that email again as a reminder and repeat it after some period of time?
The reminder email notification will be stopped when the User will complete the task.

Hi @Himanshu_Singh,

you can use the create task listener to send the initail email.

For the others, you can add timeout listeners to send the reminders.

Have a look at the details here: Delegation Code | docs.camunda.org

Hope this helps, Ingo

@Ingo_Richtsmeier

I am thinking to create a process like the below:

So here you are suggesting to Attach a Task Listener on Approval Task (a User Task) on Create event, and that Task Listener code will send the notification email.

Next, I have added a Timer Event to be triggered after every 24 hours, Now the Service Task “Notify Users” will be attached to a Task Delegate and that will do the same thing similar to Task Listener for sending the email.
May I can refactor code to have common code for sending emails in one class and reuse that class in both “Task Listener” and “Task Delegate”.

Does it look correct?

ANy way to Trigger the repeated task (Cycle timer) from the start of the task. I guess here in my case the first timer task will be triggered only after 24 hours. It would be good if there is a way to start it from the task creation time.

Hi @Himanshu_Singh,

you have modeled explicitly what I solved with listeners. Both ways are valid and have their advantages.

Yes.

No.

You have to attach a second non-interrupting timer event with a period of 1 second (or something similar).

Hope this helps, Ingo

2 Likes