Skip to main content

Decision Table

The Decision Table activity (DecisionTable) evaluates input records against a decision table and returns the matching output rows, grouped by input record.

When to use it​

Use it when a classification, routing or eligibility decision is expressed as rules in a decision table and later workflow steps need the result. The activity returns data only; a later step, such as a Subflow, calls any process. For the concepts, see Decision tables overview.

Configuration​

The form has the tabs Configuration, Input and Output.

FieldDescription
NameSpecify the name for this activity.
DescriptionSpecify the description for this activity.
Decision TableThe table to evaluate.
InputsMap the input records to the records list. One record uses a one-element list.
OutputUse the returned input groups and the complete output rows inside each group.

Properties without a form field​

PropertyDescription
decisionVersionactive (default), draft or a positive version number. Use draft only for draft/test execution.
noMatchAsErrorWhen true, a record with no match gets error code DECISION_NO_MATCH and the message "No matching rule found for this record".

To see the output schema of a step without a pinned version, select the Decision schema environment in the mapper header.

An environment release must exist for active execution. The workflow does not select the latest authoring revision automatically.

Input​

FieldDescription
recordsThe input record list. One record is a one-element list. The supported invocation size is 1 to 1,000 records.

Output​

FieldDescription
dmnEvaluateOutput.itemsThe ordered result groups, one per input record.
items[].indexThe zero-based input position.
items[].statusWhether this input evaluated or has a record error.
items[].result.resultsThe complete selected output rows for this input.
items[].result.noMatchWhether the input selected no output row.
items[].result.aggregateA separate aggregate for an aggregation policy.
items[].errorSafe record error information; result is null on an error item.

Mapper expression indexes are one-based, so items[1] refers to the first result group, whose index value is 0.

Example​

With the routing table from the overview (Unique hit policy), an input record with amount 150 and customerTier gold matches rule R2 and returns route = priority. An input of 150 with an unknown tier returns no matching rule, which stays an evaluated result unless noMatchAsError is set.

Common errors​

Result or issueWhat it means
No matching ruleAn evaluated input selected no rule. Check the input types, no-value behavior, ranges and selected version.
Several rules under UniqueThe input violates the hit policy.
DMN-INVALID-INPUTThe records input is not an array of 1 to 1,000 objects.
DMN-EXECUTION-ERRORThe evaluation failed during execution.
Process version unavailableThe requested pinned process version is not deployed.
Promotion refusedA target dependency, contract or published identity did not pass its check.

See Troubleshooting decision tables for the full list.