异常处理
This commit is contained in:
parent
b08bebdf1c
commit
38dca48323
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user