GetProcessInstanceList() public method

流程实例列表
public GetProcessInstanceList ( ) : IList
return IList
Example #1
0
        public ResponseResult<List<ProcessInstanceEntity>> GetProcessInstanceList()
        {
            var result = ResponseResult<List<ProcessInstanceEntity>>.Default();
            try
            {
                var wfService = new WfDataService();
                var entity = wfService.GetProcessInstanceList().ToList();

                result = ResponseResult<List<ProcessInstanceEntity>>.Success(entity);
            }
            catch (System.Exception ex)
            {
                result = ResponseResult<List<ProcessInstanceEntity>>.Error(
                    string.Format("获取流程实例数据失败!{0}", ex.Message)
                );
            }
            return result;
        }