[rules-users] How to write Drools rule basing on a changed property?
kapokfly
ivan.jiang.ww at foxmail.com
Wed Nov 9 11:06:35 EST 2011
Yes, that is a Map base approach I am thinking.
Now more questions:
global Map<Object, Object> oldObjectContext
WHEN
$person: Person()
eval(((Person)oldObjectContext[$name]).jobTitle == $person.name)
THEN
Q1: without eval, the compiler will report error
Q2: without type cast, the compiler will also report error
Any suggestion how we can make it easier?
Thanks...
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-write-Drools-rule-basing-on-a-changed-property-tp3492926p3493956.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list