Setting up the automated query execution sample
You use the samples console to install this sample.
About this task
This sample extends the Rule Designer API and the required sample plug-ins are delivered as predeployed.
Procedure
To set up the sample:
- Open the Samples Console (see Running samples from the the Samples Console).
- In the Samples and Tutorials tab, expand Rule Designer > Samples > Business rule management extension .
-
Under Automated query execution, click Import
projects.
If your workspace already contains a file, Rule Designer displays a warning message.
Rule Explorer displays the imported sample project files:
- Loan Validation Service. The target sample main rule project of the decision service. This project references all the other projects of the decision service. The other projects allow for the distribution of the rules and the data model.
- Loan Validation Check. The project that contains the validation rules of the decision service.
- Loan Validation Scoring. The project that contains the computation rules of the decision service.
- Loan Validation Determination. The project that contains eligibility and insurance rules of the decision service.
- Loan Validation Base. The project of the decision service that contains the BOM.
- loan-validation-xom. A Java™ project that contains the execution model of Loan Validation Service.
- queryexecution-application. A Java project, including an Ant build file (build.xml) which contains different Ant tasks that are used to demonstrate different execution scenarios. Notice that the project includes a compressed file that contains a query, which is used in one of the sample scenarios.
- queryexecution-queries-container. A decision service that contains a query that is run.
Note: Eclipse uses the target init.runtime in the build.xml file to set the runtime properties:os(operating system),ws(Window system) andarch(architecture) before you run the query. This sample works for common configurations. If it does not match your runtime environment, you can modify the Ant target to force the values of these properties.