0

I am using this way to obtain the rule name:

com.ibm.rules.engine.ruledef.runtime.Rule ruleFired = getRule();

java.lang.String ruleName = (java.lang.String) ruleFired .getName();
java.lang.System.out.println("ruleFired " + ruleName );

return ruleName;

But, I can not obtain the specific row fired for a descision table

MatiasG
  • 1,140
  • 9
  • 20

1 Answers1

0

You can create an observer using RuleEngineObserver In the method

ruleExecutionStarted(Observable obs, RuleInstance rule) 

The method : rule.getRuleAction().getName() will provide the table row execution number when the rule is a decision table.

Best

Emmanuel B.
  • 226
  • 2
  • 7