Book a Demo

Author Topic: Attributes or TaggedValues  (Read 4162 times)

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Attributes or TaggedValues
« on: April 09, 2021, 04:07:24 pm »
Hi,

I am creating a model in EA and I have a bunch of elements that I want to store values for.

Is it better to store the values in TaggedValues or in the default value of an Attribute?

Thanks,
Rupert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Attributes or TaggedValues
« Reply #1 on: April 09, 2021, 06:32:09 pm »
It depends.
If you end up adding the same attributes to all elements of a certain category, than you should use tagged values.
(e.g. owner, costprice, etc....)

Attributes typically are different for each element

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Attributes or TaggedValues
« Reply #2 on: April 09, 2021, 08:20:22 pm »
The term Tagged Value should be banned. They are stereotype properties.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Attributes or TaggedValues
« Reply #3 on: April 10, 2021, 10:20:11 am »
The term Tagged Value should be banned. They are stereotype properties.

q.
Well some stereotype properties are "more equal than others", as we've discovered.

But your point is well made.  Some tagged values end up as item properties and others as simple tagged values.

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Attributes or TaggedValues
« Reply #4 on: April 12, 2021, 09:17:11 am »
It's true, the term tagged values as it applied to stereotype properties is largely historic. These days EA shows the stereotype properties as equivalent to metaclass properties.

EA still allows non-stereotype tags, but if it makes you feel better think of those as a property of a stereotype EAElement which is applied to everything automatically. It has a property tags with 0..* entries containing name, value and note.