The amazing world of IBM ODM and more

The amazing world of IBM ODM blog - Angello Manrique Vigil
  • HOME
  • ABOUT ME
  • CONTACT ME

Working with the Decision Center API

by Angello Manrique Vigil / Wednesday, 21 June 2017 / Published in Decision Center, ODM API, Rule Designer

In many IBM ODM rules implementation projects we are going to have requirements that involve working with the IBM ODM API. Even though the Decision Center has a lot of powerful features to customize our rules, there are some things that can only be achieve by working with the API, this means we will have to work with java code and be familiar with the ODM API classes to accomplish our goals. In this tutorial I will show you the basics of how to establish a connection with the Decision Center from the Rule Designer and retrieve valuable project information. You can apply this for your particular requirement.


Steps:

  1. Getting familiar with ODM API
    • We first need to take a moment and review some of the most important classes in the IBM ODM API documentation (IlrSession) , it’s ok if you don’t fully understand how they work at first. It is all about practice.
    • Enter here to access the documentation.
  2. Creating a Java project
    • Open Rule Designer and create a new Java Projectnew java project odm sample
    • Now we have to add the teamserver libraries to the build path for our Java project:properties java build path sample odm
    • Tip: the libraries are in <your_installation_path>\teamserver\lib
  3. Establishing the decision center connection
    • Create a new main class to test our remote ODM API decision center connectionjava main class sample odm
    • Our java class needs to implement the IlrSession class:remote connection sample session odm api
    • Create your connection parameters, in my case:ibm odm api connection remote session parameters sample
    • Now in our main class we need to create an object of the IlrSessionFactory class that implements IlrRemoteSessionFactory
    • Lets call the connect method:ibm odm api connection remote session parameters sample
    • Tip: be sure to work in a try/catch block to manage any connection exceptions
  4. Obtaining Decision Center data
    • Now that we are able to connect to the Decision Center repository let’s try to obtain information about the project
    • Create an object of IlrSession to obtain the current session:factory odm api sample
    • Lets obtain the rule project name:ibm odm api rule project name code sample

Results:

We can work and obtain pretty much any data, object or method that is inside the Decision Center repository. We can also create our custom jar classes and repackage the teamserver.ear with it.

I hope you enjoy this tutorial and please let me now if you need help working with the ODM API and what do you want to see next. Thank you!

Tagged under: DecisionCenter, ODMAPI, RuleDesigner

About Angello Manrique Vigil

IBM Certified ODM Consultant with 6+ years of experience in designing and developing end to end BRMS and BPM enterprise applications systems. LinkedIn: https://www.linkedin.com/in/angello90/

What you can read next

ODM on Docker!
Populating Decision Tables with external data sources
Decision Composer, integration with Rule Designer

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • RPA – UiPath: Working with Excel

    In this blog post we will talk about working wi...
  • ODM on Docker!

    If you are a DevOps enthusiast like me you prob...
  • RPA: UiPath and ODM integration

    In this technical tutorial we will have a look ...
  • Populating Decision Tables with external data sources

    One of the most used artifacts in IBM ODM is th...
  • Decision Composer, integration with Rule Designer

    In this post I will show a new way to start you...
  • Connecting to external Database with ODM API

    The IBM ODM Decision Center and the Rule Execut...
  • Custom log file with ODM API

    Given the positive feedback from previous post ...
  • Automating deployments with Ant tasks

    To deploy RuleApps to Rule Execution Server, au...
  • Editing business rules in Microsoft Office

    IBM ODM Decision Center Business Console provid...
  • Monitoring ruleset execution with ODM RES Decision Warehouse

    After we finish developing and deploying a Rule...

Categories

  • Ant Tasks
  • Bluemix
  • Cloud
  • Database
  • Debug
  • Decision Center
  • Decision Operation
  • Decision Table
  • Decision Warehouse
  • Docker
  • Domains
  • Java
  • ODM API
  • RPA
  • Rule Authoring
  • Rule Designer
  • Rule Execution Server (RES)
  • Rule Solutions for Office
  • Ruleflow
  • UiPath

Recent Posts

  • RPA – UiPath: Working with Excel

    In this blog post we will talk about working wi...
  • ODM on Docker!

    If you are a DevOps enthusiast like me you prob...
  • RPA: UiPath and ODM integration

    In this technical tutorial we will have a look ...
  • Populating Decision Tables with external data sources

    One of the most used artifacts in IBM ODM is th...
  • Decision Composer, integration with Rule Designer

    In this post I will show a new way to start you...

Recent Comments

  • Mastan on Debugging a simple Ruleflow in Rule Designer
  • Angello Manrique Vigil on ODM on Docker!
  • brian on ODM on Docker!
  • Angello Manrique Vigil on Populating Decision Tables with external data sources
  • Pramod on Populating Decision Tables with external data sources

Subscribe

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

All rights reserved. Made by Angello Manrique Vigil.

TOP