Sling Scheduler AEM | Community
Skip to main content
New Participant
September 9, 2021
Solved

Sling Scheduler AEM

  • September 9, 2021
  • 3 replies
  • 1794 views

Is it possible to create a job that we can run manually without any cron timings. Requirement is : we can go to schedulers and click on that scheduler to start the job.

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 khamat_bn

Hello @shivamr95071309 

 

I have done this requirement recently, what we have is scheduler and one we have created the common utility class and service. and we are calling the utility and service  from the scheduler method.

Also for manual run we have created the workflow custom step and we have call the utility and service class in it. 

So here this both requirement is satisfied -- scheduler(for automatic call depends on cron) and workflow for manual run.

 

@shivamr95071309 please let me know if you needed more info in this.

🙂 

 

3 replies

Manu_Mathew_
New Participant
September 9, 2021
Kishore_Kumar_
New Participant
September 9, 2021

Yes, Trigger with now() method of scheduler api.

khamat_bn
khamat_bnAccepted solution
New Participant
September 9, 2021

Hello @shivamr95071309 

 

I have done this requirement recently, what we have is scheduler and one we have created the common utility class and service. and we are calling the utility and service  from the scheduler method.

Also for manual run we have created the workflow custom step and we have call the utility and service class in it. 

So here this both requirement is satisfied -- scheduler(for automatic call depends on cron) and workflow for manual run.

 

@shivamr95071309 please let me know if you needed more info in this.

🙂 

 

New Participant
September 9, 2021

So can have flow like :: Workflow Custom step --> Job trigger --> custom requirement.