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.

78<br />

Saturday Morning<br />

Table 7-7<br />

The Fill Order Use Case Narrative: Post-conditions<br />

Field Name<br />

Post-conditions<br />

Cancel:<br />

Field Description<br />

Normal termination:<br />

The changes to the Order must be saved<br />

(The backorder is handled by the CreateBackorder Use Case)<br />

The Order must be saved unchanged<br />

If a backorder was being created, it must be cancelled<br />

Note that the post-conditions include some items that go a bit beyond the scope of a Use<br />

Case, like saving the Order. A rule of thumb with Use Cases is that you include only what<br />

the user can see, and what can be inferred by what they can see. In this case, if the user<br />

gets a message indicating that the Order was updated, then you would include the messages<br />

in the Use Case dialog. You would not include the actual steps for updating the Order in the<br />

database. If your team feels that information is really needed, first make certain that users<br />

agree that your understanding, as documented in the narrative, was correct. Then you could<br />

take the Use Case description down a level to address the requirements you know have to be<br />

supported by the design. This rule is a little bit gray, but it comes with the territory.<br />

REVIEW<br />

The Use Case narrative describes, in user-level terms, what the users expect from the Use<br />

Case. The Use Case is a feature of the system with a beginning, a middle, and an end. As<br />

such, it needs to be explained in terms plain enough for the users to understand and verify,<br />

but precise enough for analysts and designers to rely on in order to build the system.<br />

The features of a Use Case narrative aren’t standardized, but this session provides a set of<br />

common elements in wide use:<br />

Use Case initiation describes how to start a Use Case.<br />

Assumptions define conditions that must be true, but are not tested in this Use<br />

Case.<br />

Pre-conditions define conditions that must be true, and are tested in this Use Case.<br />

The Use Case dialog explains how the user (whether an actor or another Use Case)<br />

interacts with the system during the execution of the Use Case.<br />

Use Case terminations define the different mechanisms that can cause the Use Case<br />

to stop execution.<br />

Post-conditions define the state of the system that must be true when the Use Case<br />

ends. This helps prevent Use Cases from leaving the system in an unstable condition<br />

for other Use Cases that follow.

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

Saved successfully!

Ooh no, something went wrong!