cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic reminder emails for every user task

felipe1
Champ in-the-making
Champ in-the-making
I'm migrating the workflow engine in a large application from jBPM3 to Activiti (latest version).

One very important feature of all existing processes is automatic notifications and reminders sent by email to task's assignees. So, whenever a user task is created, the assignee immediately gets an email, and then a new email every 'x' business hours until the task is completed.

Since this is the behaviour of all user tasks in all process, I would like to make it default, so I wouldn't have to stuff my processes with timers, boundary events, etc. What is the best way to achieve this? Can I create a new custom task, that would incorporate all these rules?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Felipe.

So, whenever a user task is created, the assignee immediately gets an email,
One possibility is to add parse handler, which will add e-mail sending before each user task. There is example in the user guide which adds async=true to each user task.
http://www.activiti.org/userguide/#advanced_parseHandlers

and then a new email every 'x' business hours until the task is completed.
It could be more complicated, but you can consider to add timer to each user task (in parse handler) to notify assigned user periodically.

Regards
Martin

felipe1
Champ in-the-making
Champ in-the-making
Thanks Martin, that seems like a viable solution. I'll give it a try!