Rows and cells

Each row in a decision table forms a rule.

You create a rule by adding a row to a table, and entering values in the cells for conditions and actions:

Image shows a table with one rule row.

The decision table editor can group rules that have the same condition. In manual row ordering mode, the grouping of conditions is automatically done with each editing operation. In automatic row ordering mode, you must click Optimize Row Order "" after each editing operation that might change the partitioning of the conditions. When you click the button, the rows are sorted and the condition groups are highlighted.

The following image shows rows before they are organized into partitions:

Image shows table before optimization.

The following image shows the rows after they are organized into partitions:

Image shows table after optimization.

You read the two rules as follows:

You can build the table further by adding rows in the following ways:

Otherwise row

You can add an Otherwise row in case none of the condition values are met:

Image shows a cell with the otherwise condition.

Mixed multiple and single values

A column can contain conditions with multiple and single values. For example, rows 1 and 4 in the Age column of the following table contains single values with the operators for is less than and is more than, respectively. Rows 2 and 3 each contains a range of two values with the operator for more than min and less than max:

Image shows values with operators.

Empty cells

A row can contain empty cells. When an empty cell is in a condition column, the condition is always satisfied. When an empty cell is in an action column, the action cell is ignored.

In the following table, the first rule does not set an insurance rate. The warning icon indicates that the action is disabled.

Image shows a cell without a value.