Get Rule Chain Configuration
Get the specified instantiated rule chain configuration. Used for rule chain visual configuration echo.
func (e *RuleEngine) DSL() []byte
1
- Return: Rule chain instantiation configuration content (JSON structure).
Example:
// Get the rule chain instance that has been created by the rule chain ID
ruleEngine,_:rulego.Get(chainId)
// Get the rule chain instance configuration
def = ruleEngine.DSL()
fmt.Println(string(def))
1
2
3
4
5
2
3
4
5
The rule chain configuration supports dynamic updates, dynamic replacement of business logic and component configuration, refer to the documentation. Used for rule chain modification.
Edit this page on GitHub (opens new window)
Last Updated: 2024/10/23, 10:13:01