异常栈信息:
2022-01-26 15:57:58.182 ERROR 1 --- [io-11314-exec-8] c.f.s.b.c.e.GlobalExceptionHandler : 统一捕获异常
org.flowable.common.engine.api.FlowableException: No outgoing sequence flow of element 'wp-871fc117-85d6-479a-9f52-7abf870e854c' could be selected for continuing the process
at org.flowable.engine.impl.agenda.TakeOutgoingSequenceFlowsOperation.leaveFlowNode(TakeOutgoingSequenceFlowsOperation.java:179)
at org.flowable.engine.impl.agenda.TakeOutgoingSequenceFlowsOperation.handleFlowNode(TakeOutgoingSequenceFlowsOperation.java:96)
at org.flowable.engine.impl.agenda.TakeOutgoingSequenceFlowsOperation.run(TakeOutgoingSequenceFlowsOperation.java:85)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:88)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)
at org.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)
at org.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)
at org.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:71)
at org.flowable.common.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:49)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
at org.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:46)
at org.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
at org.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
at org.flowable.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:112)
at com.yhl.sys.bpm.service.impl.WpServiceImpl.startWp(WpServiceImpl.java:329)
at com.yhl.sys.bpm.listener.bpm.ProcessCompletedListener.startWp(ProcessCompletedListener.java:163)
at com.yhl.sys.bpm.listener.bpm.ProcessCompletedListener.handle(ProcessCompletedListener.java:95)
at com.yhl.sys.bpm.listener.bpm.ProcessCompletedListener$$FastClassBySpringCGLIB$$556cfae5.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
at com.yhl.sys.bpm.listener.bpm.ProcessCompletedListener$$EnhancerBySpringCGLIB$$d5773461.handle(<generated>)
at com.yhl.sys.bpm.listener.bpm.base.GlobalEventListener.onEvent(GlobalEventListener.java:42)
at org.flowable.common.engine.impl.event.FlowableEventSupport.dispatchNormalEventListener(FlowableEventSupport.java:115)
其中 at com.yhl.sys.bpm.service.impl.WpServiceImpl.startWp(WpServiceImpl.java:329) 此处代码我添加了try catch ,但是没有捕获到
try{
Process process = runtimeService.startProcessInstanceByKey(wpKey,variable);
}catch(Exception e){
// 异常处理
}
你应该粘贴你try catch部分的代码
@风雨长安 看你代码是会捕获异常的,你在catch里面又抛出异常了吗?
老兄,你catch捕获的是什么异常?
– Halloworlds 2年前@Halloworlds: org.flowable.common.engine.api.FlowableException
– 风雨长安 2年前