Skip to main content
LinkedIn
Copied!

Table of Contents

Configuring additional options for a decision table

Version:

Only available versions of this content are shown in the dropdown

Adjust how your decision table works by configuring additional options. For example, you can configure how a decision table behaves after one row evaluates to true, or define which elements of a decision table are available for edits.

Consider a scenario in which a user with a managerial role needs to update the results that the decision table returns. To avoid unintentional changes in the decision table, you can prevent users from manipulating columns and rows, and allow for editing only the results.
  1. In the navigation pane of Dev Studio, click Records.

  2. Expand the Decision category, and then click Decision Table.

  3. In the list of decision table instances, open the decision table that you want to edit.

  4. On the Results tab, in the Delegation options section, configure the initial presentation and available options for the decision table:

    • To continue processing after one row in the decision table evaluates to true, select the Evaluate all rows check box.

      At run time, when a decision table evaluates all rows, the application performs the results from all rows that evaluate to true. If you leave this check box clear, the application performs the result from the first row that evaluates to true.

    • To disable row manipulation in the decision table, for example by adding or removing rows, clear the Allowed to update row layout check box.

      Users with rule-editing privileges can update the cell values within an individual row, even if this check box is clear.
    • To disable column manipulation in the decision table, for example by adding or removing columns, clear the Allowed to update column layout.

      Users with rule-editing privileges can update the cell values within an individual column even if this check box is clear.
    • To prevent changes to the cell values, clear the Allowed to change property sets check box.
    • To prevent access to the Expression Builder from any cell of the decision table, select the Allowed to build expressions.

      Users with rule-editing privileges can add constants or property references in a row or column cell even if this check box is clear.
    • To hide the Result column of the decision table to indicate that the decision table does not return an explicit value that represents the overall processing result, clear the Allowed to return values check box.

      If you select this check box, you can also restrict the list of possible return values. This check box is available only when you leave the Evaluate all rows check box clear.

  5. Optional:

    To specify allowed results for the decision table, in the Results section, in the Results defined by property field, enter a property that lists the allowed results.

    In an online shopping application, you can select a property that lists countries to which the shop can send parcels, such as only countries within the European Union.
  6. Optional:

    To match the allowed results that you provided in step 5 with specific values, map the results to properties:

    1. Expand the Additional Allowed Results. When selected, each target property will be assigned the value specified section.

    2. In the Result field, enter a value that the decision table can return at run time.

    3. In the Target property field, enter a property that the system updates after the decision table returns the result that you specified in step 6.b.

    4. In the Value field, enter a value to update the property that you specified in step 6.c.

    5. Optional:

      To update more properties when the table returns a specific result, under the Target property field, click Add item, and then repeat steps 6.c and 6.d.

    6. Optional:

      To match more results with properties, under the Result field, click Add item, and then repeat steps 6.b through 6.d.

    If the decision table returns countries within the European Union to which an online shop can send parcels, you can define different shipping costs for different countries. When the decision table returns one of the countries as a result, the system automatically returns a property that specifies the shipping costs for that country.
  7. Optional:

    To set properties before the system starts processing the decision table, define properties to precalculate:

    1. Expand the Preset Properties section.

    2. In the Property field, enter a property that you want to set before processing of the decision table.

    3. In the text field, provide a value for the property by entering a constant, property name, expression, or input parameter.

    4. To set more properties, click Add a row, and then repeat steps 7.b and 7.c.

    You can enter an expression that at run time automatically populates a property that holds a current date.
  8. Click Save.

Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community 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
Contact us