<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000'>I see a few posts from you Chris on 9/25 and one more from yesterday.&nbsp; Probably more, but I emptied my folder a few days before that.&nbsp; If it's an all-or-none thing, I can confirm I've received posts daily for the last week.<br><br><div>&nbsp;- Jeremy<span style="font-style: italic;"><br></span><a href="http://www.franklinamerican.com"></a></div><br><br>----- Original Message -----<br>From: "Edson Tirelli" &lt;ed.tirelli@gmail.com&gt;<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Sent: Tuesday, September 29, 2009 3:27:50 PM GMT -06:00 US/Canada Central<br>Subject: Re: [rules-users] Understanding Fusion temporal reasoning<br><br>   Talking just about myself, I was kicked off the list (too many bounces it
said) and I noticed yesterday, so I lost all messages in the last week or
so.

   Edson

2009/9/29 Chris Richmond <crichmond@referentia.com>

&gt;  Ok..will do.
&gt;
&gt;
&gt;
&gt; BTW…is the newgroup problem happening again?  I posted this question about
&gt; 3 times over the last week as well as some others, and I don’t mind that
&gt; people can’t help all the time at all, but I know there was a problem before
&gt; and I posted this again today because iI never received any responses for
&gt; like a week and that doesn’t happen, usuallly someone mentions something.
&gt;
&gt; Thanks,
&gt;
&gt; Chris
&gt;
&gt;
&gt;  ------------------------------
&gt;
&gt; *From:* rules-users-bounces@lists.jboss.org [mailto:
&gt; rules-users-bounces@lists.jboss.org] *On Behalf Of *Edson Tirelli
&gt; *Sent:* Tuesday, September 29, 2009 9:21 AM
&gt; *To:* Rules Users List
&gt; *Subject:* Re: [rules-users] Understanding Fusion temporal reasoning
&gt;
&gt;
&gt;
&gt;
&gt;    Chris,
&gt;
&gt;    Someone found a bug a couple days ago that might be affecting you too.
&gt; What happens if you write:
&gt;
&gt; declare NumReading
&gt;
&gt;     @role( event )
&gt;
&gt;     @expires( 10s )
&gt;
&gt; end
&gt;
&gt;
&gt;    ?
&gt;
&gt;    Edson
&gt;
&gt;  2009/9/29 Chris Richmond <crichmond@referentia.com>
&gt;
&gt; Hello,
&gt;
&gt;
&gt;
&gt; I am trying to make a rule to delay firing until a certain amount of time
&gt; has passed without another event being received.  I have set up a loop that
&gt; goes every 10 seconds in my main application that takes readings and injects
&gt; them into the ReadingStream. These are like sensor readings.
&gt;
&gt;
&gt;
&gt;  I have a thread started at initialization that is basically calling
&gt; fireUntilHalt() and I never call halt until shutdown, and that seams to be
&gt; working fine.
&gt;
&gt;
&gt;
&gt; So basically any time an out of spec reading in my Reading object (&lt;15) is
&gt; received, I want to wait to see if a FollowUpReading is not received in the
&gt; next 5 seconds, before I fire the results(The second rule below).  The first
&gt; rule is there just to verify I am indeed detecting NumReadings with values &lt;
&gt; 15 being injected and that works fine.   Now at this point in my appication
&gt; I am **never** inserting a FollowUpReading object/event, so I would expect
&gt; the 2nd rule to fire all the time, however the strange thing is that it
&gt; only fires the first time I receive a reading out of spec. I see rule one
&gt; fire, then the seond time, but after that any subsequent out of spec
&gt; readings received(I know they are out of spec, because rule 1 still fires
&gt; when received) but rule 2 never fires again.  It only ever fires one time!
&gt; This is very confusing.  These ar the only 2 rules and the only two object
&gt; types being inserted to the stream. Know that rule 2 **can** fire because
&gt; it does once and only once.  Why won’t it fire beyond the first time, even
&gt; though I never insert the FollowUpReading() ?
&gt;
&gt;
&gt;
&gt; Thanks,
&gt;
&gt;
&gt; Chris
&gt;
&gt;
&gt;
&gt; declare NumReading
&gt;
&gt;     @role( event )
&gt;
&gt; end
&gt;
&gt;
&gt;
&gt; declare FollowUpReading
&gt;
&gt;       @role(event)
&gt;
&gt; end
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; rule "Determine out of spec reading"
&gt;
&gt; when
&gt;
&gt;       $n : NumReading($r:reading &lt; 15) from entry-point "ReadingStream";
&gt;
&gt; then
&gt;
&gt;       System.err.println("Fire off a follow up reading for device: " + $n);
&gt;
&gt; end
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; rule "Missed degrading confirmation reading"
&gt;
&gt; when
&gt;
&gt;       $n : NumReading($r:reading &lt; 15) from entry-point "ReadingStream";
&gt;
&gt;       not (FollowUpReading(this after[0s, 5s] $n))
&gt;
&gt; then
&gt;
&gt;       System.err.println("No good reading received for: " + $n);
&gt;
&gt; end
&gt;
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; _______________________________________________
&gt; rules-users mailing list
&gt; rules-users@lists.jboss.org
&gt; https://lists.jboss.org/mailman/listinfo/rules-users
&gt;
&gt;
&gt;
<br>_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</crichmond@referentia.com></crichmond@referentia.com></div></body></html>