Book a Demo

Author Topic: Stereotype references to Enumerations broken: EA10  (Read 4009 times)

koenemann

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Stereotype references to Enumerations broken: EA10
« 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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Stereotype references to Enumerations broken:
« Reply #1 on: April 09, 2014, 07:17:26 pm »
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.
« Last Edit: April 09, 2014, 07:18:04 pm by qwerty »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Stereotype references to Enumerations broken:
« Reply #2 on: April 10, 2014, 08:53:40 am »
Definitely worth a bug report
The Sparx Team
[email protected]

koenemann

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Stereotype references to Enumerations broken:
« Reply #3 on: April 10, 2014, 05:33:56 pm »
Bug reported.

Quote
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...

koenemann

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Stereotype references to Enumerations broken:
« Reply #4 on: April 11, 2014, 10:28:41 pm »
Sparx support answer:
Quote
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;