Rule Builder > Managing Repositories > Working With Templates > Adding a Rule Template in a Custom Business Rule Language (Token Model Class)

To add a rule template in a rule language defined with the token model to a template library, proceed as follows:

  1. Right-click on Template Library and then click Add Template>Token Model Class Rule on the shortcut menu or click Add Template>Token Model Class Rule on the Library menu.
  2. The Token Model Class Rule element appears as a highlighted field in the Project Explorer. Enter a name for the new rule template.
  3. In the Property Sheet of the rule template, enter the fully-qualified javaClassname of the language class under the currentDefinition property, for example, bal.IlrBALTokenModel, or select the javaClassname Value cell to open a dialog box and browse to locate the token model class. An example is shown in Figure 3.27.

  4. images/createTokenModelTemplate.png
  5. Figure 3.27    Linking a Template to a Token Model Class
  6. Double click the rule template element in the Project Explorer. The Template Editor is displayed in the Editor pane and you can start editing the template.

See Also

Working With Projects


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT