[jboss-dev-forums] [Design of JBoss jBPM] - Should GD 3.1 support complex action children?

jruud do-not-reply at jboss.com
Mon May 14 12:50:38 EDT 2007


I recently posted a similar message (http://www.jboss.org/index.html?module=bb&op=viewtopic&t=108375) on the "JBoss jBPM" forum, but I'm now posting it here hoping hoping to get more feedback:

Our custom actions are able to process complex (nested) children like in the example below (the parent... stuff): 

<node name="Cancel Bill">
  |   <action class="MyAction">
  |     <parent>
  |       <child>CANCEL</child>
  |     </parent>
  |   </action>
  | </node>

However, I'm a little confused as to how GD 3.1 deals with these complex elements (we're currently using the XML editor to modify them, but plan on adding custom property pages). 

Assuming I understand correctly, children of Delegation subclasses like Action are stored in a configInfoElements collection. However, I get the feeling that ConfigInfoElement may possibly not have been designed to deal with complex elements (for example because: ConfigInfoElementDomAdapter.doModelAdd(XmlAdapter) seems to be intentionally ignoring any children). 

In order to support complex structues like those above, does it make sense to try to make it work with the ConfigInfoElement approach (and extending it if necessary), or should I rather create my own semantic element and xml adaper to deal with the complex Action children? (please let me know if you need more info)

Thanks, John

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

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



More information about the jboss-dev-forums mailing list