With 5.3.0, I find that there's no difference between these two forms.<div><br></div><div><div>rule "Detect it"</div><div>when</div><div> $start : RawEvent()</div><div> not RawEvent( this != $start,</div>
<div> id == $<a href="http://start.id">start.id</a>,</div><div>## $start after[0ms, 90s] this )</div><div> this before[0ms, 90s] $start )</div><div>then</div><div> System.out.println("detected:" + $start);</div>
<div>end</div><div><br></div><div>-W</div><br><div class="gmail_quote">On 3 September 2012 14:37, Rob21 <span dir="ltr"><<a href="mailto:rob.perrez@gmail.com" target="_blank">rob.perrez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi again,<br>
I tried using 5.3 and I noticed the "before" keyword has the same problem as<br>
5.4 :<br>
<br>
rule "Detect it"<br>
when<br>
$start : RawEvent()<br>
not RawEvent(this != $start, id == $<a href="http://start.id" target="_blank">start.id</a>, this before[0ms, 90s]<br>
$start)<br>
then<br>
System.out.println("detected: " + $start);<br>
end<br>
<br>
Gives a null pointer exception.<br>
Is this really a bug ? Or am i misusing the "before" keyword ?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/before-after-behavior-for-negative-pattern-tp4019497p4019549.html" target="_blank">http://drools.46999.n3.nabble.com/before-after-behavior-for-negative-pattern-tp4019497p4019549.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>