Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: koenemann on April 09, 2014, 05:37:56 pm
-
We have a profile containing a stereotype 'S' with a tagged value reference 'ref' to the meta class 'Classifier'.
In our model, we have a data type with the stereotype 'S' applied and, in the tagged values view, we want to refer to other elements such as classes and enumerations.
- When using this profile in EA9, it was possible to refer to classes, primitive types, enumerations, interfaces, etc.
- When using this profile in EA10, it is not possible anymore to refer to enumerations.
After further investigation it turned out that the EA10 stores Enumerations with Object_Type = 'Enumeration' in table t_object, whereas EA9 stores Enumerations with Object_Type = 'Class' and Stereotype = 'enumeration'. So my guess is that EA10 does not support tagged value references to objects of type 'Enumeration'?
Is there a fix? Or a workaround?
-
IIRC this was a planned change and detected at first hand by Geert when V10 was introduced. You need to make the changes manually or using a script. I don't know if Sparx offers some helper script here.
q.
-
Definitely worth a bug report
-
Bug reported.
Definitely worth a bug report
Btw, we found a workaround: create a class, add stereotype 'enumeration' manually. Then EA treats that class as enumeration AND it is possible to refer to it. But this really is a workaround that is not quite realistic in practice...
-
Sparx support answer:
In EA there are Predefined Structured Tag Types, such as RefGUID and RefGUIDList.
In the definition of these tagged value types you are able to define which element types can be selected as references for these tagged values. See:
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/predefinedtaggedvaluetypes.html
You will need to update your profile to append Enumeration to the list of element types in your tagged value definition.
For example:
Type=RefGUID;
Values=Class,Enumeration;