异常处理

This commit is contained in:
pengjie 2024-12-11 11:31:26 +08:00
parent b08bebdf1c
commit 38dca48323

View File

@ -415,7 +415,8 @@ public class ProcessTaskServiceImpl implements ProcessTaskService {
} catch (Exception e) { } catch (Exception e) {
log.error("处理任务异常", e); log.error("处理任务异常", e);
// TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
throw new BusinessException(e.getMessage()); ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(params.getInstanceId()).singleResult();
throw new BusinessException(processInstance.getProcessDefinitionName());
} finally { } finally {
//移除锁 //移除锁
HANDLER_NODE_LOCK.remove(lockKey); HANDLER_NODE_LOCK.remove(lockKey);