]
Mario Fusco closed DROOLS-1256.
-------------------------------
Resolution: Won't Fix
ForceEagerActivationOption and "not()" LHS pattern does not
invoke matchCreated listener
----------------------------------------------------------------------------------------
Key: DROOLS-1256
URL:
https://issues.jboss.org/browse/DROOLS-1256
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.0.0.Beta1
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Priority: Minor
Given the following rules
{code:java}
rule ND
when
not ( Double() )
then
// do nothing.
end
rule ND2
salience 1
when
not ( Double() )
then
insert( new Double(0) );
end
{code}
and KieSession created with {{ForceEagerActivationOption.YES}} and a generic
AgendaEventListener on fire all rules returns:
{code:java}
created: 0 cancelled: 1 fired: 1
{code}
hence incoherent as matchcreated .
Expected: created=2, cancelled=1, fired=1.
Reporting this as also I understand this eager option is used by jBPM.