Thanks a lot,
The problem was, that i loaded the jess file with the template for "goal" in
a behavior. This behavior wasn`t ready,
when i called the rete.executeCommand. So the deftemplate wasn`t known yet
by the Rete object.
Sander
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 12:42 AM
Subject: Re: JESS: Problem Asserting from Java
> 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]
> --------------------------------------------------------------------
>
>
--------------------------------------------------------------------
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]
--------------------------------------------------------------------