In the Outputs Table, click Add to add outputs. For each output in the Outputs In the Rulesets and Decision Functions area, use the shuttle to move items from Select the decision function to edit and click the Edit icon or double-click the

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

Table, select the appropriate options: ■ Name - enter an output name and press Enter or accept the default name. ■ Fact Type - select the appropriate fact type from the list. ■ Tree - When selected, this option sets a flag that enables certain design-time decision function argument checking. For an output argument, this option has no effect on runtime behavior. However, at design time in the case where several decision functions are called in a sequence, it is useful to notate explicitly that the output of one decision function is a tree. This implies that the input of another decision function in the sequence is expecting a tree as an input. For more information, see Section 4.8, Working with Tree Mode Rules . ■ List - When unselected the output is a single object. When selected the output is a group of objects. For more information on the behavior of the List option on an output argument, see Section 6.3.2, What You May Need to Know to About Decision Function Arguments .

11. In the Rulesets and Decision Functions area, use the shuttle to move items from

the Available box to the Selected box. 12. Select an item in the Selected box, and click Move Up or Move Down as appropriate to order the rulesets and the decision functions. To edit an existing decision function: 1. In Rules Designer, select the Decision Functions navigation tab. 2. Select the decision function to edit and click the Edit icon or double-click the decision function icon. 3. Edit the appropriate decision function fields in the same manner as you would when you add a decision function. To change the order of inputs: 1. In Rules Designer, select the Decision Functions navigation tab. Working with Decision Functions 6-5

2. Select the decision function to edit and click the Edit icon or double-click the

decision function icon.

3. Select the input argument you want to move. Click either Move Up or Move