Book a Demo

Author Topic: Creating Profiles and applying them as a Stereotyp  (Read 3705 times)

cvg

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Creating Profiles and applying them as a Stereotyp
« on: July 23, 2008, 03:12:04 am »
I've created a UML Profile and can successfully import my stereotypes into EA.  If I drop one of my stereotypes from a page in the Toolbox then - joy oh joy - my dropped item is the correct colour and has all the tagged values I defined in my xml file.  But if I drop a Component element from the Toolbox and then re-assign its stereotype from <<Component>> to one of my own stereotypes I defined in my xml file the colour and the tagged values do not appear.

I'm copying my xml file here.  

What am I doing wrong?  Why does the colour and tagged values not appear when I change an element's stereotype?



Charlotte
------------------ xml file ----------------------------------
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
      <Documentation id="7DAD31C3-C" name="My Profiles Misc Components" version="1.0" notes="My Profiles Misc Components"/>
      <Content>
            <Stereotypes>
                  <Stereotype name="j2eeDeployable" notes="" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                        <AppliesTo>
                              <Apply type="Component">
                                    <Property name="isIndirectlyInstantiated" value="true"/>
                              </Apply>
                        </AppliesTo>
                        <TaggedValues>
                              <Tag name="XA" type="enumeration" description="" unit="" values="Yes,No" default="No"/>
                              <Tag name="XA_Path" type="int" description="" unit="" values="" default=""/>
                        </TaggedValues>
                  </Stereotype>
                                    <Stereotype name="nasMount" notes="" cx="90" cy="70" bgcolor="8421440" fontcolor="16777215" bordercolor="-1" borderwidth="1" hideicon="0">
                        <AppliesTo>
                              <Apply type="Component">
                                    <Property name="isIndirectlyInstantiated" value="true"/>
                              </Apply>
                        </AppliesTo>
                        <TaggedValues>
                              <Tag name="BackedUp" type="enumeration" description="" unit="" values="Yes,No" default="Yes"/>
                              <Tag name="BackUpRetentionPeriod" type="int" description="" unit="" values="" default=""/>
                              <Tag name="Replicated" type="enumeration" description="" unit="" values="NotReplicated,Synch,Asynch" default="NotReplicated"/>
                              <Tag name="ReplicationAvailable" type="enumeration" description="" unit="" values="N/A,R/O,Manually" default="N/A"/>
                              <Tag name="RetentionPeriod" type="int" description="" unit="" values="" default=""/>
                              <Tag name="Security" type="int" description="" unit="" values="" default=""/>
                              <Tag name="SizeOfStorage" type="int" description="" unit="" values="" default=""/>
                        </TaggedValues>
                  </Stereotype>
            </Stereotypes>
            <TaggedValueTypes/>
      </Content>
</UMLProfile>
<-------------------------end of xml file----------------------------------->

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Creating Profiles and applying them as a Stere
« Reply #1 on: July 23, 2008, 03:57:03 am »
Try assigning a fully qualified tag name. To see what I mean use the Set Feature Visibility (control-shift-Y) on one of your profile elements - the ones where the stereotype works - and see how the stereotype is qualified.

Remember that tags are case sensitive. [Yes, you already know this, but others who read this thread might not remember.]

BTW, there was something similar to this reported quite recently. I don't think the issue was fully resolved in build 831, but if you are using an older build it might be worth updating just in case.

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

cvg

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Creating Profiles and applying them as a Stere
« Reply #2 on: July 23, 2008, 09:23:15 pm »
David,  
I'm not sure what you mean about a "fully qualified tag name"  When I open the Set Feature Visibility dialog I cannot see a tag name.  All I see is various check boxes indicating settings such as Attribute Visibilty etc.  Perhaps I'm opening this dialog from the wrong place.  I've dropped my profile component on a diagram, right clicked it and selected the Set Feature Visibility.




Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Creating Profiles and applying them as a Stere
« Reply #3 on: July 23, 2008, 10:01:42 pm »
Quote
What am I doing wrong?  Why does the colour and tagged values not appear when I change an element's stereotype?

I don't think you're doing anything wrong. The last I know is that changing a stereotype simply does not synchronize the tagged values. And the menu to synchronize them has disappeared when they switched the MDG technology loading technique from the resources window to the "Settings - MDG technologies" menu.

Maybe I missed a line in the release notes and this issue has been resolved, but I don't think so.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Creating Profiles and applying them as a Stere
« Reply #4 on: July 23, 2008, 11:26:13 pm »
Look for a tag name of the forum <yourProfileName>::<tagName>.
No, you can't have it!