use of org.eclipse.scout.rt.platform.job.ExecutionTrigger in project scout.rt by eclipse.
the class JobFutureTask method createQuartzTrigger.
/**
* Creates the Quartz Trigger to fire execution.
*/
protected OperableTrigger createQuartzTrigger(final JobInput input) {
final TriggerBuilder<Trigger> builder = TriggerBuilder.newTrigger().forJob(JobFutureTask.class.getSimpleName());
final ExecutionTrigger executionTrigger = input.getExecutionTrigger();
if (executionTrigger != null) {
builder.startAt(executionTrigger.getStartTime()).endAt(executionTrigger.getEndTime()).withSchedule(executionTrigger.getSchedule());
}
return (OperableTrigger) builder.build();
}
Aggregations