I am developing an application that involves a large number of transient facts. Addition of facts is obviously not a problem; deletion is a bit tricky. I was trying to make use of the logical construct to remove facts.
for example, (defrule yo
(logical (foo bar))=> (assert .......)So by retracting (foo bar), I can retract (I think) arbitrary number of facts.. By using this technique, I have to remember just one fact-id to delete a large number of facts. But there is a problem with the "logical" construct which has been reported and fixed in the 6.1p7 version
http://www.mail-archive.com/[EMAIL PROTECTED]/msg05983.html
The other ways of doing it (which I know about) are:
1. To store the fact-id/of all the facts and use the retract command
2. Somehow get hold of the string representation of the facts and use the retractString command.
Is there a better way of removing facts.
I own the book "Jess in Action" and therefore have a 6.1p4 version of Jess. Is there a legitimate way of getting my hands on Node1RTL.class which fixes the bug with the logical construct.
peace Mithun Sheshagiri
-------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
