Book a Demo

Author Topic: Sequence Diagrams - How to ...  (Read 3612 times)

NI

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Sequence Diagrams - How to ...
« on: May 17, 2016, 03:22:46 pm »
Hello there,
I just started to work with EA and I am a newbie. So if these questions sound stupid, please bear with me :)

I am trying to make a sequence diagram,

1. What exactly is the difference between the information carried by "return value" of a message and a message of "return" type? Get two cases, a) if I invoke a calculation method in a class which returns a result, should this result be specified as a separate message or as a "return value" on the invocation call? b) What if the invocation call needs to be confirmed by the receiver, i.e. an acknowledgment?

2. Can I configure EA to always draw a "return" signal?

3. How does the sequence numbering in an "alt" fragment make sense? I expected that for each condition the sequence starts with the same number. In other words when messages in the first condition have sequence numbers "x.0" to "x.m", can second condition be configured so that its messages start with "x.0" again?

4. Why the field "Message" is cleared out if I change the type of an asynchronous connector from "call" to "signal" or reverse?

5. "undo" function does not work properly! Say I make a connection and select "Activations  > Start New Message Group". But I change my mind and I hit ctrl+z. It deletes the connection instead of undoing my last action! Is there a reason for this?

6. When I enter a name for a "Message" it is shown as the connector's label and it "wraps" to fit a certain size. Is there any option to ask connector labels to "resize" with the text?

7. Why do connectors' labels change size and position when I save and re-open the project? So even if I resize labels manually, after I reopen a file they are all messed up again!

8. I moved a few messages around and now my sequence diagram starts with "2.0"! How can i reset the numbering? (Save and re-open does not work!)
I figured this out, the first connector activations should NOT be set to "Start a New Message Group" :) or you will have your sequence numbering start from "2.0"


Ciao,
Nima

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Sequence Diagrams - How to ...
« Reply #1 on: May 18, 2016, 04:17:17 pm »
Hi Nima,

Welcome to the forum; whoa, that's a lot of questions  ;D

I'll try to answer some of them

1) No difference, just another notation for the same thing.
2) Yes, there's an option somewhere to do that. Look in Tools|Options and then some...
5) Undo is a funny animal in EA. It only works for things that are not important (such as diagram layouts). So the undo will work if you have moved a message, but it will not work if you have deleted an element.
6) No, you'll have to do manual re-sizing  of the labels
7) If you have saved your diagram before closing EA the labels should stay the same. If that is not the case you better report a bug so Sparx Systems can have a look at it.

Geert

NI

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sequence Diagrams - How to ...
« Reply #2 on: May 27, 2016, 10:55:59 pm »
Hi Geert,

Thanks! I was away for a few weeks but now I am back in business :D
This does help; a lot actually... And I hope somebody can answer the other question...