This one is a simple typo. The line (assert (productx -ok)) has a space between 'productx' and '-ok'. JESS interprets this as an ordered fact with name 'productx' and multislot value '-ok'. Since it appears that a deftemplate for 'productx' doesn't appear in your file, and you don't have a '(require < >)' statement pointing to a template file, JESS will not see a conflict, and so will create an implied deftemplate for this fact. Richard Long Technical Architect Gestalt,LLC 3505 Lake Lynda Drive Orlando, FL 32817 407-581-6390 x1508 (office) 407-491-8628 (cell) 407-581-6391 (fax) [EMAIL PROTECTED]
________________________________ From: [EMAIL PROTECTED] on behalf of m u Sent: Wed 5/17/2006 7:46 AM To: jess-users@sandia.gov Subject: JESS: warning message Hi, I'm using Eclipse and the JESS plugin. I 've defined a rule that will assert a fact when it fires. An example of the rules is as below: (defrule productx (productx (price ?p &: (< ?p 10)) (quality ?q &: (> ?q 5))) => (assert (productx -ok))) But I've got the following warning message for all RHS of the rules at the "(assert (productx-ok)))" creating implied deftemplate at token 'productx-ok' What is the wrong with my code? regards irejai
<<winmail.dat>>