Author Topic: Tagged values defined in profile don't show up  (Read 4546 times)

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Tagged values defined in profile don't show up
« on: June 05, 2013, 07:38:37 pm »
I'm trying to create my first extension to EA. I want to extend the SysML1.3 Requirement to include a couple of tagged values.

I have followed the the chapter "Add Stereotypes and Metaclasses" aswell as http://www.tigerteam.dk/2011/how-to-develop-mdgs-for-enterprise-architect-part-1/.

I have successfully created a profile, added the tagged values as attributes  and finally imported it to a project. I can create a element with my new stereotype. But the tagged values I added as attributes are not there.

My profile looks like this:

<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
      <Documentation id="BCC4F73A-A" name="SysML Extension" version="1.0" notes="SysML Extension"/>
      <Content>
            <Stereotypes>
                  <Stereotype name="Test::requirement" notes="" cx="90" cy="70" generalizes="SysML1.3::requirement" baseStereotypes="SysML1.3::requirement">
                        <TaggedValues>
                              <Tag name="ReqID" type="string" description="" unit="" values="" default=""/>
                              <Tag name="Source" type="string" description="" unit="" values="" default=""/>
                        </TaggedValues>
                  </Stereotype>
                  <Stereotype name="Test::requirement2" notes="" cx="90" cy="70" generalizes="SysML1.3::requirement" baseStereotypes="SysML1.3::requirement"/>
            </Stereotypes>
            <TaggedValueTypes/>
      </Content>
</UMLProfile>

What am I doing wrong? I'm just getting a normal SysML1.3::requirement, but with a new name.


SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Tagged values defined in profile don't show up
« Reply #1 on: June 05, 2013, 07:44:14 pm »
Hi
Try this -
Right click on the stereotype in the toolbox for your profile and select 'Synchronise Stereotype'

hth
Using V12

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Tagged values defined in profile don't show up
« Reply #2 on: June 05, 2013, 08:36:27 pm »
This does not really look like a MDG profile. What is it?

q.

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Tagged values defined in profile don't show up
« Reply #3 on: June 05, 2013, 08:52:14 pm »
It's just the UML profile, not a whole MDG.

No effect when synchronising the stereotype.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Tagged values defined in profile don't show up
« Reply #4 on: June 06, 2013, 09:07:05 am »
"Test::requirement" is not a sensible name for a stereotype. "::" is the namespace delimiter in fully-qualified stereotype names.
The Sparx Team
[email protected]

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Tagged values defined in profile don't show up
« Reply #5 on: June 06, 2013, 09:33:01 am »
What release of EA are you using? In the latest build of EA 10 (1007) there are two Help topics for extending non-UML objects - search for Create Stereotypes Extending non-UML Objects and Add Stereotypes and Metaclasses using Profile Helpers.

HTH
Best Regards, Roy

Sorno

  • EA User
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
Re: Tagged values defined in profile don't show up
« Reply #6 on: June 06, 2013, 05:03:53 pm »
Thank you for your replies.

The issue resolved itself by excluding :: from the name of the stereotype. It would have been nice with a warning from EA that such a name would mess thing up (but I guess that wouldn't be in character  ::) ).


(For reference I'm using EA 10 build 1007)