cancel
Showing results for 
Search instead for 
Did you mean: 

Reminder E-mail based on Due date

Former Member
0 Kudos

Hello Gurus,

We have a requirement in SAP BPM where we want to trigger a reminder E-mail to the task owner 30 days before the Due date.

We have set up the Email trigger when the task appears in the universal worklist to the task owners, but since most of the tasks requires more than 6 Months we have a requirement to trigger email 30 days before the Due date of the task as a reminder.

Your help is very much appreciated.

Regards,

Venkatesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Venkatesh,

Please follow the below procedure to implement the required functionality, please check the attachment for more clarification:

  1. Create a boolean field in your process context data object, call the field "taskProcessed".
  2. Create a Parallel Split. The first branch goes to the human activity for which you want to send the reminder. The second branch goes to an Intermediate Timer.
  3. In the human activity output mapping, set the "taskProcessed" field value to "true".
  4. In the Intermediate Timer timer configuration, use an expression to set the timer to 30 days before the due date, your expression should look like "subtract-days-from-dateTime(processContext.taskDueDate, 30)".
  5. After the timer event, create an Exclusive Choice gateway.
  6. The first alternative condition, should be "processContext.taskProcessed = false", and this alternative is linked to the reminder activity.
  7. The second alternative condition, should be "processContext.taskProcessed = true", and this alternative is linked to an "End Event" (not Termination).

I hope this would resolve your problem.

Ahmed

Answers (3)

Answers (3)

former_member191643
Active Contributor
0 Kudos

You can capture the due date in a data object and set that data object(calculated as 30 days before due date-using built-in java functions) as the time-interval for the intermediate timer event. This will avoid additional workarounds.

junwu
Active Contributor
0 Kudos

if there are many task, for each you have to to that, then the diagram will be quite crowded and not readable. but agree, it is the easy way compared with the ejb job.

Former Member
0 Kudos

You can add an intermediate timer event that expires 30 days before the due date and send a notification after it expired.

junwu
Active Contributor
0 Kudos

using bpm api to create an ejb to do the job and schedule it as a job.