[rules-users] Re-insert modified instance of same fact and Truth maintenance

Mark Proctor mproctor at codehaus.org
Tue May 24 10:51:22 EDT 2011


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 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/20110524/017ef5d1/attachment.html 


More information about the rules-users mailing list