The amazing world of IBM ODM and more

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

Debugging a simple Ruleflow in Rule Designer

by Angello Manrique Vigil / Thursday, 18 May 2017 / Published in Debug, Decision Operation, Java, Rule Authoring, Rule Designer, Ruleflow

There are many ways to test our rules, we can use Excel DVS testsuites, decision operations, web services applications like SoapUI and more, but sometimes we need to debug our ruleflow to find a particular bug that is preventing us to continue. When developing a new rule project in Rule Designer we often need to see the output of our rules without having to deploy our solution and see the behavior of the ruleflow to compare the variables values.

In this article I am going to show how to debug a simple ruleflow using a decision operation to test your Rules.


Steps:

Let’s assume we already have the ruleflow, variables and rules.

  1. Creating the Decision Operation
    • Right click the “deployment” folder in your Rule Project and select New -> Decision Operation.
    • Give a proper name, select the Rule Project and select the Ruleflow inside your Rule Project.
    • Now open your Decision Operation and you should have one like this:Decision Operation sample
    • Click “Define” or to the “Signature” tab.
    • Expand your varible set and drag and drop the corresponding variables to the Input and Output Parameters.
    • Tip: Is a good practice to name your input variable with “Request” at the end and “Response” for your output.decision operation signature sample
  2. Setting the breakpoints
    • There a many places where we can define our breakpoints, it depends on what you need to test and where do you want the flow to stop execution. I will show some examples of places where you can put your breakpoints next.
    • Action Rule:
      • Open your Action Rule, right click in the gray space of any Action line and select “Toggle Breakpoint”breakpoints action rule sample
    • Decision Table:
      • Open your Decision Table, right click in any cell of an Action column and select “Toggle Breakpoint”breakpoint decision table sample
    • BOM member
      • Open a BOM member with BOM to XOM mapping logic, locate the Setter code, right click in the gray space and select “Toggle Breakpoint”breakpoint bom member sample
    • Ruleflow artifacts
      • This is the most common way to debug our Rules, in the ruleflow you can add breakpoints to any task. Select any task, right click and select “Toggle Breakpoint”breakpoint ruleflow sample
  3. Creating the Debug Configuration
    • Navigate to Run -> Debug Configurations… in your Rule Designer top bar.
    • Locate the Decision Operation artifact, right click and select New.
    • Give a proper name and Browse for your Decision Operation.debug configuration sample
    • Tip: The checkbox “Stop at first rule statement” guarantees you enter debug mode if you didn’t set any breakpoints.
    • Now the most important step is to define the “Parameters and Arguments” for this configuration, select the tab and click “Edit Value”.
    • You have to create and return a new object of your Input Parameter class, you can also assign testing values. Click “Function body” and add the proper code. Take a look at my sample:input parameter sample
    • Click Apply and Debug.

Results:

Now you are in Debug mode, watch your variables and step through your code and rules!

debug mode ibm odm sample

I hope you enjoy this article, as always please feel free to contact me about any question or feedback. Thank you!

Tagged under: BOM, Debug, DecisionOperation, Java, RuleDesigner, RuleFlow

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
Creating Dynamic Domains from an Excel file
Automating deployments with Ant tasks

1 Comment to “Debugging a simple Ruleflow in Rule Designer”

  1. Mastan says :Reply
    November 6, 2019 at 11:31 am

    Hi Angello,
    Hope your doing great.
    Is there a way to handle the exceptions in ODM when we use HTDS API?

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