Setting up the Java™ SE rule session sample

You use the Samples Console to install the sample.

Procedure

To install the sample:

  1. In Rule Designer, switch to the Samples Console perspective.
  2. In the Samples and Tutorials view, navigate to Rule Execution Server > Samples > Java SE rule session, and click Import projects. Rule Explorer displays the imported sample project files:
    • The sample execution code: j2serulesession
    • The decision service projects: Loan Validation Base, Loan Validation Check, Loan Validation Determination, Loan Validation Scoring and Loan Validation Service
    • The decision service XOM : loan-validation-xom
  3. Generate the RuleApp:
    1. In the Rule Explorer, double-click Loan Validation Service/deployment/test deployment to open the deployment configuration.
    2. In the Deployment, Overview editor, click Proceed to RuleApp deployment.
    3. In the Deployment summary, click Workspace to change the path where the deployed resources are generated.
    4. In the Folder selection, navigate to j2serulession/data, and click OK.
    5. In the Deployment summary, click Finish and wait for the Deployment report.
      Image shows the deployment summary.
    6. Open j2serulession/data to see the generated files. The generated RuleApp is test_deployment.jar.