On Jan 14, 2008, at 8:55 AM, Barlianti Vavorita wrote:
public void back()
{
try {
rete.executeCommand("(reset)");
rete.executeCommand("(assert(kembali jawaban-back))");
rete.executeCommand("(run)");
rete.eval("(facts)");
}
catch (JessException je) {
je.getMessage();
}
}
If there's an error, you'll never hear about it; that exception
handler doesn't display the message it fetches. Likewise, I don't
know if you're doing anything with the output from these function
calls, or if you're using Jess's "watch" function to see what's going
on, or even if you've confirmed that the Jess program itself actually
works, outside of your Java application. You just need to find
what's happening here, exactly, and then what to do will probably be
obvious.
public void back()
{
Rete r = new Rete();
try {
r.executeCommand("(reset)");
r.executeCommand("(assert(kembali jawaban-back))");
r.executeCommand("(run)");
Well, of course this one isn't going to do *anything*, since the
brand new Rete object hasn't loaded your rule file. If you don't load
the rules, they're obviously not going to be activated!
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.com
--------------------------------------------------------------------
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]
--------------------------------------------------------------------