Description of problem: Given the following DRL: package org.drools.compiler.integrationtests import org.drools.compiler.integrationtests.facts.* declare TestEvent @role(event) end rule "SendEvent" when $event : TestEvent() then // rule fired end 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 import org.drools.compiler.integrationtests.facts.TestEvent 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 Drools 6.0.0.Beta3 Drools 6.0.0-SNAPSHOT How reproducible: Run the StarImportTest from attached pull request (will add reference to the pull request shortly). Actual results: The rule does not fire. Expected results: The rule fires.
Pull request with reproducer: https://github.com/droolsjbpm/drools/pull/213
Fixed on CR2.
Verified on BRMS 6.0.0-ER2.