Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mahedi_Sabuj
Mahedi_SabujAccepted solution
Community Advisor
August 24, 2023

Hi @sumit30908642ioye,

There is no OOTB option for manually running a Sling Job, but you can accomplish this by implementing a custom workflow step.

Begin by creating a shared utility class and service. Then, invoke these utility class and services within the scheduler method. To facilitate manual runs, design a custom workflow step (or servlet) that incorporates the same utility class and services.

This setup successfully fulfills both needs: scheduled automatic execution and the ability to initiate the process manually.

Similar discussion is available here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-scheduler-aem/td-p/422368 

Mahedi Sabuj

4 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
August 24, 2023

Hi @sumit30908642ioye,

There is no OOTB option for manually running a Sling Job, but you can accomplish this by implementing a custom workflow step.

Begin by creating a shared utility class and service. Then, invoke these utility class and services within the scheduler method. To facilitate manual runs, design a custom workflow step (or servlet) that incorporates the same utility class and services.

This setup successfully fulfills both needs: scheduled automatic execution and the ability to initiate the process manually.

Similar discussion is available here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/sling-scheduler-aem/td-p/422368 

Translate
Mahedi Sabuj
Level 2
August 25, 2023

Thank you @mahedi_sabuj 

Translate
Harwinder-singh
Community Advisor
Community Advisor
August 24, 2023
Level 2
August 25, 2023

Thank you @harwinder-singh 

Translate