Author Topic: UML Profile: define stereotype & apply 1-n attribute depending on class  (Read 1438 times)

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
To define a stereotype with specific tagged values for a specific element type I define an UML profile.

Now I'd like to have some tagged values of this stereotype to apply depending to which element type the stereotype was added.

Is that possible?

E.g:
- ActionTV = my stereotype
- extends Action, ActivityInitial, ActivityFinal, Decision
- has attributes attribute1, attribute2, attribute3, ActionOnly, InitOnly, FinalOnly, DecisionOnly

-> visualization

importing the UML profile (or MDG technology to have toolbox) I want to create (inside activity diagram):
- stereotype "ActionTV":
- an action with tagged values            attribute1, attribute2, attribute3, ActionOnly
- an initial node with tagged values     attribute1, attribute2, attribute3, InitOnly
- an final node with tagged values       attribute1, attribute2, attribute3, FinalOnly
- an decision node with tagged values attribute1, attribute2, attribute3, DecisionOnly

- stereotype "Together"
- an action with tagged values      together1, together2, ActOnly
- an decision with tagged values   together1, together2, DecOnly


Question: is that possible?

The option "first stereotypes from each metaclass, later specialization from these to one stereotype" results in elements, that have all time all tagged values from all classes, just grouped by their original stereotype. And synchronizing one element updates all :-)
Here stereotype "Together" specializes from ActionFirst and DecisionFirst.
See

files:
- https://www.dropbox.com/s/2nlgkdb7teg58e0/ShegitTvOnClass.xml?dl=1  UML Profile
- https://www.dropbox.com/s/iq5s6003uyvdjhl/Toolbox1TvOnClass.xml?dl=1 Toolbox defintion for profile
- https://www.dropbox.com/s/5jd7rvsv5wkrg1g/TvOnClass_MDG.xml?dl=1 MDG of profile and toolbox
- https://www.dropbox.com/s/5bjd6ndvk89tg4l/TVDef_ApplySomeTVOnClass.eap?dl=1 eap where everything was defined
- https://www.dropbox.com/s/rk5dxeq02vz7xmz/TvOnClass.png?dl=1 picture of profile
- https://www.dropbox.com/s/9id05ovrh707f2r/TvOnClass_tags.png?dl=1 picture of tagged values as result

thanks, Shegit
« Last Edit: July 20, 2017, 11:29:05 pm by Shegit Brahm »