AEM : Schedule workflow on specific time | Community
Skip to main content
Level 2
October 26, 2023
Solved

AEM : Schedule workflow on specific time

  • October 26, 2023
  • 3 replies
  • 1265 views

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

 

 

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 aanchal-sikka

@bhanuperiwal 

 

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

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. 

3 replies

arunpatidar
Community Advisor
Community Advisor
October 26, 2023

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-activation-absolutetime-not-working-any/m-p/171781 

Arun Patidar
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
October 26, 2023

@bhanuperiwal 

 

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

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
kautuk_sahni
Community Manager
Community Manager
October 30, 2023

@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