Author Topic: multiple values in a Tag  (Read 6233 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
multiple values in a Tag
« on: December 11, 2020, 03:53:54 am »
In a profile I specified a stereotype with an attribute Variants of type Variant which is an enumration of values V1, V2, V3. In Properties of that attribute I defined a Multiplicity of 3.

Applying that stereotype to an element, its attribute becomes a tag of that element. I hoped for to be able to have values of tag Variants like V1, V2, V3 or V1, V3 or V2, V3.

But it did not work out. At the tag I can only choose V1, V2, or V3. The Multiplicity is ignored.

Do you know of a better solution than just a type, so I can enter anything, even values not to be found in the enumeration?
In case of an answer "no", how would you deal with variants? That a specific element contributes to the system just in a specific subset of all defined variants of the system?
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: multiple values in a Tag
« Reply #1 on: December 11, 2020, 05:28:07 am »
I can think of two options:

Create three boolean tagged values V1, V2 and V3

Or use the checklist tagged value type.
This is less appealing as it shows only "incomplete" in the GUI, and checking which values are actually checked is not trivial;

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: multiple values in a Tag
« Reply #2 on: January 11, 2021, 08:55:02 am »
Unfortunately, there is no handling of multiplicity in the tagged values at the moment.

If you have defined the tagged value by adding an attribute on the stereotype and including a tagged value definition in your technology you can add new instances of that tag via the new tagged value dialog.

Alternatively, you can also extend Geert's first suggestion and use tagged value grouping to put those three tags into a group so that they appear together.

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: multiple values in a Tag
« Reply #3 on: June 20, 2021, 08:33:52 pm »
Ok, thank you, Eve, Geert

A String type for Variants attribute seems to me the most appropriate one.
Also, a check routine that all Variants tag values have correct the spelling can help achieving consistency.
Rolf