Book a Demo

Author Topic: Linking a sequence diagram to a use case  (Read 7981 times)

jjorczak

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Linking a sequence diagram to a use case
« on: November 21, 2002, 12:39:01 pm »
I am playing around with the trial of EA and love it. I especially love the HTML documentation it generates. However, I am trying to link a sequence diagram to its associated use case so that an appropriate hyperlink appears in the generated docs. I can't seem to get this to work. Any ideas?

andlil

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #1 on: November 21, 2002, 11:17:21 pm »
Hi !

It depends on how you want to link them. One way is to
use the relation matrix.
You find it under the project menu. Select the Usecase
as source and Sequence as target and select proper
Link type.

Hope this helps

/Anders

andlil

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #2 on: November 21, 2002, 11:43:03 pm »
Forget my last answer. It seems that the relation matrix doesn't do what I expected. It does not create links between
a usecase and a sequence diagram.

sorry

/Anders

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #3 on: November 22, 2002, 10:17:19 am »
Hi J,

Mybe this thread can help you:

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi?board=general&action=display&num=1031192643

If not, please keep us poted.

Jaime Gonzalez
« Last Edit: November 22, 2002, 10:18:12 am by jaimeglz »

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #4 on: November 24, 2002, 02:18:29 am »
Hi,

For the next build of EA (582) I have added a section in the HTML document generator to produce hyperlinks from the model element cross references you can set up in EA.

If you havent used these before - try right clicking on a diagram or element in the project browser - and then select the "Add element/diagram as element(s) reference.." - then choose the targets in the current diagram that will cross reference to this one.

When you right click on an element in a diagram you can select "See other references..." from the context menu (Ctrl+J) to view cross links.

The new HTML document generator will produce a set of links for associated diagrams and one for associated elements - so you can hyperlink between elements and diagrams.

This build should be out in a day or two, I hope it helps with this,

Geoff Sparks



MichaelRuschena

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #5 on: November 25, 2002, 05:01:07 pm »
The thread cited by Jaime was really cool.  :D I'm just wondering if there's a way to link a note to a feature without having to do it in a diagram?

For instance, suppose I have a use case, and want the scenario to appear as a note in the sequence diagram. I could
  • copy and paste text... I have done this, but now I know a much better way ;D
  • In the use case diagram, add a note, associate it to the scenario, then copy and paste the note to the new diagram
  • Include the use case in the sequence, associate the note, then delete the use case

The key point being... to associate I seem to need a NoteLink, which means I need note and object in a diagram, which I won't necessarily want in the final diagram. I can get around it, but... is there a way to associate without the link?

Thanks
Michael Ruschena

jaimeglz

  • EA User
  • **
  • Posts: 164
  • Karma: +0/-0
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #6 on: November 25, 2002, 08:55:52 pm »
Hi Michael,

Just a quick posting because it is getting late, and I have to leave on a trip tommorrow; and this is probably not what you are looking for, but:

Have you tried linking elements with the matrix (Project-> Relationship Matrix)? Of course, the matrix handles "ordinary" UML associations, and not navigation or element feature links; but --none the less-- it is quite useful.

You can also link an element by right-clcking on it in the workspace project tree, and selecting "Create link".

Jaime

MichaelRuschena

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #7 on: November 25, 2002, 09:57:46 pm »
Jaime,

I got half way with the relationship matrix. Specifically... I can call up the Use Cases, and I can even create Note Link Associations, but... I can't call up the particular notes, or tell the note which particular feature to link to.  :(

The work around' s not too bad, so I'm not incredibly disappointed. Just curious, mostly.

Michael
Michael Ruschena

Jumbik

  • Guest
Re: Linking a sequence diagram to a use case
« Reply #8 on: November 26, 2002, 02:22:42 pm »
Hi,

If I understand good, I think it is possible to model this situation by relation <<realize>>, that is "Sequence Diagram realize this Use Case". You can put the SQ diagram from Project browser to UC model and connect it by this relation to Use Case. Icon of diagram will be in HTML active link and in text summary of Use Case is also link to this diagram.

I am new here in EA, If I have not true, correct me please.

Jumbik.

MichaelRuschena

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Linking a sequence diagram to a use case
« Reply #9 on: November 26, 2002, 02:29:36 pm »
Making the <<realization>> link will create links in the HTML documentation, so the use case is accessible when you print out the docs. However, binding the notes to an internal feature of an object is much, much cooler 8). It means that in the diagram itself, the text is available.
So for sequence diagrams, you can have the scenario displayed in the modeller next to the function calls. It really makes a clear link between the use case and the sequence. Try it... overnight it's become my favorite EA trick :).
Michael Ruschena