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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Sling Scheduler AEM

shivamr95071309
Level 1
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
khamat_bn
Correct answer by
Level 4
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.

🙂 

 

View solution in original post

4 Replies
khamat_bn
Correct answer by
Level 4
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.

🙂 

 

View solution in original post

shivamr95071309
Level 1
Level 1

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