Book a Demo

Author Topic: tagged value connector gets out of step  (Read 7497 times)

jarnold30

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
tagged value connector gets out of step
« on: August 13, 2022, 11:01:26 pm »
Hi folks.

When I create a tagged value connector, the value is the name of the object I select.

When I change the name of the object, the value of the tag doesn't change, so it becomes out of step.

Is there something obvious I'm missing?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: tagged value connector gets out of step
« Reply #1 on: August 14, 2022, 12:42:36 am »
It's rather unclear what you are doing. Please give a few more details/steps you're doing.

q.

jarnold30

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: tagged value connector gets out of step
« Reply #2 on: August 14, 2022, 07:10:53 am »
OK, I'll try to be more specific.

I have an element (named 'DB Admin') with a tagged value connector.  The tagged value is set to an element, originally called 'full access to all records'.  When I look at the tagged value on 'DB Admin', this value is what appears in the field.

I now change the name to 'Customer Records::Full Access To All Records'.  However the tagged value on 'DB Admin' hasn't changed.  It's now inconsistent.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: tagged value connector gets out of step
« Reply #3 on: August 14, 2022, 10:02:08 am »
Use synch
Happy to help
:)

jarnold30

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: tagged value connector gets out of step
« Reply #4 on: August 14, 2022, 06:55:32 pm »
Sorry, what do you mean?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: tagged value connector gets out of step
« Reply #5 on: August 15, 2022, 02:52:09 am »
Sorry, what do you mean?
Well, what do YOU mean. There is nothing like a "tagged value connector". I could only guess you are using a GUID-tagged value (which creates sort of a link). However, that works for me on renaming. So, what have you defined in your profile?

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: tagged value connector gets out of step
« Reply #6 on: August 26, 2022, 09:11:42 am »
OK, I'll try to be more specific.

I have an element (named 'DB Admin') with a tagged value connector.  The tagged value is set to an element, originally called 'full access to all records'.  When I look at the tagged value on 'DB Admin', this value is what appears in the field.

I now change the name to 'Customer Records::Full Access To All Records'.  However the tagged value on 'DB Admin' hasn't changed.  It's now inconsistent.


If you change the tagged values for a stereotype in a profile, to update the tagged values on stereotyped elements in your model you will need to run the Synchronize command. You can do this by either right-clicking the stereotype in the Toolbox and choosing "Synchronize Stereotype" or in the Browser > Resources tab, find the stereotype and "Synch Tagged Values and Constraints".
The Sparx Team
[email protected]

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 connector gets out of step
« Reply #7 on: August 26, 2022, 02:43:21 pm »
Sorry, what do you mean?
Well, what do YOU mean. There is nothing like a "tagged value connector". I could only guess you are using a GUID-tagged value (which creates sort of a link). However, that works for me on renaming. So, what have you defined in your profile?

q.
With the new profile models, you can use connectors to other steretoypes, to create RefGUID tagged values. I think that is what is used here.

In any way, the name of the target element is not stored, only the GUID. This means it is not possible for it to go out of sync.
The only thing that can happen is that the old name was still cached in memory. That should be resolved after a few clicks. (selecting another object, and then this object again to make sure EA refreshes it's properties from the database)

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: tagged value connector gets out of step
« Reply #8 on: August 26, 2022, 03:05:51 pm »

In any way, the name of the target element is not stored, only the GUID. This means it is not possible for it to go out of sync.
The only thing that can happen is that the old name was still cached in memory. That should be resolved after a few clicks. (selecting another object, and then this object again to make sure EA refreshes its properties from the database)

Geert
(my emphasis)
Yes, keeping things in synch with the database seems to worsen with each release (subjective experience).  I would have hoped it got better.

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