[jboss-jira] [JBoss JIRA] Closed: (GPD-156) GenericElementXmlAdapter doesnt add child nodes
Koen Aers (JIRA)
jira-events at lists.jboss.org
Mon Oct 15 10:28:15 EDT 2007
[ http://jira.jboss.com/jira/browse/GPD-156?page=all ]
Koen Aers closed GPD-156.
-------------------------
Resolution: Done
The fix was applied to HEAD. Thanks for the contribution and sorry for the delay. Feel free to reopen if there are still problems.
> 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
> Fix For: jBPM jPDL Designer 3.1.1
>
>
> 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