OK, answers my question :)<br><br>It is on the &quot;to do&quot; list already.<br><br><div class="gmail_quote">On 8 April 2011 13:11, Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 08/04/2011 12:39, Geoffrey De Smet wrote:<br>
&gt; Related to the modify expression,<br>
&gt; I &#39;ve always wondered about this code:<br>
&gt;<br>
&gt; rule &quot;MyRule&quot;<br>
&gt;     when<br>
&gt;       $p : Person(name = &quot;Yoda&quot;)<br>
&gt;     then<br>
&gt;       modify ($p) {<br>
&gt;         setAge(300)<br>
&gt;       }<br>
&gt; end<br>
&gt;<br>
&gt; Doesn&#39;t this create an infinite loop? (In my experience it does or at<br>
&gt; least it takes a lot longer)<br>
&gt; Because the modify ($p) schedules any rule using a Person back on the<br>
&gt; agenda to be re-evaluated,<br>
&gt; so also that rule, which is evaluated and executed again, modifying $p<br>
&gt; again, ... hence the infinite loop?<br>
</div>It would, unless you have slot specific - which Jess does. Slot specific<br>
is something I really want to add, I think it will resolve a lot of<br>
recursion problems and make Drools a lot easier to use. I took the slot<br>
specific problem and genericsed it further for &quot;slot listeners&quot;. I<br>
discussed this here:<br>
<a href="http://blog.athico.com/2010/07/slot-specific-and-refraction.html" target="_blank">http://blog.athico.com/2010/07/slot-specific-and-refraction.html</a>. I<br>
think Laune added some refinements to this in a mailing list entry<br>
somewhere.<br>
<font color="#888888"><br>
Mark<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</div></div></blockquote></div><br>