Rule Builder > Queries and Facilities > Working With the Facility Explorer > Setting Up a Rule Query Template

When you install the Facility Explorer plug-in and click Facility Explorer on the view menu, the Facility Explorer opens with the default structure displayed, as shown in Figure 17.9.

images/facility_explorer3.png

Figure 17.9    Facility Explorer

The default structure is similar to that of the Project Explorer for creating and managing business rules. It consists of a query project, a query template library containing a default template and a BOM, and a deployer.

You can create a package of rule query instances in the query project and you can create as many templates as you like in the query template library. Each time you create a template, it is added to the submenu of the Add Query images/addquery_icona.png button in the Query Editor, as shown in Figure 17.14.

Using the Facility Explorer you can create and edit your templates, packages, parameters and ruleflows, but you cannot execute rule queries if the Query plug-in is not installed.

To create a template proceed as follows:

  1. Install the Facility Explorer plug-in.
  2. Click Facility Explorer on the View menu to open the Facility Explorer, as shown in Figure 17.9.
  3. In the Facility Explorer, click the default Rule Query to open the Facility Editor, as shown in Figure 17.10.

  4. images/default_rulequery.png
  5. Figure 17.10    Facility Editor
  6. Define your query template using the tokens available. To add another template right-click Query Library in the Facility Explorer to display the shortcut menu. Click Add Template and choose an entry from the submenu as shown in Figure 17.11. You can also click Add Template on the Library menu.

  7. images/add_querytemplate.png
  8. Figure 17.11    Adding a Query Template
  9. You can add any number of templates of any type. Figure 17.12 shows an example of the Facility Explorer template library containing several templates.

  10. images/query_templates.png
  11. Figure 17.12    Adding Templates of Different Types

See Also

Installing and Uninstalling Plug-ins


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