The "Expert" manual says:
insertLogical(new *Something*()); is similar to insert, but the object will
be automatically retracted when there are no more facts to support the truth
of the currently firing rule.
In other words, as soon as the condition of that rule is not true any more,
the Engine retracts the logically inserted fact. This is commonly referred
to as "truth mainenance".
-W
On 14 March 2011 08:38, asutosh_pandya <asutosh.pandya(a)cognizant.com> wrote:
Hello Team,
Sorry for asking very simple question but didn't found the answer in the
Mailing List.
Would like to know the core importance of insertLogical in Drools. What is
the purpose of using insertLogical and how it is different from update()
and
insert() statements in Drools?
Thanks in advance,
Asutosh
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/What-is-insertLogical...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users