Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM : Schedule workflow on specific time

Avatar

Level 2

Hello Support,

 

We need to implement functionality in which user can add specific date for run workflow on specific date and time.

 

Can you please guide us how we can implement and add date field with workflow popup.

 

Thanks & Regards,

Bhanu Periwal

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@bhanuperiwal 

 

Please have a look at https://www.albinsblog.com/2018/01/how-to-define-factory-of-osgi-schedulers-adobe-experience-manager... 

It uses Scheduler API to trigger job as per a specific Cron Expression. The API should also be able to execute at a specific time.

 

You could Schedule a Job, which would execute the workflow on specific date/time. 


Aanchal Sikka

View solution in original post

3 Replies

Avatar

Community Advisor

Hi,

You can try something like below
https://github.com/arunpatidar02/aem63app-repo/blob/master/demo/schedule-wf-model.xml 

Here you need to write custom java to set absoluteTime property and for replication you can use OOTB process

 

You can also check

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-workflow-scheduled-act... 



Arun Patidar

Avatar

Correct answer by
Community Advisor

@bhanuperiwal 

 

Please have a look at https://www.albinsblog.com/2018/01/how-to-define-factory-of-osgi-schedulers-adobe-experience-manager... 

It uses Scheduler API to trigger job as per a specific Cron Expression. The API should also be able to execute at a specific time.

 

You could Schedule a Job, which would execute the workflow on specific date/time. 


Aanchal Sikka

Avatar

Administrator

@bhanuperiwal Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni