Book a Demo

Author Topic: How to do: Sequence Diagrams  (Read 2984 times)

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
How to do: Sequence Diagrams
« on: April 19, 2011, 01:59:54 am »
I have mastered to debug code in the EA from VS.
I have mastered to generate sequence diagarms.
I have not yet mastered to show returning messages as an arrow from right to left.
I have not yet mastered to show messag arrows including parameters and types (full-type information)
AND what bothers me most:
I have not mastered yet to see how a object is created and how this object then sends messages further to create other objects etc.
maybe one can give me a hint about what I have to seek and find out.
Josef -evaluating for another 20 days


philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: How to do: Sequence Diagrams
« Reply #1 on: April 19, 2011, 06:27:15 am »
Hi Josef

To set a right to left message as "return", you can either use Tool | Options from the main menu, and then on the Sequence node under the Diagram node and check "Assume Right Left Messages are return" This will make ALL right left messages return by default

OR

Double click a message to bring up its properties and then select the "Is Return" check box this will make only this message a return

To show parameters for a message, double click the sequence diagram background, to bring up the diagram p. roperties and select the Features tab and select "Full Details" from the "Show Parameter Detail:" drop down list

To show a message as "Create" again double click the message to bring up its properties and select "New" from the "Life Cycle" drop down list

Hope this helps you out

Cheers

Phil

Models are great!
Correct models are even greater!

Josef Stadelmann

  • EA User
  • **
  • Posts: 59
  • Karma: +0/-0
  • as simple as possible, but not too simple
    • View Profile
Re: How to do: Sequence Diagrams
« Reply #2 on: April 19, 2011, 06:20:37 pm »
Hi Phil

first thank you, unfortunately it did not help. I have a little C# code, a class with a main() representing a program , in fact the main part of a WCF web service. When main starts it has to setup a custom binding among other things.

I did as you said: doubble click the diagram back ground and in features / show parameter details : set to : full details. Where do I have to safe this option to make it permanent? because with every new generated sequence diagram this option is reset and parameter details are never shown.

I can see how the Program gets called!

1.0 Main(string[]) an arrow which results in making the dashed line a real method box. The code executing is:
// create the ServiceHost for the Service (implementation).
            ServiceHost service1ServiceHost = new ServiceHost( typeof(FKTmapManager), new Uri(BaseAddress));

This leads to a dashed arrow 1.2 ServiceHost() starting a thik life line.
Here I would expect the parameter from new Uri(BaseAddress) to be shown. I have turned on, after the diagram is generated, and have set parameter details to full details. OK --- but the parameters of the call like the new Uri(BaseAddress) is not shown.

And how can I make that seq diagrams generated show the new call as new arrow to a box of the :class by default not by modifying the resulting sequence diagram.

Josef