/// <summary> /// 获取流程WorkflowContext对象(加载已有流程信息) /// </summary> /// <param name="page">页面对象</param> /// <param name="businessID">业务ID</param> /// <param name="userLoginID">用户CTX账号</param> /// <returns>流程信息</returns> public static WorkflowContext GetProcess(Page page, string businessID, string userLoginID = null) { BizContext bizContext = new BizContext(); bizContext.BusinessID = businessID; if (!string.IsNullOrEmpty(userLoginID)) { bizContext.CurrentUser = new UserInfo() { UserLoginID = userLoginID }; } return(WFClientProcess.GetProcess(page, bizContext)); }
/// <summary> /// 获取流程WorkflowContext对象(根据参数刷新流程信息) /// </summary> /// <param name="page">页面对象</param> /// <param name="businessID">业务ID</param> /// <param name="formParam">流程参数</param> /// <param name="DynamicRoleUserList">动态角色</param> /// <param name="userLoginID">用户UserLoginID(为空或null则从SSO获取)</param> /// <returns>刷新后的流程信息</returns> public static WorkflowContext GetProcessForceRefresh(Page page, string businessID, Dictionary <string, object> formParam, Dictionary <string, List <UserInfo> > DynamicRoleUserList, string userLoginID = null) { BizContext bizContext = new BizContext(); bizContext.BusinessID = businessID; bizContext.FormParams = formParam; bizContext.DynamicRoleUserList = DynamicRoleUserList; if (!string.IsNullOrEmpty(userLoginID)) { bizContext.CurrentUser = new UserInfo() { UserLoginID = userLoginID }; } bizContext.ExtensionCommond = new Dictionary <string, string>(); bizContext.ExtensionCommond.Add(AppSettingInfo.CONST_ExtensionCommond_GetProcessForceRefresh, bool.TrueString); return(WFClientProcess.GetProcess(page, bizContext)); }
/// <summary> /// 获取流程WorkflowContext对象(加载已有流程信息) /// </summary> /// <param name="page">页面对象</param> /// <param name="businessID">业务ID</param> /// <param name="userInfo">用户信息</param> /// <returns>流程信息</returns> public static WorkflowContext GetProcess(Page page, string businessID, UserInfo userInfo) { BizContext bizContext = new BizContext(); bizContext.BusinessID = businessID; if (userInfo == null) { bizContext.CurrentUser = new UserInfo() { UserLoginID = SDKHelper.GetUserName(HttpContext.Current) }; } else { bizContext.CurrentUser = userInfo; } return(WFClientProcess.GetProcess(page, bizContext)); }
/// <summary> /// 获取流程信息 /// </summary> /// <param name="page">页面对象</param> /// <param name="bizContext">业务系统BizContext</param> /// <returns></returns> public static WorkflowContext GetProcess(Page page, BizContext bizContext) { return(WFClientProcess.GetProcess(page, bizContext)); }