Association Classes in UML profiles

20 views
Skip to first unread message

Jayson

unread,
Jun 22, 2014, 4:35:26 PM6/22/14
to sparx-enterprise-archite...@googlegroups.com
Hi there

I am creating an MDG which includes a stereotype based on the Association Class.
I create the stereotype by:

1. Creating an AssociationClass metaclass.
2. Creating a stereotype which extends the aforementioned metaclass.
3. Adding the attributes in the sterotype in order to get tagged values in my stereotype.

However, when I add my new stereotype to my toolbox and compile the MDG, something goes awry.
The new stereotype appears in the toolbox and I can drag it onto the page as you would expect to.

BUT there are no tagged values associated with the stereotype.

Additionally, it also prefixes the class name with the name of my profile/technology despite the fact that the stereotype class has been defined in the same profile as all the other elements on the page.

If anyone can help me resolve this issue, it would be greatly appreciated.

Thanks

[original message]

KP

unread,
Jun 22, 2014, 8:35:40 PM6/22/14
to sparx-enterprise-archite...@googlegroups.com
You don't say what version of EA you are using. A very quick test with the latest EA 11 works as expected.
[original message]

Jayson

unread,
Jun 22, 2014, 8:45:51 PM6/22/14
to sparx-enterprise-archite...@googlegroups.com
Oops! Sorry.
I'm currently on 9.3.933

[original message]

Jayson

unread,
Jun 22, 2014, 8:55:22 PM6/22/14
to sparx-enterprise-archite...@googlegroups.com
Yep, in the process of doing that. But in the mean time, I have to make do.

Thanks for that  :)

[original message]

KP

unread,
Jun 22, 2014, 8:56:37 PM6/22/14
to sparx-enterprise-archite...@googlegroups.com
I think EA 9.3 used to get confused, thinking: "This is a class with a stereotype, but that stereotype extends AssociationClass so it must be a different stereotype." If you make your stereotype extend Class,  Association AND AssociationClass, then I think it will work for you. Or you could upgrade to EA 11 ;)
[original message]
Reply all
Reply to author
Forward
0 new messages