Browse Source

feature #I96A33 为LF增加决策表特性

everywhere.z 1 year ago
parent
commit
b9798c4fe6

+ 1 - 8
liteflow-core/src/main/java/com/yomahub/liteflow/parser/helper/ParserHelper.java

@@ -317,20 +317,13 @@ public class ParserHelper {
         if (routeJsonNode != null){
             builder.setRoute(routeJsonNode.textValue());
 
-            JsonNode bodyJsonNode = chainNode.get(BODY);
+            JsonNode bodyJsonNode = chainNode.get(VALUE);
             if (bodyJsonNode == null){
                 String errMsg = StrUtil.format("If you have defined the field route, then you must define the field body in chain[{}]", chainId);
                 throw new FlowSystemException(errMsg);
             }
             builder.setEL(bodyJsonNode.textValue());
         }else{
-            JsonNode bodyJsonNode = chainNode.get(BODY);
-            if (bodyJsonNode != null){
-                builder.setEL(bodyJsonNode.textValue());
-            }else{
-                builder.setEL(chainNode.textValue());
-            }
-
             builder.setEL(chainNode.get(VALUE).textValue());
         }
         builder.build();