获得当前步骤的信息:

BPMProcStep step = Context.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.SelActionDisplayString; //同上,但系统按钮显示友好名,如sysRecedeRestart显示为退回重填

处理意见

string comments = Context.Current.Step.Comments;

属性汇总

Created with the Personal Edition of HelpNDoc: Free Web Help generator