Book a Demo

Author Topic: How to define a Tagged Value Reference Data Type?  (Read 3296 times)

Jacky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
How to define a Tagged Value Reference Data Type?
« on: June 01, 2009, 08:26:36 pm »
How to define a Tagged Value Reference Data Type, such that it references to all defined Actors?
Is it possible?
My theories are always correct, just apply them to the right reality.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: How to define a Tagged Value Reference Data Ty
« Reply #1 on: June 01, 2009, 10:04:47 pm »
Hi Jacky,


I think what you're after is this:

Code: [Select]
Type=RefGUID;
Values=Actor;
or
Code: [Select]
Type=RefGUIDList;
Values=Actor;
I haven't tested this myself, but it should work. The difference is that the List variety allows selection of multiple Actors, while the other one only allows a single selection.

You can also add a line
Code: [Select]
Stereotypes=SomeStereotype,OtherStereotype; to ensure that only Actors with the right stereotypes are selectable.

The tagged value types defined this way are under
Settings -> UML -> Tagged Value Types.

More info in the Help file under
"Predefined Structured Types"
and
"Create Structured Tagged Values"
Both are under "SDK for Enterprise Architect" -> "Tagged Value Types".

Good luck!


/Uffe
My theories are always correct, just apply them to the right reality.

Jacky

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: How to define a Tagged Value Reference Data Ty
« Reply #2 on: June 02, 2009, 03:04:40 am »
Thank you for the detailed description.
It works.
My theories are always correct, just apply them to the right reality.