[jboss-user] [JBoss jBPM] - config-type field confusion

simonbaker do-not-reply at jboss.com
Wed Jun 4 13:48:13 EDT 2008


The manual section "18.2.3.1. config-type field" gives an example of list:

anonymous wrote : 
  | lists, sets and collections. In that case each element of the xml-content is consitered as an element of the collection and is parsed, recursively applying the conversions. If the type of the elements is different from java.lang.String this can be indicated by specifying a type attribute with the fully qualified type name. For example, following snippet will inject an ArrayList of Strings into field 'numbers'
  | 
  | 
  |   | <numbers>
  |   |   <element>one</element>
  |   |   <element>two</element>
  |   |   <element>three</element>
  |   | </numbers>
  |   | 
  | 
  | The text in the elements can be converted to any object that has a String constructor. To use another type then String, specify the element-type in the field element ('numbers' in this case). 
  | 

The English is confusing to me, and no example is given for other than String type I think.

Can someone clarify with an example of different types?

Thanks
SB

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155777#4155777

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155777



More information about the jboss-user mailing list