On 24/05/2011 09:51, Abhay B. Chaware wrote:

Could be a basic question, but thought I should get clarified.

I insert a fact say, a Computer object with some attributes ( hdd=10GB ) set, in working memory. Then I have a rule that checks if a Computer with 10GB hdd is inserted .. if yes, then it does a logicalInsert of an Alert object with computerId = this computer’s id.

Now I would like to re-insert the same fact with HDD changed to ‘20gb’ and would like drools to automatically retract the Alert for this computerId .. how do I achieve this ?

logical insertions are immutable. The act of calling "modify" will state the fact, losing all justifications.

Mark

-abhay

 

 


This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users