取得當前流程實例(任務)的資訊:
BPMTask task= Contex.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;
屬性匯總