OpenRules business decision models can be deployed as a RESTful web service that accepts HTTP requests at your local or remote server and produces with proper responses in the JSON format. Internally it uses SpringBoot but you don’t have to become an expert in this popular and powerful software. As usual, you create and test your decision model in Excel and then simply add the property “spring.boot=On” to the file “project.properties”. Then you double-click on the provide file “runLocalServer.bat” (the same for all models). When you double-click on it for the first time, it will install the necessary software (including SpringBoot jar-files). Then it will build your model in such a way that it can be deployed as a RESTful web service on the local server. After a successful start of the server you should see a console screen that looks like this one:
To test your RESTful web service, double-click on the provide file “testLocalServer.bat” (the same for all models). You also may test your model with the commonly used POSTMAN.
You also can package our application into a jar-file by double-clicking on the provided file “package.bat”. It will generate a jar file such as “VacationDaysSpringBoot-1.0-SNAPSHOT.jar” in the folder “target”. You can use this file directly to start your web service on your local or remote server with the standard command “jar -jar <jar-file>”. You may move this jar-file to any location and it will work as well. This file is ready to be uploaded to AWS or another cloud repository to invoke our decision service remotely.
The standard installation includes the project “VacationDaysSpringBoot” that demonstrates all described facilities in detail.