Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: PeterHeintz on July 12, 2016, 08:32:09 pm

Title: Using Enums in Structured Tagged Value types does not work
Post by: PeterHeintz on July 12, 2016, 08:32:09 pm
I defined a structured tagged values as shown here:
http://www.sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/add_structured_tagged_value_cl.html

Instead of using a string I used an enum for each tag in the structure.

However the enum is treated as a string (The user cannot select the items of the enum).

In EA documentation is written that the tag must be simple (whatever simple is).
I assume not working enums is a bug.
(I used V12 .0.2015)
Title: Re: Using Enums in Structured Tagged Value types does not work
Post by: qwerty on July 12, 2016, 09:58:29 pm
I guess an enum is not simple.

q.
Title: Re: Using Enums in Structured Tagged Value types does not work
Post by: Paolo F Cantoni on July 13, 2016, 09:56:33 am
Hi Peter,

One could class it as a bug.  Having had a look at the generated XML, it's not what I would expect (but I don;t live on planet Sparx).

I think the issue is related to my recent posting on Tagged Value re-use.  You MAY have a work-around by creating General TVs with the name of your enumerations and hjooking up that way.

HTH,
Paolo
Title: Re: Using Enums in Structured Tagged Value types does not work
Post by: qwerty on July 13, 2016, 05:04:42 pm
hjooking
Which word did you have in mind when typing that? Hijacking or hiking?

q.
Title: Re: Using Enums in Structured Tagged Value types does not work
Post by: Paolo F Cantoni on July 13, 2016, 05:22:06 pm
hjooking
Which word did you have in mind when typing that? Hijacking or hiking?

q.
Neither - "hooking".  Again typo while on the bus...  Should be more careful.

Paolo
Title: Re: Using Enums in Structured Tagged Value types does not work
Post by: qwerty on July 13, 2016, 08:08:33 pm
Take a bus that drives on better roads  ;D

Honestly, I have it more and more that I'm typing blurb and don't recognize it because my eyes aren't any more what they were.

q.