[rules-users] length property not found on strings

agori lagoria at alice.it
Wed Jan 14 15:32:27 EST 2009


This MVEL expression doens't compile in Drools 4:

when 
  MyObject(stringProperty.length == 5) 
then
...


So I have to rewrite in

when 
  obj : MyObject()
  String(length == 5) from obj.stringProperty
then
...


I hope that Drools 4 can do it much better that this crap. Is there a
better workaround?




More information about the rules-users mailing list