[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] How to store my workflow model to this structure

I want to make a workflow designer by GMF,now the question is

(1)I want to get the *.XPDL structure as follows:
<package>
   <processes>
         <process1/>
                   <nodes>
                               <node1/>
                                <node2/>
                    </nodes>
                   <connections>
                             <connection1/>
                              <connection2/>
                   </connections>
        <process2/>
  </processes>
<package>

but when I use GMF to generate the model,edit and digram three plugins(my model.ecore is complete generated by <TC-1025_schema_10_xpdl.xsd>),
I could only get he *.XPDL structure as follows:
<package>
<process1/>
<node1/>
<node2/>
<connection1/>
<connection2/>
<process2/>
<package>


because in GMF ,the model levels corresponds with the view levels ,there are just two levels(process,node/connection) in view,
so the model can't get the pairs of <processes/> <nodes/><connections/>.


I have try the "http://wiki.eclipse.org/Diagram_Partitioning";, but it's not what I want.
I want just a editor to every process and store them to one Package.XPDL


(2)In GMF,the model and view are separated to two XML files, but in workflow ,I just want a *.XPDL to store them.
I have try to use "Same File For Diagram And Model" in gmfgen, but it's just simply combine the two XML files(like "<package/><<notation/>".
And in workflow Schema, the XML should combine the view info into model info
(like "
<package>
<processes>
<process1/>
<nodes>
<node1 Xcoordinate="13" Ycoordinate="34"/>
<node2/>
</nodes>
<connections>
<connection1/>
<connection2/>
</connections>
<process2/>
</processes>
<package>
")