In the Action Editor dialog, in the Facts area select OrderApproval. In the Action Editor dialog, in the Properties table for the property status select In the Action Editor dialog, select the Always Selected checkbox as shown in In the Decision Table, cl

5-38 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 5–34 Adding Conditions to the CustomerOrder Decision Table To create an action in a decision table: 1. In the Decision Table click the Add icon and from the list select Action Assert New .

2. In the Actions area, double-click assert new. This displays the Action Editor

dialog.

3. In the Action Editor dialog, in the Facts area select OrderApproval.

4. In the Action Editor dialog, in the Properties table for the property status select

the Parameterized checkbox and the Constant checkbox. This specifies that each rule independently sets the status.

5. In the Action Editor dialog, select the Always Selected checkbox as shown in

Figure 5–35 . Working with Decision Tables 5-39 Figure 5–35 Adding an Action to a Decision Table with the Action Editor Dialog

6. In the Action Editor dialog, click OK.

Next you need to add rules to the Decision Table and specify an action for each rule.

5.4.7.1 Split the Cells in the Decision Table and Add Actions

You can use the Decision Table split operation to create rules for the bucketsets associated with the condition rows in the Decision Table. This creates one rule for every combination of condition buckets. There are three order amount buckets, three credit score buckets, and two boolean buckets for the annual spending amount for a total of eighteen rules 3 x 3 x 2 = 18. To split cells in a decision table: 1. Select the Decision Table.

2. In the Decision Table, click the Split Table icon and from the list select Split

Table . The split table operation eliminates the do not care cells from the table. The table now shows eighteen rules that cover all ranges as shown in Figure 5–36 . These steps produce validation warnings for action cells with missing expressions. You fix these in later steps. 5-40 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 5–36 Splitting a Decision Table Using Split Table Operation To add actions for each rule in the decision table: In the Decision Table you specify a value for the status property associated with OrderApproval for each action cell in the Actions area. The possible choices are: Status.MANUAL , Status.REJECTED, or Status.ACCEPTED. In this step you fill in a value for status for each of the 18 rules. The values you enter correspond to the conditions that form each rule in the Decision Table.

1. In the Actions area, double-click the action cell for the rule you want to work with,

as shown in Figure 5–37 . Figure 5–37 Adding Action Cell Values to a Decision Table 2. In the list, select and enter a value for the action cell. For example, enter Status.MANUAL . Working with Decision Tables 5-41 3. For each action cell, enter the appropriate value as determined by the logic of your application. For this sample application use the values for the Decision Table actions as shown in Table 5–5 .

4. Select Save All from the File main menu to save your work.