[rules-users] Drools Multi level map access(Drools 5.5)

Mario Fusco mario.fusco at gmail.com
Mon Oct 7 13:53:58 EDT 2013


Hi,

due to generic erasure we cannot figure out that the outer map contains a
second map as value. That's why you have to explicitly downcast the value
returned by the first map. For instance this should work:

((Map) field[ "parentKey" ])[ "childKey" ]

I hope this helps,
Mario



--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Multi-level-map-access-Drools-5-5-tp4026284p4026287.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list