On 9 February 2011 12:12, jwillans2 <span dir="ltr">&lt;<a href="mailto:james.willans@ceteva.com">james.willans@ceteva.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello,<br>
<br>
My understanding was that facts evaluated using the &quot;from&quot; statement were<br>
not really facts and therefore were not stored in WM, therefore in:<br>
<br>
$event1Provider : Event1Provider()<br>
Event1(..) from $event1Provider.evaluate()<br>
<br>
the value of $event1Provider.evaluate() will get gc&#39;ed (providing no other<br>
object has a handle to it).  However I read in the forum topic &quot;Why Using<br>
&quot;from&quot; Always Return A New Fact?&quot; a post by Edson Tirelli which seemed to<br>
indicate that fact handles are created for values returned from the &quot;from&quot;<br>
statement, are these stored in WM?</blockquote><div>No.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">  Do these values explicitly need to be<br>

retracted to avoid them accumulating in WM?</blockquote><div>No.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">  Or is it the case that previous<br>

values are automatically retracted on recalls to &quot;.evaluate&quot; if they are<br>
!equals?<br></blockquote><div>No. &quot;retract&quot; is only possible after an &quot;insert&quot;.<br><br>-W <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Thanks,<br>
<br>
James<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/from-facts-working-memory-tp2457718p2457718.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/from-facts-working-memory-tp2457718p2457718.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>