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);
		}
Exemple #2
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);
        }