Пример #1
0
        public virtual void schedule(TimerEntity timer)
        {
            DateTime duedate = timer.Duedate;

            ensureNotNull("duedate", duedate);
            timer.insert();
            hintJobExecutorIfNeeded(timer, duedate);
        }
Пример #2
0
        public virtual void createNewTimerJob(DateTime dueDate)
        {
            // create new timer job
            TimerEntity newTimer = new TimerEntity(this);

            newTimer.Duedate = dueDate;
            Context.CommandContext.JobManager.schedule(newTimer);
        }
Пример #3
0
 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;
 }