Ejemplo n.º 1
0
		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);
		}
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public void Schedule(Job job)
 {
     Schedule(job, null);
 }
Ejemplo n.º 4
0
 public void Schedule(Job job, string reference)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public void Schedule(Job job)
 {
     throw new NotImplementedException();
 }