/// <summary> /// 添加页面 /// </summary> /// <param name="name">页面名称</param> /// <param name="pageType">页面类型</param> /// <param name="successPage">默认成功页面</param> public void Add(string name, Type pageType, string successPage) { var nextPages = new MFlowDict(); nextPages.Add(IDNENTITY_NAME_SUCCESS, successPage); Add(MPageElement.Of(name, pageType, MTimeout.Default, nextPages)); }
/// <summary> /// 添加页面 /// </summary> /// <param name="element">页面元素</param> public void Add(MPageElement element) { if (Has(element.Name)) { throw MFlowException.Of("已存在此页面"); } AllPages.Add(element); }
/// <summary> /// 添加页面 /// </summary> /// <param name="name">页面名称</param> /// <param name="pageType">页面类型</param> /// <param name="timeout">超时时间</param> public void Add(string name, Type pageType, int timeout) { Add(MPageElement.Of(name, pageType, timeout)); }
/// <summary> /// 添加页面 /// </summary> /// <param name="name">页面名称</param> /// <param name="pageType">页面类型</param> public void Add(string name, Type pageType) { Add(MPageElement.Of(name, pageType, MTimeout.Default)); }
/// <summary> /// 添加页面 /// </summary> /// <param name="name">页面名称</param> /// <param name="pageType">页面类型</param> /// <param name="timeout">超时时间</param> /// <param name="nextPages">后面页面对应关系</param> public void Add(string name, Type pageType, int timeout, MFlowDict nextPages) { Add(MPageElement.Of(name, pageType, timeout, nextPages)); }