|Re: [ATL] Refining mode usage with UML Profile [message #658674 is a reply to message #649808]
||Wed, 09 March 2011 08:01
| Ronan B
Registered: July 2009
I have found the problem. My profile has a number of versions defined. This seems to cause the refining to fail as ATL thinks the stereotypes have been defined many times. Can you seen this behaviour?
I get an ATL warning:
Metamodel contains several classifiers with same name: A
Metamodel contains several classifiers with same name: Papy::A
To get refining working using a Profile as an in and out Metamodel you must delete the "older" defined EPackages from the profile. They reside inside an EAnnotation directly under the Profile construct. This beahviour also occurs in regular ATL mode using a Profile as an in and out Metamodel and refering directly to the stereotypes.
This is quite a serious issue as most/all profiles will have been defined many times before they are used in a refining context. Has anyone else noticed this?
I thought I'd also add some experience I have with refining.
1) You cannot use do blocks. This is a well known restriction.
2) Refining mode cannot remove stereotypes it can only add new Stereotypes. For example you cannot drop a stereotype and replace it with another.
I have tried the above using ATL 3.1.2 and 3.1.1 in Eclipse Helios, RSA 184.108.40.206 and Papyrus 1.1.2
Powered by FUDForum
. Page generated in 0.03192 seconds