I think Sander Rensen wrote:

>    rete.executeCommand("(assert(goal(name \"walk\")))");
...
> 
> Jess reported an error in routine Funcall.execute
>         while executing (name "discover world")
>         while executing (assert (MAIN::goal (name "discover world"))).
>   Message: Unimplemented function name.

deftemplates belong to a specific instance of the Rete class. You're
getting the error below because the Rete object doesn't include a
definition for the "goal" deftemplate, so it's assuming that goal is
an ordered fact type. Make sure you've defined the template in that
particular object, not in some other instance of Rete, and that you've
defined the template before doing the assertion, and that you've not
accidentally cleared the template after defining it (with Rete.clear()).

---------------------------------------------------------
Ernest Friedman-Hill  
Science and Engineering PSEs        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to