This content has been marked as final.
Show 3 replies
-
1. Re: Delegate config map of lists
kukeltje May 27, 2009 12:26 PM (in response to kevhender)correct. afaik, the 'value' can only contain Strings, or the likes, no maps, lists etc...
-
2. Re: Delegate config map of lists
kevhender May 27, 2009 3:11 PM (in response to kevhender)Can you clarify what this part of the documentation means?
maps. In this case, each element of the field-element is expected to have one subelement key and one element value. The key and element are both parsed using the conversion rules recursively. Just the same as with collections, a conversion to java.lang.String is assumed if no type attribute is specified.
(from http://docs.jboss.org/jbpm/v3/userguide/jpdl.html#configtypefield)
I would have figured that parsing the elements recursively meant that the elements could any type, and that they'd be parsed like a base element. Maybe I'm misinterpreting what the docs are saying?
Thanks again.... -
3. Re: Delegate config map of lists
kukeltje May 27, 2009 6:08 PM (in response to kevhender)Yes, you are 'misinterpreting' the docs. You can pass in maps, collections etc, but each value can only be a simple type (String, Integer etc, but no map, list, collection)
You *can* pass in arbitrary complex XML structures that will be converted to Document if you use that as the type in your class