Double-click the OrderAmount bucketset icon to display the Edit Bucketset Click Add Bucket to add a bucket. Click Add Bucket again to add another bucket. In the Range Bucket Values area, in the top Endpoint field enter 1000 for the In the Range Bucket Val

5-32 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 5–26 Opening a Business Rules Dictionary with Rules Designer

5.4.5 How to Add Bucketsets to the Data Model for Order Approval

To use a Decision Table you need to define bucketsets that specify how to draw values for each cell for the conditions that constitute the Decision Table. For this example the bucketsets are defined with a list of ranges that you define in Rules Designer. To add OrderAmount bucketset to the data model: 1. In Rules Designer, select the Bucketsets navigation tab. 2. From the dropdown next to the Create BucketSet... icon, select List of Ranges. 3. In the Name field, enter OrderAmount In Rules Designer be sure to press Enter to accept the name.

4. Double-click the OrderAmount bucketset icon to display the Edit Bucketset

dialog.

5. Click Add Bucket to add a bucket.

6. Click Add Bucket again to add another bucket.

7. In the Range Bucket Values area, in the top Endpoint field enter 1000 for the

endpoint value.

8. In the Range Bucket Values area, for the middle bucket in the Endpoint field enter

500 for the endpoint value.

9. In the Included Endpoint field for each bucket ensure the checkbox is selected, as

shown in Figure 5–27 . Working with Decision Tables 5-33 Figure 5–27 Adding the OrderAmount Bucketset

10. Modify the Alias field for each value to High, Medium, and Low, as shown in

Figure 5–28 . Figure 5–28 Adding the OrderAmount Bucketset with Low Medium and High Aliases

11. Click OK.

To add CreditScore bucketset to data model: 1. In Rules Designer select the Bucketsets navigation tab. 2. From the dropdown next to the Create BucketSet... icon, select List of Ranges. 3. In the Name field, enter CreditScore. 4. Double-click the CreditScore bucketset icon to display the Edit Bucketset dialog. 5. Click Add Bucket to add a bucket. 6. Click Add Bucket again to add another bucket. 7. In the top bucket, in the Endpoint field enter 750. 8. For the middle bucket, in the Endpoint field enter 400. 9. In the Included Endpoint field for each bucket, ensure the checkbox is selected as shown in Figure 5–29 . 5-34 Oracle Fusion Middleware Users Guide for Oracle Business Rules Figure 5–29 Adding the CreditScore Bucketset

10. Modify the Alias field for each endpoint value to solid for 750, avg for 400, and

risky for -Infinity as shown in Figure 5–30 .

11. Click OK.