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">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</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&#39;t seem to be a problem.  See attached project.<br>
<br>
--- On Mon, 8/17/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>
&gt; Subject: [rules-users] when condition on multiple facts of the same type<br>
&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; Date: Monday, August 17, 2009, 8:24 PM<br>
<div><div></div><div class="h5">&gt; I&#39;m trying to have a rule execute based<br>
&gt; on the following condition:<br>
&gt;<br>
&gt;         ObligationComplianceEvent(term == &quot;term<br>
&gt; 1&quot;, obligation == &quot;obligation 1&quot;, level ==<br>
&gt; 1)<br>
&gt;         ObligationComplianceEvent(term == &quot;term<br>
&gt; 2&quot;, obligation == &quot;obligation 1&quot;, level ==<br>
&gt; 1)<br>
&gt;<br>
&gt;<br>
&gt; I pass in two facts of type ObligationComplianceEvent with<br>
&gt; the values shown above but the rule does not execute. It<br>
&gt; only executes if I put an &#39;or&#39; like so <br>
&gt;<br>
&gt;         ObligationComplianceEvent(term == &quot;term<br>
&gt; 1&quot;, obligation == &quot;obligation 1&quot;, level == 1)<br>
&gt; or<br>
&gt;<br>
&gt;<br>
&gt;         ObligationComplianceEvent(term == &quot;term<br>
&gt; 2&quot;, obligation == &quot;obligation 1&quot;, level ==<br>
&gt; 1)<br>
&gt;<br>
&gt; Any help on what the correct way to do this is? I&#39;m<br>
&gt; guessing its because it does not distinguish the two lines<br>
&gt; as two different facts, so because neither of the facts has<br>
&gt; the value &#39;term 1&#39; and &#39;term 2&#39; it never<br>
&gt; executes.<br>
&gt;<br>
&gt;<br>
&gt; Thanks for any help.<br>
&gt;<br>
&gt; Justin<br>
&gt;<br>
&gt;<br>
</div></div>&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>
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>