GithubHelp home page GithubHelp logo

ratiaris / decisions-ruleapp-embedded Goto Github PK

View Code? Open in Web Editor NEW

This project forked from decisionsdev/decisions-ruleapp-embedded

0.0 1.0 0.0 730 KB

Execute an IBM ODM Decision Service bundled into your JSE application

License: Apache License 2.0

Java 100.00%

decisions-ruleapp-embedded's Introduction

Execute an IBM ODM Decision Service bundled into your JSE application

Build Status License

Follow us on slack

This Java SE sample illustrates how to execute a decision service bundled in your JSE application with IBM Operational Decision Manager.

It makes use of:

The sample architecture and workflow are as follows:

Sample Architecture and Workflow

  1. The ODM Java Rule session API is invoked to execute the ruleset whose ruleset path is passed as argument (i.e. /test_deployment/loan_validation_with_score_and_grade).
  2. The Rule Session API delegates the ruleset execution to the RES Execution Unit (XU).
  3. The XU fetches the ruleset from the RES memory persistence.
  4. As there is no such ruleset, the RES memory persistence looks up a matching RuleApp packaged in the application's classloader resources.
  5. The RES memory persistence loads the content of the RuleApp archive test-deployment.jar.
  6. The RES memory persistence returns the target ruleset to the XU.
  7. The XU retrieves the Java Execution Object Model (XOM) from the application classloader.
  8. The XU finally executes the ruleset and passes the available output results to the Rule Session API.

Pre-requisites

You'll need IBM Operational Decision Manager, version 8.9.2 or higher.

Defining the ODM 8.9.2 installation directory

To build and run this sample you'll need to set the ibm.odm.install.dir maven property so that it points to the actual location where ODM 8.9.2 is installed.

Building

To build the source code, type the maven command:

mvn clean install -Dibm.odm.install.dir="<ODM_INSTALL_DIR>"

Running

To run the sample, type the following maven command:

mvn exec:java -Dexec.mainClass="j2serulesession.Sample" -Dexec.args="/test_deployment/loan_validation_with_score_and_grade" -Dexec.classpathScope="test" -Dibm.odm.install.dir="<ODM_INSTALL_DIR>"

License

Apache 2.0

Notice

© Copyright IBM Corporation 2018.

Build Status License

decisions-ruleapp-embedded's People

Contributors

ratiaris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.