Rule Chain Node
Use this node to break a large, monolithic rule chain into smaller, reusable sub-chains. For example, a root chain can dispatch all incoming messages to device-type-specific sub-chains — each handling its own alarm logic, telemetry normalization, or API calls — without duplicating logic across profiles.
The message is forwarded to the input node of the target rule chain. When the target chain finishes processing, control returns to the calling chain via the sub-chain’s Output nodes.
Configuration
Section titled “Configuration”| Field | Required | Description |
|---|---|---|
| Rule chain | Yes | The target rule chain to forward the message to. When Forward to originator’s default rule chain is also enabled, this chain is used as a fallback. |
| Forward message to the originator’s default rule chain | No | When enabled, the target is resolved dynamically from the originator’s Device Profile or Asset Profile. For other originator types or when the default chain cannot be determined, the configured Rule chain is used as a fallback. |
Message processing algorithm
Section titled “Message processing algorithm”- The node determines the target rule chain:
- If Forward message to the originator’s default rule chain is disabled, the configured rule chain is always used.
- If it is enabled:
- For Device originators: the default rule chain from the device’s profile is used.
- For Asset originators: the default rule chain from the asset’s profile is used.
- For other originator types, or if the default rule chain cannot be determined: the configured rule chain is used as a fallback.
- The message is forwarded to the input node of the target rule chain.
- The message proceeds through the target rule chain according to its configuration.
- Output connections from the target rule chain’s Output nodes determine the final message routing back to the calling chain.
Output connections
Section titled “Output connections”The output connections are determined by the Output nodes in the target rule chain, not by this node itself. The calling chain resumes from those named outputs.
Usage notes
Section titled “Usage notes”- Use this node to decompose complex logic into reusable sub-chains.
- Combined with Forward to originator’s default rule chain, a single node can dispatch different device types to their profile-specific rule chains without branching.
- The Output node in a sub-chain returns control to the node that called it via the Rule chain node.
JSON schema
Section titled “JSON schema”{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "TbRuleChainInputNodeConfiguration", "type": "object", "required": ["ruleChainId"], "additionalProperties": false, "properties": { "ruleChainId": { "type": "string", "minLength": 1, "description": "UUID of the target rule chain to forward messages to." }, "forwardMsgToDefaultRuleChain": { "type": "boolean", "description": "Whether to dynamically resolve the target rule chain based on the originator's default rule chain." } }}