Oops, I simply forgot the ( ) around the new and the Jess editor didn't see an error there. JFL
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: JESS: adding shadow facts in JessDate: Thu, 9 Aug 2007 15:30:58 -0400 Hi, I'm trying to figure why the ruel2 doesn't fire : (defclass SFA ca.usherbrooke.astus.prototype.pedagogue.SFA) (deftemplate x (slot y) ) (defrule rule1 (x) => (printout t "rule1 fired") (add new SFA) ) (defrule rule2 (SFA) => (printout t "rule2 fired") ) (reset) (assert (x (y 1))) (run) Here is the SFA class, but it's probably irrelevant. public class SFA { private int a; private int b; public SFA() { a = 3; b = 4; } public int getA() { return a; } public int getB() { return b; } } Soyez parmi les premiers à essayer Windows Live Mail. _________________________________________________________________ Soyez parmi les premiers à essayer Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d