Book a Demo

Author Topic: Structured tagged values with enumerations  (Read 5828 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Structured tagged values with enumerations
« on: June 30, 2014, 09:59:03 am »
Hi all

I'm using version 9.3 to create a structured tagged value where the individual attributes within the structure tagged values are taken from enumerations.

I follow the standard method:

1. Create an enumeration called "Project_Health" that contains four elements.
2. Create a class called "Project Health" and add six different attributes (each describing a different facet of project health), each of which has its type set as "Project_Health".
3. Finally, I add an attribute to my stereotype that has "Project_Health" as its type.

When I deploy my MDG something goes awry.
I have a structured tagged value just as I expect, but the enumerations don't work.
Instead, it lets me type text into each of the attributes.

Am I doing something wrong or have I just hit a limitation in Sparx?

Your help would be appreciated.

Cheers

Jays  :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Structured tagged values with enumerations
« Reply #1 on: June 30, 2014, 03:42:32 pm »
Have you used the ellipsis button to set the type?

q.

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Structured tagged values with enumerations
« Reply #2 on: June 30, 2014, 03:47:47 pm »
I don't know if this helps...

When doing this manually (through the user interface) you set the following:

Tag Name (Stakeholder Type)
Description (Broad classification of stakeholders)
Detail (
Type=Enum;
Values=Board, Assurance Group, Business Rep, User, Other;
Default=User)

Are you setting the equivalent of these things?

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Structured tagged values with enumerations
« Reply #3 on: July 01, 2014, 04:27:09 am »
Hey there, yup I think I am setting the equivalent of these.
I dragged an enumeration element from the profile toolbox and added a number of attributes.

Incidentally, where in the UI would I enter that equivalent text?

Cheers

Jays  :)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Structured tagged values with enumerations
« Reply #4 on: July 01, 2014, 04:29:11 am »
Quote
Have you used the ellipsis button to set the type?

q.

You mean within the class that is used to define the structured tag value?
If so, then yes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Structured tagged values with enumerations
« Reply #5 on: July 01, 2014, 05:05:04 am »
Quote
Hey there, yup I think I am setting the equivalent of these.
I dragged an enumeration element from the profile toolbox and added a number of attributes.

Incidentally, where in the UI would I enter that equivalent text?

Cheers

Jays  :)
Use the Default Tags Editor icon (right of the X) .

q.

P.S. You might send me your profile package for a review if it's not confidential. My mail address can be found in the ad-link below.
« Last Edit: July 01, 2014, 05:07:07 am by qwerty »

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Structured tagged values with enumerations
« Reply #6 on: July 01, 2014, 08:55:24 am »
From the menus:

Settings
UML Types
Tagged Value Types (the second tab)
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Structured tagged values with enumerations
« Reply #7 on: July 01, 2014, 09:47:34 am »
It's a while since I used structured tagged values, but ISTR the individual fields can only be simple strings.
The Sparx Team
[email protected]

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: Structured tagged values with enumerations
« Reply #8 on: July 01, 2014, 10:57:36 am »
Thanks for that.
At least if I know that it is a limitation with a product (rather than me), I can stop beating my head against the keyboard!  ;)