Sfoglia il codice sorgente

update 优化 异常处理

疯狂的狮子Li 1 mese fa
parent
commit
51266b2238

+ 1 - 1
ruoyi-modules/ruoyi-workflow/src/main/java/org/dromara/workflow/service/impl/FlwTaskServiceImpl.java

@@ -649,7 +649,7 @@ public class FlwTaskServiceImpl implements IFlwTaskService {
                 }
             } catch (FlowException e) {
                 // 条件变量缺失时跳过当前分支,其他引擎异常继续抛出。
-                if (!ExceptionCons.NULL_CONDITION_VALUE.equals(e.getMessage())) {
+                if (!StringUtils.containsAny(e.getMessage(), ExceptionCons.NULL_CONDITION_VALUE, ExceptionCons.NULL_SKIP_TYPE)) {
                     throw e;
                 }
             }