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.
| Field | Description |
|---|---|
| Name | Specify the name for this activity. |
| Description | Specify the description for this activity. |
| Decision Table | The table to evaluate. |
| Inputs | Map the input records to the records list. One record uses a one-element list. |
| Output | Use the returned input groups and the complete output rows inside each group. |
Properties without a form field
| Property | Description |
|---|---|
decisionVersion | active (default), draft or a positive version number. Use draft only for draft/test execution. |
noMatchAsError | When 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
| Field | Description |
|---|---|
records | The input record list. One record is a one-element list. The supported invocation size is 1 to 1,000 records. |
Output
| Field | Description |
|---|---|
dmnEvaluateOutput.items | The ordered result groups, one per input record. |
items[].index | The zero-based input position. |
items[].status | Whether this input evaluated or has a record error. |
items[].result.results | The complete selected output rows for this input. |
items[].result.noMatch | Whether the input selected no output row. |
items[].result.aggregate | A separate aggregate for an aggregation policy. |
items[].error | Safe 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 issue | What it means |
|---|---|
| No matching rule | An evaluated input selected no rule. Check the input types, no-value behavior, ranges and selected version. |
| Several rules under Unique | The input violates the hit policy. |
DMN-INVALID-INPUT | The records input is not an array of 1 to 1,000 objects. |
DMN-EXECUTION-ERROR | The evaluation failed during execution. |
| Process version unavailable | The requested pinned process version is not deployed. |
| Promotion refused | A target dependency, contract or published identity did not pass its check. |
See Troubleshooting decision tables for the full list.