Author Topic: Structured tagged values and profile tagged values  (Read 1307 times)

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Structured tagged values and profile tagged values
« on: August 31, 2010, 04:47:59 am »
At the moment, there are two distinct ways to define tagged values (aside from ad hoc definitions): profiles and tagged value types (structured tags). It seems that the two methods can be made to cooperate, as follows:

1. Create the desired tagged values as untyped attributes of stereotype elements in a profile (it seems you can use built-in types as well, but using untyped attributed avoids possible type collisions).
2. In parallel, define the same tagged values using "Settings > UML > Tagged Value Types" and define the types of the tagged values there.
3. When applying a stereotype from your profile, the tagged values will pick up their type definitions from the structured tagged value type definitions created in 2.

While this appears to work, it is clunky and error-prone. Furthermore, the two methods of type definition work in different ways: enumerated values from a profile, for example, store the list of values in the tagged values Notes field every time the tag is used (which is not the best way to do things), whereas structured tagged value enumerated types leave the Notes field free (values list is stored in t_propertytypes).

Sparx should seriously consider unifying these two methods somehow or at least documenting how the two methods can be made to work and play nicely together.
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6786
  • Karma: +63/-6
    • View Profile
Re: Structured tagged values and profile tagged va
« Reply #1 on: August 31, 2010, 08:36:29 am »
Eve

support@sparxsystems.com

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Structured tagged values and profile tagged va
« Reply #2 on: August 31, 2010, 09:50:19 am »
Simon,

I confess I looked through the help file and found the same thing after I posted this...

Cheers,
Fred W
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.