Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Sling Scheduler AEM

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Level 4

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.

🙂 

 

0 Replies

Avatar

Correct answer by
Level 4

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.

🙂 

 

Avatar

Level 1

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

Avatar

Community Advisor

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