With 5.3.0, I find that there's no difference between these two forms.

rule "Detect it"
when
    $start : RawEvent()
    not RawEvent( this != $start,
                  id == $start.id,
##               $start after[0ms, 90s] this )
                  this before[0ms, 90s] $start )
then
    System.out.println("detected:" + $start);
end

-W

On 3 September 2012 14:37, Rob21 <rob.perrez@gmail.com> wrote:
Hi again,
I tried using 5.3 and I noticed the "before" keyword has the same problem as
5.4 :

rule "Detect it"
when
    $start : RawEvent()
    not RawEvent(this != $start, id == $start.id, this before[0ms, 90s]
$start)
then
    System.out.println("detected: " + $start);
end

Gives a null pointer exception.
Is this really a bug ? Or am i misusing the "before" keyword ?



--
View this message in context: http://drools.46999.n3.nabble.com/before-after-behavior-for-negative-pattern-tp4019497p4019549.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users