Skip to main content
Sep 9, 2021 6:29 AM UTC
Solved

Sling Scheduler AEM

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.
khamat_bn
khamat_bnAccepted solution
Level 4
Sep 9, 2021 6:52 AM UTC

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.

🙂 

 

4 replies

khamat_bn
khamat_bnAccepted solution
Level 4
Sep 9, 2021 6:52 AM UTC

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.

🙂 

 

Translate
Sep 9, 2021 7:52 AM UTC

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

Translate
Kishore_Kumar_
Level 9
Sep 9, 2021 6:55 AM UTC

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

Translate
Manu_Mathew_
Community Advisor
Community Advisor
Sep 9, 2021 4:06 PM UTC