public Void execute(CommandContext commandContext) { TimerEntity failedJob = (TimerEntity) commandContext .getJobManager() .findJobById(jobId); Date newDueDate = failedJob.calculateRepeat(); if (newDueDate != null) { failedJob.createNewTimerJob(newDueDate); // update configuration of failed job TimerJobConfiguration config = (TimerJobConfiguration) failedJob.getJobHandlerConfiguration(); config.setFollowUpJobCreated(true); failedJob.setJobHandlerConfiguration(config); } return null; }
public Void execute(CommandContext commandContext) { TimerEntity failedJob = (TimerEntity) commandContext .getJobManager() .findJobById(jobId); Date newDueDate = failedJob.calculateRepeat(); if (newDueDate != null) { failedJob.createNewTimerJob(newDueDate); // update configuration of failed job TimerJobConfiguration config = (TimerJobConfiguration) failedJob.getJobHandlerConfiguration(); config.setFollowUpJobCreated(true); failedJob.setJobHandlerConfiguration(config); } return null; }
public Void execute(CommandContext commandContext) { TimerEntity failedJob = (TimerEntity) commandContext .getJobManager() .findJobById(jobId); Date newDueDate = failedJob.calculateRepeat(); if (newDueDate != null) { failedJob.createNewTimerJob(newDueDate); // update configuration of failed job TimerJobConfiguration config = (TimerJobConfiguration) failedJob.getJobHandlerConfiguration(); config.setFollowUpJobCreated(true); failedJob.setJobHandlerConfiguration(config); } return null; }