aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes A question about UML - sequence diagrams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "A question about UML - sequence diagrams" Watch "A question about UML - sequence diagrams" New topic
Author

A question about UML - sequence diagrams

Asterix
Greenhorn

Joined: Mar 27, 2003
Posts: 7
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

Joined: Oct 27, 2002
Posts: 75
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

Joined: Mar 27, 2003
Posts: 7
> 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

Joined: Oct 06, 2002
Posts: 303
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

Joined: Mar 27, 2003
Posts: 7
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

Joined: Oct 06, 2002
Posts: 303
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

Joined: Mar 27, 2003
Posts: 7
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

Joined: Oct 06, 2002
Posts: 303
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

Joined: Mar 27, 2003
Posts: 7
It doesn't work.
Thanx for help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A question about UML - sequence diagrams
 
Similar Threads
Sequence Diagrams and Use cases questions
Interaction Diagrams
UML / Sequence Diagram
log-in failure thru UML's sequence diagram ?
if-else condition thru Sequence diagram ?