Filter and organize records
Rules
A decision table: business rules that set fields and can reject records, without code.
Nodes › LogicOpen in Neblex
- Good for
- Business rules people can read
- Role
- Works on the records in a flow
- Find it in
- Nodes › Logic
When to use it
- Pricing tiers, discounts, eligibility or routing follow rules the business changes often.
- The rules should live in a table that people edit, not in a flow.
- Conflicting or missing rules should be visible on each record.
Reach for something else when
BranchWhen you only need to route records, not set fields.CodeWhen the logic is too complex for rules.
Example
A rule sets tier = gold for totals of at least 1000; another rejects negative totals with the reason negative total.
How it works
- Settings
- Rules (condition, fields to set, reason, reject), or Read the rules from a step (for example a Data table query of a rules table, one rule per record with
when,set,reason,reject); Which matching rules apply: the first, every one in order, or exactly one (more is a conflict); Rejected records: tag them, send them to the Rejected output, or fail the step. - Output
- Every record, with the matching rules' fields set,
_rules(their reasons),_rejected,_reject_reasonand_rules_conflict. - Example
totalat least1000setstier=gold;totalless than0rejects with the reason negative total.
Add it to a flow
- Open the flow from Build › Workflows.
- Open Nodes and find Rules under Logic, or search for it. Click it or drag it onto the canvas.
- Drag from the previous step's output handle to its input, then open its settings with ✎ Edit.
- Run the flow and click the step to see the records it received and produced.
More in Filter and organize records
FilterKeeps only the records that match a condition and drops the rest.Nodes › LogicSortOrders records by a field, ascending or descending.Nodes › LogicKeep first NPasses on only the first records, up to the number you set.Nodes › LogicRemove duplicatesRemoves repeated records, or tags them for review, using exact, fuzzy or phonetic matching.Nodes › LogicSplitTurns one record that holds a list into one record per list item.Nodes › LogicGroup into batchesPacks records into groups of a fixed size, so one call can carry many records.Nodes › Logic