Hi, I have a simple question.
If I have the next simple rule in a script:
(defrule I-cant-see-the-object
(not (element (name "object")))
=>
(assert (no_object))
)
where element is a bean that comes from a Java program and name is a slot.
I clear the kb of elements with rete.executeCommand("(undefinstance *)")
If the previous rule is fired once, it will not be fired again because the
element wich name is "object" has fired the rule even though I had
cleared the kb of elements. I mean, If I include a new element with name
"object" it won't fire the rule. I suppouse that Jess takes the new income
as if were the one that fired the rule previously.
I understand this property with simple asserted facts (because support
the refraction property of an expert system), but it's not clear for me
why a bean that has bean removed with undefinstance and included again in
the kb is not recognized by the rule as a new fact.
How can I activate the rule with the new income that comes in the shape
of a bean without Jess thinks that is the same fact?
Thank you in advance...
Calicrates.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
JESS: A question about the knowledge base and rules..
Calicrates Policroniades Borraz Wed, 1 Mar 2000 11:44:12 -0800
- Re: JESS: A question about the knowledge b... Calicrates Policroniades Borraz
- Re: JESS: A question about the knowle... ejfried
- Re: JESS: A question about the kn... Calicrates Policroniades Borraz
- Re: JESS: A question about the knowle... Calicrates Policroniades Borraz
- Re: JESS: A question about the knowle... Calicrates Policroniades Borraz
