[rules-users] compare string and int in LHS

brenner daniel.brenner at isg-stuttgart.de
Fri Feb 8 03:24:18 EST 2008


Hi,

I have a class, wich contains a string value. This value is in some use
cases an integer. 
For this use case I want to convert (parse) the string typ to an integer
because I want that the following rule matches: 

rule
  when
    t : Test(value <= 1)
  then
    System.out.println(t)
end


class Test {
   
   String value;

   getValue();
   setValue();

}

Have anyone a solution or some help for me?
Is that possible what I want to do?

Thanks
Daniel
-- 
View this message in context: http://www.nabble.com/compare-string-and-int-in-LHS-tp15337728p15337728.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list