[rules-users] before/after behavior for negative pattern

Wolfgang Laun wolfgang.laun at gmail.com
Mon Sep 3 11:42:19 EDT 2012


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120903/d0939c4c/attachment.html 


More information about the rules-users mailing list