Book a Demo

Author Topic: How do you create a structured (complex) tagged value?  (Read 2651 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
How do you create a structured (complex) tagged value?
« on: September 08, 2020, 10:59:52 pm »
I would like to create a tagged value that consists of different types. For example, imagine an address tagged value called "HomeAddress" with Name, street, city and zip code. How can you do that in EA and then add it to a class?

The EA documentation shows how to attach such a tagged value to a stereotype. That method however implies means that every time you add the stereotype, the tagged value is always attached to it. I want to add the tagged value on a case by case basis however. Maybe Classes A, B, and C will have this tagged value, but classes D and E will not needed it.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How do you create a structured (complex) tagged value?
« Reply #1 on: September 09, 2020, 12:10:37 am »
You create multiple stereotype properties. Each is only able to hold a primitive type (including a drop down list).

q.

horszasz

  • EA User
  • **
  • Posts: 22
  • Karma: +6/-0
  • My name is Gergely :)
    • View Profile
Re: How do you create a structured (complex) tagged value?
« Reply #2 on: September 09, 2020, 02:35:48 am »
Hi mse,

If the structure of the data you want to store in the tagged value is not very complex, you can try to define a Custom Masked Tagged Value Type as described here:
https://sparxsystems.com/enterprise_architect_user_guide/15.1/modeling/creatingacustomtaggedvalue.html

regards,
gergely