Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Mr. Sanders 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
-
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.
-
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
-
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]
-
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
-
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.