hi
I have developed a Web app which deploys simple use of jess statements, i have stored the jess statements in a clp file which is called by my
servlet as follows
******
BufferedReader br = new BufferedReader(new FileReader("points.clp"));
Jesp j = new Jesp(br, rete);
******
however when i come to retirieve parameters from the clp file it doesnt happen i get the following error message
Exception in
thread "main" Jess reported an error in routine Context.getVariable
********************************************************
while executing (call ?result).
Message: No such variable result.
Program text: ( ?result ) at line 1.
at jess.Context.getVariable(Unknown Source)
at jess.Variable.resolveValue(Unknown Source)
at jess.v.call(Unknown Source)
at jess.ep.a(Unknown Source)
at jess.Funcall.execute(Unknown Source)
at jess.Jesp.a(Unknown Source)
at jess.Jesp.for(Unknown Source)
at jess.Jesp.parse(Unknown Source)
at jess.Rete.executeCommand(Unknown Source)
at jess.Rete.executeCommand(Unknown Source)
at testjess.main(testjess.java:31)
Press any key to continue...
*****************************************************
bear in mind i have followed the procedure u recommended for sarah which was
Value result = engine.executeCommand("(+ 2 2)");
however since in my case the variable im retrieving is defined in the .clp file and is refered to as result
***********
Value result=rete.executeCommand("(?result)");
**********
can u help me plz
thanks greatly appreciated