public virtual void schedule(TimerEntity timer) { DateTime duedate = timer.Duedate; ensureNotNull("duedate", duedate); timer.insert(); hintJobExecutorIfNeeded(timer, duedate); }
public virtual void createNewTimerJob(DateTime dueDate) { // create new timer job TimerEntity newTimer = new TimerEntity(this); newTimer.Duedate = dueDate; Context.CommandContext.JobManager.schedule(newTimer); }
protected internal TimerEntity(TimerEntity te) { jobHandlerConfiguration = te.jobHandlerConfiguration; jobHandlerType = te.jobHandlerType; isExclusive = te.isExclusive; repeat = te.repeat; retries = te.retries; executionId = te.executionId; processInstanceId = te.processInstanceId; jobDefinitionId = te.jobDefinitionId; suspensionState = te.suspensionState; deploymentId = te.deploymentId; processDefinitionId = te.processDefinitionId; processDefinitionKey = te.processDefinitionKey; tenantId = te.tenantId; priority = te.priority; }