Book a Demo

Author Topic: Execution environment and stereotypes  (Read 3617 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Execution environment and stereotypes
« on: February 19, 2014, 02:01:38 am »
Hi there!


The presentation of stereotypes for execution environment seems a bit screwy.

If I set my own stereotype on an execution environment the element is presented in diagrams as «executionEnvironment,myStereotype». This also applies if I create my own stereotype extending executionEnvironment in a profile.

By contrast, if I set my own stereotype on an interface, it is presented simply as «myStereotype», which is what I want. The «interface» stereotype is displayed only if there is no other stereotype on the element.

In fact, if I tell the diagram not to show element stereotypes, «executionEnvironment» is still shown (but «myStereotype» is not).

Is there some obscure passage in the UML spec to warrant this? Is there some even more obscure EA option I can jiggle with to work around it?

I tried writing a shape script and print the Stereotype field (not StereotypeEx). This resulted in only «myStereotype» being displayed, but surely there must be a better way?


Cheers,

/Uffe
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Execution environment and stereotypes
« Reply #1 on: February 19, 2014, 09:07:57 am »
executionEnvironment is a keyword, not a stereotype. UML says it should always be shown to identify the type of the element.

Technically interface should work the same way but we opted to be a little loose with the spec to preserve the way existing diagrams looked.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Execution environment and stereotypes
« Reply #2 on: February 19, 2014, 08:20:41 pm »
a-hAAAA! With you. Thanks! :)
My theories are always correct, just apply them to the right reality.