Send email reminder from a deadline stored in collection

427 views
Skip to first unread message

alpa...@gmail.com

unread,
Apr 11, 2017, 7:55:28 AM4/11/17
to Fujitsu RunMyProcess Developer Community
Hello team,

Thanks in advance. Thing is, i have in a collection some entries that has a deadline and also the email adress to which i want to send an email. The email must be sent once a day when the deadline has 10 days left,5 days left,4 days left... until the D-day.

I was trying to make a process that is triggered once a day and read from the collection the data in freemarker and in a loop in the code call a capi (email configured) with the parameters to send the email. But thing is in freemarker is not easy to wonrk with dates and the code is being so confused because of the lack of operative built-in.

Anyways is there any other way to do it? maybe something more stylish, elegant...

Thank you Team.

Regards

Ghanshyam Mule

unread,
Apr 11, 2017, 2:41:15 PM4/11/17
to suppor...@runmyprocess.com, alpa...@gmail.com
Hi Alex,

Thanks for asking query.

As per your described scenario can you please give answers of following question

1.How are you going to store data into collection.(Adding value to collection from form or by uploading the file data to collection)
2.Is there task/form assignment to an user where he can fill form & submit it?
3.How are you going to implement scenario.Are you using now() freemarker function for current date/time calculation? 
4.Are you using pattern for date widget in-order to set date in proper format?

Note:-It is recommended to use freemarker code in process & CAPI. But you can use javascript for data manipulation. 

If you have any other question, please don't hesitate to contact us.

Thanks & Regards
Ghanshyam mule
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/c01f465a-6e04-4cc9-b6b8-de5c8b5361e2%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

alpa...@gmail.com

unread,
Apr 12, 2017, 3:05:48 AM4/12/17
to Fujitsu RunMyProcess Developer Community, alpa...@gmail.com
Hi Ghanshyam,

My process start with a form that someone fills to upload kind of an apointment/task, There they fill a date input widget as one of the task parameters, that must be the deadline, then i store this into a collection. Whit that date from Collection i want to read once a day the tasks from the collection and notify according to the deadline and email. The email is an user that is selected in the form by a list of users.

Tranks and regards

alpa...@gmail.com

unread,
Apr 12, 2017, 6:53:19 AM4/12/17
to Fujitsu RunMyProcess Developer Community, alpa...@gmail.com
Hi again,

I have just solved my issue, finally I built one process which is triggered by timer and in there I use a bit of messy freemarker and (javascript in line) code but it works.

Thaks you anyway

regards

Abhilash Sambhare

unread,
Apr 12, 2017, 7:06:42 AM4/12/17
to Fujitsu RunMyProcess Developer Community, alpa...@gmail.com
Hi Alex,

Glad to know it works.Please don't hesitate to contact us for any query.

Thanks & Regards,
Abhilash Sambhare
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages