Integration and Deployment
Java API
A compact Java API lets applications supply their own business objects, execute a model goal, and receive the resulting decision.
Core API
Invoke a decision in four steps.
OpenRules provides the DecisionModel and Goal classes for goal-oriented decision modeling. Generated launchers demonstrate how to run a model against real application data.
- Create the generated
DecisionModelclass whose name is configured byMODEL_NAME. - Create a
Goalfrom the model. - Use your own objects as the business concepts required by the goal.
- Call
goal.execute()to produce the decision.

Vacation Days example
Application data becomes decision-model input.
The standard Vacation Days model includes a Launcher.java example. It calculates vacation days for Mary Grant, but the employee object could come from a database, a user interface, or JSON.
Deployment options
Choose the integration that fits your architecture.
Each option uses the same business-owned OpenRules decision model.
Invoke a compiled model from Java.
Open guide →02AWS LambdaDeploy a serverless AWS function.
Open guide →03MS Azure FunctionPublish a model as an Azure Function.
Open guide →04RESTful Web ServicesRun with OpenRules REST or Spring Boot.
Open guide →05SharePoint IntegrationMaintain rule repositories in SharePoint.
Open guide →06Amazon S3 IntegrationLoad rule files directly from S3.
Open guide →07Docker ContainersPackage services as portable containers.
Open guide →08Apache SparkUse OpenRules from Spark applications.
Open PDF ↗09WAR FilesDeploy to Tomcat, WebSphere, and other servers.
Open guide →Build and deploy
Try these deployment projects yourself.
The free evaluation includes ready-to-run decision models that you can build, test, and adapt.
