Skip to main content



      Home
Home » Eclipse Projects » Sirius » Domain Model Migration and Sirius
Domain Model Migration and Sirius [message #1828272] Fri, 05 June 2020 06:58 Go to next message
Eclipse UserFriend
Hi,

Currently I have a domain model (metamodel), say the BasicFamily metamodel [1] and create a breaking change to the domain model (change the name of the "members" reference to be "people"). I can deal with this change in the semantic model by using tools such as Edapt [2] or Flock [3], but the .odesign model also needs to be updated for this breaking change. Is there a tool, or best practice out there for migrating an .odesign model for when the domain model changes?

Many thanks
Justin

[1] https://wiki.eclipse.org/Sirius/Tutorials/AdvancedTutorial
[2] https://www.eclipse.org/edapt/
[3] https://www.eclipse.org/epsilon/doc/flock/
Re: Domain Model Migration and Sirius [message #1828276 is a reply to message #1828272] Fri, 05 June 2020 09:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi

To make this work correctly you need to load the primary and all subsidiary models into the same ResourceSet, then perform the primary model edit. All subsidiary models will then change automatically, Save the ResourceSet and all is good.

Easier said than done, but probably easier to get the tooling right once than run around afterwards with fixes. You may need to raise Bugzillas against the tooling for the subsidiary models.

Regards

Ed Willink
Re: Domain Model Migration and Sirius [message #1828278 is a reply to message #1828276] Fri, 05 June 2020 09:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

You may also be interested in the org.eclipse.sirius.business.api.migration.IMigrationParticipant extension point. I've never had the time to use it but it should help to automate the update of existing representrations.

Regards,
Emmanuel
Re: Domain Model Migration and Sirius [message #1828495 is a reply to message #1828278] Wed, 10 June 2020 14:21 Go to previous message
Eclipse UserFriend
Hi Justin, Emmanuel,

The migration participant extension point allows to provide participants to migrate .odesign or .aird.
There are triggered during the load of those resources (during the VSM editor (.odesign), or during the Session load (.odesign and .aird).
The changes are serialized only if the save action is called.
VSM made with previous versions an deployed in plugins will be migrated during load from ViewpointRegistry.

Regards,
Previous Topic:Determining the order
Next Topic:Edge Appearance
Goto Forum:
  


Current Time: Fri Jun 13 19:24:14 EDT 2025

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

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

Back to the top