<div dir="ltr"><br>&nbsp;&nbsp; Hmm, in this case, it is definitively a bug. &quot;not&quot; IS the existential qualifier, i.e., the constrary of exists. So it should be simply redundant to write &quot;not exists&quot;. Need to investigate that.<br>
<br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/7/31  <span dir="ltr">&lt;<a href="mailto:ringsah@comcast.net">ringsah@comcast.net</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;">
<div>
<div>Ingomar,</div>
<div>&nbsp;</div>
<div>I tried this, and indeed that worked. I was surprised, as I thought &quot;not&quot; was meant more to mean that a fact inside its parentheses did not exist, rather than a logical negation, which is the way you used it in your example. However, if I do what you said, it does work exactly how I expected &quot;not&quot; alone to work.</div>

<div>&nbsp;</div>
<div>Thanks!</div>
<div>-Hans</div>
<div>&nbsp;</div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><div><div></div><div class="Wj3C7c">-------------- Original message -------------- <br>From: Ingomar Otter &lt;<a href="mailto:iotter@mac.com" target="_blank">iotter@mac.com</a>&gt; <br>
<br>&gt; Hans, <br>&gt; If you change &quot;not NegativeResult()&quot; to &quot;not (exits <br>&gt; NegativeResult())&quot; this should result in the expected behaviour. <br>&gt; <br>&gt; Cheers, <br>&gt; Ingomar <br>&gt; <br>
&gt; Am 31.07.2008 um 17:19 schrieb <a href="mailto:ringsah@comcast.net" target="_blank">ringsah@comcast.net</a>: <br>&gt; <br>&gt; &gt; How is &quot;not&quot; supposed to work with insertLogical? Assume I have two <br>&gt; &gt; different rules whose conditions are mutually exclusive, like the <br>
&gt; &gt; following: <br>&gt; &gt; rule &quot;Rule One&quot; <br>&gt; &gt; when <br>&gt; &gt; not NegativeResult() <br>&gt; &gt; then <br>&gt; &gt; insertLogical(new ApplicantStatus(&quot;Approved&quot;)); <br>&gt; &gt; end <br>
&gt; &gt; rule &quot;Rule Two&quot; <br>&gt; &gt; when <br>&gt; &gt; NegativeResult() <br>&gt; &gt; then <br>&gt; &gt; insertLogical(new ApplicantStatus(&quot;Denied&quot;)); &gt; 
&gt; end <br>&gt; &gt; Assume that the above two rules are the only way an ApplicantStatus <br>&gt; &gt; fact can be inserted into working memory. I would expect, after all <br>&gt; &gt; rules are run, that it would be impossible for there to be one <br>
&gt; &gt; ApplicantStatus with &quot;Approved&quot; as its reason, and another with <br>&gt; &gt; &quot;Denied&quot; as its reason, in the working memory. <br>&gt; &gt; I would expect that, before any NegativeResult is inserted, that <br>
&gt; &gt; rule one could run, and insert an ApplicantStatus fact with an <br>&gt; &gt; &quot;Approved&quot; reason. Then, after a NegativeResult is inserted, that <br>&gt; &gt; rule two could run, and insert an ApplicantStatus fact with a <br>
&gt; &gt; &quot;Denied&quot; reason. At this point I would expect that the original <br>&gt; &gt; ApplicantStatus fact, with an &quot;Approved&quot; reason, would be retracted, <br>&gt; &gt; since the conditions under which it was inserted are no longer true. <br>
</div></div>&gt; &gt; This is not what I am observin!
 g, howe
ver. I am finding <br><div class="Ih2E3d">&gt; &gt; ApplicantStatus facts with both reasons in working memory at the end <br>&gt; &gt; of the rules run. Should &quot;not&quot; work as I expect with regard to <br>&gt; &gt; inserting a fact via insertLogical()? Or is this a known limitation, <br>
&gt; &gt; or simply the way it is designed to work? <br>&gt; &gt; Thanks, <br>&gt; &gt; -Hans_______________________________________________ <br>&gt; &gt; rules-users mailing list <br>&gt; &gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a> <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; _______________________________________________ <br>&gt; rules-users mailing list <br>
&gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">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> </div>
</blockquote></div>
<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><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>