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:
- Import the sample:
- Switch to the Samples Console perspective.
- In the Samples and Tutorials tab, navigate to , 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.
- Fix the error in miniloan-automation:
- Open the Rule Execution Server Connections view, and click Import deployment servers
definition.
- In the Import Deployment Server Definition, browse to
<workspace>/application/server-list.xml and click
Finish.
- Right-click SampleServer in the server list, and select
Properties to check the connection properties.
- Update the server port in the URL, and test the connection.
- Click OK if the connection is successful.
- 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.
- 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.