Red Hat Bugzilla – Bug 973264
Star import does not work with DRL declared facts
Last modified: 2014-08-06 16:17:19 EDT
Description of problem:
Given the following DRL:
$event : TestEvent()
// rule fired
When an instance of TestEvent is inserted into KieSession and then fireAllRules() called, the rule does not fire.
If the import statement is changed to the following
the rule fires as expected.
The problem is not present when using old API (KnowledgeBase), so this is a regression.
The tricky part is, that no error is reported, the engine just behaves as if the fact declared in DRL and the fact imported from Java were two different facts.
Version-Release number of selected component (if applicable):
BRMS 6.0.0 DR5
Run the StarImportTest from attached pull request (will add reference to the pull request shortly).
The rule does not fire.
The rule fires.
Pull request with reproducer: https://github.com/droolsjbpm/drools/pull/213
Fixed on CR2.
Verified on BRMS 6.0.0-ER2.