Task 1: Editing a decision table
In this task, you add rows and columns to a decision table.
About this task
Important: To work on the provided sample server, see Starting and stopping the sample server.
Step 1: Opening the decision table
In this step, you open the insurance decision table in the decision table editor.
Procedure
Step 2: Adding and defining a column
In this step, you add and define a condition column.
Before you begin
if
'the grade' is <a string>
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 and Amount
of loan columns form the conditional part of the rule (if), and the
Insurance required and Insurance rate columns form the
action part of the rule (then). Each row forms a business rule by providing the
values to complete the rule statement that is defined by the columns.Follow these steps to add a column and define it.
Procedure
Step 3: Adding rows to the table
In this step, you add a group of rows to the table. Each row represents a complete rule.
Procedure
Step 4: Adding a single row
In this step, you add a single row to the decision table.
Procedure
- Right-click cell 12, and click Copy.
-
Right-click cell 16, and click Insert copied rows.
The contents of row 12 are copied to row 16.
- Click the Save button to save your changes.