Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about UML - sequence diagrams

 
Asterix
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks!
My problem: I have a sequence diagram and a "sub" sequence diagram. How can I integrate a sub-diagram in a main diagram? Can I show the sub diagram as an actor in the main diagram?
Thanx for help!
Reklef
 
noel angel
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Does this sub-sequence diagram represent an included use case? I have never seen sub-diagrams referenced but included use case sequence diagrams are often included.
Think use cases and as Simon Roberts told us keep it simple!!!
Noel
 
Asterix
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Does this sub-sequence diagram represent an included use case?
YES!
> I have never seen sub-diagrams referenced but included use case sequence diagrams are often included.
HOW? As an actor?
 
Darryl A. J. Staflund
Ranch Hand
Posts: 312
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am pretty sure you can have a class object message an external use case in a sequence diagram. I might be wrong here, but I am pretty sure that sequence diagrams allow you to depict the exchanging of messages between classifier objects -- and actors, along with classes, components, nodes, use cases, packages, etc. are all classifiers. So I see no problem in this.
Darryl
 
Asterix
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I can have a use case in a sequence diagram, but once more, how does it looks like? Is it an actor named "Login In Use Case" or an object with this name or doesn't it make any difference?
Thanx all for your help! Great!
 
Darryl A. J. Staflund
Ranch Hand
Posts: 312
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Most sequence diagrams that I have seen whose classifiers refer to external use cases generally use the 'Use Case' icon to depict the external use case. Thus, a class object depicted by a rectangle would send a message to an external use case depicted by an oval.
Having said that, most UML IDEs vary in how they depict this. Some render the message sequencing as described above. Others render external use cases as stereotyped rectangles. etc. It's pretty varied in my experience.
Darryl
 
Asterix
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Darryl!
I use Together and when I change the stereotype of an object, the object change his appearance. I don't now this before...
But there is no special stereotype for use cases. Now I name an object with the stereotype "usecase" with no special appearance
 
Darryl A. J. Staflund
Ranch Hand
Posts: 312
2
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you create a use case in a use case diagram and then drag-and-drop it into your sequence diagram. Doesn't this work?
Darryl
 
Asterix
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't work.
Thanx for help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic