Author Topic: TaggedValue types in profile  (Read 2088 times)

Helmut Ortmann

  • EA User
  • **
  • Posts: 916
  • Karma: +39/-1
    • View Profile
TaggedValue types in profile
« on: October 30, 2016, 10:26:53 pm »
Hi,

I want to integrate TaggedValues types in my profile. It works fine but the profile don't contain the tagged value types.

If I've read the documentation correctly used TaggedValue Types are automatically put into the profile. The xml contains TaggedValueTypes but they are empty.

Is there a trick?

Thanks,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Helmut Ortmann

  • EA User
  • **
  • Posts: 916
  • Karma: +39/-1
    • View Profile
Re: TaggedValue types in profile
« Reply #1 on: October 30, 2016, 10:43:18 pm »
Hi,

I can define the tagged value type in the *.xml like:
Code: [Select]
<TaggedValueTypes>
 <TaggedValueType property="subCategory" description="" notes="Type=RefGUIDList;Stereotypes=SPEM_Category;BaseStereotype=SPEM_Category;"/>
</TaggedValueTypes>

Property is the name of the TaggedValue type.

May be there is more convinient method.

Thanks,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 9430
  • Karma: +150/-138
  • I'm no guru at all
    • View Profile
Re: TaggedValue types in profile
« Reply #2 on: October 31, 2016, 12:56:43 am »
IIRC you can not save the type. The last time I needed to do that I had to define the types globally in the TV default settings.

q.

Helmut Ortmann

  • EA User
  • **
  • Posts: 916
  • Karma: +39/-1
    • View Profile
Re: TaggedValue types in profile
« Reply #3 on: October 31, 2016, 06:57:56 am »
Thanks Thomas,

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 6148
  • Karma: +83/-85
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: TaggedValue types in profile
« Reply #4 on: October 31, 2016, 10:50:05 am »
Hi,

I can define the tagged value type in the *.xml like:
Code: [Select]
<TaggedValueTypes>
 <TaggedValueType property="subCategory" description="" notes="Type=RefGUIDList;Stereotypes=SPEM_Category;BaseStereotype=SPEM_Category;"/>
</TaggedValueTypes>

Property is the name of the TaggedValue type.

May be there is more convenient method.

Thanks,

Helmut
Hi Helmut,
Your definition seems a bit odd...
This is how ours work:
                  <TaggedValues>
                     <Tag name="ConceptType" type="enumeration"/>
                     <Tag name="GlossaryScope" type="enumeration" description="" unit="" values="UoD,Organisation,Repository,«Uninitialized»" default="«Uninitialized»"/>
                  </TaggedValues>

However, your point about "convenient" is important.  We have found that if you define the TV in a profile, EA will place the set of values in the TV in the notes section (similar to what you had in yours).  What this means is that (apart from notionally duplicating this for EVERY TV of that type is that the value set is restricted to that at definition time.  In myGlossaryScope example above, if I wanted to add the value "Project" to the list, existing TV would not have access to it (caveat: I didn't re-sync the TVs).  We've found the most CONVENIENT solution is to define the TV globally (including the default) and merely reference it in the profile (see: ConceptType above).  This works really well, allows us to re-use the same TV definition in multiple stereotypes and allows us to reduce the maintenance effort.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2498
  • Karma: +32/-2
    • View Profile
Re: TaggedValue types in profile
« Reply #5 on: October 31, 2016, 11:06:22 am »
If you use the <<taggedValue>> connector to define RefGUID and/or RefGUIDList tagged values in you profile, they will be automatically put in a <TaggedValueTypes> block that looks exactly like that in Helmut's second post. You may or may not be able to add other kinds of tagged value type to this block by hand; I don't know, I've never tried it. The expected method to add other tagged value types is using the Technology Wizard: tick the "Tagged Value Types" option and follow the instructions. (You will need to have defined the tagged value types beforehand: ribbon:Configure|UML Types). Of course, this adds them to the technology not the profile.
« Last Edit: October 31, 2016, 11:12:53 am by KP »
The Sparx Team
support@sparxsystems.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8204
  • Karma: +193/-23
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: TaggedValue types in profile
« Reply #6 on: October 31, 2016, 06:23:57 pm »
I've always used KP's way, using the profile helper, and never had any issues with it.

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 916
  • Karma: +39/-1
    • View Profile
Re: TaggedValue types in profile
« Reply #7 on: November 07, 2016, 06:13:29 pm »
Thanks a lot for your helpful replies.

Regards,

helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)