Book a Demo

Author Topic: RefGUID question  (Read 2848 times)

supplyondemand

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
RefGUID question
« on: August 24, 2012, 10:43:48 pm »
Hello,

in the EA UserGuide I find the following documentation concerning RefGUID:

Format
Type=RefGUID; Values=Type1,Type2; Stereotypes=Stereotype1;

Description
Enables the TaggedValue to reference an element from the model by specifying the element's  GUID, where:
- Type1 and Type2 specify one or more allowed diagram objects (such as Class, Component, Attribute or Operation)
- Stereotype1 represents an allowed stereotype

My questions:

1. My understanding was that Attributes and Operations do not have a GUID (and can only be connected with this "Link to Element Feature").
Is this wrong? Can I reference a special Attribute within an Element (i.e. Class) with RefGUID?

2. I found in the MDGTechnologies XML-files a "BaseStereotype=..." in addition to "Stereotypes=..."
Could you explain the difference between the two?

Thank you!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: RefGUID question
« Reply #1 on: August 27, 2012, 09:05:43 am »
1. Attributes and operations do have GUIDs. If you put Values=Attribute; or Values=Operation; in your tagged value type definition, it will work.

2. If you select an element and Ctrl+Shift+T you will get the new tagged value dialog. The "Tag" combo box lists all the tagged value types available to the current element. If a tagged value type definition has, say, BaseStereotype=Cloud; then it will only be listed in the combo box for elements with the «Cloud» stereotype. It helps to keep the combo box more manageable.
« Last Edit: August 27, 2012, 09:06:34 am by KP »
The Sparx Team
[email protected]