Book a Demo

Author Topic: Tagged value default is applied wrong  (Read 6344 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Tagged value default is applied wrong
« on: July 02, 2020, 04:55:23 pm »
Details:
I'm working on a UML profile that has a stereotype redefining ArchiMate3::ApplicationComponent
In this stereotype I have added a tagged value named "Domain" with no default value.

In the model I'm using the MDG in (not in the development model) I have a tagged value type definition for a tag with the name "Domain" as well, specified like this:

Type=String;
AppliesTo=UseCase;
Default=CMS;

Now when I create a new element with my stereotype, the default of the model tagged value is applied to my MDG tagged value, so they all get "CMS" as default value.


Steps to Reproduce:
- create a model tagged value definition with the same name as an MDG tagged value
- set a default value in the definition
- notice that the default value is applied to the MDG tagged value

Reported

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value default is applied wrong
« Reply #1 on: July 02, 2020, 05:12:52 pm »
I already posted that here. The Tagged Value creates a global definition and not a local one as one (except Sparx) might think.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tagged value default is applied wrong
« Reply #2 on: July 02, 2020, 05:31:02 pm »
I already posted that here. The Tagged Value creates a global definition and not a local one as one (except Sparx) might think.

q.
I must have missed that.

Too bad, they have made good progress in no longer "guessing" the stereotype, and mixing different profiles that way, but this is clearly an oversight.
If I define a tagged value in my MDG, that is where they should be looking for it's definition and nowhere else. Tagged values types defined elsewhere should not be taken into account in any way.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Tagged value default is applied wrong
« Reply #3 on: July 02, 2020, 05:54:35 pm »
Maybe it get's fixed if you reported it ;-) Anyway that "feature" is in EA ever since, not just in newer versions.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Tagged value default is applied wrong
« Reply #4 on: July 02, 2020, 06:33:56 pm »
Hi Geert,

Did you actually get a default value in the DB or did you just see the default in the properties window or dialog?

I'm fighting my own battles about default as you probably know.  The whole thing is self-inconsistent so we have to write automata to achieve consistent results.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tagged value default is applied wrong
« Reply #5 on: July 02, 2020, 06:52:58 pm »
Hi Geert,

Did you actually get a default value in the DB or did you just see the default in the properties window or dialog?

I'm fighting my own battles about default as you probably know.  The whole thing is self-inconsistent so we have to write automata to achieve consistent results.

Paolo
I didn't actually check the database (yet)
I'll do a quick experiment to find out..

Geert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Tagged value default is applied wrong
« Reply #6 on: July 02, 2020, 07:00:01 pm »
In the database the value is null, so it's only in the GUI that I see the default value.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Tagged value default is applied wrong
« Reply #7 on: July 02, 2020, 08:51:15 pm »
In the database the value is null, so it's only in the GUI that I see the default value.

Geert
Yeah,

That's one of my inconsistency defects.  You'll have seen my rants on the various forms of tagged values and how the defaults are treated differently.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!