Hi,
 i have a rule like this.

LINE 0:   ( defclass bean TestBean )
LINE 1: (defrule test
LINE 2: (bean (OBJECT ?o&:(eq 500 (?o getAmount) ) ) )
LINE 3: =>
LINE 4: ( printout t "ok" )
LINE 5:    )

        In the above rule if the method getAmount return a int the rule works fine
, but if i give the LINE 2: like this , (bean (OBJECT ?o&:(> 500 (?o
getAmount) ) ) )
      i.e, iam checking for greaterthan , its not working even though the
method getAmount is return the value more than 500.
And the method is just hard coded.
        public int getAmount(){
                return 550;
        }

What ever return type i test with its not working .

regards,
vijay.

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