RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

  • Custom Components

  • Components marketplace

  • Visualization

    • Visualization Overview
    • RuleGo-Editor
    • Get Component Configuration Forms
    • Get Rule Chain Configuration
    • Get Rule Chain Node Configuration
    • Batch Initialize Rule Chain
    • Delete Rule Chain Instance
    • Save Rule Chain Coordinate Information
    • Component Form Conventions
  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

Get Rule Chain Node Configuration

Get the configuration of the specified child node under the specified instantiated rule chain. Used for rule chain visual configuration echo.

func (e *RuleEngine) NodeDSL(subChainId types.RuleNodeId, childNodeId types.RuleNodeId) []byte
1
  • subChainId: Sub-rule chain ID, if querying the root rule chain node, fill in: types.EmptyRuleNodeId
  • childNodeId: Child node ID, for example: types.RuleNodeId{Id: nodeId}
  • Return: Node instantiation configuration (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 child node configuration
def = ruleEngine.NodeDSL(types.EmptyRuleNodeId, types.RuleNodeId{Id: nodeId, Type: types.NODE})
fmt.Println(string(def))
1
2
3
4
5

The rule chain node 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: 2025/04/02, 01:29:50
Get Rule Chain Configuration
Batch Initialize Rule Chain

← Get Rule Chain Configuration Batch Initialize Rule Chain→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式