wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes How do I address the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "How do I address the "include" relationship in the use case diagram (Part 2)" Watch "How do I address the "include" relationship in the use case diagram (Part 2)" New topic
Author

How do I address the "include" relationship in the use case diagram (Part 2)

wang xf
Greenhorn

Joined: Nov 24, 2010
Posts: 9
There are 5 use cases in the diagram. The "Check Inventory Availability" use case include the "Enter Request" use case. like this below:

"Check Inventory Availability" --- <<include>>------> "Enter Request".

I will draw the sequence diagram for these two use case separately. Do I need to address this kind of "include" relationship in the sequence diagram. If yes, how do I do in the sequence diagram?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

Wang,
I actually just did it as making one use case a pre-requisite for the other in my sequence diagram.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
wang xf
Greenhorn

Joined: Nov 24, 2010
Posts: 9
Jeanne Boyarsky wrote:Wang,
I actually just did it as making one use case a pre-requisite for the other in my sequence diagram.


Hi Jeanne,

thanks.

But the use case "Enter Request" is independent of the use case "Check Inventory Availability". It does not really need to have the pre-requisite to start it.

Correct me if I am wrong.
Rajiv Shr
Ranch Hand

Joined: Aug 11, 2010
Posts: 37
Wang,

You can use the Interaction Occurence element ("ref" element) to include one sequence diagram into another. This way you can have separate diagrams for 2 use cases, and include one in the other.

More details here - http://www.ibm.com/developerworks/rational/library/3101.html
Refer to this section in the link above - "Referencing another sequence diagram"

- Rajiv
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30136
    
150

wang xf wrote:But the use case "Enter Request" is independent of the use case "Check Inventory Availability". It does not really need to have the pre-requisite to start it.

Correct me if I am wrong.

Maybe I misunderstood. I thought you were saying that you wanted to include it first.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I address the "include" relationship in the use case diagram (Part 2)
 
Similar Threads
what is POS - point of sale system
Passed Part II
Sequence Diagrams and Use cases questions
How to show included use case in sequence diagram
How to show Include Use Case in Sequence Diagram?