public void Run(IActionContext interactionContext) { IProcessInstance processInstance = interactionContext.GetProcessInstance(); Job job = new Job(processInstance.ProcessDefinition, "NetBpm.Example.Delegate.OvertakingAction, NetBpm.Example"); DateTime scheduleDate = DateTime.Now; // DateTime scheduleDate = new DateTime((System.DateTime.Now.Ticks - 621355968000000000) / 10000 + 2000); job.Date=scheduleDate; job.SetAuthentication("cg", "cg"); //When the assigned executor can't be relied on, //director has to step in and make some actions interactionContext.Schedule(job); }
public void Schedule(Job job, String reference) { ISchedulerSessionLocal schedulerComponent = null; try { schedulerComponent = (ISchedulerSessionLocal) serviceLocator.GetService(typeof (ISchedulerSessionLocal)); job.Context = _processInstance.RootFlow; schedulerComponent.ScheduleJob(job, reference); serviceLocator.Release(schedulerComponent); } finally { serviceLocator.Release(schedulerComponent); } }
public void Schedule(Job job) { Schedule(job, null); }
public void Schedule(Job job, string reference) { throw new NotImplementedException(); }
public void Schedule(Job job) { throw new NotImplementedException(); }