Setting up the automated decision service deployment sample

You import this sample by using the samples console, and check the server connection properties.

About this task

You import the sample projects by using the Samples Console. You check and update the connection properties.

Procedure

Import the buildautomationtool sample:

  1. Import the sample:
    1. Switch to the Samples Console perspective.
    2. In the Samples and Tutorials tab, navigate to Rule Designer > Samples > Business rule management extension > Automated decision service deployment , and click Import projects. If one or more files are already in your workspace, Rule Designer displays a warning message.
      The Rule Explorer displays the imported sample project files:
      • miniloan-automation: The decision service to deploy. This project has an error due to a missing configuration for the server.
      • miniloan-xom: A Java™ project that contains the execution model of miniloan-automation.
      • application: A Java project that contains the run configurations, the Ant build file, and the server list file.
  2. Fix the error in miniloan-automation:
    1. Open the Rule Execution Server Connections view, and click Import deployment servers definition.
      Image shows the Import deployment servers definition button.
    2. In the Import Deployment Server Definition, browse to <workspace>/application/server-list.xml and click Finish.
    3. Right-click SampleServer in the server list, and select Properties to check the connection properties.
    4. Update the server port in the URL, and test the connection.
    5. Click OK if the connection is successful.
    6. If you changed the URL, you must reimport the connections file in the Rule Execution Server Connections:
      • Eclipse configuration: Click the Export deployment servers definition button and browse to <Workspace Dir>/application/server-list.xml.
      • Ant targets: Click the Export deployment servers definition button and browse to <Install Dir>/studio/samples/brmanagment/buildautomationtool/application/server-list.xml.
    7. Rebuild the workspace. The error is fixed.

What to do next

To be able to run the Ant task, you might have to set the runtime properties:
  • os: operating system
  • ws: window system
  • arch: architecture
The default properties work for most common configurations. If they do not match your runtime environment, you can modify the Ant init target to force the values of these properties.