5.21 Functions Tab

Use to add Oracle Business Rules functions for use in rule or decision table conditions and actions.

Functions Table

To add a function click the Create... icon. This creates a function where you define the function body using context sensitive menus. Select a function and click Delete to delete a function. Click Refresh to refresh the function table.

Click Test Function to test a function. The Test Function icon is only active for a function that has a boolean Return Type, takes no arguments, and the function body must be defined so that the function returns a boolean value. Also, you can only test a function when the dictionary does not have any validation warnings showing in the Business Rule Validation log. Otherwise the Test Function icon is not active (gray).

Element Description

Name

Specifies the name for the RL function.

Return Type

Select the return type from the dropdown list.

Value Set

Select the value set to associate with the function.

Description

Enter the function description.

Arguments Table

Click Add to add an argument. Select an argument and click Delete to delete the argument. With multiple arguments, select an argument that is not the first argument and click Move Up to reorder the argument, or select an argument that is not the last argument and click Move Down.

Element Description

Name

Enter the argument name.

Type

Select the argument type.

Value Set

Select the argument value set. Value Sets are only shown in the dropdown list when value sets of matching type are available from the list of value sets.

Body Area

Use the function Body area to create the function body by selecting items to insert in the function from the context sensitive menus, or by entering values in the text entry area when you click a context sensitive area, such as <insert action>.

Related Topics

Working with Oracle Business Rules Functions in Designing Business Rules with Oracle Business Process Management.