Book a Demo

Author Topic: [SOLVED]Assign tagged value type to stereotypes  (Read 7451 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
[SOLVED]Assign tagged value type to stereotypes
« on: July 10, 2014, 09:24:01 pm »
Hi all,

I have the following problem during MDG technology creation:
All my profile packages are located in one EAP file. I have a stereotype "MyStereotype" located in Profile A and created a Tagged Value Type called "ReadOnly" in Settings>UML Types>Tagged Value Types with the definition:
Code: [Select]
Type=Const;
Default=non-writable;
Stereotypes=MyStereotype;
Following the EA help and several topics of the forum, the next step is to create an attribute in profile A at stereotype "MyStereotype", whose name is "ReadOnly" and type is empty.
I saved profile A and generated the MDG including the Tagged value type "ReadOnly".
However, when dragging elements of stereotype "MyStereotype" to diagrams, "ReadOnly" appears to be not constant, instead it apparently  doesn't have any type.

I tried to use the fully qualified name (i.e. MDG-NameMDG-ID::ReadOnly) of "ReadOnly" in the attribute, but that didn't solve the problem.

I appreciate any thoughts on this problem!

SOLUTION: Instead of using the MDG-Name, it is necessary to use the MDG ID defined when generating the MDG technology.
« Last Edit: July 10, 2014, 10:43:14 pm by McMannus »