Query actions

The default action of a query is to display the query results, but you can add further actions by specifying them under the Do part of the query.
Query actions can make the following changes:
  • Copy or move the displayed elements to another folder

  • Delete the displayed elements

  • Add or remove a category to the displayed elements

  • Set any of the properties of the displayed elements to a value that you specify

By default, the actions are carried out on all the displayed elements when you click Apply Actions in the Query results tab. You can select specific elements among the results, and apply actions only to these elements.

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