The amazing world of IBM ODM and more

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

ODM on Docker!

Friday, 13 July 2018 by Angello Manrique Vigil

If you are a DevOps enthusiast like me you probably love Docker and have been using it for a while. If you are new to Docker, please check this link to learn more.

IBM released an IBM ODM Docker image designed for developers and free to use, in this tutorial we are going to set it up step by step and gain full functionality of this amazing feature. My setup for running this tutorial is:

  • Host machine: Windows 10 Pro
  • Elementary OS (Ubuntu Dist.) Virtual Box Machine with Docker (I tried using my Alpine-Docker image but I encountered some extra configurations needed for the ODM JVM, contact me for more information about this subject)
  • Eclipse Luna with Rule Designer for developers plugin

Steps:

  1. Install IBM ODM Docker image
    • Open a new terminal window and run the following command: docker pull ibmcom/odm
    • This will download all the ODM files and create the IBM ODM image. Depending on your internet conection this process could take a few minutes.
    • Now run the following command to start the docker IBM ODM container instance:
      docker run -e LICENSE=accept -p 9060:9060 -p 9443:9443 ibmcom/odm
    • Note that we are passing an environment value to accept the license and mapping the ports 9060 and 9443. If you run with JVM memory problems use -m 1g or the amount of java heap size memory you can use for this container to run smoothly and faster.
    • If everything went well you should see the beautiful IBM ODM logo printed in the terminal
    • Now you are ready to use:
    • Note that if you are using a Virtual Box VM like me you need to configure your networks and ip addresses to use the web applications in your host. In my case I use the 192.168.56.101 ip. See Host-Only adapter configurations and verify your networks by pinging the VM ip.
  2. Verify Installation
    • Open the Decision Center, you should be able to log in odmAdmin or rtsAdmin:
    • And have a clean installation:

    • Open the RES console, now use resAdmin:
    • And also see no RuleApps deployed:
  1. Install Eclipse with IBM ODM plugin
    • Download and install Eclipse.
    • Navigate to https://marketplace.eclipse.org/content/ibm-operational-decision-manager-developers-rule-designer and drag and drop the install
    • Follow the instructions and reboot Eclipse, you should now see the Rule Designer perspective:
  2. Test IBM ODM on Docker
    • Create a new project or import an existing project, I am going to use the Recruitment Service demo that I’ve using on previous posts:
    • Connect the main project to the Decision Center
    • Enter the proper URL and credentials and test the conection:
    • Navigate to the Decision Center and verify the Decision Service is uploaded correctly:
    • Now we will test the deployment to the RES console, create a new Deployment Configuration
    • Add a Decision Operation
    • Add the ODM docker RES service
    • Deploy the Ruleapp and select the recently added server
    • Verify the ruleapp deployed correctly

As you can see we setup an ODM distribution in minutes and got a project sync with Decision Center and deployed in the RES console. ODM on Docker is great, we can use all the Docker containers and images functionalities.

I hope you enjoy this tutorial and as always please feel free to contact me for any feedback or questions! Thank you!

CloudDecisionCenterDockerRESRuleDesigner
Read more
  • Published in Cloud, Decision Center, Docker, Rule Designer, Rule Execution Server (RES)
2 Comments

Decision Composer, integration with Rule Designer

Sunday, 03 September 2017 by Angello Manrique Vigil

In this post I will show a new way to start your Rule Projects, using a new IBM Bluemix Business Rules service feature called “Decision Composer”. This is currently in experimental mode but you can start to fully utilize its main features and see if it helps you in your organization. The decision composer is a new way to model your rules using the Decision Modeling Notation (learn more about DMN here), it is also very useful to business users with no ODM technical skills to define and model Rule Projects.


Steps:

  1. Creating a Decision Composer project
    • First we need to access our IBM Bluemix account and select our Business Rules Service. If you don’t have an account or the Business Service installed please refer to my previous Bluemix post here.
    • Click on the “Open Decision Composer”decision composer bluemix
    • Click “New Project”, give it a name and click “Create Project”. For this sample I will create a simple recruitment eligibility rule.New decision composer sample project
    • Tip: You can import your XOM schema from a file or URL too
  2. Modeling rules in the Decision Composer
    • By default we get a decision “Hello World” with a message, we can simply erase these 2 artifacts.
    • Create a “data node”, it will create a square box representing a Decision Node. Click on it to modify it’s properties on the left panel. For my sample the output is a Boolean (true or false).decision composer decision node sample
    • Now that we have our Decision Node we need to add the Input data that will determine the rule outcome. Hover over decision node, click the + symbol and select “Input Data”.
    • Do the same for each data field you need in your rule, in my sample I will need the age and sex of the candidate.decision composer input data sample
    • Tip: Remember you can specify default values for each data
    • Now we need to edit our business logic. Select the decision node and click “Edit decision logic” on the left panel. We can work with rule actions or decision tables. In this sample I will use a simple decision table to specify some rules:decision composer decision table sample
    • Set a default value for the outcome variable:decision composer default value sample
    • Save your changes.
  3. Testing and deploying our Decision project
    • Return to the main project screen, click “Run” and test the different scenarios of your rules:decision composer testing rules sample
    • Now you can deploy your project to your Bluemix Business Rules RES. Return to the project selection screen, hover over your decision project and click “Deploy”decision composer deploy
    • Input the Bluemix RES URL, username and password. Your rule is ready to use on the cloud.
  4. Integrating the project with IBM ODM Rule Designer
    • A great feature is that you can download this project and import it to your Rule Designer Eclipse workspace.
    • In the same options list, click “Download”.
    • In your Rule Designer workspace select File – Import – Existing projects into Workspace. Search for the files by viewing all file types and that’s it! decision composer in rule designer integration

Let me know if you want to see more content like this and explore with the Decision Composer and DMN more. I hope you enjoy this tutorial and as always please feel free to contact me for any feedback or questions! Thank you!

BluemixCloudDecisionComposerRuleDesigner
Read more
  • Published in Bluemix, Cloud, Rule Authoring, Rule Designer
1 Comment

Deploying Rule projects into IBM Bluemix

Sunday, 28 May 2017 by Angello Manrique Vigil

IBM Bluemix is a cloud platform that helps you solve real problems and drive business value with applications, infrastructure and services. There are other powerful cloud services like AWS, Azure or Google Cloud platform but IBM Bluemix comes with pre-designed services for your IBM software solutions. In this article we will see how the Business Rules service allows us to deploy our Decision Operations from Rule Designer or Decision Center console directly to IBM Bluemix cloud. In order to test this you will need to create a IBM Bluemix account that comes with 30 days free trial.


Steps:

  1. Creating the Business Rules service
    • Login to your IBM Bluemix account.
    • Click “Catalog” and search for “Business Rules”Bluemix Business Rules service
    • Tip: This service gives you 1,000 API calls free per month that is more than enough for dev purposes, you can cancel the service at any time.
    • Click “Create” and give a proper name.
    • Navigate to the “Connection Settings” tab and you should be able to see the connection details like this:Bluemix business rules connection details
    • Tip: Click “Open Console” and navigate just like in your RES local installation.

     

  2. Configuring the Deployment
    • Now that our Business Rules service on IBM Bluemix is ready, let’s configure and deploy the Rule project.
    • Open Rule Designer and navigate to the deployment folder of the Rule project.
    • If you have a previous deployment configuration already set up you can just add the new IBM Bluemix RES server target:Deployment configuration server sample
    • Insert the Bluemix connection details and test the connection.
    • Deploy the Decision Operation Ruleapp and verify the deployment by accessing the IBM Bluemix RES console.
    • The Ruleapp should appear like this:Bluemix RES console ruleapp sample

     

  3. Testing our Rule web service in SoapUI
    • Navigate to the Ruleset view by clicking on the Ruleapp Name and then the Ruleset name in the RES console.
    • Click the “Retrieve HTDS Description File” option:RES retrieve wsdl sample
    • Download the SOAP HTDS file or click view and copy the WSDL URL.
    • Open SoapUI and create a New SOAP project.
    • Insert the wsdl URL, username and password.
    • Now you have the request ready, the only thing missing is the security authorization. Click the “Auth” option and select Basic, type the Bluemix Business Rules service username and password.SoapUI Basic auth sample

Results:

You are ready to call your Rules from anyplace, anywhere. Just share your WSDL url with the client application and give the proper authorization. Having the Rule Execution Server on the cloud is a great way to test your rules in development without depending on your local Sample Server.

SoapUI Bluemix RES sample

I hope you enjoy this tutorial and as always please feel free to contact me for any feedback or questions! Thank you!

BluemixCloudDecisionOperationDeploymentRuleDesignerSoapUI
Read more
  • Published in Bluemix, Cloud, Rule Authoring, Rule Designer, Rule Execution Server (RES)
No Comments

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 ...
  • Working with the Decision Center API

    In many IBM ODM rules implementation projects w...
  • 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...

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