<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 08/04/2011 13:17, Michael Anstis wrote:
<blockquote
cite="mid:BANLkTimL=E9wfFyvUgNHDqVi1SzYkASFnQ@mail.gmail.com"
type="cite">OK, answers my question :)<br>
</blockquote>
The limitation is it will only work for direct accessors. Anything
else and it gets too hard and expensive to maintain and track.<br>
<br>
Mark<br>
<blockquote
cite="mid:BANLkTimL=E9wfFyvUgNHDqVi1SzYkASFnQ@mail.gmail.com"
type="cite"><br>
It is on the "to do" list already.<br>
<br>
<div class="gmail_quote">On 8 April 2011 13:11, Mark Proctor <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></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>
> Related to the modify expression,<br>
> I 've always wondered about this code:<br>
><br>
> rule "MyRule"<br>
> when<br>
> $p : Person(name = "Yoda")<br>
> then<br>
> modify ($p) {<br>
> setAge(300)<br>
> }<br>
> end<br>
><br>
> Doesn't this create an infinite loop? (In my experience
it does or at<br>
> least it takes a lot longer)<br>
> Because the modify ($p) schedules any rule using a
Person back on the<br>
> agenda to be re-evaluated,<br>
> so also that rule, which is evaluated and executed
again, modifying $p<br>
> 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 "slot
listeners". I<br>
discussed this here:<br>
<a moz-do-not-send="true"
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 class="h5"><br>
<br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>