Rule queries are created using a template and the Query editor. To create a rule query proceed as follows:
-
Install the Query plug-in and then click the
button or click Query Editor on the View>Query Panels menu to open the Query Editor.
-
In the Query Editor, click the
button next to the
button. The names of the templates you have created are listed. An example is shown in Figure 17.14.
-
Figure 17.14 Creating a Rule Query from a Template
-
Select the template you want and then click the
button to display the rule query template in the Query Editor. Each time you select a template and click the
button, a rule query is added to the Facility Explorer as a new package as shown in Figure 17.15.
-
Figure 17.15 Rule Query Packages
-
Initially these packages contain a monorule query, based on the selected template, that can be edited by policy managers using the Query Editor. To switch between packages and display the rule query in the Query Editor you can either click the package in the Facility Explorer or select the name from the drop-down list as shown in Figure 17.16.
-
Figure 17.16 Selecting a Query Package
-
To add more rule queries to a package, right-click the package to display the shortcut menu, click Add Rule, and then click a rule query on the submenu list. An example is shown in Figure 17.13. If you want to add a number of different rule queries to different packages, use this option and click the rule query of your choice on the submenu list.
-
Each time you click a rule query on the submenu list, it is set as the value for the Add (...) option as shown in Figure 17.17 (in this case BAL Rule). You can use this option to quickly add rule queries of the same type to packages of your choice. You can also click the
button.
-
Figure 17.17 Adding a Rule Query to a Package Using the Default Value
-
The packages should now contain rule queries based on the template(s) you have created. You can now edit the rule queries to build a multirule package that fulfills your requirements.
-
When you click the package or the Query Editor tab to display the Query Editor, the message
The selected query cannot be edited here because it does not contain a single rule
is displayed. This occurs if the package contains no rule, more than one rule, or one rule and a ruleflow structure because the Query Editor does not know what to display. In this case the policy manager can click a package in the drop-down list (see Figure 17.16) and click the
button to execute it, but cannot edit the rule queries contained within it.
|