Adding a Rule Template in a Custom Business Rule Language (BRLDF)
|
PREVIOUS
NEXT
|
To add a new rule template in a business rule language defined with the BRLDF to a template library, proceed as follows:
-
Right-click on Template Library and then click Add Template>BRLDF Rule on the shortcut menu or click Add Template>BRLDF Rule on the Library menu.
-
The BRLDF Rule element appears as a highlighted field in the Project Explorer. Enter a name for the new rule template.
-
In the Property Sheet of the rule template, enter the full path to your
grammarFile
under the javaClassname
of the currentDefinition
property, (for example, the default abstract syntax file, which is IlrGrammarTokenModel)
, or select the grammarFile
Value cell to open a dialog box and browse to locate an .xsd
schema. An example is shown in Figure 3.28.
-
Figure 3.28 Linking a Template to an Abstract Syntax File
-
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
|