Building blocks
Decision tables
Ordered, typed business rules that return consistent outputs to workflows, applications and AI clients.
A decision table turns business policy into data that analysts can read and change without touching workflows. It has typed inputs, typed outputs and an ordered list of rules. The first enabled rule whose conditions all match wins and returns its outputs.

Inputs and outputs#
Fields have a key, a label and a type: text, number, boolean or date. Values are converted to the input's type before rules are compared.
Conditions#
Each rule has conditions on inputs with one of these operators: equals, not_equals, contains, not_contains, starts_with, ends_with, greater_than, greater_than_or_equal, less_than, less_than_or_equal, is_empty, is_not_empty. A rule with no conditions always matches — put it last as the default.
| # | amount | risk | → approver | auto_approve |
|---|---|---|---|---|
| 1 | less than 1 000 | equals low | none | true |
| 2 | less than 10 000 | manager | false | |
| 3 | less than 50 000 | director | false | |
| 4 | (any) | cfo | false |
Using a decision table#
- Workflows — the Decision Table node maps variables to inputs and sets
matched,rule_labeland each output. Tables are read once per run, so evaluating one inside a loop is cheap. - Test — try inputs in the editor, or
usertasks decision-tables test <id> --set values:='{"amount":4200,"risk":"low"}'. - API / MCP —
POST /api/v1/decision-tables/{id}/test,decision_tables_*tools. - Move between workspaces —
decision-tables export/import, or config as code.
Evaluations are recorded (report source business_rule_executions), so you can report on which rules fire.