Book a Demo

Author Topic: UML Profile: Parameter stereotype; tags  (Read 2980 times)

tomwinans

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • Most definitely a novice
    • View Profile
    • Concentrum Inc.
UML Profile: Parameter stereotype; tags
« on: February 21, 2008, 08:30:13 am »
I am developing a UML Profile. One of the stereotypes I am developing applies to the Parameter metaclass. I've added tag values to this stereotype. When I stereotype a parameter using this stereotype, and subsequently expect to be able to add a tagged value correlating to those defined with the stereotype, I find I cannot do. The tag value names do not even appear in the set of possible tag values when I select the parameter and request the application to create a new tag value for it.

Am I doing something incorrectly? Is this a bug in the app? If pilot error, could you please advise re correctly stereotyping and tagging selected parameters?

Thanks
Thomas B Winans

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: UML Profile: Parameter stereotype; tags
« Reply #1 on: February 21, 2008, 10:38:24 am »
Quote
I am developing a UML Profile. One of the stereotypes I am developing applies to the Parameter metaclass. I've added tag values to this stereotype. When I stereotype a parameter using this stereotype, and subsequently expect to be able to add a tagged value correlating to those defined with the stereotype, I find I cannot do. The tag value names do not even appear in the set of possible tag values when I select the parameter and request the application to create a new tag value for it.

Am I doing something incorrectly? Is this a bug in the app? If pilot error, could you please advise re correctly stereotyping and tagging selected parameters?

Thanks
What do you mean by "...request the application to create a new tag...?" Are you doing this through automation?

If so, remember that attributes have their own AttributeTag collection.

HTH, David
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: UML Profile: Parameter stereotype; tags
« Reply #2 on: February 21, 2008, 06:53:44 pm »
There is an inconsistency with tags defined in profiles:

When they apply to a metaclass you can drag from the toolbox window to a diagram (like class, association etc), EA will add them to the newly created element or connector.

When they apply to something "lower" (like association end, attribute, operation, parameter), which you cannot drag from the toolbox, the item will be created implicitely (association end) or from within a properties dialog (attribute, parameter etc). It will then be created without a stereotype and thus not have any tagged values. Then you can give it a stereotype from your profile, but EA will NOT add the tagged values. You have to call profile synchronisation, which should be a context menu in the resources window.

When your profile is part of an MDG technology, EA 7.0 does not show it in the resources window when the technology is loaded the "new" way, so you're stuck. Hopefully EA 7.1. will fix this.

We had a discussion not so long ago about this problem (referring not to parameters but to association ends, which amounts to the same however):

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1183364391/5#5

With parameters there's an additional problem: the automation interface has access methods for tagged values on attributes and methods, but not on parameters. I've no idea why Sparx left them out.