public GetProcessInitiator ( int processInstanceID ) : Performer | ||
processInstanceID | int | |
return | Performer |
/// <summary> /// 获取任务办理人列表 /// </summary> /// <param name="processInstanceID"></param> /// <param name="roles"></param> /// <returns></returns> public PerformerList GetPerformerList(int processInstanceID, List<Role> roles) { PerformerList performers = null; //获取流程发起人信息,在xml定义中有role变量:-1 if (roles.Count == 1 && roles[0].RoleCode == "-1") { IWorkflowService service = new WorkflowService(); Performer initiator = service.GetProcessInitiator(processInstanceID); performers = new PerformerList(); performers.Add(initiator); } return performers; }