取得當前步驟的資訊:
BPMProcStep step = Contex.Current.Step; //當前步驟
BPMProcStep step = Context.Current.EnterStep; //進入步驟
■ 當前步驟 – 程式碼執行瞬間所處步驟,在整個審批過程中,起始是在進入步驟,然後再進入下一步驟;
■ 進入步驟 – 本次提交是從哪個步驟上引發的,在整個執行過程中不變。
處理人
Member owner = Context.Current.Step.Owner; //步驟擁有人
User user = Context.Current.Step.Agent; //代處理人,無代處理人時為null
User user = Context.Current.Step.Recipient; //有代理人時為代理人,無代理人時為本人
String account = Context.Current.Step.HandlerAccount; //實際處理人帳號
String userName = Context.Current.Step.HandlerFullName; //實際處理人姓名
步驟號
int stepid = Context.Current.Step.StepID;
int taskid = Context.Current.Step.TaskID;
節點名稱
string stepName = Context.Current.Step.NodeName;
收到時間
DateTime receiveDate = Context.Current.Step.ReceiveAt;
處理按鈕
string action = Context.Current.Step.SelAction; //處理時點的按鈕,如:提交、核准,系統按鈕顯示原名稱如退回重填:sysRecedeRestart
string action = Context.Current.Step.SelActionDisplaySteing; //同上,但系統按鈕顯示友好名,如sysRecedeRestart顯示為退回重填
處理意見
string comments = Context.Current.Step.Comments;
屬性匯總