Workflow | Community
Skip to main content
Level 3
March 22, 2024
Solved

Workflow

  • March 22, 2024
  • 3 replies
  • 1054 views

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

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 @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.

3 replies

anupampat
Community Advisor
Community Advisor
March 22, 2024

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 * ? *

ChanuteJoAuthor
Level 3
March 25, 2024

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 

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 22, 2024

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.

Arun Patidar
TarunKumar
Community Advisor
Community Advisor
March 22, 2024

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