Remote connection for querying sample details
You can run and rebuild this sample, and you can also look at source files to understand how this sample works.
Running this sample
To run this sample:
- Open the Samples Console (see Running samples from the Samples Console).
-
In the Samples Commands tab, expand .
- Run the run command to run the query that is defined in package.txt on the Loan Validation Service project. The output in the console shows the query and the resulting rule names:
Executing query: Find all business rules such that the name of the rule package of each business rule is "computation" 6 results rate initialCorporateScore salary2score repayment bankruptcyScore neverBankruptcyYou can edit the query property value to change the query in <InstallDir>/teamserver/samples/serverqueryexecute/build.xml. Several examples of queries are provided in <InstallDir>/teamserver/samples/serverqueryexecute/queries.
Rebuilding this sample
To rebuild this sample:
- Open the Samples Console.
-
In the Samples Commands tab, expand .
-
Run the clean command.
-
Run the build command.
How this sample works
The IlrSession class is the main entry point into Decision Center. You use it to connect to Decision Center and do operations such as running a query, generating a ruleset, and creating a baseline. You obtain a session through a session factory. IlrSearchCriteria specifies a set of search criteria to pass to the finder methods of IlrSession.
Source files
This sample is located in <InstallDir>/teamserver/samples/serverqueryexecute/src/serverqueryexecute.
The query files for this sample are located in <InstallDir>/teamserver/samples/serverqueryexecute/queries.
You can also view and modify the sample source files in Decision Center. To import the sample into your workspace, click the Import projects link in the Samples and Tutorials view, and switch to the Java™ perspective.