public ResponseResult UpdateProcess(ProcessEntity entity) { var result = ResponseResult.Default(); try { var wfService = new WorkflowService(); var processEntity = wfService.GetProcessByVersion(entity.ProcessGUID, entity.Version); processEntity.ProcessName = entity.ProcessName; processEntity.XmlFileName = entity.XmlFileName; processEntity.AppType = entity.AppType; processEntity.Description = entity.Description; wfService.UpdateProcess(processEntity); result = ResponseResult.Success(); } catch (System.Exception ex) { result = ResponseResult.Error(string.Format("更新流程记录失败,错误:{0}", ex.Message)); } return result; }