Book a Demo

Author Topic: Stereotype UML Profile doesn't bring over tagged values or shape  (Read 2806 times)

BrianYee

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Stereotype UML Profile doesn't bring over tagged values or shape
« on: December 02, 2020, 10:14:22 am »
Hello,

I have created a stereotype object in a profile package by dragging the Add Stereotype object under Profile Helpers into the child diagram of the profile package. Here, I added the tagged values and a shape script. I have export both the package or diagram as a UML profile and import them into the UML Profiles folder in Resources of another model. However, with both profiles, neither brings over the tagged values or shape from the shape script. What am I doing wrong?

Thanks in advance,
Brian

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Stereotype UML Profile doesn't bring over tagged values or shape
« Reply #1 on: December 02, 2020, 10:51:23 am »
Hello,

I have created a stereotype object in a profile package by dragging the Add Stereotype object under Profile Helpers into the child diagram of the profile package. Here, I added the tagged values and a shape script. I have export both the package or diagram as a UML profile and import them into the UML Profiles folder in Resources of another model. However, with both profiles, neither brings over the tagged values or shape from the shape script. What am I doing wrong?

Thanks in advance,
Brian
Hi Brian,
What I do in such circumstances (Profile doesn't behave as expected) is to check the emitted XML file(s).  There will be (probably) two in question.
  • The component of the profile emitted as the result of the save package or diagram as a profile - which includes the anomalous stereotype entry
  • The MDG file incorporating the above component

I compare the XML entries for the anomalous stereotype with a known good one and if they differ, try to work out why.  (usually leads to a "Doh" moment!  ;D )
Confirm that the component file made it into the full MDG file.

If that doesn't work for you, you can post the segment of the component file corresponding to the anomalous stereotype and a diagram of the relevant potion of your metamodel and we can try to help.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!