ILOG JRules User Guide > Creating Rule Projects > Tasks > Creating a Function

A function is a procedural artifact in a ruleset written in the ILOG Rule Language (IRL).

The Function Editor in Rule Studio enables you to write functions in the ILOG Rule Language (IRL).

To write a function:

  1. To open the Function Editor, right-click an artifact in the Rule Explorer and from the New menu click Function.
  2. In the New Function dialog box, enter:
  3. Function Name: A name for the new function.
    If needed, complete the Source Folder and/or Package Name fields, then click Finish.
    JRules creates the function file and opens the Text view of the new function. The new function name appears in the Rule Explorer tree.
  4. Click the Edit Signature link to open and edit the function signature, adding parameters, changing the function type, and so forth. Click the Text tab to return to the function text view.
  5. Enter the function code in the Code area.

Related Concepts

Functions
Technical Rule Actions
Branching Statements
Exception Handling Statements
The BOM to XOM Mapping Mechanism

Related Tasks

Working with Technical Rules
Refactoring Rule Artifacts
Mapping an Attribute Assignment to a Function
Defining How Business Elements Map to the XOM

Related Reference

Function Editor
New Function Wizard
ILOG Rule Language
Default Constructor Dynamic Methods