Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
7.31.0.Final
-
None
-
2020 Week 31-33 (from Jul 27)
-
-
NEW
-
NEW
Description
When rules are compiled using kie-maven-compile, the event handlers implementing
RuleRuntimeEventListener no longer have the rule that triggered them set (ObjectInsertedEvent.getRule() is null) .
public class MyListener implements RuleFactEventListener { @Override public void objectInserted(final ObjectInsertedEvent event) { System.out.println(event.getRule()); // Throws exception }
It only happens when the compiler plugin is invoked. If the rules are used as such, the event is properly set.