This content has been marked as final.
Show 1 reply
-
1. Re: Drools: How to retrieve value out of HashMap
beve Nov 4, 2008 11:02 AM (in response to wili)Hi,
I think the following should work:rule "PrintMap" no-loop when $m : Message () $map : HashMap () from $m.body.get() then System.out.println("Print Map " + $map); end
What excactly is org.jboss.soa.esb.message.defaultEntry ?
This is the default location for an object added to the body.
For example if you call message.getBody.add("some string"); that object can be accessed by either
message.getBody().get();
or
message.getBody().get("org.jboss.soa.esb.message.defaultEntry");
Regards,
/Daniel