获得当前流程实例(任务)的信息:

BPMTask task= Context.Current.Task;

发起人

Member owner = Context.Current.Task.Owner; //任务拥有人

User user = Context.Current.Task.Agent;  //代理发起人,不是代理发起的情况为null

User user = Context.Current.Task. Applicant;  //实际发起人,代理发起任务为Agent,非代理人发起业务为Owner.UserInfo

任务号

int taskid = Context.Current.Task.TaskID;

流水号

string sn = Context.Current.Task.SerialNum;

提交日期

DateTime requestDate = Context.Current.Task.CreateAt;

任务摘要

string desc = Context.Current.Task.Description;

属性汇总

Created with the Personal Edition of HelpNDoc: Free EPub producer