< Previous | Next >

Task 1: Editing a decision table

You edit a decision table by adding rows and columns.

About this task

You edit the insurance decision table in the Loan Validation Service decision service. The table determines whether borrowers pay insurance on their loans. If a borrower must pay insurance, the decision table determines the amount of the insurance as a percentage of the loan.
Important: If you are working with the sample server that is provided with the product, make sure that the server is running (see Opening Decision Center on the sample server).

Step 1: Opening the decision table

About this task

You open the insurance decision table in the decision table editor.

Procedure

  1. Start the Business console.

    Use the URL provided by your system administrator. If you are using the sample server on your computer, do one of the following tasks:

    • Open the Business console in a web browser by using the URL for the Business console, for example, http://localhost:9090/decisioncenter.
    • In Windows, navigate to IBM® Operational Decision Manager V8.9 in your Start > All Programs, and click Sample Server > Decision Center Business console.
  2. Log in by using Bea as the user name and password.
  3. Open the Library tab and the Loan Validation Service project.
  4. Open Branches > main > Decision Artifacts > Loan Validation Determination.
  5. Open the insurance folder, and select the insurance decision table.
  6. Click the Edit button "" to open the table in the decision table editor.
    Image shows the insurance table.

Step 2: Adding and defining a column

About this task

A decision table groups rules that use the same rule statement but have different values for conditions and actions. The insurance decision table uses the following rule statement:
if 
	the loan grade in 'the loan report' is <an object>
	and the amount of 'the loan' is at least <min> and less than <max>
then
	set insurance required in 'the loan report' to <a boolean>
	set the insurance rate in 'the loan report' to <a number>
Each column in the decision table forms part of the rule statement. The Grade column and Amount of loan column form the condition (if) part of the rule, and the Insurance required column and Insurance rate column form the action (then) part of the rule.

Each row forms a business rule by providing the values to complete the rule statement that is defined by the columns:

Image shows the decision table.

Procedure

To add a column and define it:

  1. Right-click the header of the Amount of loan column.
  2. Click Insert Column > Condition After to insert a blank column next to the selected column.
  3. Click the header of the new column, and change the name to Age.
  4. Right-click the header and click Define Column.
  5. In Define Condition Column, enter the following statement:
    the age of 'the borrower' is between <min> and <max> 
  6. Click Define to save the condition statement. The editor adds two cells to the column header: min and max. These cells correspond to the minimum and maximum values in the condition statement.
  7. Change min to Min, and change max to Max. Changing the cell names does not change the condition statement.
    By adding the Age column to the decision table, you changed the rule for the table to the following statement:
    if 
    	the loan grade in 'the loan report' is <an object>
    	and the amount of 'the loan' is at least <min> and less than <max>
    	and the age of 'the borrower' is between <min> and <max>
    then
    	set insurance required in 'the loan report' to <a boolean>
    	set the insurance rate in 'the loan report' to <a number>

Step 3: Adding rows to the table

About this task

To add a rule to the table, you insert a row and add the values to complete the rule. In this step, you add a group of rows.

Procedure

  1. Click cell 9 to select its row.
  2. Press Shift and click cell 11 to select rows 9 - 11.
  3. Right-click the selected rows, and click Copy.
  4. Right-click cell 13 and click Insert Copied Rows.

Step 4: Adding a single row

About this task

You add a single row to the decision table.

Procedure

To add a single row:

  1. Right-click cell 15.
  2. Click Insert Row > Below to add a row. A row is added to the table.

What to do next

In the next task, you change the preconditions and the rules for the decision table.
< Previous | Next >