Book a Demo

Author Topic: Can't get stereotype to show on port on an object  (Read 4699 times)

TPete

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Can't get stereotype to show on port on an object
« on: May 13, 2014, 12:10:43 pm »
I have an issue with a model create in EA 9.921 that has several (hundred) ports that are shown on objects.  Stereotypes were used to convey information but they do not show up in EA 10.1008.  Is there anything I can do to get them to show?  It works with Parts but not Objects.


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Can't get stereotype to show on port on an obj
« Reply #1 on: May 13, 2014, 05:23:29 pm »
It looks like on instance creation EA does not copy the stereotype field. if you manually set the stereotype in the instance it will shop up. Looks like a bug to me and you should report it. (Tested with V11, so the latest version still behaves that way)

q.
« Last Edit: May 13, 2014, 05:24:50 pm by qwerty »

TPete

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Can't get stereotype to show on port on an obj
« Reply #2 on: May 14, 2014, 12:02:32 am »
Adding the stereotype to the port on the Object does not help.  It still will not show up (at least in 10.1008).

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Can't get stereotype to show on port on an obj
« Reply #3 on: May 14, 2014, 05:39:47 am »
Check diagram properties Elements/Show Element Stereo.

I tried also with V10. Same behavior as in V11.

q.

TPete

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Can't get stereotype to show on port on an obj
« Reply #4 on: May 14, 2014, 05:53:07 am »
Yes, did that. No effect. Turned the show stereotype off then on. No change.  I noticed in the XML export when the port is on a Part the I get this section:
<UML:ModelElement.stereotype>
      <UML:Stereotype name="stereo"/>
</UML:ModelElement.stereotype>
And I do not get that when the port is on an Object.

Full Example exports Part
                                               <UML:Class name="Port1" xmi.id="EAID_420550AF_9E0E_4e38_A643_8E5ACDC24E07" visibility="public" namespace="EAPK_5BEA99D9_682E_4532_977C_BD19BEE24855" isRoot="false" isLeaf="false" isAbstract="false">
                                          <UML:ModelElement.stereotype>
                                                <UML:Stereotype name="stereo"/>
                                          </UML:ModelElement.stereotype>
                                          <UML:ModelElement.taggedValue>
                                                <UML:TaggedValue tag="isSpecification" value="false"/>
                                                <UML:TaggedValue tag="ea_stype" value="Port"/>
                                                <UML:TaggedValue tag="ea_ntype" value="0"/>
                                                <UML:TaggedValue tag="version" value="1.0"/>
                                                <UML:TaggedValue tag="isActive" value="false"/>
                                                <UML:TaggedValue tag="package" value="EAPK_5BEA99D9_682E_4532_977C_BD19BEE24855"/>
                                                <UML:TaggedValue tag="owner" value="EAID_6FFAFAF8_D82A_4038_993C_E1A16D553990"/>
                                                <UML:TaggedValue tag="date_created" value="2014-05-12 11:25:41"/>
                                                <UML:TaggedValue tag="date_modified" value="2014-05-12 11:25:59"/>
                                                <UML:TaggedValue tag="gentype" value="&lt;none&gt;"/>
                                                <UML:TaggedValue tag="tagged" value="0"/>
                                                <UML:TaggedValue tag="package_name" value="Objects"/>
                                                <UML:TaggedValue tag="phase" value="1.0"/>
                                                <UML:TaggedValue tag="author" value="twpeters"/>
                                                <UML:TaggedValue tag="complexity" value="1"/>
                                                <UML:TaggedValue tag="status" value="Proposed"/>
                                                <UML:TaggedValue tag="stereotype" value="stereo"/>
                                                <UML:TaggedValue tag="tpos" value="0"/>
                                                <UML:TaggedValue tag="ea_localid" value="31"/>
                                                <UML:TaggedValue tag="ea_eleType" value="element"/>
                                                <UML:TaggedValue tag="reusesProperty" value="{647CB73A-6E94-4a4b-B23E-476D6D6BFCFE}"/>
                                                <UML:TaggedValue tag="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=1;HSwimLanes=1;BorderStyle=0;"/>
                                          </UML:ModelElement.taggedValue>
                                    </UML:Class>

Object:
                                    <UML:Class xmi.id="EAID_87F7EA7A_111C_4b53_BD90_9E8F9BB37768" visibility="public" namespace="EAPK_5BEA99D9_682E_4532_977C_BD19BEE24855" isRoot="false" isLeaf="false" isAbstract="false">
                                          <UML:ModelElement.taggedValue>
                                                <UML:TaggedValue tag="isSpecification" value="false"/>
                                                <UML:TaggedValue tag="ea_stype" value="Port"/>
                                                <UML:TaggedValue tag="ea_ntype" value="0"/>
                                                <UML:TaggedValue tag="version" value="1.0"/>
                                                <UML:TaggedValue tag="isActive" value="false"/>
                                                <UML:TaggedValue tag="classifier" value="EAID_647CB73A_6E94_4a4b_B23E_476D6D6BFCFE"/>
                                                <UML:TaggedValue tag="package" value="EAPK_5BEA99D9_682E_4532_977C_BD19BEE24855"/>
                                                <UML:TaggedValue tag="owner" value="EAID_257307B0_D387_4b66_9D53_663ED218D10E"/>
                                                <UML:TaggedValue tag="classname" value="Port1"/>
                                                <UML:TaggedValue tag="date_created" value="2014-05-12 13:35:09"/>
                                                <UML:TaggedValue tag="date_modified" value="2014-05-12 13:35:09"/>
                                                <UML:TaggedValue tag="gentype" value="&lt;none&gt;"/>
                                                <UML:TaggedValue tag="tagged" value="0"/>
                                                <UML:TaggedValue tag="package_name" value="Objects"/>
                                                <UML:TaggedValue tag="phase" value="1.0"/>
                                                <UML:TaggedValue tag="author" value="twpeters"/>
                                                <UML:TaggedValue tag="complexity" value="1"/>
                                                <UML:TaggedValue tag="status" value="Proposed"/>
                                                <UML:TaggedValue tag="tpos" value="0"/>
                                                <UML:TaggedValue tag="ea_localid" value="32"/>
                                                <UML:TaggedValue tag="ea_eleType" value="element"/>
                                                <UML:TaggedValue tag="reusesProperty" value="{647CB73A-6E94-4a4b-B23E-476D6D6BFCFE}"/>
                                                <UML:TaggedValue tag="style" value="BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwimLanes=1;HSwimLanes=1;BorderStyle=0;"/>
                                                <UML:TaggedValue tag="$ea_xref_property" value="$XREFPROP=$XID={C63D6144-5C99-49a1-BE8E-95647606E14A}$XID;$NAM=Stereotypes$NAM;$TYP=element property$TYP;$VIS=Public$VIS;$PAR=0$PAR;$DES=@STEREO;Name=stereo;GUID={DD796493-CA9C-46df-94E0-CEB4A421B528};@ENDSTEREO;$DES;$CLT={87F7EA7A-111C-4b53-BD90-9E8F9BB37768}$CLT;$SUP=&lt;none&gt;$SUP;$ENDXREF;"/>
                                          </UML:ModelElement.taggedValue>
                                    </UML:Class>