The amazing world of IBM ODM and more

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

Custom log file with ODM API

by Angello Manrique Vigil / Tuesday, 04 July 2017 / Published in Decision Center, Java, ODM API, Rule Authoring, Rule Designer

Given the positive feedback from previous post we will continue to work further on with the ODM API and discover new possibilities and features to implement in our Rule projects. In this tutorial we will see how to create a custom log file, focusing on obtaining the values from Deployments of Decision Services within the Business Console.

To understand the basics of the IBM ODM, please refer to my previous post about the IBM ODM API here.


  1. Creating a custom log file
    • In our Java ODM API project let’s create a global variable to define the output file.IBM ODM API log file java variable sample
    • Now create a constructor method to add the values you want in your custom log file. In this example we are obtaining the deployment time stamp when a business user deploys a Decision Service from the Business Console:ODM API custom log java sample
    • Tip: Remember we need to throw an IOException class for our constructor.
    • We can continue adding the values we require in our outfile variable. In this code example we are getting the following values:
      • The timestamp an element changed (for example the deployment report)
      • Who changed the element and who deployed it (business user who deploys the Decision Service)
      • Rule project nameIBM ODM API log variables sample java
    • Tip: Remember to format the log file with methods like newLine() and flush().
    • Now we need to repackage and reinstall the teamserver.ear with our custom jar file and it will automatically start generating the log file when we make a Decision Service deployment. I will make a post explaining this process in detail in the future.

If we did not specify an output location for the log file you will find it in <Your WAS Installation Path>\logs. I hope you enjoy this tutorial it helps you, please feel free to contact me with any feedback or questions! Thank you!

Tagged under: DecisionCenter, Java, 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

Deploying Rule projects into IBM Bluemix
ODM on Docker!
Creating Dynamic Domains from an Excel file

2 Comments to “Custom log file with ODM API”

  1. best lawn mower ireland says :Reply
    September 12, 2017 at 6:48 pm

    Oh my goodness! an incredible article dude. Thanks Nonetheless I’m experiencing subject with ur rss . Don know why Unable to subscribe to it. Is there anyone getting similar rss drawback? Anyone who knows kindly respond. Thnkx

    1. Angello Manrique Vigil says :Reply
      September 21, 2017 at 6:43 pm

      Hi, I am glad the blog is being useful to you. About the subscription, you should be able to email subscribe with and without a wordpress account but try login to wordpress.com first and subscribe again, maybe it works. Thank you!

Leave a Reply Cancel reply

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

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

Archives

  • August 2018
  • July 2018
  • June 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017

Subscribe

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

Tags

AntTasks Bluemix BOM BOM2XOM Cloud Database Debug DecisionCenter DecisionComposer DecisionOperation DecisionService DecisionTable DecisionWarehouse Deployment Docker Domains DynamicDomains Java Lists ODMAPI RES RPA RuleApp RuleDesigner RuleFlow Ruleset RuleSolutionsForOffice SOAP SoapUI UiPath XOM

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...

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/

All rights reserved. Made by Angello Manrique Vigil.

TOP