Hi,
I would like a Workflow to be able to run Automatically at 2PM everyday. I was wondering how can I achieve that function?
I search up something and it mentioned I need to use OSGi Scheduler but that was the only solutions I found. I was wondering if there is any other solutions that can achieve that, No-Coding solutions would also be great as well.
Best Regards.
Sching
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @ChanuteJo
Yes, Scheduler or Sling Job would do work here.
Please make sure it is configurable(osgi config), so it can be disabled in case any issues and timing can be change without doing code changes.
Hi @ChanuteJo ,
Only way to achieve it is through custom code, please check https://medium.com/@toimrank/aem-scheduler-258eef7a7b5 & use https://www.freeformatter.com/cron-expression-generator-quartz.html cron formatter tool to generate your cron expression .
Everyday 2 PM - 0 0 14 1/1 * ? *
Thank you for the recommendations. I was wondering if there is any No-Code or basic configurations that allows me to achieve the same results of scheduling a Workflow to run at 2PM Everyday?
Thankyou
Views
Replies
Total Likes
Hi @ChanuteJo
Yes, Scheduler or Sling Job would do work here.
Please make sure it is configurable(osgi config), so it can be disabled in case any issues and timing can be change without doing code changes.
Hi @ChanuteJo ,
Apart from scheduler service you can also use Sling Job when there are use cases where the guarantee of processing is a must and usually this comes with the requirement of processing exactly once. Typical examples are sending notification emails (or sms), post processing of content (like thumbnail generation of images or documents), workflow steps etc.
You can find more details on it in below link:
https://sling.apache.org/documentation/bundles/apache-sling-eventing-and-job-handling.html
Thanks
Tarun
Views
Likes
Replies
Views
Likes
Replies