Print Page | Close Window

Migration of tutorial model

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=686
Printed Date: 27.Mar.2026 at 00:26
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Migration of tutorial model
Posted By: pimf
Subject: Migration of tutorial model
Date Posted: 25.Feb.2013 at 22:05
Hi,

I'm working through the evaluation tutorial of MetaEdit+ and I finished the extension of the initial family tree metamodel with the male and female objects. I would like to adjust the graph of an instanced the initial metamodel (Simpson family tree) to the new meta model by changing the object type 'Person' to 'Male' or 'Female' so that the 'old' model complies to the evolved meta model. But I cannot find any function for accomplishing that and no description in the user's guides.
Can you help?

Thank you!



Replies:
Posted By: stevek
Date Posted: 25.Feb.2013 at 22:46
There's really no way for MetaEdit+ to know which of your "Person" objects should be changed to be "Male" objects and which "Female". In this case, the simplest thing is just to delete the existing few objects and recreate them, as the tutorial says.

Don't worry though: in a real-world example where you would be worried about the work of recreating them, you could script transforming the model. MetaEdit+ offers an http://www.metacase.com/support/50/manuals/mwb/Mw-8.html" rel="nofollow - API for doing this, or you can export the models to http://www.metacase.com/support/50/manuals/mwb/Mw-7.html" rel="nofollow - XML , transform with XSLT and import, or then generate the transformed XML directly for import.

Interestingly, in practice this kind of change tends to happen only at the stage where we are doing the first naive prototyping of a modeling language. It doesn't take long to see that in the Family Tree domain, you're going to need Male & Female rather than just Person!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net