Title: Message
Hello,
I use MagicDraw 9.0 and AndroMda 3M3  with my own cartridge. I created a Profile that contains
tags and stereotypes. I then use my profile into another MagicDraw project, lts call it the main
project. In the main project I use a stereotype of the profile, let's say the stereotype name is "business",
 and tell AndroMDa ( through andromda-cartridge) to put all the objects with that stereotype into a velocity
context.
The following strange thing occur : when my profile is saved before the main project packages into the
xmi, everything works well. If it's saved after, the stereotype "business" has no effect.
It therefore seems that there is a problem in the way the node  <UML:Namespace.ownedElement> is
handled.
 This work well : I mean that andromda can put the objects with the used stereotype into the velocity context
 <UML:Namespace.ownedElement>
       <UML:Package href=''>
                 <XMI.extension xmi.extender='MagicDraw UML 9.0' xmi.extenderID='MagicDraw UML 9.0'>
                          <referentPath xmi.value='::LPlatform Profile'/>
                 </XMI.extension>
       </UML:Package>
     <UML:Package xmi.id='_9_0_19760454_1110383800684_581850_86' name='My main package'>
         <UML:ModelElement.stereotype>
            <UML:Stereotype href=''>
             </UML:Stereotype>
        </UML:ModelElement.stereotype>
      </UML:Package>
   </UML:Namespace.ownedElement>
 
This does not work well :
<UML:Namespace.ownedElement>
            <UML:Package xmi.id='_9_0_19760454_1110383800684_581850_86' name='My main package'>
         <UML:ModelElement.stereotype>
            <UML:Stereotype href=''>
             </UML:Stereotype>
        </UML:ModelElement.stereotype>
      </UML:Package>
    <UML:Package href=''>
                 <XMI.extension xmi.extender='MagicDraw UML 9.0' xmi.extenderID='MagicDraw UML 9.0'>
                          <referentPath xmi.value='::LPlatform Profile'/>
                 </XMI.extension>
       </UML:Package>

   </UML:Namespace.ownedElement>
 
As you can guess, I found no means to tell MagicDraw to save the model as described in "This works well".
I wonder if that is not a problem in the way androMda parse the xmi file. Did someone faced and solved the
problem ?
I

Reply via email to