In the Name field, enter a name or accept the default value. In the Description field, optionally enter a description. In the Rule Firing Limit field, select unlimited. In some cases when you are Select the appropriate decision function options: In the In

Working with Decision Functions 6-3 Figure 6–2 Edit Decision Function Dialog

5. In the Name field, enter a name or accept the default value.

6. In the Description field, optionally enter a description.

7. In the Rule Firing Limit field, select unlimited. In some cases when you are

debugging a decision function, you may want to enter a value other than unlimited for the rule firing limit. For more information, see Section 6.3.1, What You May Need to Know About Rule Firing Limit Option for Debugging Rules .

8. Select the appropriate decision function options:

■ Will be invoked as a Web Service : select whether the decision function will be invoked as a Web Service. ■ Check Rule Flow : when selected, this option specifies that the rule flow is checked to ensure that facts of the appropriate type are either explicit inputs to the decision function or are asserted by rules in the rule flow. However, when this is selected this does not always produce useful information; there are cases where facts can be asserted in Java code that uses the decision function, but this code might not be available at design time. In this case, validation warnings may produced with Check Rule Flow selected may not be useful. 6-4 Oracle Fusion Middleware Users Guide for Oracle Business Rules ■ Stateless : when selected specifies the decision function is stateless. For more information, see Section 6.3.3, What You May Need to Know About the Decision Function Stateless Option .

9. In the Inputs Table, click Add to add inputs. For each input in the Inputs Table,

select the appropriate options: ■ Name - enter an input name and press Enter or accept the default name. ■ Fact Type - select the appropriate fact type from the list. ■ Tree - When unselected, the input is asserted using the assert function. When selected, the input is asserted using the assertTree function. When selected it is expected that the input object or objects are the root of an object tree that is connected in one-to-many relationships with other objects using List properties. For more information, see Section 4.8, Working with Tree Mode Rules . ■ List - When unselected, the input must be a single object and the assertion applies only to that single input object. When selected, the input must be a List of objects and the assertion applies to each object in the input List java.util.List.

10. In the Outputs Table, click Add to add outputs. For each output in the Outputs