Home

E-mail me 7 days after of modification date

You are here

4 posts / 0 new
Last post
E-mail me 7 days after of modification date

Hey to eveyone,

I am trying to implement a new rule on a space that can notify me by sending e-mail after 7 days past of modification date. While looking for solution/s, I have found some examples about e-mail delaying but unfortunately none of them seemed work. May you please briefly tell me that how I can manage it?
We are using Alfresco 3.4
Thanks in advance

3.4
Email
One probable approach that i

One probable approach that i could think of is - When a content is modified, start ad-hoc workflow assign it to admin user and add a timer (repeats every business day)to the workflow task to send an email notification after 7 days (based on date calculation from current date and modified date).
There needs to be some mechanism to be think upon for completing the ad-hoc task assigned to admin user.
Hope this helps.

Thanks & Regards,
Ramesh Chauhan
CIGNEX Datamatics

Company - http://www.cignex.com
My blog - http://alfresco-for-developers.blogspot.in

Another probable approach

Another probable approach would be - create a custom table inside alfresco database, bind updateproperties behavior and as soon as a modified date is changed put an entry inside database (nodeid, modification date). Also maintain a flag of past due date email sent or not. Write a cron job which will run daily and scan through this db table and based on current date and content's modification date difference of 7 days, will send out an email. Once, email is sent mark the entry as processed hence it will not be considered for the schedulers' next run.
Hope this helps. This would probably a better approach than the earlier one i mentioned.

Thanks & Regards,
Ramesh Chauhan
CIGNEX Datamatics

Company - http://www.cignex.com
My blog - http://alfresco-for-developers.blogspot.in

Workflow tasks can have timed

Workflow tasks can have timed transitions on them so that fits nicely. I suggest you consider the rest of your buisness problem since simply delaying email is an odd requirement.

I'd expect your requirement to be something like approve a changed document, but if nothing happens within 7 days send an email. That's would be an workflow,

On the other hand if your requirement is to embargo an email then putting the parameters on some sort of queue makes sense.

So what are you trying to do?

Senior Software Engineer
Alfresco