It seems that the problem was that I had ObligationComplianceEvent defined as an event. When I leave it as a normal fact it works fine. Can anyone explain why this is? Its a problem as I need the timestamp to be present for other things...<br>
<br><div class="gmail_quote">2009/8/18 Greg Barton <span dir="ltr"><<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Doesn't seem to be a problem. See attached project.<br>
<br>
--- On Mon, 8/17/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>
> Subject: [rules-users] when condition on multiple facts of the same type<br>
> To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>
> Date: Monday, August 17, 2009, 8:24 PM<br>
<div><div></div><div class="h5">> I'm trying to have a rule execute based<br>
> on the following condition:<br>
><br>
> ObligationComplianceEvent(term == "term<br>
> 1", obligation == "obligation 1", level ==<br>
> 1)<br>
> ObligationComplianceEvent(term == "term<br>
> 2", obligation == "obligation 1", level ==<br>
> 1)<br>
><br>
><br>
> I pass in two facts of type ObligationComplianceEvent with<br>
> the values shown above but the rule does not execute. It<br>
> only executes if I put an 'or' like so <br>
><br>
> ObligationComplianceEvent(term == "term<br>
> 1", obligation == "obligation 1", level == 1)<br>
> or<br>
><br>
><br>
> ObligationComplianceEvent(term == "term<br>
> 2", obligation == "obligation 1", level ==<br>
> 1)<br>
><br>
> Any help on what the correct way to do this is? I'm<br>
> guessing its because it does not distinguish the two lines<br>
> as two different facts, so because neither of the facts has<br>
> the value 'term 1' and 'term 2' it never<br>
> executes.<br>
><br>
><br>
> Thanks for any help.<br>
><br>
> Justin<br>
><br>
><br>
</div></div>> -----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>
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></blockquote></div><br>