I am planning to write a ASP.NET page to trigger the job on demand. Currently, I am using SimpleTrigger class to trigger the job but none of the __Trigger class supports obj
I passed the object following way
JobDetail job1 = JobBuilder.newJob(JobAutomation.class)
.usingJobData("path", path)
.withIdentity("job2", "group2").build();
CronTrigger trigger1 = TriggerBuilder.newTrigger()
.withIdentity("cronTrigger2", "group2")
.withSchedule(CronScheduleBuilder.cronSchedule("40 27 11 * * ?"))
.build();
get jobdatamap by following lines of code
JobDataMap dataMap = context.getJobDetail().getJobDataMap();
String path =dataMap.getString("path");