public GetProcessByVersion ( string processGUID, string version ) : |
||
processGUID | string | 流程定义GUID |
version | string | |
return |
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; }
public ResponseResult<ProcessEntity> GetProcessByVersion(ProcessEntity obj) { var result = ResponseResult<ProcessEntity>.Default(); try { var wfService = new WorkflowService(); var entity = wfService.GetProcessByVersion(obj.ProcessGUID, obj.Version); result = ResponseResult<ProcessEntity>.Success(entity); } catch (System.Exception ex) { result = ResponseResult<ProcessEntity>.Error( string.Format("获取流程基本信息失败!{0}", ex.Message) ); } return result; }