Book a Demo

Author Topic: How to link Elements of different diagrams?  (Read 8328 times)

AhEmm

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to link Elements of different diagrams?
« on: August 20, 2008, 10:28:05 pm »
Hello,

In order to influence the appearance of test cases in the output document, I am wondering if there is a possibility to create a connection between elements of different diagrams.
Until now I created a new diagram and dropped two diagrams as diagram frames. But I can't link the specific element since they are unselectable in the new diagram.
Does anyone know how to help?


An image to help you getting the idea :)


Thank you in advance

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to link Elements of different diagrams?
« Reply #1 on: August 20, 2008, 11:26:12 pm »
It seems like you (sometimes) need to link two instances of the same element. In this case the link is really between two diagram objects rather than a (self-referencing) link on the element they (both) represent.

This one is tricky, since most 'real' links are between different elements. The cases where you see a circular link have specific syntactical meaning which would distort your model.

Perhaps you could use a hyperliink in these cases. That could also be done where the actual elements were different.

For different elements you might also want to add a cross reference. I don't know if you can cross reference an element with itself, but you could try. Cross references might not be specific enough though, as they don't seem to be diagram-specific. You'd have to play around and see if this worked for you.

David
No, you can't have it!

AhEmm

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to link Elements of different diagrams?
« Reply #2 on: August 21, 2008, 12:24:01 am »
The image above was just an example.
Assume that every element appears just once in connection line.

My problem is:
I need a different test case order in the output document then in the EA Prject Server. So for example Test A from diagram 2 should appear after Test B from diagram 1 etc.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to link Elements of different diagrams?
« Reply #3 on: August 22, 2008, 11:04:44 am »
Hi AhEmm,

One could argue, and I do that: items in diagram frames should be considered as existing in the main diagram (by proxy).  Therefore, links between those items (across the frames) should be (optionally) made visible.

Link visibility should ONLY control the main diagram.  That is to say, only links in the main diagram (even if between two frames) can be adjusted.  The framed diagram is not controllable from the main diagram.

As David says, there's the problem of what do you do with the same items in more than one diagram (whether main or framed).

If anyone is interested in pursuing this idea, we might be able to come up with some specification to pass on to Sparx.

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to link Elements of different diagrams?
« Reply #4 on: August 22, 2008, 08:49:16 pm »
Well said Paolo,

I think this would be well worth the effort.

Now if only I could think of how to do it...

David
No, you can't have it!