File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Sequence Diagram Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Sequence Diagram Problem" Watch "Sequence Diagram Problem" New topic
Author

Sequence Diagram Problem

James Wang
Ranch Hand

Joined: Sep 04, 2003
Posts: 102
Hi All,

When an UC include another UC, I want to create the sequence diagram for each UC. but the first sequence diagram need to access the second sequence diagram, that is the second UC is like a service for the first UC,how to draw the sequence diagram?


James<br /> <br />SCJP,SCWCD,SCBCD,SCDJWS,SCEA
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
You do this by using the <<include>> construct as in here -



Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Ajith,
Does this also work for forwarding to a seq diagram? For example..an order processing seq diagram wants to forward the user to the order fulfillment seq diagram? Is it just a matter of saying <<forward>> instead of <<include>> ?

Thanks,
Parag
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Well...you include an usecase realization( ie., a sequence diagram ) in another sequence diagram. This is what the example above is showing.

I haven't heard people use the term "forward" in the context of sequence diagrams. Usecases either include or extend each other. And the include part can be illustrated as shown above.

Does that answer your question? :roll:
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by Ajith Kallambella:
Well...you include an usecase realization( ie., a sequence diagram ) in another sequence diagram. This is what the example above is showing.

I haven't heard people use the term "forward" in the context of sequence diagrams. Usecases either include or extend each other. And the include part can be illustrated as shown above.

Does that answer your question? :roll:



Yes, that kinda makes sense. I can always see the other seq diagram providing service to the first one.

Thanks for the prompt reply.

parag
James Wang
Ranch Hand

Joined: Sep 04, 2003
Posts: 102
Ajith,

Thank you for your seq diagram, Now I draw the UML diagram using Rose 2002, But I cannot add an UseCase diagram to the sequence diagram. does not Rose 2002 support the feature?
H. Hafer
Ranch Hand

Joined: Aug 23, 2004
Posts: 108
Regarding adding use cases to sequence diagrams,
this shouldn't be a problem -- syntactically spoken -- since you may embed nearly everything in any diagram type. To my surprise, enterprise architect does allow adding use cases but shows them as squares, not as ellipses. Lapsus of Sparx Systems or "feature" of UML ??

Harbo
Ian Roberts
Ranch Hand

Joined: Aug 20, 2003
Posts: 46
The new UML 2.0 specification has introduced a formal approach for referencing sequence diagrams within sequence diagrams. In the old days you would put a note on the diagram to reference the "internal" sequence diagram, however, the new UML specification makes it much easer.

Visit the OMG website and reference the UML support pages. You need to look for "Interaction Frames". There are plenty of new books on the market that now cover UML 2.0, which should be official by the end of this year.
hhenne
Greenhorn

Joined: Aug 18, 2002
Posts: 1
Originally posted by Ajith Kallambella:
Well...you include an usecase realization( ie., a sequence diagram ) in another sequence diagram. This is what the example above is showing.

I haven't heard people use the term "forward" in the context of sequence diagrams. Usecases either include or extend each other. And the include part can be illustrated as shown above.

Does that answer your question? :roll:


I haven't heard about forward either. But is that not what the 'Prepare Itinerary Use Case' does, when it ends by stating 'System sends the priced itinerary to Pay For Itinerary Use Case ?

best regards
Hardy Henneberg
Ricardo Polero Baraldi
Greenhorn

Joined: Nov 14, 2002
Posts: 26
Dear Friends
I did that , but put as an actor and describe like "Price itinerary UserCase" would this be accepted ?
Another question. I started the assigment with the database schema using RRose2002 Ent edition and after that i generate the object model.
Looks like strage ! Someone know a way to check this out ?
THX !
James Wang
Ranch Hand

Joined: Sep 04, 2003
Posts: 102
H. Hafer,

I also draw it using Enterprise Architecture tool, now I am confused it,why is it a ellipse?
H. Hafer
Ranch Hand

Joined: Aug 23, 2004
Posts: 108
Originally posted by James Wang:
I also draw it using Enterprise Architecture tool, now I am confused it,why is it a ellipse?


I did it with EA 4.0 (4.1 makes no difference here).
Use cases in use case diagrams are elliptic, in sequence diagrams quadratic.

Cheers,
Harbo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sequence Diagram Problem
 
Similar Threads
UML 2.0 question
Actor dilemma!!
UML question
Class or interaction
Certified finally