Query actions

A query action specifies the action to be taken if the conditions of a query are met.

The default action of a query is to display the results of the query in the Search window. However, you can extend the actions of a query by adding a Do statement to it.

You can manage rules by specifying the following actions:
  • Copy or move the displayed elements to another folder

  • Delete the displayed elements

  • Add a category to, or remove a category from, the displayed elements

  • Set any of the properties (such as effective date, status, priority) of the displayed elements to a value that you specify

The actions available depend on the project element specified in the query. For example, there are more actions to choose from for a query on business rules than for a query on variables.

Example 1

In the following example, you change the status of the business rules from new to validated.

Find all business rules
   such that the status of each business rule is new
Do set the status of each business rule to validated

Example 2

In the following example, you collect the decision tables that modify the value of ‘the insurance rate' and group them into the 'insurance' package.

Find all decision tables
   such that each decision table modifies the value of 'the insurance rate'
Do move each decision table to package "insurance"

Example 3

In the following example, you delete the rules that could lead to a certain credit score and in which the expiration date is after a certain date.

Find all business rules
   such that each business rule may lead to a state where [the credit score of ‘a borrower’ is less than 5 ]
and the expiration date of each business rule is after 6/21/2007
Do delete each business rule