Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Latest commit

 

History

History
69 lines (40 loc) · 3.29 KB

tut_cloud_getstart_rules_lsn.md

File metadata and controls

69 lines (40 loc) · 3.29 KB

Task 3: Creating and editing rules

You update a decision table, and create an action rule to implement policy changes.

The loan company wants the following changes to be implemented in the decision service:

  • Increase the minimum credit score from 200 to 300 for all new loan requests.
  • Reject loans that are shorter than six months.

To implement the changes, you use the search function to locate the table that applies the minimum credit score. After you change the score, you create an action rule to implement the minimum loan duration.

Step 1: Searching for rules

To make the first change, you use the search function to find all the rules that change the credit score.

Procedure

  1. In your branch, click inside the search field to be able to enter a search string:

Image shows the search field.

  1. Type "score" and press Enter. The results show all the action rules and decision tables in which the word score occurs. You look at the rules, and conclude that you must edit the repayment and score decision table.
  2. Click repayment and score in the list of search results. The decision table opens in the preview window.

Step 2: Modifying the decision table

You update the decision table. For more information, see Decision table editor.

Procedure

  1. Click Edit. The decision table editor opens.
  2. Double-click 200 in row 1 of the credit score column, and replace it with 300. Do the same in row 2.
  3. Click Save.
  4. Enter the following comment, and then click Create New Version.
Changed credit score to 300

Step 3: Creating an action rule

You introduce the second policy change by creating an action rule. For more information, see Building rules using the Intellirule editor.

  1. In My Branch, click Decision Artifacts, and then click validation to open the folder.
  2. Click the Create button "", and click New Rule.
  3. Enter check duration as the name of the rule, and click Create.
  4. Enter the following rule statement in the rule editor. If your web browser supports it, you can copy the rule to the rule editor. Otherwise, type in the rule or build it with the completion menu.
if
   the duration of 'the loan' is less than 6
then
   add "The duration of the loan is too short" to the messages of 'the loan';
   reject 'the loan';

The rule checks the duration of a loan. If the duration is shorter than six months, the rule adds a rejection message to the loan and rejects the loan.

  1. Click Save.
  2. Enter the following message, and then click Create New Version.
Added rule for summer policy

In the next task, you test and deploy the decision service.

Next ""

"" Back to table of contents

© Copyright IBM Corporation 2019