Skip to main content

Evaluate decision table

Find the rules of a decision table that match the inputs and return what they give.

Command in the Business rules toolkit · id ooa.rules/evaluate_decision_table · 6 inputs (1 required), 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FileFileNoA CSV file with a header row of in:NAME, out:NAME and rule columns.
TableTableNoThe decision table as a table value, with the same columns.
InputsDictionaryYesThe values the in: columns test, by name.
Hit policyStringNofirstWhen several rules match.
Default outputsDictionaryNoWhat to give when no rule matches.
Fail when noneBooleanNofalseFail the step when no rule matches.

Outputs​

OutputTypeWhat it is
outputsDictionaryThe out: values of the matching rule (first and unique); the first rule's for collect.
matchedBooleanTrue when a rule matched.
ruleStringThe matching rule's name (its rule column, else its row number).
allListWith collect: the outputs of every matching rule, in order.