Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Alex9329 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
-
I should work for sure. Have you tried?
q.
-
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.
-
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 (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 (https://yadi.sk/i/3q2684U53MQZAn)
3. So then I go to the Tagged values of Sys2 and see nothing.
https://yadi.sk/i/BcKGGMmc3MQZAp (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"
-
I can't see any of your links.
-
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.
-
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
-
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 (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 (https://yadi.sk/i/lZ9LrLGc3MQoa7)
-
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.
-
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.
-
A two way link is the same as two one way links.
Exactly. This is what I first thought the OP were after.
q.
-
With the EA Navigator (https://bellekens.com/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
-
With the EA Navigator (https://bellekens.com/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.
-
With the EA Navigator (https://bellekens.com/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
-
With the EA Navigator (https://bellekens.com/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