Integration and Deployment

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 DecisionModel class whose name is configured by MODEL_NAME.
  • Create a Goal from the model.
  • Use your own objects as the business concepts required by the goal.
  • Call goal.execute() to produce the decision.
Original Java launcher code for the Vacation Days decision model
Vacation Days Java launcherOpen full size ↗

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.

Build and deploy

Try these deployment projects yourself.

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