From 702f30c0fff7d46540dbb88f4e0dd11fc7ca5f35 Mon Sep 17 00:00:00 2001 From: "everywhere.z" Date: Fri, 19 Jul 2024 14:22:06 +0800 Subject: [PATCH] =?UTF-8?q?enhancement=20#IAE5PA=20FlowBus=E4=B8=AD?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=88=B7=E6=96=B0route=E7=9A=84api=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yomahub/liteflow/flow/FlowBus.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/FlowBus.java b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/FlowBus.java index a49581980..32bed7912 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/flow/FlowBus.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/flow/FlowBus.java @@ -357,7 +357,11 @@ public class FlowBus { // 重新加载规则 public static void reloadChain(String chainId, String elContent) { - LiteFlowChainELBuilder.createChain().setChainId(chainId).setEL(elContent).build(); + reloadChain(chainId, elContent, null); + } + + public static void reloadChain(String chainId, String elContent, String routeContent) { + LiteFlowChainELBuilder.createChain().setChainId(chainId).setEL(elContent).setRoute(routeContent).build(); } public static void clearStat(){