[rules-users] What is insertLogical in drools?

Wolfgang Laun wolfgang.laun at gmail.com
Mon Mar 14 03:54:57 EDT 2011


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 at 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-in-drools-tp2675527p2675527.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/20110314/fa6c13bd/attachment.html 


More information about the rules-users mailing list