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