Author Topic: Stereotypes  (Read 488 times)

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Stereotypes
« on: October 13, 2020, 12:57:13 am »
Hello everyone,

I am facing issues with applying my profiles/stereotypes on the elements of a diagram.

So i created a new project. Then i created a model and a package diagram where I added my profiles. In the profiles i specified the metaclasses
and the stereotype extensions. Afterwards, I created a new root node where I want to create my diagrams. However, when i create the element for example an action in activity diagram, in the properties of that action when I click add stereotype I cannot find my created profiles/stereotypes anywhere on the list.
I am missing something??

Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Stereotypes
« Reply #1 on: October 13, 2020, 02:25:54 am »
You need to either create/activate a MDG or you have to import the profile into the Resources. The latter is the quick solution (and for testing).

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Stereotypes
« Reply #2 on: October 13, 2020, 03:32:28 am »
Hello,

thanks for your answer. It work. I exported the profile as a package .xmi, and imported it from the Resources.
However, it worked in the beginning for applying a stereotype on an action. But when i added a  stereotype in the control flow metaclass
and followed the same steps it did not work...
Any tips?

Kind Regards,
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Stereotypes
« Reply #3 on: October 13, 2020, 03:40:26 am »
"Does not work" is a broad spectrum...

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Stereotypes
« Reply #4 on: October 13, 2020, 03:50:13 am »
Thats true.
I wanted to apply the same stereotype with name "migrate" to the metaclasses Control flow and Action.
So I created 2 individual stereotypes with the same name and made an extension to the metaclasses and when i saved it as a profile
I noticed that in the xmi the stereotype of the control flow did not existed and that's why I could not apply it.
So by changing the stereotype name or by deleting the second stereotype and keeping only one with the name "migrate" and creating 2 extensions arrows to the metaclasses worked in the end.

So in the end when making a profile we are not allowed to add more than once a stereotype with the same name and connect them individually to their metaclasses? And if so, is there a way to see any "error" logs or something in case something like that happens?

Sorry for those wired questions...:)

Kind Regards,
Philipp

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 10527
  • Karma: +358/-31
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Stereotypes
« Reply #5 on: October 13, 2020, 04:20:54 am »
No error logs unfortunately.
MDG's fail silently, both in creation as in applying them.

The only way to get it working is to go step by step; trial and error.

After a while you get the hang of it an learn to avoid the pitfalls.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Stereotypes
« Reply #6 on: October 13, 2020, 04:25:18 am »
2 individual stereotypes with the same name
That will not work. Stereotypes must be unique.

And also what Geert said...

q.

Philipp91

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: Stereotypes
« Reply #7 on: October 13, 2020, 04:59:54 am »
Thanks for you answers!

Looks like I have to trial and error more as Geert suggested.
Thank you both again :)

P.S. the control flow stereotype works fine now. I don't know why since I made the same steps, but its fine.
Kind Regardsm
Philipp

qwerty

  • EA Guru
  • *****
  • Posts: 11472
  • Karma: +305/-263
  • I'm no guru at all
    • View Profile
Re: Stereotypes
« Reply #8 on: October 13, 2020, 08:53:26 am »
Just what Geert said. How often did I save in the wrong place until the next day I discovered it (or still was wondering "why?").

q.