I think Beth Zhang wrote:
> (defrule rule-yes-match
> ?a <- (eq ?a phase)
> ?b <-(eq ?b yes)
> ?choice <-(stage yes-or-no)
> =>
> (printout t "YES" crlf)
> (retract ?choice ?a ?b))
>
> It seems rule activiation was interrupted during the Rete execution, but no Rete
>exception
> threw.
> How should i modify the test.clp file so I can get expected result.
>
>
*Sigh*. OK, everybody, say it with me: "Those things on the
left-hand-side of a rule are NOT function calls. They are patterns to
match." Are there any facts that look like '(eq ?X phase)'? No. Then of
course, the rule won't fire.
I can't tell exactly what you want this rule to do, so I can't fix it
for you. Perhaps you're looking for ?a <- (phase ?) and ?b <- (value ?) ?
I'll say this again, too: "Before you try embedding Jess in a
complicated system, like a servlet, make sure your rule base works!"
Use the debugging facilities, like the (watch) command, to trace rule
activations and firings. Use (run 1) to step through one rule at a
time, and use the (facts) command in between to examine the fact-base
at each step.
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (510) 294-2154
Sandia National Labs FAX: (510) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------