Hello all,
I have defined a rule with the shadow facts TimePoint like this:
(defrule myRule1
(TimePoint (name ?name1)(OBJECT ?tp1-obj))
(TimePoint (name ?name2)(OBJECT ?tp2-obj))
(test (call ?*myTest* check ?tp1-obj ?tp2-obj))
=>
...)
*myTest* is a JAVA Object with a check function.
Now, lets say the rule will be activated (the result of check is true).
In my application it can happen, that the result of the check function
becomes false, independend(!) of the facts in the rule.
Now, if a fact changes, the following happens:
- the check function is called with the OLD values - before the fact has
changed(!) -, if the result is true, then the rule is deactivated, the fact
is changed, the check function is called again, and if true, the rule is
activated again
- if the check function with the OLD values is false, then the rule will NOT
be deactivated. The fact is changed, the check function is called again. It
can again be false and the rule will NOT be deactivated.
Is this a bug or a feature?
Thanks,
Wilfried
Wilfried Bohlken
Arbeitsbereich Kognitive Systeme
FB Informatik
Universitaet Hamburg
Vogt-Koelln-Str. 30
22527 Hamburg
Germany
Tel.: +49-40-42883-2577
--------------------------------------------------------------------
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].
--------------------------------------------------------------------