Try doing a (reset) before the (run).
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Skeptic 2000
Sent: Friday, November 10, 2006 12:11 AM
To: [email protected]
Subject: JESS: First try with backward-chaining
Hi,
I tried for the first time to use backward-chaining and I can't figure
out
why this simple example don't work :
(deftemplate x
(declare (backchain-reactive TRUE))
(slot a)
(slot b)
)
(defrule printX
(x (b 12))
=>
(printout t "yeah!")
)
(defrule createX
(need-x (b ?y))
=>
(assert (x (a 3) (b ?y)))
)
(run)
Thanks !
_________________________________________________________________
Ne perdez pas de temps dans les files dÃ'attenteÃ... magasinez en
ligne.
http://magasiner.sympatico.msn.ca
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
--------------------------------------------------------------------
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]
--------------------------------------------------------------------