Open GoogleCodeExporter opened 8 years ago
It always has been the idea of Spray to clearly separate domain model and
diagram model, so there is no support for this use case out of the box.
You can try to add a post processing step (e.g. when saving the diagram file)
where you read in the Graphiti diagram model as well as the domain model and
query the diagram values you need from diagram model and set them to the domain
model.
Another way could be to change the logic of your custom view parts to use both
diagram model as well as domain model (as in the diagram model there is the
link to the domain model element for each shape).
Original comment by de.abg.r...@gmail.com
on 17 Apr 2013 at 9:06
by the way, I posted a standalone example for post processing diagram and
domain model: http://groups.google.com/group/spray-dev/msg/3a6f4cb3378529a6
Original comment by de.abg.r...@gmail.com
on 17 May 2013 at 3:07
It would be great if the generation can be triggered automatically by Spray and
the user is able to configure (bind) his own generator (maybe as subclass of an
abstract Generator provided by Spray with default methods).
Another great step could be, that the generator is triggered by an event on the
Graphiti diagram (possible events are "onUpdate" "onSave").
It should be analysed if this data could be configured in the Spray DSL.
Possible syntax?
diagram busmod for BusinessDomainModel generate onSave BusModGenerator
Original comment by fabio.filippelli
on 18 May 2013 at 8:52
Original comment by de.abg.r...@gmail.com
on 14 Jul 2013 at 1:40
Original issue reported on code.google.com by
dowbar2...@googlemail.com
on 16 Apr 2013 at 9:33