| Samples > Rule Team Server Business Rule Management Extensions > How to Execute a Query |
How to Execute a Query |
PREVIOUS NEXT |
This sample shows how a deployment manager can execute predefined queries to detect errors, and filter rules using appropriate APIs.
Key features of this sample include:
To install this sample through the Samples Console:
teamserver > serverqueryexecute sample.
build command to build the application.
This sample can only be opened and run in the Samples Console.
To open and run the sample:
run command to run the default query (created by) on the loan-validation project.
This sample is located in: <InstallDir>/teamserver/samples/serverqueryexecute
RTSClient.java is the class that connects to Rule Team Server and executes the query.
The query files for this sample are located in:
<InstallDir>/teamserver/samples/serverqueryexecute/queries/
createdby.txt - to find rules created by an author
status.txt - to find rules with a specific status
package.txt - to find rules in a particular package
lastmodification.txt - to find rules modified after a date
consistencychecking.txt - to find non applicable rules
Highlights of this sample include:
IlrSession class is the main entry point into Rule Team Server. It allows you to connect to Rule Team Server and perform operations such as execute a query, generate a ruleset, create a baseline, and so on. A session can be obtained through a session factory.
IlrSearchCriteria specifies a set of search criteria to pass to the finder methods of IlrSession.
To rebuild this sample.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |