Author Topic: Add tagged values to Diagram Profile  (Read 3851 times)

xsdev

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Add tagged values to Diagram Profile
« on: June 07, 2008, 12:03:53 pm »
I'm trying to create a diagram profile as described in the EA help file and add tagged values to a stereotyped class diagram.  I've created a Diagram_Logical metaclass and extended it with a stereotype that has attributes.  

After saving and importing the profile, when I apply the stereotype to a class diagram, the attributes are not displayed as tagged values.  If I apply the stereotype to a model element, i.e. a class or association, the tagged values are displayed.  Is EA not able to display tagged values on a diagram or is there something specific I must do to have them displayed?

I've noticed that the stereotype drop-down on the diagram general properties tab does not have any entries.  If I've built my diagram profile correctly, should my stereotype appear in this drop-down?

Thanks,
Dan

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Add tagged values to Diagram Profile
« Reply #1 on: June 10, 2008, 12:25:35 am »
Ensure that you are loading the profile correctly. The 'old' way was to use the Resources tree to "import" a profile; that method is now obsolete.

The EA documentation explains how to do this correctly. If you are not using a very recent version of EA your documentation may have some misleading pointers in this area. You can download a new help file and user guide - this works even if you don't want to upgrade your EA build - which should set you straight.
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Add tagged values to Diagram Profile
« Reply #2 on: June 10, 2008, 12:49:44 am »
Quote
I've created a Diagram_Logical metaclass and extended it with a stereotype that has attributes

Actually I've never heard of tagged values for a diagram. In EA the "New Tag" icon in the tagged values window is inactive when a diagram is selected in the project browser, so I guess EA doesn't support tagged values for diagrams.

In the examples given in the online manual, stereotypes extending a diagram metaclass never have attributes. They're just there to define a diagram type, so all they have is a name and an "extends" link.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Add tagged values to Diagram Profile
« Reply #3 on: June 10, 2008, 08:19:58 am »
Dan,

Frank has a point here - as always...

I did not pick up on the nuance that you are tagging a diagram. From somewhere I think I once saw a confirmation that EA does not handle diagram tags, at least not yet.

If I'm right about this I saw it in the forum, in a post - more precisely a reply - by one of the Sparxians. It was probably some time ago, perhaps before this year. Of course I could be talking through my hat (once again).

I suggest you search the forum to see if you can find a confirmation either way.

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8061
  • Karma: +118/-20
    • View Profile
Re: Add tagged values to Diagram Profile
« Reply #4 on: June 10, 2008, 08:26:50 am »
EA doesn't support tagged values on diagrams.  I remember a discussion some time ago where someone was saying that we should.

Maybe it would be nice, but they aren't UML elements, so I would categorize it as a feature request rather than issue of any sort.

xsdev

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Add tagged values to Diagram Profile
« Reply #5 on: June 10, 2008, 08:39:42 am »
Thank you for the replies Gents.  You've saved me a ton of time potentially attempting to do something not supported in EA.  

I understand the point of diagrams not being UML elements; I was merely trying to leverage what appeared to be full support for stereotypes on diagrams given the drop down box on the Diagram Properties dialog, etc.

I'll drop back and punt, using stereotypes on packages instead.

Cheers,
Dan

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Add tagged values to Diagram Profile
« Reply #6 on: June 10, 2008, 09:07:15 am »
Have a look at the BPMN technology for our solution (work-around) to this same problem. The spec says a business process diagram has a number of defined properties; our solution was to create a business process element which is a composite element that owns the diagram and also owns the tagged values.
« Last Edit: June 10, 2008, 09:07:44 am by KP »
The Sparx Team
[email protected]