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

This commit is contained in:
everywhere.z 2024-04-13 19:33:32 +08:00
parent 200457d4fd
commit b9798c4fe6
1 changed files with 1 additions and 8 deletions

View File

@ -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();