Book a Demo

Author Topic: Using Enums in Structured Tagged Value types does not work  (Read 6159 times)

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1000
  • Karma: +58/-18
    • View Profile
Using Enums in Structured Tagged Value types does not work
« 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)
Best regards,

Peter Heintz

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Using Enums in Structured Tagged Value types does not work
« Reply #1 on: July 12, 2016, 09:58:29 pm »
I guess an enum is not simple.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Using Enums in Structured Tagged Value types does not work
« Reply #2 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Using Enums in Structured Tagged Value types does not work
« Reply #3 on: July 13, 2016, 05:04:42 pm »
hjooking
Which word did you have in mind when typing that? Hijacking or hiking?

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Using Enums in Structured Tagged Value types does not work
« Reply #4 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Using Enums in Structured Tagged Value types does not work
« Reply #5 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.