OpenRules Decision Manager can be deployed a business decision models as a RESTful web service that accepts HTTP requests at your local or remote server and produces with proper responses in the JSON format. 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 only need to double-click on the provide file “runLocalServer.bat” (the same for all models). 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 your local server. After a successful start of the server, you may test your RESTful web service by double-clicking on the provide file “testLocalServer.bat”. 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.
After converting your business decision models to a RESTful web service, you can package it as a Docker image. To do this, simply double-click on the standard batch file “buildDocker.bat”. Now you are ready to deploy this image as a Docker container using any of the following container registries:
-
- Google Container Registry (GCR)
- Amazon Elastic Container Registry (ECR)
- Docker Hub Registry
- Azure Container Registry (ACR).
Internally OpenRules Decision Manager utilizes SpringBoot and Google Container Tool “Jib” but it completely protects you from necessity to learn there powerful but complex open-source tools.
The standard installation includes the project “VacationDaysSpringBoot” that demonstrate how to convert your decision model to a RESTful web service and then to a Docker image.