Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sequence Diagram Problem

 
James Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You do this by using the <<include>> construct as in here -

 
Parag Doshi
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
H. Hafer,

I also draw it using Enterprise Architecture tool, now I am confused it,why is it a ellipse?
 
H. Hafer
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic