Using Decision tables and Decision trees
1 Task
45 mins
Scenario
U+ Hotels stakeholders want to standardize and automate compensation calculations during the Complaint Resolution process to ensure consistency, transparency, and fairness for guests.
The Travel Management Customer Support application Blueprint includes the Complaint Resolution Case Type, along with guest loyalty information and payment transaction data.
As a Solution Builder, you configure the compensation logic that the stakeholders defined:
- The compensation percentage is determined by the complaint severity and the guest loyalty status.
- The compensation amount is calculated by using the selected compensation type, the compensation percentage, and the original transaction amount from the Payment information data object.
The following table provides the credentials you may need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Solution Builder | [email protected] | pega123! |
After completing this challenge, you should be able to:
- Configure a decision tree to return a value based on multiple conditions.
- Configure a decision table to return a value based on a single condition.
Detailed Tasks
1 Use Decision tables and Decision trees
Use the technical documentation linked in the Doc Journey above to complete the assigned tasks. The technical documentation might have more information than you need to complete the tasks.
Acceptance criteria
Decision Tree Configuration
- A Compensation Percentage Calculation Tree exists to calculate Compensation Percentage.
- In Complaint Resolution Case Type, the field named Compensation Percentage is the Target property of a declare expression.
- The Compensation Percentage property is populated through a Declare Expression, which derives its value from the outcome of the Decision tree: Compensation Percentage Calculation Tree.
- A decision tree returns the Compensation Percentage based on the Complaint Severity and the Loyalty Status, as detailed in the following table:
Complaint severity Loyalty Status (Guest Profile) Return (compensation percentage) High Gold or Platinum 0.50 High Silver 0.45 High Bronze 0.40 Medium Gold or Platinum 0.40 Medium Silver 0.35 Medium Bronze 0.30 Low Gold or Platinum 0.30 Low Silver 0.25 Low Bronze 0.20 - Otherwise, the Compensation Percentage is returned as 0.
Decision Table Configuration
- Complaint Resolution Case Type has a field named Compensation Amount with a Field Type of Currency. The Compensation Amount field is a calculated field that uses a custom Decision table Evaluate Compensation Amount to calculate the amount.
- Evaluate Compensation Amount Decision table returns the Compensation Amount based on the Compensation Type, as detailed in the following table:
Compensation Type Return (Compensation Amount) Statement Credits .PaymentTransaction.Amount * .CompensationPercentage * 1Loyalty Points .PaymentTransaction.Amount * .CompensationPercentage * 2Meal Vouchers .PaymentTransaction.Amount * .CompensationPercentage * 1.2Otherwise 0
Directions
- Open the Complaint Resolution Case Type.
- Create a decision tree that returns the compensation percentage based on the complaint severity and the loyalty status, as detailed in the Acceptance criteria.
- Create a decision table Evaluate Compensation Amount that returns the compensation amount based on the compensation type, as detailed in the Acceptance criteria.
- Save your work, and then confirm the behavior.
Available in the following mission:
Want to help us improve this content?