Skip to main content
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded.

Configure a decision table

Configure a decision table

To design your decision table, you first specify a property or expression in the Conditions column header. Then, on the first row, you enter a value in the column that defines the condition. Under the Return column, enter the result that the table returns when the condition evaluates to true. Finally, in the otherwise row, enter a value that the table returns if none of the conditions evaluate to true.

Decision table callouts

To create a decision table, in the Application Explorer, select a class. Then, right-click and select Create > Decision > Decision Table.

Specify a condition property or expression

Configure a cell in the header row to define the property or expression used in the evaluation. Clicking the cell opens the Decision Table property chooser tool.

The tool allows you to:

  • Select a property or create an expression used for the evaluation.
  • Enter a label that appears on the table.
  • Select the comparison operator. The default is the equals sign (=). If you select a numeric property, you can use greater than/less than operators. You can also use these operators to define a range.

You can add columns to create multiple conditions.

Specify the condition

In the rows under the conditions column, enter the value you want to compare during the evaluation. You can enter a literal value, a property, or an expression. For example, if the condition property is Account Type, you can enter checking as a value. You can add multiple rows for each combination of conditions. If you have more than one condition column, you must enter a condition in at least one column.

Specify the return value

Under the Return column, enter a literal value, a property, or an expression. This is the result the table returns if all the conditions in the row evaluate to true.

Add an otherwise value

Be sure to add a value in the otherwise row to ensure that the decision always returns a result. A processing error can occur if there is no result.

Add or delete columns and rows

You can add or delete columns and rows using the following controls that are available above the table. Select any cell in the table to activate the controls.

Add Rows

Return multiple results

Under the Results tab, if you enable the Evaluate all rows option, the decision table evaluates all rows defined in the decision table. If the condition is true, the decision table performs the actions and returns an array of results that can be parsed.

This Topic is available in the following Module:

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice