protected void doStart() throws Exception {
ObjectHelper.notEmpty(cron, "cron", this);
if (quartzScheduler == null) {
// get the scheduler form the quartz component
QuartzComponent quartz = getCamelContext().getComponent("quartz2", QuartzComponent.class);
setQuartzScheduler(quartz.getScheduler());
}
JobDataMap map = new JobDataMap();
map.put("task", runnable);
map.put(QuartzConstants.QUARTZ_TRIGGER_TYPE, "cron");