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

jwillans2 james.willans at ceteva.com
Wed Feb 9 06:12:14 EST 2011


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?  Do these values explicitly need to be
retracted to avoid them accumulating in WM?  Or is it the case that previous
values are automatically retracted on recalls to ".evaluate" if they are
!equals?

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.



More information about the rules-users mailing list