Author Topic: Tagged Values in stereotypes (818)  (Read 4127 times)

Mr. Sanders

  • EA User
  • **
  • Posts: 187
  • Karma: +0/-0
  • Dilbert for president
    • View Profile
Tagged Values in stereotypes (818)
« on: November 03, 2007, 05:42:25 am »
Hello,

on a stereotype in an UML profile, you can attach tagged values.

The Online Help tells me the following:
----------------
Stereotypes within a UML Profile can have one or more associated Tagged Values. When creating a UML Profile, you define these Tagged Values as attributes of the stereotype Class.
----------------

I have done it this way.
I added an attribute called "status" (int) with initial value 0.

But when I create an element of this stereotype in another project, the element neither has an attribute, nor a tagged value.

So what are these tagged values at a stereotype for and how do I get them in the target model?

Regards
Michael

« Last Edit: November 03, 2007, 05:43:10 am by mizd »

jock_the_kiwi

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • The weathers here, wish you were beautiful
    • View Profile
Re: Tagged Values in stereotypes (818)
« Reply #1 on: December 04, 2007, 12:00:43 pm »
I am having exactly the same issue. I want each component on one diagram to have about 20 tags for documentation purposes but cant seem to get EA to work as the help prescribes. I  have followed the instructions on the help page Define Stereotype Tags with Predefined Tag Types

I have:
  • created the Tags
  • Added attributes to my Stereotype sysattribute with the same name as the predefined Tag
  • Extended the metaclass component with my Stereotype
Anyone that can shed some light on this problem I would geratly appreciate it.


«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Tagged Values in stereotypes (818)
« Reply #2 on: December 04, 2007, 01:00:36 pm »
AFAIK you have to create a profile, then import that profile into a model - that sounds a bit strange, but it is the way EA builds profiles - before you get the tags on a stereotype to show up that way.

You might have to set feature visibility on to see the tags.

Also, I've been having a few problems with newly-imported profiles in 818. When I can isolate the problems I'll report them to Sparx and post the details.

HTH, David
No, you can't have it!

jock_the_kiwi

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • The weathers here, wish you were beautiful
    • View Profile
Re: Tagged Values in stereotypes (815)
« Reply #3 on: December 04, 2007, 02:00:13 pm »
I have created a profile as per doco (Profile file content is below) but when I import into my project I cant see the stereotype from the profile, tags, etc. All I can see is the profile listed on the RESOURCES tab.

I created the Profile in my current project (tagged values etc), exported then deleted the pacgage from the project, saved then imported the project. I wonder if the issue is the Tagged values are in both the project and the profile?

Anyway, here is my UML Profile
[code]<?xml version="1.0" encoding="UTF-8"?>
<UMLProfile>
<Documentation id="6F19BCEF-3" name="ONTRACKSystem" version="1.0" notes="ONTRACKSystem"/>
<!-- The profile content -->
<Content>
<!-- List of stereotypes used in this profile-->
<Stereotypes>
<Stereotype name="sysattribute" notes="" cx="" cy="" metafile="" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo/>
<TaggedValues>
<Tag name="Abbreviations" description="" values="" default=""/>
<Tag name="Contact Data Admin" description="" values="" default=""/>
<Tag name="Contact Owner" description="" values="" default=""/>
<Tag name="Contact SME" description="" values="" default=""/>
<Tag name="Contact System Admin" description="" values="" default=""/>
<Tag name="Contact Vendor" description="" values="" default=""/>
<Tag name="Functions" description="" values="" default=""/>
<Tag name="Roadmap" description="" values="" default=""/>
<Tag name="Technologies" description="" values="" default=""/>
<Tag name="User Categories" description="" values="" default=""/>
</TaggedValues>
<Constraints/>
</Stereotype>
<Stereotype name="SystemRegister" notes="" cx="" cy="" metafile="" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
<AppliesTo/>
<TaggedValues>
<Tag name="isActive" description="" values="" default=""/>
</TaggedValues>
<Constraints/>
</Stereotype>
</Stereotypes>
<TaggedValueTypes>
<TaggedValueType property="Abbreviations" description="List all Abbreviations for the system"/>
<TaggedValueType property="Functions" description="List the Business Functions the system performs"/>
<TaggedValueType property="Roadmap" description="Notes regarding any known changes"/>
<TaggedValueType property="Technologies" description="What technologoes are used"/>
<TaggedValueType property="Contact Owner" description="Business Unit and Name"/>
<TaggedValueType property="Contact SME" description="Business Unit and Name"/>
<TaggedValueType property="Contact System Admin" description="Company, Business Unit and Name"/>
<TaggedValueType property="Contact Data Admin" description="Company, Business Unit and Name"/>
<TaggedValueType property="Contact Vendor" description="Company, Name, Title and contact details"/>
<TaggedValueType property="User Categories" description="Description of the User Categories"/>
</TaggedValueTypes>
</Content>
</UMLProfile>code]


Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Tagged Values in stereotypes (818)
« Reply #4 on: December 04, 2007, 04:06:50 pm »
Hello,

Your <AppliesTo/> tags shouldn't be empty.
So it looks like either you've omitted the Extends association with the Metaclass you're after (Component presumably?), or it hasn't been exported properly.

/Uffe
« Last Edit: December 04, 2007, 04:07:27 pm by Uffe »
My theories are always correct, just apply them to the right reality.

jock_the_kiwi

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • The weathers here, wish you were beautiful
    • View Profile
Re: Tagged Values in stereotypes
« Reply #5 on: December 04, 2007, 05:05:49 pm »
I believe I have followed the instructions to the letter. Is there anywhere I can send my EAP file for a confirmation/solution. I just checksed and I am using build 815 if that makes any difference.