Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Mauricio Moya (Arquesoft) 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?
-
You create a stereotype extending class and one or more stereotypes extending operation.
-
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?)
-
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.
-
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!