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.

Configuring a decision table

Configuring a decision table

Create a decision table to derive a value that has one of a few possible results, where a comparison condition can detect each result. A decision table lists two or more rows, each containing one or more conditions and a result.

Follow these steps to create and configure a decision table for automating a decision:

  1. Open the Application Explorer.
  2. Select the class in which you want to create the decision table.
  3. Right-click and select Create > Decision > Decision Table. The New Record form opens.
  4. In the Label field, enter a name that describes the purpose of the table.
  5. Click Create and open. The decision table rule form opens.
    Empty decision table
  6. On the table under Conditions, click the empty header cell. The Decision Table property chooser dialog opens.
    Property Chooser Blank
  7. In the Property field, enter or select a property. You can alternately click the gear icon to build an expression.
  8. In the Label field, enter the name of the property that you entered in the column header.
  9. In the Use Operator drop-down, select a comparison operator.

    The following example shows a completed dialog.
    Decision Table 1
  10. Click Save. The Decision Table property chooser dialog closes, returning you to the decision table rule form.
    Decision table 2
  11. If you want to add another condition property, add a column to the right of the first column by selecting the add column icon on the control header.
    Decision Table B
  12. Add a second property to the new column.
  13. In the if row, click the empty cell under the first property and enter a value.
  14. In the Return column, enter a return result. The following image shows the first condition set.
    Decision Table 3
    Note: If you are using two or more conditions, you must enter at least one condition in the row. In the previous example, only the Credit Score condition must be true in order to return Approval Level 1. The Outstanding Balance value does not affect the decision.
  15. If you want to add conditions, select the add row icon on the control.
    Decision Table 4
  16. Enter values in the first and second columns and a return value. In this example, values for Credit Score and Outstanding Balance are entered.
    Decision table 5
  17. Enter another row and return action. Repeat this process until you add all the rows required to create the decision table.
  18. Add a return value to the otherwise row.
    Decision Table 6
  19. Click Save.

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