Rule Builder > Queries and Facilities > Facilities

The Facility Explorer plug-in of the Rule Builder allows you to modify the behavior of the installed facilities that use meta-rules. The Facility Explorer is only available in Developer and Modeler modes. Currently the Rule Builder has only one facility called Query. The Query facility provides an advanced query mode that enables you set up queries using the Query Editor. These queries can be simple queries that can be edited by policy managers (a single query in a single package) or queries that can be more complex and include a ruleflow and/or parameters.

In the Facility Explorer you can set up query packages in much the same way as you set up rule packages in the Project Explorer. Each query package can contain one or more query meta-rules, parameters, or ruleflows. A single rule query in a package means that the rule queries can be edited and run by policy managers. When policy managers access the Query Editor in the Rule Builder, they can select the query package from the drop-down menu in the Query Editor toolbar. If the package contains a single query, then the Query Editor shows the rule query and makes it editable. You can also add simple queries using the buttons at the top of the Query Editor and then edit them. These queries are added to the Facility Explorer as a package containing a single instance of a rule query.

However, if the query package contains more than one query, a parameter, or a ruleflow, then the policy manager can only access the Parameter Editor (if a parameter has been defined for the query). It is assumed that if a developer or modeler has added a parameter to the query package then the parameter is the interface to the query meta-rules in the package and the policy manager only needs to specify the value of the parameters. In the Facility Explorer you also have the possibility of adding queries that are built with TRL or IRL using the Add Rule Template feature.

More complex query packages can be seen as "operations on the repository" or "business rule management". They can be executed directly in the Rule Builder, or they can be activated through the API and triggered automatically. For more information see the Java API Reference Manual and Rule Builder Customization User's Manual.

See Also

Working With Template Libraries and Rule Languages | Setting Up a Rule Query Template


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