I would like to send email notifications reminder of a due date

cancel
Showing results for 
Search instead for 
Did you mean: 
SalvoDev
Member II

I would like to send email notifications reminder of a due date

Hello everyone. I am new to this project. Any help would be great. I would like to implement a custom email notifications to remind  a task due date. I already look at some documentation, i think that the solution for this problem would be to implement a custom scheduler, like in the documentation https://docs.alfresco.com/content-services/6.1/develop/repo-ext-points/scheduled-jobs/ . Any ideas how to implement the email scheduler would be great. If you have some suggestions feel free to answer. Thanks.

 

3 Replies
abhinavmishra14
Advanced

Re: I would like to send email notifications reminder of a due date

yes, you can achieve by creating scheduled jobs.

You can read this documentation for acs5.2 : https://docs.alfresco.com/content-services/5.2/develop/repo-ext-points/scheduled-jobs/

You can also find detailed steps here: https://javaworld-abhinav.blogspot.com/2015/08/creating-scheduled-job-in-alfresco.html

A sample source code is available here: https://github.com/Alfresco/alfresco-sdk-samples/blob/alfresco-51/all-in-one/schedule-job-repo/src/m...

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
SalvoDev
Member II

Re: I would like to send email notifications reminder of a due date

Thank you @abhinavmishra14  , i am new to java and spring boot. My company asked my to implement a task reminder email in the workflow. If some one has done something like this before, please share. I have done something like this in Laravel. Java is something new for me. This is a chance to learn something new. Thank you everyone. Have a great day.

upforsin
Senior Member

Re: I would like to send email notifications reminder of a due date

Hi @SalvoDev 

As I understand you want to send an email reminding about a workflow's task based on the due date property?

If so, In the bpmn file add boundarytimer to that specific task with the timeDuration equal to the ${dueDateTimer} . Next, in the Java TaskLsitener/ExecutionLister fetch dueDate property and based on it set dueDateTimer property. Lastly, make a flow from the boudaryTimer to the serviceTask where you will add logic to send an email (look up Alfresco source code for the NotificationService to see an example implementation)

 

howkymike
Alfresco Developer