[rules-users] "from" facts - working memory

Wolfgang Laun wolfgang.laun at gmail.com
Wed Feb 9 06:33:32 EST 2011


On 9 February 2011 12:12, jwillans2 <james.willans at ceteva.com> wrote:

>
> Hello,
>
> My understanding was that facts evaluated using the "from" statement were
> not really facts and therefore were not stored in WM, therefore in:
>
> $event1Provider : Event1Provider()
> Event1(..) from $event1Provider.evaluate()
>
> the value of $event1Provider.evaluate() will get gc'ed (providing no other
> object has a handle to it).  However I read in the forum topic "Why Using
> "from" Always Return A New Fact?" a post by Edson Tirelli which seemed to
> indicate that fact handles are created for values returned from the "from"
> statement, are these stored in WM?

No.


>  Do these values explicitly need to be
> retracted to avoid them accumulating in WM?

No.


>  Or is it the case that previous
> values are automatically retracted on recalls to ".evaluate" if they are
> !equals?
>
No. "retract" is only possible after an "insert".

-W

>
> Thanks,
>
> James
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/from-facts-working-memory-tp2457718p2457718.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110209/84111e2e/attachment.html 


More information about the rules-users mailing list