Skip to main content
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Decision tables in Dev Studio

A decision table uses a set of conditions to test property values and return an appropriate response. In App Studio, you can use a decision table to calculate the value of a field. In Dev Studio, with additional capabilities of decision tables, you can delegate responsibility for maintaining decision logic, expand the result options, and direct flow processing.

Note: When you create a decision table to calculate the value of a field in App Studio, a decision table rule is created in the Work- class in Dev Studio.

Decision logic maintenance

Organizations can delegate the maintenance of certain rules to stakeholders who manage a specific process within a case life cycle. These stakeholders, sometimes referred to as process owners, understand the business environment and can quickly identify changes that might impact how users achieve the desired outcome for a case. In Dev Studio, you can delegate a decision table to a process owner, who can update the decision logic to meet the changing needs. This approach is most helpful for small changes.

For example, a logistics manager might decide to set the order threshold for expedited shipping of customer orders to USD500 in the first release of an application. As business conditions change, to match a competitor, the logistics manager might want to lower the threshold to USD400. Rather than submitting a request for a developer to update the application and release a patch to apply to the production system, a process owner can immediately update the threshold in production through delegation.

When you delegate a decision table, use the Delegation options section of the Results tab to control the configuration options that are available to the process owner. For example, you can allow the process owner to add columns to the table while preventing the process owner from adding rows.

delegationOptions2

Options for returning a result

Decision tables that are used to calculate a property value return a single result based on the decision logic. In Dev Studio, you can configure a decision table to return all successful results or set the value of additional properties.

Evaluation of all rows

To return all successful results from a decision table, you select the Evaluate all rows check box in the Results tab of the decision table rule form. When you enable the Evaluate all rows option, all rows of the table are checked. When the condition is met on a row, the defined action and return calculation for the row is performed. Clear this check box to stop processing after the system finds the first row that evaluates that row as true.

For example, an expense that exceeds USD500 requires approval by a manager, while an expense exceeding USD5,000 additionally requires approval by a director. If a case requires multiple levels of approval, you can use a decision table to create an authority matrix that identifies the required approvals. The decision table contains a row for each possible approver. You select the Evaluate all rows check box to process each row in the table. If the conditions in the row are met, the corresponding approver is added to the authority matrix.

Note: When you set the Evaluate all rows option to true, the Allowed to return values setting is disabled.

Result values

Use the options in this section to define the possible values that the decision table can return. If you need to add any entries to the allowed results, you can configure them by expanding the Additional Allowed Results section. You can also specify a list of preset properties to calculate before running the decision table.

The Results section of the Results tab of the decision table form

Direct flow processing

The sequence of steps that are required for a case sometimes changes based on the details of the case itself. You automate decision-making during a process to adjust the sequence of steps by using a decision table. For example, you can use decision tables in a process to determine the next step in a flow or to route an assignment.

Automated next steps

You can determine the outcome of a process flow by using a decision shape to return an outcome based on several testable conditions. Adding a decision shape to the flow makes business processes flexible and responsive by providing conditional paths that a case can follow to reach a resolution. 

Note: In Dev Studio, you add a decision shape to a flow by clicking Flow shapes, and then selecting Decision.  When you specify the decision table for a decision shape, Pega Platform™ automatically adds a connector for each decision result. To learn more about adding decisions, see Adding decision processes.

Assignment routing

You determine the appropriate operator or work queue for an assignment by selecting a decision table router. For example, you can assign a portfolio consultation to the appropriate branch office based on the address of the requestor. The router uses the decision table logic to determine the appropriate operator or work queue for the assignment.

Note: When you route an assignment to a work queue, the Assign-Workbasket class rule is updated in Dev Studio. 

In the following image, click the + icons to learn more about how decision tables can automate decision-making in a process. 

Check your knowledge with the following interaction.


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

100% found this content useful

Want to help us improve this content?

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