Meaningless Drivel is fun!*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Sequence diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Sequence diagram" Watch "Sequence diagram" New topic
Author

Sequence diagram

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi all,
My task is to create a Sequence diagram for an existing application. Say, my J2EE application has a "register" new user sequence which has to be drawn into a sequence diagram.
Since the code is already there, I am confused of which all classes I need to include, I have a controller servlet, some command object, action object, ejbs etc which are involved in this sequence.
How will i draw it ? Or what r the steps that I need to follow ?
This is the first time I am creating a sequence diagram, Please help
Thanks
Maya
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Why do you need to draw that diagram? Whom do you draw that for? What will he need it for?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi, To answer your questions:
1. My manager asked me to do it, thats the task that is given to me
2. That is for keeping track of the sequence.
Please help me
What i have done is i have figured out all the classes that take part in the register process, there are some jsps, a servlet, couple of ejbs, and so on
How will I make a squence diagram ? How shold i proceed
Thanks
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by maya menon:
1. My manager asked me to do it, thats the task that is given to me
2. That is for keeping track of the sequence.
Please help me

So, why does the manager want you to draw the diagram? Who will later *use* it and for what purpose?
Until you know that, you aren't in a position to reasonably decide what to do...
amit ang
Ranch Hand

Joined: Sep 28, 2001
Posts: 38
Hi Maya,
It is a simple thing.
As, you have identified the classes, that are going to come in the picture while doing the registration.
Just for once check how the sequence diagrams are drawn, wht all is there in that diagram, how does it look like.
If, you have Rational Rose installed on your machine just do the reverse engg and you will get all those class in the Rose.
Now, after you have done the above. Just drag those class into the sequence of classes(sequence here means one after the other comming into pic while doing the registration process) into the view and show the sequence of calling the message.
I think you need to just see some examples on the net for that matter.
:-)Amit

Originally posted by maya menon:
Hi all,
My task is to create a Sequence diagram for an existing application. Say, my J2EE application has a "register" new user sequence which has to be drawn into a sequence diagram.
Since the code is already there, I am confused of which all classes I need to include, I have a controller servlet, some command object, action object, ejbs etc which are involved in this sequence.
How will i draw it ? Or what r the steps that I need to follow ?
This is the first time I am creating a sequence diagram, Please help
Thanks
Maya
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Amit,
that certainly will produce a sequence diagram, and possibly even a "complete" one.
The question I like to ask you is wether those diagrams are actually *usefull* in your experience.
In my experience, the most usefull diagrams are those which in some form represent an *abstraction* from the code, therefore hiding some details and accentuating others. How that is done obviously depends on the purpose of the diagram.
If I want to see *all* of the tiny details, I still prefer the code in a decent class browser over diagrams...
Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Thanks Amit for your help.
I think I got it and am proceeding with rational Rose
Thanks
Maya
 
jQuery in Action, 2nd edition
 
subject: Sequence diagram