Rule chain templates
A rule chain template is a rule chain created on the server, on the Rule chain tab of Edge management > Templates. It does not run on the server. It is copied to every Edge you assign it to, and runs there. On Edge 4.0 and later, you can also create and edit rule chains directly on the Edge.
Create a template on the server
Section titled “Create a template on the server”Use a template when you want to deploy the same rule chain logic to several Edges from one place.
- On the server, go to Edge management > Templates and open the Rule chain tab. Click + and select Create new rule chain.
- Enter a name and click Add.
- Click the new template in the list to open it. Use the Search nodes field on the left to find rule nodes, drag them onto the canvas, connect them, and click Apply changes.
The template is not active on any Edge until you assign it.
Assign a template to an Edge
Section titled “Assign a template to an Edge”- On the server, go to Edge management > Edges and click the Edge.
- On the Details tab, click Manage rule chains.
- Click Assign to edge (+). In the Assign Rule Chain(s) To Edge dialog, select the template and click Assign.
The template appears in the rule chain list of this Edge. The Root column shows which rule chain is the root rule chain of the Edge.
The template is sent to the Edge as a downlink. If the Edge is connected, it receives the rule chain right away. If it is offline, it receives it once the connection is restored.
To assign a template to every new Edge automatically, or to make it the root rule chain of new Edges, use the row actions Assign rule chain to edge(s) on creation and Make rule chain as edge template root in the template list. See Rule chains of new Edges.
Create a rule chain directly on Edge
Section titled “Create a rule chain directly on Edge”Available from Edge 4.0. Rule chains created on Edge are sent to the server automatically when the connection is available. Use this approach for Edge-specific logic that does not need to be shared with other Edges.
- On the Edge, go to Data processing > Rule chains, click +, and select Create new rule chain.
- Enter a name and click Add.
- Click the new rule chain in the list to open it. Add and connect your rule nodes, then click Apply changes.
Verify a rule chain on Edge
Section titled “Verify a rule chain on Edge”After you assign a template or create a rule chain on Edge, confirm that it is active and configured correctly.
- Log in to the Edge and go to Data processing > Rule chains. The rule chain is in the list.
- Open it and check that the nodes and connections match what you defined.
Was this helpful?