Author Topic: How to design MDG with tag values for Class and Operations  (Read 14782 times)

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
How to design MDG with tag values for Class and Operations
« on: November 19, 2021, 01:27:30 pm »
Hi, I'm trying to create a MDG Profile with the purpose of creating a new kind of element called 'MyElement' with a set of predefined tag values, as they normally work: a Metaclass for Class and a Stereotype called 'MyElement' extending the Metaclass.

But as the Operations in a Class could have tag values, I also want my stereotyped element to have some Operations inside, and each Operation to have some predefined tag values (each operation has different values in the tag values, and the element has its own tag values).

When you create a Profile diagram in EA, you can add Operation as Metaclass.. but who extends Operation? 'MyElement'? or 'MyElement' extends Class? or extends Class and Operation?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: How to design MDG with tag values for Class and Operations
« Reply #1 on: November 19, 2021, 01:49:20 pm »
You create a stereotype extending class and one or more stereotypes extending operation.

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: How to design MDG with tag values for Class and Operations
« Reply #2 on: November 20, 2021, 01:01:01 am »
You create a stereotype extending class and one or more stereotypes extending operation.

Thanks @Eve, but how can I make the new Operations created into the Class extends certain Operation stereotype? (avoiding changing manually the stereotype for each operation after creation?)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to design MDG with tag values for Class and Operations
« Reply #3 on: November 20, 2021, 03:53:42 am »
You put the operation in your toolbox like any other stereotype. Now you can drag it onto your class and the stereotyped operation is created.

q.

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: How to design MDG with tag values for Class and Operations
« Reply #4 on: November 20, 2021, 08:09:21 am »
You put the operation in your toolbox like any other stereotype. Now you can drag it onto your class and the stereotyped operation is created.

q.
Thanks @qwerty ! it works like a charm!