Rule Builder > Debugging and Profiling > Testing the Execution of a Ruleset > Setting Up Ruleset Imports |
Setting Up Ruleset Imports |
PREVIOUS NEXT |
Ruleset imports define the XOM classes that are required by the ruleset when you execute it. By default, ruleset imports are computed automatically by appending the packages of the BOM classes to the packages of the Current Engine Object Model classes. If the ruleset imports are incorrect, the parsing of the ruleset fails because the parser of the rule engine does not find the XOM classes. The Ruleset Imports panel of the Deployer Settings dialog box allows you to view or manually set the ruleset imports.
The Ruleset Imports panel lists the imports required by your ruleset, which you defined in the Execution Object Model panel. An example is shown in Figure 16.4.
If you write execution rules directly using the IRL Editor, use classes that are not defined in the BOM, or want to resolve problems of conflicting class names (classes that have the same short name but not the same fully-qualified name), you may want to define the ruleset imports yourself.
To define the ruleset imports manually:
The top part of the Ruleset Imports panel displays the XOM classes available, while the bottom part displays the selected ruleset imports.
You can use the buttons at the top of the Ruleset Imports panel to view the three lists of available XOM classes shown in Table 16.2:
You can customize the view of available classes using the buttons shown in Table 16.3:
You can add several packages or classes to the list of imports at the same time by selecting several packages and classes. To extend the selection from the first selected class to another selected class, use Shift-click, and to extend the selection only to members of a selected class, use Ctrl-click.
You can remove ruleset imports from the ruleset imports list by using the Delete button at the bottom of the panel.
Setting Up the Execution Object Model
Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |