Skip to main content

Creating the Credit Offers Decision Strategy

6 Tasks

45 mins

Pega Credit Risk Decisioning
Visible to: All users
Beginner
Pega Credit Risk Decisioning
English

Scenario

A financial institution wants to send cash loan credit offers to customers who request credit by using the company's Credit Risk Application service. As a Credit Risk Manager, you are tasked with designing a Credit Risk Decision Strategy that outputs Credit Offers, Credit Score, and Credit Eligibility. In the first phase of this task, you create a new Decision Strategy that outputs Credit Offers.

Offers are for customers over a certain age and are only available in some regions. To populate the Age property, you use the DateOfBirth property provided in the data model. To check the regional availability, you use a Decision Table.

The business wants to offer an alternative credit offer if the product requested by the customer is not approved. Also, the business has standard eligibility criteria that you need to apply.

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: Import the Cash Loan propositions

As a Credit Risk Manager, create a new Decision Strategy, and then add the three propositions in the Origination business issue Cash Loans group.

Task 2: Set properties

Use the DateOfBirth property to set the Age property, use the pyName property to set the IsAlternativeOffer and IsRequestedOffer properties to true or false, and then set the IsEligible property equal to the pxSegment property.

Task 3: Use a Data Transform to test the Decision Strategy

Use the TestCustomer Data Transform to test the Decision Strategy.

Task 4: Add a Region Code check

Availability of the credit offers depends on the region of the customer. Use a decision table to apply a Region Code check. CustomerLoanSpecialOffer is not available in Region Code 001, CustomerLoan is not available in Region Code 002, and the StudentLoan is not available in Region Code 001A.

Task 5: Use Default Criteria to select the eligible propositions

Use a Proposition Filter to select the eligible proposition by Default Criteria.

Task 6: Sort the propositions by offer amount

Sort the propositions to prioritize the proposition with the lowest MinAmount value.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Import the Cash Loan propositions

  1. On the exercise system landing page, click Launch Pega Infinity™ to log in to the Decision Management portal.
  2. Log in as a Credit Risk Manager:
    1. In the User name field, enter CreditRiskManager.
    2. In the Password field, enter rules.
  3. In the My Worklist section, click Credit risk strategy to open the change request.
  4. In the Scope of changes section, click Create > Decision > Strategy.
  5. On the Create Strategy landing page, in the Strategy Record Configuration section, in the Describe the purpose for this new record field, enter Credit Offers.
  6. In the Strategy Results class section, in the first field, select Origination.
  7. In the Context section, in the Apply to field, enter Data-CreditRiskCustomer.
  8. In the upper-right corner, click Create and open to open the strategy canvas.
  9. Right-click on the canvas, and then select Import > Proposition data to add the component to the canvas.
  10. Right-click the Proposition data component, and then select Properties to configure the component properties:
    1. In the Proposition data properties dialog box, in the Group list, select Cash Loans.
      Proposition data properties
    2. Click Submit to close the Proposition data properties dialog box.

2 Set properties

  1. Right-click on the canvas, and then select Enrichment > Set property to add the component to the canvas.
  2. Hover over the Proposition Data component, and then click and drag the grey arrow to connect it to the Set Property component.
    The strategy with the Set property added
  3. Right-click the Set Property component, and then select Properties to configure the component properties.
  4. In the Set property properties dialog box, in the Name field, enter Set Offer Properties.
  5. On the Target tab, in the Define action, target, and source section, click Add item to configure the Age property:
    1. In the Target field, enter or select .Age.
    2. In the Source field, click the Gear icon to open the Expression builder.
    3. In the Expression builder, enter
      @DateTimeDifference(@dateValue(Primary.DateOfBirth),@today(),"Y"), and then click Test.
    4. In the DateOfBirth field, enter 01/01/2000.
    5. Click outside the input field, and then verify that the Result section shows the correct age.
    6. Click Submit to save changes to the expression.
  6. Click Add item to configure the IsAlternativeOffer property:
    1. In the Target field, enter or select .IsAlternativeOffer.
    2. In the Source field, click the Gear icon to open the Expression builder.
    3. In the Expression builder, enter @if(.pyName==Primary.RequestedProduct,false,true), and then click Test.
    4. Confirm the results of the following tests:

      pyName

      IsAlternativeOffer

      Result

      StudentLoan

      StudentLoan

      false

      ConsumerLoan

      StudentLoan

      true

    5. Click Submit to save changes to the expression.
  1. Click Add item to configure the IsRequestedOffer property:
    1. In the Target field, enter or select .IsRequestedOffer.
    2. In the Source field, click the Gear icon to open the Expression builder.
    3. In the Expression builder, enter
      .pyName==Primary.RequestedProduct, and then click Test.
    4. Confirm the results of the following tests:

      pyName

      IsAlternativeOffer

      Result

      StudentLoan

      StudentLoan

      true

      ConsumerLoan

      StudentLoan

      false

    5. Click Submit to save changes to the expression.
  1. Click Add item to configure the IsEligible property:
    1. In the Target field, enter or select .IsEligible.
    2. In the Source field, click the Gear icon to open the Expression builder.
    3. In the Expression builder, enter .pxSegment.
      Configuration of the Set property
    4. Click Submit to save changes to the expression.
  2. Click Submit to save changes to the Set Property component.
  3. In the upper-right corner, click Save to save your changes.

3 Use a Data Transform to test the Decision Strategy

  1. On the right, expand the Test run pane.
  2. On the canvas, double-click to adjust the view.
  3. In the Test run pane, on the Single case tab, expand the Settings section.
  4. In the Settings section, ensure that the Data transform option is active.
  5. In the Data Transform field, enter or select TestCustomer.
  6. To the right of the Data Transform field, click the Open icon to open the TestCustomer Data Transform and observe the values.
  7. Confirm that the DateOfBirth property is displayed.
    The date of birth property in the data transform
  8. Close the Data Transform to return to the strategy.
  9. On the Test run pane, click Save & Run.
  10. On the canvas, click the Cash Loans Proposition data component, and then in the Test run pane, confirm that the Age property has no value.
  11. On the canvas, click the Set Offer Properties Proposition data component, and confirm that the values for the Age, IsAlternativeOffer, IsEligible, and IsRequestedOffer properties are now present in the Test run pane.
  12. Open the Data Transform, change the DateOfBirth property, and then re-run the strategy to confirm that the Age value changes.

4 Add a Region Code check

  1. Right-click the canvas, and then select Business Rules > Decision Table to add the component to the canvas.
  2. Connect the Proposition Data, Decision Table, and Set Property components as shown in the following figure:
    The connected the Proposition Data Decision Table and Set Property components

    Right-click the Decision Table component, and then select Properties to configure the properties of the decision table.
  3. In the Decision Table properties dialog box, in the Name field, enter Check Product Eligibility.
  4. In the Decision table field, enter RegionalProductCheck, and then click the Open icon to open the Create Decision Table page.
    Note: Notice that the value of the Apply to class is Data-CreditRiskCustomer.
  1. In the upper-right corner, click Create and open to configure the decision table:
    1. In the Conditions column, in the first row, click the empty cell to open the Select a Property window.
      An empty cell in the conditions column
    2. In the Property field, enter or select .RegionCode.
    3. In the Label enter RegionCode.
      The RegionCode property for the decision table
    4. Click Save.
  2. Click the Parameters tab of the decision table:
    1. In the Name field, enter Product.
    2. In the Description field, enter Product name from Decision Data.
  3. Click the Table tab:
    1. In the Region Code column, click the empty cell to enable the decision table menu options.
    2. Click Insert Column After to add a column after Region Code.
      The Insert Column After icon
    3. In the newly created column, in the first row, click the empty cell to specify a condition.
    4. In the Property field, enter param.Product.
    5. In the Label field, enter Product.
    6. Click Save.
  4. In the if row, click an empty cell, and then click Insert Row After twice to add two else if rows.
    The Insert Row After icon
  5. Edit the decision table:
    1. In the if row, configure a Condition that specifies if the region code is 001 and the product is ConsumerLoanSpeciaOfferl, it returns a value of false.
    2. In the first else if row, configure a Condition that specifies if the region code is 002 and the product is ConsumerLoan, it returns a value of false.
    3. In the second else if row, configure a Condition that specifies if the region code is 001A and the product is StudentLoan, it returns a value of false.
    4. In the otherwise row, in the Return column, select true.
      The following figure shows the completed decision table:
      The decision table that checks the region code
    5. Click Save, and then close the decision table.
  6. In the Decision table properties window, in the Decision table field, re-select RegionalProductCheck by pressing the down arrow key.
  7. Expand the Supply data via section, and then in the Product field, enter or select .pyName.
  8. Click Submit.
  9. In the Test run pane, click Save & Run to test the Decision strategy with the TestCustomer Data Transform.
  10. Click the Set property component, and then in the Test run pane, confirm that there are multiple pages, one for each offer:
    Multiple pages
    1. Confirm that the system calculates the Age, IsAlternativeOffer, IsEligible, and IsRequestedOffer properties.
    2. Click the Next arrow to cycle through the offers and view the results.

5 Use Default Criteria to select the eligible propositions

  1. Right-click on the canvas, and then select Arbitration > Filter to add the component to the canvas.
  2. Hover over the Set Property component, and then click and drag the grey arrow to connect it to the Filter component.
  3. Right-click the Filter component, and then select Properties to configure the Filter condition:
    1. In the Filter properties dialog box, in the Name field, enter Only Allowed Products.
    2. In the Type section, select Proposition Filter.
    3. In the Proposition filter field, enter or select ProductEligibilityCheck, and then click the Open icon to open the inspect the Proposition Filter configuration.
    4. In the Group list, select Cash Loans, and then click Open decision data to view the decision data for the Cash Loans Group.
      The decision data for the Cash Loans Group
    5. Click StudentLoan to view the proposition properties.
      Note: The MaxAge and MinAge properties determine the age range the customer must fall within to receive the StudentLoan credit offer.
    6. Click Cancel to return to the Edit Decision Data form.
    7. Repeat steps 3e-g for the ConsumerLoanSpecialOffer and ConsumerLoan propositions.
    8. Close the Edit Decision Data form to return to the Proposition Filter configuration page.
    9. In the Proposition section, click the StudentLoan proposition.
    10. In the Inherited from section, inspect the inherited eligibility criteria for the proposition.
      The value of the IsEligible Boolean property must be set to true. The value of the Age property must greater than or equal to .MinAge and less than or equal to .MaxAge.
      The default criteria for the StudentLoan proposition
    11. Inspect the inherited eligibility criteria for the ConsumerLoanSpecialOffer and ConsumerLoan propositions.
    12. Click the Default Criteria tab, and in the Business issue level criteria section, note that Using custom criteria is selected.
      Note: The StrategyResult property contains the properties that define the strategy output, including IsEligibile and Age. The Age criteria check if the customer's age is within the age range of the proposition.
    13. Close the Proposition Filter, and then click Submit to save the filter component configuration.
      Credit Decision Strategy with filter
  1. Test the strategy by using the TestCustomer Data Transform, and then see which products, if any, are filtered out.

6 Sort the propositions by offer amount

  1. Right-click the canvas, and then select Arbitration > Prioritize to add a Prioritize component to the canvas.
  2. Hover over the Filter component, and then click and drag the gray arrow to connect it to the Prioritize component.
  3. Right-click the Prioritize component, and then select Properties to configure the component properties:
    1. In the Prioritize properties dialog box, in the Name field, enter Prioritized Credit Offers.
    2. In the Expression field, enter .MinAmount.
    3. In the Order by section, confirm that Highest first is selected.
    4. In the Output section, select All.
      Configuration priority
    5. Click Submit to close the Prioritize properties dialog box.
  4. On the canvas, hover over the Prioritize component, and then click and drag the gray arrow to connect it to the Results component.
    The completed credit decision strategy
  5. Click Save.

Confirm your work

  1. In the navigation pane, click Predictions to open Prediction Studio.
  2. In the navigation pane of Prediction Studio, click Data > Data Sets.
  3. Click SimulationSetDDS to open the Data Set.
  4. In the upper-right corner, click Actions > Run to inspect the Data Set:
    1. In the Operation list, select the Browse option, and then click Run.
    2. In the Data Set Preview window, inspect the results.
      Tip: Notice the CustomerID, DateOfBirth, and RegionCode values.
    3. Close the Data Set Preview window and the Run Data Set window.
  1. In the lower-left corner of Prediction Studio, click Back to Decision Manager Portal.
  2. In the Decision Manager Portal, return to the Credit Offers Decision Strategy.
  3. In the Test run panel, select Data set, and then select the SimulationSetDDS Data Set.
  4. In the Customer ID field, enter or select Customer70, and click Run to test the strategy.
    Tip: Click the strategy components to view the results for the selected component.
  1. In the Test run pane, click the Batch tab, and then click Settings to configure the simulation:
    1. In the Test this strategy section, ensure that the A new simulation selection is active.
    2. In the Input data list, select SimulationSetDDS.
    3. Click Run to run the Batch simulation using the Data Set.
    4. When the progress bar reaches 100%, view the Funnel results for Credit Offers Decision.
      Note: In this Data Set, most customers meet the criteria for the ConsumerLoanSpecialOffer product.

This Challenge is to practice what you learned in the following Module:


Available in the following mission:

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

Did you find this content helpful?

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