NBA Node: Gate

Alex Edelstein
2 min readMay 18, 2018

--

Gate nodes are the only node type that don’t act on propositions. Instead, they turn child branches on or off, similar to gate being open or shut. Gate nodes intake 1 or multiple child branches. For each child branch, you specify a Gate Expression that determines whether the contents of that branch are passed forward.

Propositions will pass through a Filter node if the expression you specify evaluates to true. Note that if the point-and-click expression builder doesn’t support the complexity you need, you can switch to formula mode. We believe we support the full Salesforce formula engine.

Comparing Filter nodes and Gate nodes

Gate nodes act like gates that turn branches on or off, while Filter nodes filter a set of propositions and pass forward a subset.

One way to decide which to use:
If your expression includes only context (e.g. record) data then you should use an if node. If your expression uses any proposition data then you should use a filter node.

Note: whilst it is possible to use a filter node with an expression which uses only context (record) data this is much less efficient and should be avoided. With if nodes the strategy will only execute child nodes where the corresponding expression is true so this can eliminate the need to execute parts of the strategy and the expression is only evaluated once for that branch, not once for each proposition.

General Node Information (applies to all nodes)

For more information:
Filter Developer Reference (Must be in Salesforce pilot to access)

return home

--

--