Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to store my workflow model to this structure
How to store my workflow model to this structure [message #220001] Wed, 25 February 2009 14:42 Go to next message
Eclipse UserFriend
Originally posted by: jiezi506.gmail.com

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>
")
Re: How to store my workflow model to this structure [message #220008 is a reply to message #220001] Wed, 25 February 2009 15:27 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello jiezi,

If you whant to use arbitrary element from the underlying resource (not a
root one) as a diagram root element then you can try using "Initialize ..
diagram" popup menu action on exising *.XPDL file.

To use some domain model properties as a visual one (like: position/colors)
you have to write custom code/modify code generation templates and this is
not an easy task.

-----------------
Alex Shatalin
Re: How to store my workflow model to this structure [message #220022 is a reply to message #220008] Wed, 25 February 2009 16:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jiezi506.gmail.com

Alex Shatalin 写道:
> Hello jiezi,
>
> If you whant to use arbitrary element from the underlying resource (not
> a root one) as a diagram root element then you can try using "Initialize
> .. diagram" popup menu action on exising *.XPDL file.
>
> To use some domain model properties as a visual one (like:
> position/colors) you have to write custom code/modify code generation
> templates and this is not an easy task.
>
> -----------------
> Alex Shatalin
>
>
I sorry I'm not particularly aware of the " If you whant to use
arbitrary element from the underlying resource (not
a root one) as a diagram root element then you can try using "Initialize
.. diagram" popup menu action on exising *.XPDL file."
I only have these files:
TC-1025_schema_10_xpdl.xsd
my.ecore
my.genmodel
my.gmfgraph
my.gmftool
my.gmfmap
my.gmfgen
and after debug, GMF create a model file and a view file , I want to
combine the two files into one *.XPDL file ,
but I haven't done it.
So you says using "Initialize .. diagram" popup menu action on exising
*.XPDL file."
which type of editor is used to open the exising *.XPDL file" and find
the "Initialize .. diagram" popup menu?
Re: How to store my workflow model to this structure [message #220032 is a reply to message #220022] Wed, 25 February 2009 17:39 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello jiezi,

> So you says using "Initialize .. diagram" popup menu action on
> exising *.XPDL file."
Right. You have to create your diagram definition, generate code with GMF,
ececute new instance of eclipse (just like you do to create new instance
of diagram) and in this instance get existing *.XPDL file with the model
information in it and try to initialize new diagram for it using popup menu
action..

> which type of editor is used to open the exising *.XPDL file" and find
GMF-generated diagram editor editing selected root diagram element from *.XPDL
file.

-----------------
Alex Shatalin
Re: How to store my workflow model to this structure [message #220087 is a reply to message #220032] Thu, 26 February 2009 17:20 Go to previous message
Eclipse UserFriend
Originally posted by: jiezi506.gmail.com

Alex Shatalin 写道:
> Hello jiezi,
>
>> So you says using "Initialize .. diagram" popup menu action on
>> exising *.XPDL file."
> Right. You have to create your diagram definition, generate code with
> GMF, ececute new instance of eclipse (just like you do to create new
> instance of diagram) and in this instance get existing *.XPDL file with
> the model information in it and try to initialize new diagram for it
> using popup menu action..
>
>> which type of editor is used to open the exising *.XPDL file" and find
> GMF-generated diagram editor editing selected root diagram element from
> *.XPDL file.
>
> -----------------
> Alex Shatalin
>
>
Thank you ,finally I decide using GEF to make this workflow designers, I
have research some workflow designers,like TIBCO Studio and Java
Workflow Tooling Project in www.eclipse.org, they all choose gef+emf
instead of GMF ,maybe GMF have some problem with the WFMC XPDL Schema,
like how to construct the pairs of tags in the persistence file which
are hidden in GMF Diagram(e.g.<processes></processes>).
Previous Topic:User-configurable icons and shapes
Next Topic:[Announce] GMF 2.2.0 I200901150958 is available
Goto Forum:
  


Current Time: Thu Apr 25 05:41:32 GMT 2024

Powered by FUDForum. Page generated in 0.03253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top