That&#39;s it! I assumed if no @expires time was set it simply didn&#39;t expire. Thanks for the help.<br><br><div class="gmail_quote">On Fri, Aug 21, 2009 at 1:00 PM, Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Does your event have an @expires time?  If you&#39;re running in STREAM mode events will be garbage collected when they expire, and by default that&#39;s when the match no rules.  If you specify an @expires value they will hang around for that time period even if they match nothing.  So, with no @expires specified, two events would have to be inserted simultaneously to match.<br>

<br>
If you&#39;re in CLOUD mode I&#39;m not sure what&#39;s up. :)<br>
<div class="im"><br>
--- On Thu, 8/20/09, Justin King &lt;<a href="mailto:justin.matthew.king@gmail.com">justin.matthew.king@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: Justin King &lt;<a href="mailto:justin.matthew.king@gmail.com">justin.matthew.king@gmail.com</a>&gt;<br>
</div>&gt; Subject: Re: [rules-users] when condition on multiple facts of the same type<br>
<div class="im">&gt; To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
</div>&gt; Date: Thursday, August 20, 2009, 9:28 PM<br>
<div><div></div><div class="h5">&gt; It seems that the problem was that I had<br>
&gt; ObligationComplianceEvent defined as an event. When I leave<br>
&gt; it as a normal fact it works fine. Can anyone explain why<br>
&gt; this is? Its a problem as I need the timestamp to be present<br>
&gt; for other things...<br>
&gt;<br>
&gt;<br>
&gt; 2009/8/18 Greg Barton &lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;<br>
&gt;<br>
&gt; Doesn&#39;t seem to be a problem.  See attached project.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --- On Mon, 8/17/09, Justin King &lt;<a href="mailto:justin.matthew.king@gmail.com">justin.matthew.king@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; From: Justin King &lt;<a href="mailto:justin.matthew.king@gmail.com">justin.matthew.king@gmail.com</a>&gt;<br>
&gt;<br>
&gt; &gt; Subject: [rules-users] when condition on multiple<br>
&gt; facts of the same type<br>
&gt;<br>
&gt; &gt; To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt;<br>
&gt; &gt; Date: Monday, August 17, 2009, 8:24 PM<br>
&gt;<br>
&gt; &gt; I&#39;m trying to have<br>
&gt; a rule execute based<br>
&gt;<br>
&gt; &gt; on the following condition:<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         ObligationComplianceEvent(term ==<br>
&gt; &quot;term<br>
&gt;<br>
&gt; &gt; 1&quot;, obligation == &quot;obligation 1&quot;, level<br>
&gt; ==<br>
&gt;<br>
&gt; &gt; 1)<br>
&gt;<br>
&gt; &gt;         ObligationComplianceEvent(term ==<br>
&gt; &quot;term<br>
&gt;<br>
&gt; &gt; 2&quot;, obligation == &quot;obligation 1&quot;, level<br>
&gt; ==<br>
&gt;<br>
&gt; &gt; 1)<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; I pass in two facts of type ObligationComplianceEvent<br>
&gt; with<br>
&gt;<br>
&gt; &gt; the values shown above but the rule does not execute.<br>
&gt; It<br>
&gt;<br>
&gt; &gt; only executes if I put an &#39;or&#39; like so <br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         ObligationComplianceEvent(term ==<br>
&gt; &quot;term<br>
&gt;<br>
&gt; &gt; 1&quot;, obligation == &quot;obligation 1&quot;, level<br>
&gt; == 1)<br>
&gt;<br>
&gt; &gt; or<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;         ObligationComplianceEvent(term ==<br>
&gt; &quot;term<br>
&gt;<br>
&gt; &gt; 2&quot;, obligation == &quot;obligation 1&quot;, level<br>
&gt; ==<br>
&gt;<br>
&gt; &gt; 1)<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Any help on what the correct way to do this is?<br>
&gt; I&#39;m<br>
&gt;<br>
&gt; &gt; guessing its because it does not distinguish the two<br>
&gt; lines<br>
&gt;<br>
&gt; &gt; as two different facts, so because neither of the<br>
&gt; facts has<br>
&gt;<br>
&gt; &gt; the value &#39;term 1&#39; and &#39;term 2&#39; it<br>
&gt; never<br>
&gt;<br>
&gt; &gt; executes.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Thanks for any help.<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; Justin<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; -----Inline Attachment Follows-----<br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt;<br>
&gt; &gt; rules-users mailing list<br>
&gt;<br>
&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;<br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;       <br>
&gt; _______________________________________________<br>
&gt;<br>
&gt; rules-users mailing list<br>
&gt;<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -----Inline Attachment Follows-----<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
<br>
<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>
</div></div></blockquote></div><br>