feat #I69VAR 优化 node chain 不存在时候的错误提示

This commit is contained in:
gaibu 2023-01-10 21:27:28 +08:00
parent b7bbaf5493
commit 0f46146e11
1 changed files with 6 additions and 4 deletions

View File

@ -247,10 +247,12 @@ public class LiteFlowChainELBuilder {
List<String> chainIds = CollUtil.map(FlowBus.getChainMap().values(), Chain::getChainId, true);
List<String> nodeIds = CollUtil.map(FlowBus.getNodeMap().values(), Node::getId, true);
for (Instruction instruction : instructionList) {
String attrName = ((InstructionLoadAttr) instruction).getAttrName();
if (!chainIds.contains(attrName) && !nodeIds.contains(attrName)) {
msg = String.format("[node/chain is not exist or node/chain not register]\n id=%s \n elStr=%s", attrName, StrUtil.trim(elStr));
break;
if (instruction instanceof InstructionLoadAttr) {
String attrName = ((InstructionLoadAttr) instruction).getAttrName();
if (!chainIds.contains(attrName) && !nodeIds.contains(attrName)) {
msg = String.format("[node/chain is not exist or node/chain not register]\n id=%s \n elStr=%s", attrName, StrUtil.trim(elStr));
break;
}
}
}
} catch (Exception ex) {