Book a Demo

Author Topic: Automatically add tagged values for operation/method parameters  (Read 4278 times)

sebastianm

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hello guys,

I am trying to create a New MDG Technology for a new programming language and need to have own tagged values
associated to operation/method parameters. To avoid any manual tagged value synchronisation I thought of writing an EA Add-In to handle this task at Broadcast Events. Unfortunately there seems to exist no event like EA_OnPostNewParameter as it does for Operations and Attributes.

Do you know any other possibility to achieve this behavior? Or is there a way for linking the custom stereotypes in the UML Profile, so that the Parameters automatically receive the wanted Stereotype based on the Stereotype of the associated Class and Operation?

Thanks in advance.
Greetings Sebastian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automatically add tagged values for operation/method parameters
« Reply #1 on: August 20, 2016, 07:27:44 pm »
You can extend the Operation metaclass. That should provide you with the needed tagged values.

q.

sebastianm

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Automatically add tagged values for operation/method parameters
« Reply #2 on: August 26, 2016, 08:27:56 pm »
You can extend the Operation metaclass. That should provide you with the needed tagged values.

q.

Thanks for your reply,but would you care to elaborate your concept a bit?
I think by extending the Operation Metaclass I would loose the ability to assign this Stereotype to a Parameter?

Thanks.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automatically add tagged values for operation/method parameters
« Reply #3 on: August 26, 2016, 08:57:52 pm »
Maybe I misunderstood you the first time. Parameters can not be added to a MDG, only elements/connectors. However, you can create stereotypes which apply to just parameters (Project/Settings/UML Types/Stereotypes).

q.