Creating the Credit Risk Output Strategy
2 Tasks
30 mins
Scenario
When a customer applies for a cash loan, the Credit Offers decision strategy generates three key outputs: a credit offer, a credit risk score, and credit eligibility. This strategy relies on external Credit Bureau data, a risk-based pricing model, a scorecard to determine the customer's credit score, and credit policy eligibility rules.
The business would now like to use the Credit Offers Decision strategy to make a final decision, to Approve or Decline the credit offer.
They would like to present the final decision along with the relevant Credit offers, Credit Score and Credit Eligibility Policy information back to the calling Credit Application system.
The following table provides the credentials you need to complete the challenge:
Role | User name | Password |
---|---|---|
Credit Risk Manager | CreditRiskManager | rules |
Your assignment consists of the following tasks:
Task 1: Create the Credit Risk Output strategy
Create a new strategy and import the 3 flows of the Credit Offers decision strategy.
Task 2: Calculate the final decision
Use reference data from the Credit Offers Decision strategy to determine the final decision.
Challenge Walkthrough
Detailed Tasks
1 Create the Credit Risk Output strategy
- On the exercise system landing page, click Launch Pega Infinity™ to log in to the Decision Management portal.
- Log in as a Credit Risk Manager:
- In the User name field, enter CreditRiskManager.
- In the Password field, enter rules.
- In the My Worklist section, click Credit risk strategy to open the change request.
- In the Scope of changes section, click Create > Decision > Strategy.
- On the Create Strategy landing page, in the Strategy Record Configuration section, in the Describe the purpose for this new record field, enter Credit Risk Output.
- In the Strategy Results class section, in the first field, select Origination.
- In the Context section, in the Apply to field, enter Data-CreditRiskCustomer.
- In the upper-right corner, click Create and open to open the strategy canvas.
- Right-click the strategy canvas, and then click Sub strategy > External to add a Sub Strategy component to the canvas.
- Right-click the Sub strategy component, and then click Properties to configure the component:
- In the Name field, enter Credit Score.
- In the External strategy field, press the Down arrow key, and then select Credit Offers.
- Select the checkbox next to Specify a single component within the strategy, and then, in the Component list, select Credit Score.
- Click Submit to close the properties dialog box.
- Right-click the strategy canvas, and then click Sub strategy > External to add a Sub Strategy component to the canvas.
- Right-click the Sub strategy component, and then click Properties to configure the component:
- In the Name field, enter Credit Eligibility.
- In the External strategy field, press the Down arrow key, and then select Credit Offers.
- Select the checkbox next to Specify a single component within the strategy, and then, in the Component list, select Credit Eligibility.
- Click Submit to close the properties dialog box.
- Right-click the strategy canvas, and then click Sub strategy > External to add a Sub Strategy component to the canvas.
- Right-click the Sub strategy component, and then click Properties to configure the component:
- In the Name field, enter Credit Offers.
- In the External strategy field, press the Down arrow key, and then select Credit Offers.
- Select the checkbox next to Specify a single component within the strategy, and then, in the Component list, select Prioritized Credit Offers.
- Click Submit to close the properties dialog box.
- Hover over each Sub Strategy component, and then click and drag the grey arrow to connect each one to the Results component.
- In the upper-right corner, click Save.
- Open the Test run pane to test the strategy:
- In the Settings section, select Data set.
- In the Data set field, enter or select SimulationSetDDS.
- In the Customer ID field, enter or select Customer433.
- Click Save & run.
- Click each of the Sub strategy components.
Note: Notice how each Sub Strategy component outputs directly from the relevant output flow of the Credit Offers decision strategy.
2 Calculate a Final Decision
- Right-click the canvas, and then select Aggregation > Group by to add the component to the canvas.
- Hover over the Credit Eligibility component, and then click and drag the grey arrow to connect it to the Group By component.
- Right-click the Group By component, and then click Properties to configure the component:
- In the Name field, enter Eligible for Credit.
- In the Aggregates section, click Add item.
- In the Property field, enter or select .IsEligible, in the aggregation type list, select TRUE IF NONE, and in the Source field enter .pyIsActive.
- In the Aggregates section, click Add item.
- In the Property field, enter or select .Reason, in the aggregation type list, select CONCAT, in the Source field enter .pyLabel, and in the delimiter field, enter the pipe symbol (|).
- In the For remaining properties section, confirm that the Include model results for first radio button is selected.
- Click Submit to close the properties dialog box.
- Right-click the canvas, and then select Aggregation > Group by to add the component to the canvas.
- Hover over the Credit Offers component, and then click and drag the grey arrow to connect it to the Group By component.
- Right-click the Group By component, and then select Properties to configure the component properties.
- In the Name field, enter Eligible Credit Offers.
- In the Aggregates section, click Add item.
- In the Property field, enter or select . IsThereAlternativeOffers, in the aggregation type list, select TRUE IF ANY, and in the Source field enter .IsAlternativeOffer.
- In the Aggregates section, click Add item.
- In the Property field, enter or select .IsThereRequestedOffers, in the aggregation type list, select TRUE IF ANY, and in the Source field enter .IsRequestedOffer.
- In the For remaining properties section, confirm that the Include model results for first radio button is selected.
- Click Submit to close the properties dialog box.
- Right-click the canvas, and then select Business rules > Decision Table to add the component to the canvas.
- Right-click the Decision Table component, and then click Properties to configure the component:
- In the Name field, enter Set Final Decision.
- In the Defined on section, click Strategy result.
- In the Decision table field, enter or select FinalDecisionConsumer.
- In the Supply data via section, map the parameters to the following properties:
Parameters
IsEligible
EligibleforCredit.IsEligible
IsThereRequestedOffers
EligibleCreditOffers.IsThereRequestedOffers
IsThereAlternativeOffers
EligibleCreditOffers.IsThereAlternativeOffers
- Click Submit to close the properties dialog box.
- Right-click the Decision Table component, and then click Open Decision Table to inspect the decision table.
- On the Parameters tab, check the three parameters:
- On the Table tab, check the Conditions and Actions, including the final decision outcomes, and inspect the condition required for an approval.
- Close the decision table to return to the strategy.
- On the Parameters tab, check the three parameters:
- Right-click the canvas, and then click Enrichment > Set Property to add the component to the canvas.
- Hover over the Set Final Decision component, and then click and drag the grey arrow to connect it to the Set Property component
- Hover over the Set Property component, and then click and drag the grey arrow to connect it to the Results component.
- Right-click the Set Property component, and then select Properties to configure the component:
- In the Name field, enter Set Output Properties.
- In the Define action, target, and source section, click Add item.
- In the Target field, enter .pyName, and then click the Source field and enter .FinalDecision.
- Click Submit to close the dialog box.
- Right-click the canvas, and then select Arbitration > Filter to add the component to the canvas.
- Hover over the Credit Offers component, and then click and drag the grey arrow to connect it to the Filter component.
- Right-click the Filter component, and then click Properties to configure the component:
- In the Name field, enter Suitable Credit Offers.
- In the Filter condition field, enter SetOutputProperties.FinalDecision!="DECLINE".
- Click Submit to close the properties dialog box.
- Right-click an arrow pointing to the Results shape, and click Delete to remove it, and then repeat this for all other arrows pointing to the Results shape.
- Hover over the Set Output Properties component, click and drag the grey arrow to connect it to the Results component, and then repeat this step for the remaining components in the following order:
- Suitable Credit Offer
- Credit Eligibility
- Credit Score
- Test the strategy using the SimulationSetDDS Data Set.
- In the Customer ID field, enter Customer357, and then click Save & Run.
- In the Show component level values for list, click Number of decisions.
- In the Results in Credit Risk Output section, click the Next icon to cycle through the different outputs, and check the Business Issue, Group and Name properties.
- Click the Set Final Decision component and check the Segment property, which reflects the row number of the decision table, and check the Final Decision property.
Tip: Test the strategy with different customers and notice the number of decisions for the components as you change the customer ID. For customers who are declined for a loan, try to investigate why the customer has been declined a loan.
Confirm your work
- In the upper-right corner, click the user icon, and then click Switch Portal > Credit Risk portal.
- Agree to switch the display to show the Credit Risk portal.
- In the navigation pane of the Credit Risk portal, click Create > Sample App to create a new credit risk estimation Case.
- In the Credit Customer section, in the CustomerID field, enter or select Customer11.
- In the Credit Risk Results section, review the following information:
- The Final Decision for the customer.
- The requested or alternative Product offer.
- The Segment in which the customer is placed.
- The Internal Score.
- The Credit Bureau Score.
Note: The application approves the StudentLoan requested by Customer11.
- In the Credit Customer section, in the Num of Credit History Inquiries 1M field, enter 13, and then in the Credit Risk Results section, click ReDecision.
Note: The application declines the StudentLoan requested by Customer11 as the result of a Credit History Inquiries Check.
- In the Credit Customer section, in the CustomerID field, enter or select Customer104, and then click ReDecision.
Note: The application declines the ConsumerLoan requested by Customer104 but suggests investigating an alternative offer.
- In the Region Code field, enter 001, and then click ReDecision.
Note: The application approves the ConsumerLoan requested by Customer104 if he lives in Region 001.
This Challenge is to practice what you learned in the following Module:
Available in the following mission:
Want to help us improve this content?