<div>The Rete algorithm imposes severe restrictions on the way fact updates may be performed and the when and where these changes are advertised to the inference engine.</div><div><br></div><div>The picture that&#39;s in my mind is one of many evaluations of boolean expressions in parallel on many fact objects, partially being held up due to lack of additional fact matches or true properties, and partially waiting for being &quot;fired&quot;; and such evaluations are &quot;snapshot&quot; as data structures in the Engine&#39;s memory. Due to an announcement of a change in one fact such recorded evaluations may have to be retracted and retraced, reevaluating conditions with their unchanged partners. But some of that partner data may have been represented in Engine memory, and this is what matters for the reevaluation - not the actual content of that partner&#39;s object data.</div>
<div><br></div><div>-W</div><div><br></div><div><br></div><div>On 10 March 2012 19:38, Reinis <span dir="ltr">&lt;<a href="mailto:drools@orbit-x.de">drools@orbit-x.de</a>&gt;</span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Closing this thread!<br>
<br>
Error was in this code-block:<br>
<br>
{code}<br>
fooLeft.setBar(fooRight.getBar());<br>
fooRight.setBar(barLeft);<br>
session.update(fooLeftFact, fooLeft);<br>
session.update(fooRightFact, fooRight);<br>
{code}<br>
<br>
following fix makes the error go away:<br>
<br>
{code}<br>
fooLeft.setBar(fooRight.getBar());<br>
session.update(fooLeftFact, fooLeft);<br>
fooRight.setBar(barLeft);<br>
session.update(fooRightFact, fooRight);<br>
{code}<br>
<br>
Pull request retracted and I have a bad taste in my mouth since I have no technical/logical explanation why so.<br>
<br>
Thank you guys for all the help!<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 03/09/2012 02:21 PM, Wolfgang Laun wrote:<br>
<br>
&gt; Works also with 5.4.0.Beta2.<br>
&gt;<br>
&gt; Does this really fail in the context of Drools&#39; unit tests?<br>
&gt;<br>
&gt; -W<br>
&gt;<br>
&gt;<br>
&gt; On 9 March 2012 12:23, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a><br>
&gt; &lt;mailto:<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Can&#39;t reproduce the described effect with 5.3.0.Final, will look at<br>
&gt;     5.4.0.Beta2 later today.<br>
&gt;<br>
&gt;     As far as I can see, the test case asserts the correct result which<br>
&gt;     Drools produces anyway?<br>
&gt;<br>
&gt;     -W<br>
&gt;<br>
&gt;     On 09/03/2012, ge0ffrey &lt;<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a><br>
&gt;     &lt;mailto:<a href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;&gt; wrote:<br>
&gt;     &gt; Great work Reinis!<br>
&gt;     &gt;<br>
&gt;     &gt; --<br>
&gt;     &gt; View this message in context:<br>
&gt;     &gt;<br>
&gt;     <a href="http://drools.46999.n3.nabble.com/rules-users-Drools-Planner-Hard-constraint-appears-to-be-ignored-tp3777209p3812319.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Drools-Planner-Hard-constraint-appears-to-be-ignored-tp3777209p3812319.html</a><br>

&gt;     &gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; rules-users mailing list<br>
&gt;     &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a> &lt;mailto:<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&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;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;<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>
<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>