[jboss-jira] [JBoss JIRA] Created: (GPD-156) GenericElementXmlAdapter doesnt add child nodes

Imran Naqvi (JIRA) jira-events at lists.jboss.org
Tue Sep 4 18:58:11 EDT 2007


GenericElementXmlAdapter doesnt add child nodes
-----------------------------------------------

                 Key: GPD-156
                 URL: http://jira.jboss.com/jira/browse/GPD-156
             Project: JBoss jBPM GPD
          Issue Type: Bug
          Components: jpdl
    Affects Versions: jBPM JPDL Designer 3.1.0.CR
            Reporter: Imran Naqvi
         Assigned To: Koen Aers


If you have a template such as:
<?xml version="1.0"?> 

<process-definition name="Movie" version="11"> 
<start-state name="Start"> 
<transition to="Get MPEG Properties" /> 
</start-state> 
<node name="Get MPEG Properties"> 
<action class="SomeActionHandler"><send>010901</send> 
<keys> 
<entry> 
                                            <key>VarName</key> 
                                            <value>1122</value> 
                                </entry> 
</keys> 
<receive> 
<element>030101</element> 
<element>030102</element> 
</receive> 
</action> 
<transition to="End"/> </node> 
<end-state name="End" /> 

The nested Generic Elements arent added by the adapter. The reason for this is that the GenericElementXmlAdapter.doModelAdd() doesnt do anything. We need to add the following code to this method:

                                           String type = child.getElementType();
		SemanticElement jpdlElement;
		jpdlElement = getSemanticElementFactory().createById("org.jbpm.gd.jpdl.genericElement");
		child.initialize(jpdlElement);
		GenericElement genericElement= (GenericElement )getSemanticElement();
		genericElement.addGenericElement((GenericElement)jpdlElement);



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list