Solved
Hi
How we can mention crone expression for shedulers in OSGI Configuration?
How we can mention crone expression for shedulers in OSGI Configuration?
You can use the code as below :
@AttributeDefinition( name = "Cron Expression", description = "Cron expression used by the scheduler", type = AttributeType.STRING) public String cronExpression() default "0 * * * * ?";
You can refer the following documents for more info on the same :
https://blog.developer.adobe.com/aem-6-4-creating-a-scheduler-using-osgi-r6-annotations-4ad0b8c6fce7
https://aem.redquark.org/2018/10/day-13-schedulers-in-aem.html
Thanks.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.