Book a Demo

Author Topic: UML Profile and AssociationRole  (Read 5815 times)

bluemanifold

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
UML Profile and AssociationRole
« on: May 07, 2008, 11:20:58 pm »
I have created a UML Profile which defines a stereotype that extends AssociationRole.  I then import the profile into a project, create a couple of classes and then create a simple association between them.  I am then able to apply my stereotype to a role of the association (via the 'Association Properties' dialog box).  However, I am unable to view or edit any of the tagged values!  Selecting the role name does not display tagged values (presumably because it is being treated as a label not a role).  I may have expected that the tagged values would show up when I select the association and expand either Connector Target or Connector Source (in the Tagged Values pane) - but these refuse to expand.  Is there a way to edit tagged values for AssociationRoles or is this a limitation of EA?  (I am using 7.1.829).

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: UML Profile and AssociationRole
« Reply #1 on: May 08, 2008, 12:24:53 am »
Tagged values defined in a profile are only created when you CREATE an element or connector with a stereotype from the profile (meaning you drag it from the toolbox).

The role is being created implicitely when you create a connector. So it gets its stereotype afterwards, and in this case EA fails to create the tagged values.

Meaning that defining tagged values for roles in a profile is useless. There used to be function to synchronize a profile, but it seems to have vanished with EA 7.0.

Sparx are planning something there, but currently tagged value handling in profiles is a complete mess.

bluemanifold

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: UML Profile and AssociationRole
« Reply #2 on: May 08, 2008, 12:28:58 am »
Hmm - in the resource pane you can explicitly 'Synch Tagged Values and Constraints' - this works fine for standard Class stereotypes and Association stereotypes i.e. you do not need to drag the stereotype from the toolbox but can apply it after creating a class and then you simply synchronise.

The trouble with AssociationRoles is that there appears no way of viewing the tags for the role element.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: UML Profile and AssociationRole
« Reply #3 on: May 08, 2008, 12:45:11 am »
OK, the Sync function is still there, but only when you import your profile from the resource pane. For MDG technologies this is no longer recommended; we are to load them from the Settings-MDG Technologies menu, but then the profile is not visible in the resources window and the Sync function is not there.

Anyway, your problem seems to be another one then. You can manually add tagged values to the connector source or target (I've just tried it out), but EA seems to simply ignore what's defined in the profile for connector ends. Which would be a plain bug.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: UML Profile and AssociationRole
« Reply #4 on: May 08, 2008, 03:06:42 am »
Which should therefore be reported directly to Sparx.

You'll find the correct page by clicking the Report a Bug link below the Support link near the bottom of any forum page. If you are a registered user click the appropriate link near the top of the resulting page, otherwise fill out the form. [You'll see what I mean when you get there.]

This is the best - and the only 'official' - way to report a bug. This forum is a user forum - though Sparx is very active here - and the bug report is the channel to Sparx support.

HTH, David

David
No, you can't have it!

bluemanifold

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: UML Profile and AssociationRole
« Reply #5 on: May 08, 2008, 05:53:38 pm »
Thanks guys - I have already submitted a bug report.  Frank is right about MDG and synching - that seems an oversight to me.  Will await Sparx's response.