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?