Ejemplo n.º 1
0
        /// <summary>
        /// 加载本流程的所有状态
        /// </summary>
        /// <returns></returns>
        public bool LoadStatus()
        {
            if (FlowInterface == null)
            {
                return(false);
            }
            List <Flow_StateDefine> _ts = FlowInterface.GetFlowStatusByFlow(this._flowDefine);

            this.status = new List <Biz_FlowState>();
            if (_ts == null)
            {
                return(true);
            }
            foreach (Flow_StateDefine _sd in _ts)
            {
                Biz_FlowState _ret = new Biz_FlowState(this, _sd);
                this.status.Add(_ret);
            }
            return(true);
        }