Hello,

I have a problem that looks easy, but for me it is BIG.

In jess, i have the following template

(deftemplate goal
 (slot name(type String))
)

when i use the console and type

(assert(goal(name "walk")))

then the goal walk will be asserted. So on everthing goes well, but when i
try the same from java
So jess has still the template, but i want to assert the goal from java.

I use this method:

 private void setGoal()
 {
  try
  {
   rete.executeCommand("(assert(goal(name \"walk\")))");
  }
  catch(JessException je){je.printStackTrace();}
 }

and  this gives an exception i don`t really understand. The exception is:

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.
  Program text: ( assert ( goal ( name "discover world" ) ) )  at line 1.
        at jess.Funcall.execute(Funcall.java:258)
        at jess.FuncallValue.resolveValue(FuncallValue.java:33)
        at jess.Fact.expand(Fact.java:241)
        at jess.Assert.call(Funcall.java:309)

 Anybody an idea ???,

Thanks in advance,

Sander

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