GetProcess() public method

获取流程定义数据
public GetProcess ( ) : IList
return IList
Example #1
0
        public ResponseResult<List<ProcessEntity>> GetProcess()
        {
            var result = ResponseResult<List<ProcessEntity>>.Default();
            try
            {
                var wfService = new WorkflowService();
                var entity = wfService.GetProcess().ToList();

                result = ResponseResult<List<ProcessEntity>>.Success(entity);
            }
            catch (System.Exception ex)
            {
                result = ResponseResult<List<ProcessEntity>>.Error(
                    string.Format("获取流程基本信息失败!{0}", ex.Message)
                );
            }
            return result;
        }