Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Email notification when Digital Asset is about to expire

Avatar

Level 2

Hi All,

We have requirement to send notification when Digital Asset is about to expire. 

For e.g.  We upload PDFs and update metadata with expiry date and we want to send email to users prior to 1 month of expiry date and again 7 day before.

1- How can this be achieved using one time AEM configuration/workflow launcher/ event that check the expiry date?

2- Or any other this can be achieved like programmatically ?

Please advice some link.   I checked this link https://docs.adobe.com/docs/en/aem/6-1/author/assets/managing-assets-touch-ui/drm.html#Asset , it can generate report based on date range and manual activity.

 

Thanks!

1 Reply

Avatar

Administrator

Adding reference article to Lokesh's comment. This will further help you.

The Run() will execute preodically as mnetioned in scheduler.expression (add you code to check for the expire date across the asset nodes)

Link:- http://hashimkhan.in/aem-adobecq5-code-templates/scheduler/

// Covering following topics:-

What is a Scheduler?

How to Write a Scheduler?

Sample Scheduler Templates

@Component(immediate=true)
@Service(interface=”java.lang.Runnable”)
@Property(name=”scheduler.expression” value=”0 0/10 * * * ?”, type=”String”)
public class MyScheduledJob implements java.lang.Runnable {
public void run() {
// code to execute goes here
}
}

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni