In ILOG Rule Studio for .NET you can search for business rules using the Find Rules window.
The Find Rules window enables you to search for rules in a solution by defining criteria based on the properties of the rules (see The Properties of a Business Rule). The results of the search are displayed in the Find Rule Results window.
To find a rule
-
On the Rule View toolbar, click
.
The
Find Rules window opens.
-
In the Find Rules window, click Browse to specify the rule projects you want to search.
The rule projects you specify appear in the
Look In box.
-
Define the search by selecting from the Property, and Condition lists, and providing a value for the Value box (if needed for your search), and click Add to List.
Rule Studio adds the search to the list of search criteria. If there is more than one search in the list, you can use the
Match option to change how strictly a rule must match the criteria to be included in the search results.
-
Click Find Now.
Rule Studio opens the
Find Rule Results window, which lists the results of the search.
To change the details of an entry in the list of search criteria
-
In the Find Rules window, select the entry in the list of search criteria that you want to change.
-
Redefine the search (Property, Condition, and Value) and click Change.
ILOG Rule Studio updates the entry in the list of criteria to use the new definition.
To remove an entry from the list of search criteria
To start a new search
Saving and Loading a Search
You can save a search in the Find Rules window, and load the Find Rules window with saved searches.
To save a search
-
In the Find Rules window, specify a search, and click Save.
-
Enter a name and location for the saved search, and click Save.
ILOG Rule Studio for .NET saves the search in a rule query file (
FileName.rqx).
You can use rule query files to filter the rules that are included when you publish a rule project (see Publishing a Filtered Rule Project), and you can load the Find Rules window using a saved search.
To load the Find Rules window with a saved search
-
In the Find Rules window, click Load.
-
Select the saved search you want to load, and click Open.
Rule Studio loads the
Find Rules window using the saved search you selected.
Viewing the Results of a Search
The results of a search are listed in the Find Rule Results window.
To view the Find Rule Results window
-
In the Find Rules window, specify a search, and click Find Now.
-
On the View menu, click ILOG Rule Studio, then click Find Rule Results.
You can store a search, and run it later in the Visual Studio .NET session.
To store a search
-
In the Find Rules window, define and run a search.
ILOG Rule Studio for .NET runs the search and displays the results in the
Find Rule Results window.
-
In the Find Rule Results window, click Store, name the search, and click OK.
Rule Studio stores the search, and adds it to the list of stored searches at the top of the
Find Rule Results window. Stored searches persist for the duration of your Visual Studio .NET session.
To remove a stored search
To rerun a search
-
Either run a search from the Find Rules window, or select a stored search from the list at the top of the Find Rule Results window.
-
In the Find Rule Results window, click Find Again.
Rule Studio runs the search displayed in the
Find Rule Results window.
To go to the definition of a business rule
-
In the Find Rule Results window, double-click the rule in the list of search results.
To add and remove columns to and from the search results list
See Also
Viewing the Results of a Search | Publishing a Filtered Rule Project