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

Batch Initialize Rule Chain

You can specify a folder path, load all rule chain configuration files with the suffix .json, and initialize the corresponding rule engine instances to the rule engine instance pool. Example:

config := rulego.NewConfig()
err := rulego.Load("./chains/", rulego.WithConfig(config))
1
2

Warning:

Each rule chain file needs to specify an Id, and ensure its uniqueness. For example:

{
  "ruleChain": {
    "id": "chain_call_rest_api",
    ...
  },
  "metadata": {}
}
1
2
3
4
5
6
7

Then get the rule chain instance by the rule chain ID:

ruleEngine, ok := rulego.Get("chain_call_rest_api")
1
Edit this page on GitHub (opens new window)
Last Updated: 2025/04/02, 01:29:50
Get Rule Chain Node Configuration
Delete Rule Chain Instance

← Get Rule Chain Node Configuration Delete Rule Chain Instance→

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

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