Book a Demo

Author Topic: EA sequence diagram question  (Read 2804 times)

topper99

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
EA sequence diagram question
« on: February 17, 2010, 10:01:14 pm »
Hi,

I have created a number of sequence diagrams in EA by dragging and dropping class instances from the project browser.

I have now realised that what I actually wanted to do was create simple links to my classes instead of instances.

Is there a way of switching the instances on my diagrams to links so that I do not have to redraw all my diagrams again?

Kind regards and thanks for any help in advance

Topper99

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA sequence diagram question
« Reply #1 on: February 17, 2010, 10:47:32 pm »
Topper99,

Are you sure you want links iso instances?

I always use instances in sequence diagrams. The reason is that a sequence diagram represents the behavior at runtime. If I'm calling an operation I'm generally doing that on objects, not on classes.

The only exception to this are calls to static operations. For those I usually use the class itself rather then an instance.

Geert

Happy

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: EA sequence diagram question
« Reply #2 on: February 17, 2010, 11:36:09 pm »
Hi Topper,

Geert is right when saying the usage of instances is the preferred way of working with sequence diagrams.



However, I once had the problem that for every sequence diagram a new instance was created.

I wanted to change the diagrams so that all diagrams would work with the same instance.

As I didn't find a solution quite like the one you are looking for I changed the diagrams manually.

- You can add the instance to you diagrams.

- Then move the calls/messages from your class or old instance to the new one.

- Rearrange and prettify the diagram -after- transferring all calls/messages to the new instance othewise you will have to worry lots about life and timelines.

- Delete the old class/instance from the diagram.

But maybe theres a quicker automated way.

Cheers
H.