01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

76<br />

Saturday Morning<br />

Use Case dialog in the case study narrative<br />

Next, you describe the dialog between the actor and the Use Case (see Table 7-5). You see<br />

each action required by the actor and each response from the system. Some responses require<br />

a choice based on the progress so far, so you see the decision statements included in the dialog.<br />

This way, you know why the system gave the response it did. Other decision points are<br />

the result of an action, like attempting to find the order using the Find Order Use Case.<br />

Table 7-5<br />

The Fill Order Use Case Narrative: Dialog<br />

Field Name<br />

Use Case dialog<br />

Field Description<br />

The system asks the user for an order number<br />

The user provides the order number<br />

The system asks for the order (from FindOrder Use Case).<br />

If the Order is not found, Error, stop<br />

Else:<br />

The system provides the order to the user<br />

The user chooses an item<br />

Until the user indicates that he is done or there are no unfilled<br />

item quantities greater than 0:<br />

The system asks for the location of the item and<br />

unfilled quantity (from the LocateProduct Use Case)<br />

If the item is found (available):<br />

The user indicates the quantity of the item filled<br />

If there are any unfilled item quantities greater than 0:<br />

Create a backorder (using the CreateBackorder Use Case)<br />

Based on the Use Case dialog, see if you can find an error or something missing from the<br />

Use Case diagram in Figure 7-1. Very often, taking a closer look at one aspect of the problem<br />

(like the narrative) will reveal new insights to update existing diagrams. This is a normal and<br />

desirable part of the modeling process.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!