(not ... is true when no facts match.  "x" would be undefined in this case.
You could probably do this instead...

        (LOAN_AMOUNT ?x&:(>= ?x 5000)

Unless, what you are trying to do is display a message when there are no
LOAN_AMOUNT facts < 5000.  Then you can not reference a LOAN_AMOUNT fact in
the conclusion because there won't be any to reference.

-----Original Message-----
From: Thummalapenta, Ravikiran
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 1:37 PM
To: '[EMAIL PROTECTED]'
Subject: JESS: exception


Hi , 
when I try to run the attached file , I am getting the following exception 
 <<test1.clp>> 

Jess> (batch test1.clp)
Jess reported an error in routine Context.getVariable
        while executing (str-cat " x=" ?x " is not < 5000")
        while executing (printout t (str-cat " x=" ?x " is not < 5000")
crlf)
        while executing defrule x
        while executing (run)
        while executing (batch c:\opt\WFC\rules\test1.clp).
  Message: No such variable x.
  Program text: ( batch c:\opt\WFC\rules\test1.clp )  at line 1.
        at jess.Context.getVariable(Context.java:191)
        at jess.Variable.resolveValue(Variable.java:45)
        at jess.StrCat.call(StringFunctions.java:45)
        at jess.FunctionHolder.call(FunctionHolder.java:37)
        at jess.Funcall.execute(Funcall.java:247)
        at jess.FuncallValue.resolveValue(FuncallValue.java:33)
        at jess.Printout.call(Funcall.java:412)
        at jess.FunctionHolder.call(FunctionHolder.java:37)
        at jess.Funcall.execute(Funcall.java:247)
        at jess.Defrule.fire(Defrule.java:205)
        at jess.Activation.fire(Activation.java:65)
        at jess.Agenda.run(Agenda.java:126)
        at jess.Agenda.run(Agenda.java:102)
        at jess.Rete.run(Rete.java:752)
        at jess.HaltEtc.call(Funcall.java:1430)
        at jess.FunctionHolder.call(FunctionHolder.java:37)
        at jess.Funcall.execute(Funcall.java:247)
        at jess.Jesp.parseAndExecuteFuncall(Jesp.java:1520)
        at jess.Jesp.parseSexp(Jesp.java:180)
        at jess.Jesp.parse(Jesp.java:61)
        at jess.Batch.batch(Batch.java:42)
        at jess.Batch.call(Batch.java:57)
        at jess.FunctionHolder.call(FunctionHolder.java:37)
        at jess.Funcall.execute(Funcall.java:247)
        at jess.Jesp.parseAndExecuteFuncall(Jesp.java:1520)
        at jess.Jesp.parseSexp(Jesp.java:180)
        at jess.Jesp.parse(Jesp.java:61)
        at jess.Main.execute(Main.java:136)
        at jess.Main.main(Main.java:23)
Jess>

Thanks,
Ravikiran

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