Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Mauricio Moya (Arquesoft) on November 19, 2021, 01:27:30 pm

Title: How to design MDG with tag values for Class and Operations
Post 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?
Title: Re: How to design MDG with tag values for Class and Operations
Post by: Eve on November 19, 2021, 01:49:20 pm
You create a stereotype extending class and one or more stereotypes extending operation.
Title: Re: How to design MDG with tag values for Class and Operations
Post by: Mauricio Moya (Arquesoft) 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?)
Title: Re: How to design MDG with tag values for Class and Operations
Post by: qwerty 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.
Title: Re: How to design MDG with tag values for Class and Operations
Post by: Mauricio Moya (Arquesoft) 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!