You write a function by using the ILOG® Rule
Language (IRL).
About this task
A function is a procedural item in a ruleset. You write functions in the IRL by using the
Function Editor in Rule Designer.
Procedure
To write a function:
-
Right-click an item in the Rule Explorer, and then on the New menu,
select Function.
-
In the New Function dialog box, give the following information:
- Function Name
- Source Folder
- Package Name
Decision Server creates the function file and
opens the Text view of the new function. The Rule Explorer tree displays the new function name.
- Click Finish.
- Click the Edit Signature link to
open and edit the function signature.
You can add parameters and change the function type.
-
Click the Text tab to return to the function text view.
- Enter the function code in the Content area.