Getting Started
Install RuleBox and see what it registers in WireBox.
Getting Started
Requirements
- BoxLang 1.14+
Installation
Leverage CommandBox to install RuleBox as a module in your ColdBox application:
box install rulebox
What gets registered
Once installed, the module registers the following objects in WireBox:
| WireBox ID | Type | Description |
|---|---|---|
Rule@rulebox | Transient | A single rule |
RuleBook@rulebox | Transient | A rule book that groups and chains rules |
Builder@rulebox | Singleton | Builds à la carte rules and rule books |
Result@rulebox | Transient | Models the result produced by a rule chain |
RuleBookandRuleare transient objects - they carry state (facts, results, audit trail) across arun(), so a fresh instance is requested every time viagetInstance(). See Thread Safety for why that matters.