Is there any way to obtain the fired row of the decision table in ODM 8.10?

337 views Asked by At

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

1

There are 1 answers

0
Emmanuel B. On

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