Creating a decision strategy
3 Tasks
25 mins
Beginner
Pega Customer Decision Hub 8.8
English
Scenario
As a Decisioning Architect, you are tasked with designing a basic decision strategy that outputs a Label action with the lowest printing cost. A set of Label actions are already defined and available for you in the Enablement business issue and Labels group. The printing cost of a label depends on:
- A label-specific base cost.
- A variable that depends on the number of letters of the label.
To design the decision strategy, you need to use the Proposition data, Set Property, and Prioritize components on the strategy canvas. Verify your work by testing the strategy.
Use the following credentials to log in to the exercise system:
Role | User name | Password |
---|---|---|
Decisioning Architect | DecisioningArchitect | rules |
Your assignment consists of the following tasks:
Task 1: Import the actions from the Enablement Business issue and Labels group.
Create a new strategy canvas, and add the BlackLabel and the GreenLabel actions by using the Proposition data component.
Task 2: Set the CostofPrinting property for each action.
Use a Set Property component to set the CostofPrinting property for each action. The cost of printing is computed as base cost + 5 times the number of letters from the label.
Task 3: Select the action with the lowest printing cost.
Use a Prioritize component to select the action with the lowest printing cost.
Task 4: Confirm your work.
Test the strategy created.
Challenge Walkthrough
Detailed Tasks
1 Import the actions from the Enablement Business issue and Labels group
- On the exercise system landing page, click Pega CRM suite to log in to Pega Customer Decision Hub™.
- Log in to Customer Decision Hub as a decisioning architect:
- In the User name field, enter DecisioningArchitect.
- In the Password field, enter rules.
- In the navigation pane of Customer Decision Hub, click Intelligence > Strategies to open the Strategies landing page.
- In the upper right, click Create > Start with new canvas to open the Strategy Record Configuration page.
- On the Strategy Record Configuration page, in the text box field, enter Lowest Printing Cost to name the strategy.
- In the Business issue list, select Enablement.
- In the Group list, select Labels.
- In the Context section, in the Apply to field, enter or select UBank-CDH-Data-Customer.
- Optional: If the Development branch list is displayed, select No branch.
- In the upper right, click Create and open to open the strategy canvas.
- On the canvas, right-click, and then select Import > Proposition data to add the component to the canvas.
- Right-click the Proposition data component, and then select Properties to configure the proposition data properties.
- In the Proposition data properties dialog box, in the Proposition data list, select BlackLabel.
- Click Submit to close the Proposition data properties dialog box.
- Repeat steps 10a-d to add the GreenLabel action to the canvas.
2 Set the CostForPrinting property for each action
- On the canvas, right-click, and then select Enrichment > Set property to add the component to the canvas.
- Hover over a Proposition Data component, and then click and drag the gray arrow to connect it to the Set Property component.
- Repeat step 2 for the other Proposition Data component.
- Right-click the Set Property component, and then select Properties to configure the set property properties.
- In the Set property properties dialog box, in the Name field, enter Set Printing Cost.
- On the Target tab, in the Define action, target, and source section, click Add item.
- In the Target field, enter .CostForPrinting, and then click the Open icon to open the Property Record Configuration page.
Note: Notice the value of the Apply to class is CDH-SR-Enablement-Labels.
- On the Property Record Configuration page, in the upper right, click Create and open to edit the property rule form.
- On the edit property form, in the Property type section, click change to change the property type.
- In the list, in the Single Value column, click Decimal.
- Click Save to save the property form.
- Close the property rule form to return to the canvas.
- In the Set property properties dialog box, next to the Source field, click the Gear icon to open the Expression builder.
- In the Expression builder, enter .BaseCost + (5 *.LetterCount).
- Click the Test tab.
- In the BaseCost field, enter 10.
- In the LetterCount field, enter 5.
- Click outside the input field, and then verify that the Result is 35.
- Click Submit to save changes to the expression.
- Click Submit to save changes to the Set Property component.
3 Select the action with the lowest printing cost
- On the canvas, right-click, and then select Arbitration > Prioritize to add the component to the canvas.
- Hover over the Set Property component, and then click and drag the gray arrow to connect it to the Prioritize component.
- Right-click the Prioritize component, and then select Properties to configure the prioritize properties.
- In the Prioritize properties dialog box, in the Name field, enter Prioritize on Printing Cost.
- In the Expression field, enter or select .CostForPrinting.
- In the Order by section, select Lowest first.
- In the Output section, confirm that Top is selected, and then in the text box, enter 1.
- Click Submit to close the Prioritize properties dialog box.
- On the canvas, hover over the Prioritize component, and then click and drag the gray arrow to connect it to the Results component.
- Save the strategy.
Confirm your work
- In the upper-right corner of the canvas, click Check out.
- On the right, expand the Test run pane.
- On the canvas, double-click to re-align the strategy.
- In the Test run pane, click Save & Run.
- On the canvas, click the Set Property component, and then, in the Test run pane, in the Results section, check the value of the CostForPrinting property for both actions.
- On the canvas, click the Results component, and then verify that the action with the lowest printing cost is selected.
This Challenge is to practice what you learned in the following Module:
Available in the following missions:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?