* Carbon Scheduled Tasks Component is used.
* Since the Scheduled Tasks Component itself does not initialize a
* TaskDescriptionRepository instance,this code snippet is used to initialize a
* the required instance manually.
*/
TaskDescriptionRepository taskDescriptionRepository = (TaskDescriptionRepository)
configurationContext.getProperty(TaskManager.CARBON_TASK_REPOSITORY);
if (taskDescriptionRepository == null) {
taskDescriptionRepository = new TaskDescriptionRepository();
configurationContext.setProperty(
TaskManager.CARBON_TASK_REPOSITORY, taskDescriptionRepository);
}
/*