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-ch...
Sent from the Drools: User forum mailing list archive at
Nabble.com.