• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sequence diagram

 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you need to draw that diagram? Whom do you draw that for? What will he need it for?
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Amit for your help.
I think I got it and am proceeding with rational Rose
Thanks
Maya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic