Hi
this is my problem:
if I put the jess command in try/catch block the program execution
didn't see the run command but only the facts and the rules declaration,
but if I write "class ArrayRuleT throws JessException" the execution see
the run command!

class ArrayRuleT {
public static void main (String[] unused) {...various declaration...
  try{  Rete r=new Rete();
          r.reset();
           ...definition of facts...

        r.executeCommand(
  "(defrule TogliDoppi "+
     "?fact0 <- (CD X ?y ? ? ?) "+
     "?fact1 <- (CD ?x X ? ? ?) "+
     "?fact2 <- (CD ?x ?y ? ? ?)"+
  "=>"+

  "(retract ?fact0)"+
  "(retract ?fact1)"+
     "(printout t 'genere e artista ignoto matcha con' ?x ?y crlf))");

r.run();


}//end of try
catch(JessException exx){exx.printStackTrace();}
}}

why???
R.


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