This kind of query is the simplest type containing only one rule. This type of query requires only the Query plug-in installed.
-
Launch the Rule Builder in Developer mode.
-
Click Options on the File menu to open the Options dialog box. Install the Query plug-in, uninstall the Facility Explorer plug-in, and click the OK button.
-
Select
<InstallDir>/doc/docreferences/usrbuilder/data/QueryRepository
to open the Query Repository as shown in Figure 17.18.
-
Figure 17.18 Open Repository Dialog Box
-
Click Query Editor on the View>Query Panels menu or click the
button to open the Query Editor.
-
Click the
button in the Query Editor to add a new query. The query is given the name Rule Query and added to the drop-down list. The name is incremented each time you create a new query, for example, Rule Query_2...
-
Write the following rule query:
For each business rule
such that priority is high
Do
Insert as query result
Your query should look like Figure 17.19.
Figure 17.19 Monorule Query Example
-
Click the
button to execute the query. Four elements should be found and displayed in the Query Results panel as shown in Figure 17.20.
-
Figure 17.20 Monorule Query Results
|