/// <summary> /// 保存流程实例任务处理完记录 /// </summary> /// <param name="entity">实体</param> public void SaveEntity(WfTaskHistoryEntity entity) { try { wfTaskHistoryService.SaveEntity(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } }
/// <summary> /// 保存流程实例任务处理完记录 /// </summary> /// <param name="entity">实体</param> public void SaveEntity(WfTaskHistoryEntity entity) { try { entity.Create(); this.BaseRepository().Insert(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } }