michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
248 stars 203 forks source link

JobDataMap of trigger is empty #103

Closed aleh-lapin closed 8 years ago

aleh-lapin commented 9 years ago

I create a trigger: CronTrigger trigger = newTrigger() .withIdentity("my_trg" + settings.getDashboardId(), "my_group") .usingJobData("id", settings.getId()) .usingJobData("message", settings.getMessage()) .usingJobData("notify", settings.isNotify()) .usingJobData("notify2", settings.isNotify2()) .withSchedule(cronSchedule(settings.getCronExpression())) .startAt(settings.getStartDate()) .build();

in execute(JobExecutionContext context) method of my job merdedJobDataMap comes empty.
JobDataMap dataMap = context.getMergedJobDataMap();

If i'm trying to get job data map of trigger like Trigger trigger = scheduler.getTrigger(getTriggerKey(dashboardId)); it comes empty too.

pwojnowski commented 8 years ago

Good catch. Thanks! :+1: