⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scheduleovertakingaction.cs

📁 工作流的基本资料(文档资料
💻 CS
字号:
using System;
using NetBpm.Workflow.Delegation;
using NetBpm.Workflow.Scheduler;
using NetBpm.Workflow.Execution;

namespace NetBpm.Example.Delegate
{
	
	public class ScheduleOvertakingAction : IActionHandler
	{
		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);
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -