Author Topic: RefGUID tagged value  (Read 8780 times)

Alex9329

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
RefGUID tagged value
« on: August 28, 2017, 09:27:20 pm »
Hi,

I have 2 objects and I would like in tagged values show some "connetcion" between them. So I use the RegGUID tagged value. But it is not applicable for both elements. Can I do it for both?
Example: I have 2 objects: 1. Forest 2. Tree. In "Forest" RefGUID tagged value I choose "Tree". And in "Tree" tagged value "Forest should appear.

Please, If something is not undestandable, I am ready to discuss

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: RefGUID tagged value
« Reply #1 on: August 28, 2017, 09:57:36 pm »
I should work for sure. Have you tried?

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: RefGUID tagged value
« Reply #2 on: August 29, 2017, 08:25:57 am »
Maybe it would be clearer if you used real examples.

Are these classes stereotyped?
Does the stereotype define a tagged value, or have you manually added it?
What is the full definition of the tagged value? (ie. Where you have Type=RefGUID;)

After re-reading your description... Are you expecting an automatic link showing the opposite end of the tagged value when setting it in one location? There's no function in EA that does that.

Alex9329

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: RefGUID tagged value
« Reply #3 on: August 29, 2017, 02:17:49 pm »
I don't need the connector between the systems.
What I need:
1. I have 2 systems: Sys1 and Sys2.
https://yadi.sk/i/HyUzr6e73MQZAm

2. I create a RefGUID tagged value in Sys1 where I have chosen Sys2 Type and Stereotype. So I have in Tagged Values of Sys1:
https://yadi.sk/i/3q2684U53MQZAn

3. So then I go to the Tagged values of Sys2 and see nothing.
https://yadi.sk/i/BcKGGMmc3MQZAp

So, I see the case like Sys1 have a link on Sys2, but Sys2 don't have. Of course I can create RefGUID tagged value for Sys2 where I will choose Sys1. But I want to reach such result like if I choose Sys2 in Tagged values of Sys1, in Sys2 - Sys1 will automatically appear. The same should work and for Sys2.  Something like "two way link RefGUID Tagged value"
« Last Edit: August 29, 2017, 02:20:41 pm by Alex9329 »

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: RefGUID tagged value
« Reply #4 on: August 29, 2017, 02:49:47 pm »
I can't see any of your links.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: RefGUID tagged value
« Reply #5 on: August 29, 2017, 04:01:04 pm »
I'm no expert in this area, but it does seem to me that the example you provide is exactly the thing that Simon M says cannot be done.

Even if you could automatically generate a reciprocal Tagged Value to 'Tree refers to Forest', I think it would only be able to show that 'Forest is referred to by Tree', and not 'Forest refers to Tree'.

I would have thought that you could get the reciprocal relationship using a connector of one kind or another.

That is my 1 cent's worth.
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: RefGUID tagged value
« Reply #6 on: August 29, 2017, 04:12:22 pm »
I'm no expert in this area, but it does seem to me that the example you provide is exactly the thing that Simon M says cannot be done.

Even if you could automatically generate a reciprocal Tagged Value to 'Tree refers to Forest', I think it would only be able to show that 'Forest is referred to by Tree', and not 'Forest refers to Tree'.

I would have thought that you could get the reciprocal relationship using a connector of one kind or another.

That is my 1 cent's worth.
To (hopefully) clarify (and reinforce) what the redoubtable Roy and Simon have said...

UML Tagged Values are UNARY references - they can ONLY go one way.  UML relationships are BINARY they link in BOTH directions (although some may be navigable only in one).

If you want to express the relationship via tagged values, you will need two unaries (one at each end - in cross reference) to express one binary.  Relationships are the BEST way to show "Connection", EA (and UML) provide other methods, but as you can see they aren't as good.

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

Alex9329

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: RefGUID tagged value
« Reply #7 on: August 29, 2017, 05:43:50 pm »
Thank you for the answer. I also use another instrument for modeling, called QPR EA. And there I can create a a tag on sys1 and another tag on sys2. Then I choose the type of these tag - "relationship" and say - "two way link".
Look at the picture. I created tagged value on Application component element "AC2Col (Application component to collaboration)" and I created anothe tagged value on Collaboration Element "Col2AC (Collaboration to Application component)". And in AC2Col tagged value, in "two way link" I chose Col2AC and in Col2AC tagged value I chose AC2Col. So Both of taggs are connected. Can I do the same in Sparx?
https://yadi.sk/i/UUMUlJwK3MQnks

you can see that I have a type "relation" when I create a new attribute in this instrument
https://yadi.sk/i/lZ9LrLGc3MQoa7
« Last Edit: August 29, 2017, 05:50:44 pm by Alex9329 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: RefGUID tagged value
« Reply #8 on: August 29, 2017, 05:57:05 pm »
As mentioned by 3 other posters before: you can't do that in EA. Maybe if you code an add-in, but not out of the box.

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: RefGUID tagged value
« Reply #9 on: August 30, 2017, 06:54:07 am »
Thank you for the answer. I also use another instrument for modeling, called QPR EA. And there I can create a a tag on sys1 and another tag on sys2. Then I choose the type of these tag - "relationship" and say - "two way link".

A two way link is the same as two one way links.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: RefGUID tagged value
« Reply #10 on: August 30, 2017, 07:11:23 am »
A two way link is the same as two one way links.

Exactly. This is what I first thought the OP were after.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RefGUID tagged value
« Reply #11 on: September 06, 2017, 08:34:57 pm »
With the EA Navigator add-in you can navigate both ways over a RefGUID tagged value.
So you would need only one (tree -> forest) and then you can go to forest and see that it is referenced by tree.

It might not be exactly what you were looking for, but it is definitely better then creating two tagged values to describe a single thing (with the risk of having one of the tagged values go out of sync with the other)

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: RefGUID tagged value
« Reply #12 on: September 07, 2017, 08:41:11 am »
With the EA Navigator add-in you can navigate both ways over a RefGUID tagged value.
Actually, in recent versions of EA the traceability window offers the same thing.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: RefGUID tagged value
« Reply #13 on: September 07, 2017, 09:58:59 am »
With the EA Navigator add-in you can navigate both ways over a RefGUID tagged value.
Actually, in recent versions of EA the traceability window offers the same thing.
Ooh!  Must try it out!

So, the UI searches for RefGUID properties that reference the selected element?

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: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: RefGUID tagged value
« Reply #14 on: September 09, 2017, 04:13:54 pm »
With the EA Navigator add-in you can navigate both ways over a RefGUID tagged value.
Actually, in recent versions of EA the traceability window offers the same thing.

Almost. The traceability window only allows to go from elements to other elements.
With the EA Navigator you can also navigate from and to relations, attributes and operations using the tagged values.

Geert