Book a Demo

Author Topic: Multiple stereotype tagged values  (Read 5978 times)

Yves.

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Multiple stereotype tagged values
« on: November 21, 2008, 01:44:35 am »
When assigning multiple stereotypes to a particular attribute, the tagged value window allows to set only the first stereotype tagged values. This is combersome when trying to profile multiple cuts of the same class through subsets of attributes meta tags.

Any other way to reach the other stereotypes tagged values?
Any suggestion to overcome this limitation?
Any plan for improvement in EA?

Thanks
Yves.
« Last Edit: November 21, 2008, 01:45:04 am by yves.carrier1 »

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #1 on: November 21, 2008, 08:48:14 am »
Hello Yves,

Most elements should have a stereotypeex field which contains the full list of stereotypes. You can access the list through that field.

EDIT: Sorry I just read this in again. I originally thought you were talking about accessing this through the automation interface.
« Last Edit: November 21, 2008, 09:10:30 am by mfraser »
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Yves.

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #2 on: November 21, 2008, 09:11:36 am »
Hi Micheal,

Thanks for the reply, but I am not sure this is relevant to my case. But chances are that I am misunderstanding something here. So, here are a little more details to describe my particular situation.

I am defining a new UML profile in which I am creating new stereotypes. I create two different stereotypes that are extending the Attribute metaclass. Now, I want to be able to assign these two different stereotypes individually to a particular attribute (within a host model) at once, then, having access to the tagged value of both stereotypes. When I try to do so, only the first assigned stereotype shows its tagged values from the tagged value window.

Hopefully this is clearer now.

Thanks in advance for your help,
Yves.

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #3 on: November 21, 2008, 09:14:19 am »
Yes sorry Yves I was way off with that one, I read your post in full and realised my reply was totally unrelated, so sorry about that!

Can you please submit a bug through http://www.sparxsystems.com/support/bug_report.html and we'll look into it
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #4 on: November 21, 2008, 09:27:26 am »
I've just had a play around with this problem on my version of EA. If your stereotypes were included in a UML profile you can open up the Resources view, navigate to your profile, right click on it and select 'Synch Tagged Values and Constraints'.

This will then search the model for any element that has the stereotype and add any tagged values that it is missing.
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #5 on: November 21, 2008, 06:20:18 pm »
Quote
If your stereotypes were included in a UML profile you can open up the Resources view, navigate to your profile

But loading profiles through the resources view is out of fashion. What if the profile is included in an MDG technology which is loaded through the "Settings - MDG Technologies" menu? This is the only way to make a toolbox profile for the stereotypes work, but the stereotypes profile won't show in the resources window then, and no synchronization menu will be available.

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • ArenĀ“t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Multiple stereotype tagged values
« Reply #6 on: November 21, 2008, 10:07:21 pm »
Quote
Quote
If your stereotypes were included in a UML profile you can open up the Resources view, navigate to your profile

But loading profiles through the resources view is out of fashion.

Not to talk about the fact that Sparx itself advises to refrain from importing UML profiles via the resource view. Some features are simply not working then (diagram profiles, etc.).

Oliver

Yves.

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #7 on: November 22, 2008, 02:26:14 am »
Thanks to all,

Micheal: I already did what you are suggesting. It works the way you are describing but the problem shows up when you have two different stereotypes assigned to the same attribute. In my version of EA, even after sync, only the first stereotype tags are shown. By the way, the version I am using is 6.5.806. If you confirm that the problem I am having is resolved in a newer version of EA, I'll just get it.

Frank, Oliver: as a matter of fact, I may be old fashioned since this is my first try with this profile thing. I'll try what you're suggesting and will get back to this thread with the result.

Thanks to all,
Yves.

Yves.

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #8 on: November 23, 2008, 07:01:48 am »
Hi again,

I did the whole thing through the MDG technology approach and, beyond the fact that the development process is rather combersome (rebuild the MDG file and reload the destination project after every single modification of the profile...), the multiple stereotypes bug for attributes is still there. I also got the latest version of EA to make sure I am not fighting against something already taken care of but this had no effect.

If you want to reproduce it, you as follows:

- build a profile which includes stereotypes with Attribute metaclass extensions. Make sure a few attributes exist for each new stereotype.
- load the profile in a new project through MDG
- assign more than one newly created stereotypes to a particular attribute
- look at the tagged value window. Only on stereotype tagged values will show up.

I reported it as a bug as suggested by Micheal.
Thanks,
Yves.

Yves.

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Multiple stereotype tagged values
« Reply #9 on: November 23, 2008, 07:59:18 am »
... and to add to this, CTF has no Collection of stereotypes assigned to an Attribute or Class. So, even if a Class will allow to set multiple stereotypes along with proper tagged values accessible from the tagged value window, there is no way to acces these additional tagged values through CTF. So, you could build a model representing pretty flexible class profiles but without the ability to generate anything from these extensions.

Hopefully I am wrong but I guess that supporting the concept of multiple stereotypes assigned to an object within the EA framework would be something pretty big... It is partly there and partly not there.

Anyhow, any help would still be appreciated since I would badly need this feature for a so called "model driven development project" that needs this kind of flexibility.

Thanks again,
Yves.