ILOG JRules User Guide > Creating Rule Projects > Tasks > Setting Up Automatic Variables

To define a variable that can be accessed everywhere in business rule artifacts, you can set up automatic variables. Automatic variables are bound to the instance of the class on which it is defined.

To generate an automatic variable for a business class:

  1. In the Outline view, click the class for which you want to generate an automatic variable.
  2. In the Class Verbalization section of the BOM Editor, select the Generate automatic variable box.
  3. Save the BOM.
  4. An instance of the class is now available as an automatic variable from business rule artifacts.

Related Concepts

Vocabulary Elements
Automatic Variables
Engine Execution Modes

Related Tasks

Working With Business Elements

Related Reference

BOM Editor

Related Samples and Tutorials

Tutorial: Defining a Vocabulary