< Previous | Next >

Task 2: Creating and editing rules

In this task, you learn how to search for rules, modify a decision table, and create an action rule in the Business console.

About this task

You log in as Bea, to respond to the request from Paul to implement the policy changes.

Time This task takes about 10 minutes.

Step 1: Search for rules

About this task

Bea is informed that she must implement the policy changes. To understand which rules are potentially impacted, Bea does a search to find the rules in the decision service that deal with credit score.

Procedure

To find the decision table:

  1. Log in with the user name Bea and the password Bea. In the What's New section of the HOME tab, Bea sees the new post from Paul.
  2. Click Library and then click Miniloan Service.
  3. Click Branches and then click main.
  4. In the Search field, type score and wait a few seconds for the proposed list from the vocabulary to be displayed.
  5. Click score and press Enter. The results show all the action rules and decision tables in which the word score occurs. Bea looks at all the rules and decides that she must edit the repayment and score decision table.
  6. Click repayment and score.

Step 2: Modify a decision table

About this task

Bea is ready to modify the decision table. She first verifies the history of changes made to this decision table. She edits the rule but makes a mistake, and then corrects the mistake.

Note: See Editing a decision table for a more complete tutorial on how to edit a decision table.

Procedure

To view the history and modify the decision table:

  1. Click Timeline. Bea observes the history of changes to this decision table, and concludes that no one else has made any changes recently.
  2. Click Exit Timeline.
  3. Click Edit.
  4. Keep the default settings and click OK.
  5. Double-click the number 200 in row 1 of the credit score column and enter the value 300. Do not change this value in row 2 yet.
  6. Click Details and change the status to Validated. Rule properties may be used for different purposes throughout Decision Center, such as the organization and workflow, permissions, testing, and deployment.
  7. Close the property window.
  8. Click Save.
  9. Type the comment Changed credit score to 300 and click Create New Version. The decision table now displays v1.1. Decision Center versions all changes that you make. The major version number 1 is assigned to the main branch. Any new branch, including the branches of the governance framework, take the next available number. The minor version number corresponds to the number of changes made in the branch.
  10. Bea sees that there is a problem with the decision table. Hover over the gold triangle at the bottom of one of the cells to see that there is an overlap error.
    Icons that are displayed next to the folder name
  11. Click Edit.
  12. Double-click the credit score condition for row 2, change the value 200 to 300, and press Enter. This change eliminates the overlap in rows 1 and 2.
  13. Click Save.
  14. In the Create New Version window, type the comment Fix for gap error and click Create New Version.

Step 3: Create an action rule

About this task

In this step, Bea implements the change to the policy that loan duration cannot be less than 6 months. No rule currently does this check, so Bea must create an action rule.

You use the rule editor to create the rule. The rule editor provides a list of phrases to help you populate the condition and action statements.

Procedure

To create the action rule:

  1. Click main in the breadcrumbs below the top banner to return to the contents of the branch.
  2. Bea knows that checking rules are in the validation folder. Click the validation folder.
  3. Click the + button and then click New Rule.
  4. Type the name check duration and click Create.
  5. Copy and paste the following rule into the rule editor, or build the rule with the completion menu (see Building rules using the Intellirule editor. The Rule editor flash demo on the IBM® Customer Support site shows an English-only tour of the rule-editing features).
    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';
  6. Click Save.
  7. Type Added for Summer policy and click Create New Version.
  8. Click the HOME tab, and then Stream, and respond to Paul by typing the following in the comment box below Paul's post:
    Hi Paul. I'm all done!
  9. Click Post and then log out.

Results

Bea has finished her updates. In the next task, Paul tests and deploys the decision service.
< Previous | Next >