Quote from the Expert manual:
"A Working Memory may operate in two assertion modes, i.e., equality
or identity, with identity being the default."
Search for the keyword to see all references; you'll need "equality".
On 05/12/2013, Sonata <plz.write.to(a)gmail.com> wrote:
Hi, I have a rule that on its RHS, it creates new objects with
and inserts them.
How do you check if the object already exists in drools memory?
I am thinking to use kcontext.getKnowledgeRuntime().getObjects() in the RHS
to loop for all the objects and stop inserting if an object with same
Is there any better way?
May be like using query?
Drools ver is 5.5.0.Final
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list