Dynamic Refresh Rule Chain
You can dynamically update the rule chain at runtime, change the behavior and business logic of the rule chain, and achieve non-stop update and expansion of business logic.
- Update the root rule chain
err := ruleEngine.ReloadSelf([]byte(ruleFile))
1
2
2
- Update a node of the root rule chain
//Update the sub-rule chain
ruleEngine.ReloadChild(types.EmptyRuleNodeId, types.RuleNodeId{Id: "s1"}, []byte(modifyNodeFile))
1
2
3
2
3
Edit this page on GitHub (opens new window)
Last Updated: 2024/10/23, 10:13:01