[rules-users] Bug: ActivationCreatedEvent - Activation: InitialFactImpl in Object set

Wolfgang Laun wolfgang.laun at gmail.com
Fri Aug 6 10:12:15 EDT 2010


Given this rule

rule "show no gaps"
when
    not Gap()
then
    System.out.println( "No gaps!" );
end

the ActivationCreatedEvent references an Activation, where the list of
fact handles (getFactHandles) contains one element, but its Object is null:
   Fact null @0:0:27032609:1306428912:0:DEFAULT
But the list of objects (getObjects) returns a list where there *is* an
object:
   Object (org.drools.reteoo.InitialFactImpl):
org.drools.reteoo.InitialFactImpl at 4dde85f0

I think that this should be changed; neither a fact handle nor an object
should
be returned if there are no user objects participating in the activation.

Cheers
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100806/753d3162/attachment.html 


More information about the rules-users mailing list