Integration and Deployment

Application Servers

Build and Deploy WAR Files

Use the standard Maven WAR plugin and the supplied OpenRules project files to create an application-server deployment from a tested model.

Sample project

Build from VacationDaysServlet.

The installed VacationDaysServlet project demonstrates WAR packaging for the tested Vacation Days model. Add deployment=war to project.properties, then run package.bat or Maven directly.

mvn clean package war:war
OpenRules decision model packaged as a WAR and deployed to an application server
WAR deployment workflowOpen full size ↗
VacationDaysServlet project properties with WAR deployment
Enable WAR deploymentOpen full size ↗

Maven configuration

Control the archive name and service endpoint.

The project’s pom.xml configures maven-war-plugin and defines the WAR context name. The decision service endpoint comes from the model Environment table and can be overridden with model.endpoint in project.properties.

Maven WAR plugin configuration in pom.xml
Maven WAR plugin configurationOpen full size ↗

Deploy and test

Install the WAR like any Java web application.

For Apache Tomcat, copy the generated WAR file to webapps and start Tomcat. Open the application context URL to see the decision service endpoint.

Send a POST request with generated JSON test data using POSTMAN or another HTTP client. The same WAR can be deployed through the standard facilities of JBoss, WebLogic, WebSphere, and other compatible servers.

Tomcat page showing the deployed OpenRules endpoint
Deployed Tomcat endpointOpen full size ↗
POSTMAN test of the WAR-deployed decision service
Testing the WAR service with POSTMANOpen full size ↗

Build and deploy

Try these deployment projects yourself.

The free evaluation includes ready-to-run decision models that you can build, test, and adapt.