规则块执行器
This commit is contained in:
@@ -370,7 +370,7 @@ public class RuleSetNode implements EngineRunnerNode {
|
|||||||
// }
|
// }
|
||||||
input.put(resultFieldEn, "命中");
|
input.put(resultFieldEn, "命中");
|
||||||
//处理此规则需要输出的内容
|
//处理此规则需要输出的内容
|
||||||
fieldList.addAll(ruleService.setComplexRuleOutput(ruleVersion.getId(), temp, input, StrategyType.OutType.SUCCESS_OUT));
|
fieldList.addAll(ruleService.setComplexRuleOutput(hitRuleBlock.getId(), temp, input, StrategyType.OutType.SUCCESS_OUT));
|
||||||
ruleMap.put("fieldList", fieldList);
|
ruleMap.put("fieldList", fieldList);
|
||||||
hitFlag = true;
|
hitFlag = true;
|
||||||
} else {
|
} else {
|
||||||
@@ -378,7 +378,7 @@ public class RuleSetNode implements EngineRunnerNode {
|
|||||||
ruleMap.put("ruleScore", 0);
|
ruleMap.put("ruleScore", 0);
|
||||||
input.put(scoreFieldEn, 0);
|
input.put(scoreFieldEn, 0);
|
||||||
fieldList.add(resultJson);
|
fieldList.add(resultJson);
|
||||||
fieldList.addAll(ruleService.setComplexRuleOutput(ruleVersion.getId(), temp, input, StrategyType.OutType.FAIL_OUT));
|
fieldList.addAll(ruleService.setComplexRuleOutput(hitRuleBlock.getId(), temp, input, StrategyType.OutType.FAIL_OUT));
|
||||||
ruleMap.put("fieldList", fieldList);
|
ruleMap.put("fieldList", fieldList);
|
||||||
}
|
}
|
||||||
ruleResultList.add(ruleMap);
|
ruleResultList.add(ruleMap);
|
||||||
|
|||||||
Reference in New Issue
Block a user