Book a Demo

Author Topic: [MDG] Add tagged value to operations/methods in class-like stereotype  (Read 8736 times)

amacara1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
I am defining a new MDG stereotype starting from a class and I would like to add a tagged value to operations of this stereotype. How can I do this, please?

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
I think (not 100% sure) the only way to do this is:

1. Create a stereotype based on the Operator UML Type.
2. Add a tagged value to that stereotype.

You can then configure the stereotype in question to accept the new operation based stereotype.

amacara1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Thank you, it seems to make sense but I was unable to find examples how to link this new operation stereotype into my class-stereotype

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
I think you need to stereotype your operation as well. Never had the use for that, but if you create a an action from an activity there is a way to tell which stereotype you want. Maybe something similar exists for operations?

q.