In the Decision Table area, from the list next to the Add icon select Condition. In the Conditions area, double-click edit-condition to display the navigator to Repeat Step 2 through Step 5, as required to add additional condition rows in the

Working with Decision Tables 5-9

5.2.2 How to Add Condition Rows to a Decision Table

A Decision Table includes a Conditions area where you specify Decision Table condition rows. The condition rows determine the facts that the Oracle Rules Engine matches at runtime. To create a Decision Table you need to add one or more condition rows to the Decision Table. To add condition rows to a decision table: 1. From Rules Designer select a ruleset from the Rulesets navigation tab and select the Decision Table where you want to add conditions.

2. In the Decision Table area, from the list next to the Add icon select Condition.

3. In the Conditions area, double-click edit-condition to display the navigator to

select or enter an expression as shown in Figure 5–7 . Figure 5–7 Adding a Condition to a Decision Table 4. Enter an expression by clicking in the navigator to select a variable or click the Expression Builder icon to display the Expression Builder window. The Expression Builder lets you build expressions. 5. Each condition row requires a bucketset from which to draw the values for each cell. When the value you select has an associated global bucketset, then by default the bucketset is associated with the condition row.

6. Repeat Step 2 through Step 5, as required to add additional condition rows in the

Decision Table. Note: When you add a Decision Table the rules validation log displays validation warnings. The Decision Table is not complete and does not validate without warnings until you add conditions and actions to the Decision Table. 5-10 Oracle Fusion Middleware Users Guide for Oracle Business Rules To use a local bucketset or specify the bucketset for a decision table condition: 1. Each condition row requires a bucketset from which to draw the values for each cell. When the value you select has an associated global bucketset, then by default the bucketset is associated with the condition row. 2. If there is no global bucketset associated with the value, then after you add a condition row to a Decision Table you need to specify either a Local List of Values or a Local List of Ranges bucketset to associate with the condition row, or specify an existing global bucketset. To add a bucketset for the condition, in the Conditions area select the condition and then select from the Bucketset list to associate a bucketset, as shown in Figure 5–8 . The bucketset list includes available global bucketsets of the appropriate type. Figure 5–8 Specifying a Bucketset For a Condition Row in a Decision Table

3. If you do not specify a global bucketset, then you can create and use a local