How to produce business rule output that can be examined in the ODM Rule Execution Server Console?

StackOverflow https://stackoverflow.com/questions/22694188

  •  22-06-2023
  •  | 
  •  

Question

I am new to ODM 8.5 (the successor to JRules), and I am trying to test some rules in the ODM Rule Execution Server Console. At this point, I'm merely trying to confirm that my rule changes have been deployed to the RES successfully. According to ODM's Testing Ruleset Execution help page, I should be able to examine the Output text box to see "strings that are written to print.out" from the web page under Explorer > RuleApps > RuleApp > Ruleset > Test Ruleset. I've deployed a rule containing the following snippet:

enter image description here

However, after executing the rule, I don't see the output of the println in the Output box. Is println what the documentation refers to when they say "print.out"? I get syntax errors if I try to replace "System.out.println" with "print.out". How can I get simple debug output to appear in the Output box?

Was it helpful?

Solution

The note method will cause output to go to the Output text box of the ODM Rule Execution Server Console, e.g., use:

note("*** This is the rule modification ***");

OTHER TIPS

You can use the Decision warehouse(DW), in RES console.

First you need to activate the tracing in the ruleset properties. Then after an execution, you can search in DW for execution informations such as, rule executed, data values, etc... Check online documetation details(look for ODM IBM 8.5) Please note that this may slow down your decisions, so better not use this feature in production systems. Hope this helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top