Double-click the bucket icon for the bucket. This displays the Edit Bucketset In the Edit Bucketset dialog, enter the bucketset name in the Name column. In the Data Type column select a data type from list. On the Edit Bucketset window, click OK.

Working with Facts and Bucketsets 3-19 tests and actions. For more information, see Section 4.11.3, How to Use Bucketsets to Provide Options for Test Expressions . There are three forms for bucketsets: ■ LOV: Defined by a list of values see Section 3.6.1, How to Define a List of Values Global Bucketset . ■ Range: Defined by a list of value ranges, defined by the range endpoints see Section 3.6.2, How to Define a List of Ranges Global Bucketset . ■ Enum: Defined by a list of enumerated types that is imported from either of: ■ XML types see Section 3.6.3, How to Define an Enumerated Type Enum Bucketset from XML Types . ■ Java facts see Section 3.6.4, How to Define an Enumerated Type Enum Bucketset from Java Types .

3.6.1 How to Define a List of Values Global Bucketset

A list of values bucketset lets you specify the type and the list of buckets for the bucketset. For more information, see Section 3.6.5, What You Need to Know About List of Values Bucketsets . To define a list of values LOV global bucketset: 1. From Rules Designer select the Bucketsets navigation tab. 2. From the list next to the Create BucketSet... icon, select List of Values, as shown in Figure 3–16 . Figure 3–16 Adding a List of Values Bucketset

3. Double-click the bucket icon for the bucket. This displays the Edit Bucketset

dialog.

4. In the Edit Bucketset dialog, enter the bucketset name in the Name column.

3-20 Oracle Fusion Middleware Users Guide for Oracle Business Rules Ensure that the bucketset name is not the same as the as a fact alias, because this would result in a validation errors as the following: RUL-05006: The fact type Rating has the same alias as an unrelated bucketset.

5. In the Data Type column select a data type from list.

For example, select String from the list. 6. Click the Create icon to add a value. 7. For each bucket that you add, do the following: ■ In the Value field, enter a value. Note that for String type values in an LOV bucket, you can select the entire string with three clicks. This allows you to enter the string and Rules Designer adds the same alias without quotation marks, as shown in Figure 3–17 . ■ In the Alias field, enter an alias. For more information on specifying aliases, see Section 3.6.2, How to Define a List of Ranges Global Bucketset. ■ In the Allowed in Actions field, select this if the value is an allowable value. For more information on the Allowed in Actions field and the Include Disallowed Buckets in Tests field, see Section 3.6.7, What You Need to Know About Bucketset Allowed in Actions Option . ■ In the Description field, enter a description. 8. Add additional values by clicking the Create icon as needed for the bucketset, as shown in Figure 3–17 . Figure 3–17 Create List of Values Bucketset

9. On the Edit Bucketset window, click OK.

You can control rule ordering in a Decision Table by changing the relative position of the buckets in an LOV bucketset associated with a condition expression in a Decision Table. Working with Facts and Bucketsets 3-21 To change the order of buckets in a list of values bucketset: 1. In the Edit Bucketset dialog for the bucketset, select the bucket you want to reorder.

2. Click the Move Down icon to reorder the bucket down.