Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Domain Model Migration and Sirius
Domain Model Migration and Sirius [message #1828272] Fri, 05 June 2020 10:58 Go to next message
Justin Cooper is currently offline Justin CooperFriend
Messages: 6
Registered: August 2019
Junior Member
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 13:03 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7675
Registered: July 2009
Senior Member
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 13:25 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 123
Registered: February 2018
Senior Member
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 18:21 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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,


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Determining the order
Next Topic:Edge Appearance
Goto Forum:
  


Current Time: Mon Oct 07 07:47:25 GMT 2024

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

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

Back to the top