return new JobState(state);
}
public boolean scheduleJob(BaseObject object, XWikiContext context) throws SchedulerPluginException
{
boolean scheduled = true;
<BUG>try {
JobDataMap data = new JobDataMap();
String xjob = getObjectUniqueId(object, context);
JobDetail job =
new JobDetail(xjob, Scheduler.DEFAULT_GROUP, Class.forName(object.getStringValue("jobClass")));
Trigger trigger =
new CronTrigger(xjob, Scheduler.DEFAULT_GROUP, xjob, Scheduler.DEFAULT_GROUP,
object.getStringValue("cron"));</BUG>
XWikiContext stubContext = prepareJobStubContext(object, context);

return new JobState(state);
}
public boolean scheduleJob(BaseObject object, XWikiContext context) throws SchedulerPluginException
{
boolean scheduled = true;
try {
String xjob = getObjectUniqueId(object, context);
JobBuilder jobBuilder = JobBuilder.newJob((Class<Job>) Class.forName(object.getStringValue("jobClass")));
jobBuilder.withIdentity(xjob);
JobDataMap data = new JobDataMap();
XWikiContext stubContext = prepareJobStubContext(object, context);
