Exemplo n.º 1
0
 public ResponseResult<List<Role>> QueryProcessRoles(RoleQuery query)
 {
     var result = ResponseResult<List<Role>>.Default();
     try
     {
         var wfService = new WorkflowService();
         var roleList = wfService.GetRoleByProcess(query.ProcessGUID, query.Version).ToList();
         result = ResponseResult<List<Role>>.Success(roleList, "成功获取流程定义的角色数据!");
     }
     catch (System.Exception ex)
     {
         result = ResponseResult<List<Role>>.Error(string.Format(
             "获取流程定义的角色数据失败, 异常信息:{0}",
             ex.Message));
     }
     return result;
 }