![]() How will you achieve this? If you thought, I’d use a scheduler, then KUDOS to you. Let’s suppose your organization wants a report comprising workflow status and this report needs to be sent to a particular group of users via email every four hours. Create a sling scheduler which displays the custom parameter at an interval specified by the cron expression.cron expression, the name of the scheduler, custom parameter etc. Create an OSGi configuration to read the scheduler specific values from the user i.e.To create a scheduler in AEM, we will follow the below steps. Therefore, in this post, we will be discussing the clean way of creating schedulers that OSGi annotations provide. However, from AEM 6.2 onwards Felix SCR annotations are deprecated and are replaced with OSGi annotations. It uses open-source Quartz library.īoth of these methods can be seen here. Scheduler API - In this, we use Apache Commons’ Scheduler API to perform our task.This is similar to the Java Thread concept. Whiteboard Pattern - In this, we create a Runnable thread to perform our task.In AEM, we can create scheduler in two ways. ![]() ![]() ![]() Thus, if we want some work to happen at a particular time or at a regular interval, then Schedulers are the way to go. What are schedulers, you ask □? In simple terms, a scheduler is a service to schedule jobs. Today, we are going to delve into the nitty gritty details of Schedulers in AEM. Welcome to day 16 of this AEM Developer Series. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |