Running a query

You run your own queries or predefined queries on the rule project and, optionally, on referenced rule projects.

About this task

After you have written a query, you can run it on the rule project that contains it and, optionally, on rule projects referenced from the current rule project.

Procedure

To run a query:

  1. In the Rule Explorer, double-click the query to open it.
  2. If you want to run the query on the current rule project and on the elements of any rule project on which the current project depends, select Include dependencies.
  3. In the Query Editor, click Run query.

    All rules that meet the query search criteria are listed in the Search window.

    Note: In some cases, when you run queries that return decision tables or ruleflows, the rows or rule tasks that match the search criteria are highlighted.
  4. If you have created queries with actions, you can run them by using the Run query actions option.

Results

Note: Queries that include the is using BOM member or the is using BOM class predicate work only if the workspace has been rebuilt since the last modification. If it has not, the results might not be accurate.