Book a Demo

Author Topic: Linking use case and sequence diagram  (Read 11935 times)

daune_jf

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Linking use case and sequence diagram
« on: January 22, 2008, 12:45:49 am »
Hi,

I would like to link sequence diagram to the use case that it 'realizes', but don't know how to do it.

I know I can put the sequence as a child of the use case, but we would like to keep all sequence diagrams in a same 'package'.

It seems only possible to link elements to elements, but not elements to diagrams. Am I right?

J-F

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Linking use case and sequence diagram
« Reply #1 on: January 22, 2008, 01:02:29 am »
You can link use cases with diagram references by using a dependency link of stereotype "realise". Not perfect, but it works.

Oliver
« Last Edit: January 22, 2008, 01:03:40 am by ofels »

daune_jf

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Linking use case and sequence diagram
« Reply #2 on: January 22, 2008, 01:50:45 am »
How do you achieve this?

In the "Create Link" dialog, you can only choose an element as target.

Element of type "Sequence" are not sequence diagrams (a sequence diagram can contain one or more sequences)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Linking use case and sequence diagram
« Reply #3 on: January 22, 2008, 05:07:59 am »
See "ref" (without quotes) at the bottom of the table in Interaction Operators in the documentation.
No, you can't have it!

daune_jf

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Linking use case and sequence diagram
« Reply #4 on: January 22, 2008, 05:17:39 am »

Mmmmhh. I see.

I must drag into my use case diagram each corresponding sequence diagrams, then delete them (to avoid a lot of references).

That's a pity there is no easier way.

I am surprised it is not possible to link elements to diagrams. It is very convenient.

Ideally, I would like to right-click on any element, and have a list of 'internal' hyperlink.

J-F

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Linking use case and sequence diagram
« Reply #5 on: January 22, 2008, 07:04:42 am »
You can do that, sort of...

Create a hyperlink to a diagram. Remove the text and reshape the hyperlink to fit over your element. Be very careful while formatting the hyperlink; it is very easy to 'lose' a transparent hyperlink before you've placed it, and you'll have a real difficult time finding it again.

HTH, David
No, you can't have it!

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Linking use case and sequence diagram
« Reply #6 on: January 23, 2008, 04:29:45 am »
What do you need? Just a package full of sequence diagrams or an ability to gemerate such a link in your docs?

You may add the diagram under your UseCase element (with establishing the link) and then move it into your diagram package. The link stays there.
Jan 'Bary' Glas

daune_jf

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Linking use case and sequence diagram
« Reply #7 on: January 23, 2008, 05:03:13 am »

I must have missed something...

If I create a diagram as a 'child' of a use case, and then drag it to a package, it is completely removed from the use case.

There is no remaining link.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: Linking use case and sequence diagram
« Reply #8 on: January 23, 2008, 08:34:15 am »
It is just a feature inside EA. If you set the UseCase as a "Composite element" (in element context menu) you create a link to the first diagram inside. A small icon on the UseCase shows that it is "clickable".
Jan 'Bary' Glas