Exemplo n.º 1
0
 /// <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);
         }
     }
 }
Exemplo n.º 2
0
 /// <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);
         }
     }
 }