Launcher To Trigger Custom Notification for Expired Assets. | Community
Skip to main content
vijayl12137971
Level 2
February 25, 2019
Solved

Launcher To Trigger Custom Notification for Expired Assets.

  • February 25, 2019
  • 4 replies
  • 4051 views

Hi All,

AEM has the OOTB email notifications that triggers based on the scheduler for the assets expired . Is there a way to setup a launcher that triggers notifications for each individual expired assets??

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi Vijay,

I don't think so you can do it because rancher would be getting triggered only for events like create, modify, delete. But to check expiry date something needs to be run periodically or on demand.

e.g. for workflow launcher, you can trigger only when below events getting triggered for a node type.

4 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 1, 2019

Hi Vijay,

I don't think so you can do it because rancher would be getting triggered only for events like create, modify, delete. But to check expiry date something needs to be run periodically or on demand.

e.g. for workflow launcher, you can trigger only when below events getting triggered for a node type.

Arun Patidar
vijayl12137971
Level 2
March 4, 2019

Thanks alot Arun.

vijayk87714775
Level 4
May 6, 2019

Hi Arun , How often we can run the scheduler.? If we run for every second will there be any impact on the authoring side? Thanks in advance.

arunpatidar
Community Advisor
Community Advisor
May 6, 2019

There is no need to run scheduler  every second, because the assets expiry fields format is DD-MM-YYYY HH:MM.

In this can you should be running every minute but again the decision is based on how the content author set the expiry. Running code would not impact the instance but the operations does but I don't think so there would be asset which expires every minutes. So good to go if you can consider these possibilities and write a optimize code.

Arun Patidar