UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory UML Weekend Crash Course™ - To Parent Directory

crnarupa.singidunum.ac.rs
from crnarupa.singidunum.ac.rs More from this publisher
01.01.2015 Views

Session 8—Identifying the Use Case Scenarios 85 For the FillOrder Use Case, I have drawn an Activity diagram (Figure 8-1) so that you can more easily see the logical steps involved in the execution of the Use Case. Get Order # Get Order (Find Order Use Case) Order Found [Yes] Display Order [No] Provide Error Message Done or no unfilled items [True] Any unfilled quantities [False] Choose Item [Yes] Create Back Order [No] Find Item (Locate Product) Use Case [No] Item Found Find Item Quantity [Yes] Reduce Inventory Figure 8-1 Activity diagram for Fill Order Use Case

86 Saturday Morning In Figure 8-2, trace the logic for the successful scenario first. Trace each step until you reach a decision point where the logic splits into multiple paths. Now you are faced with a choice. Scenario 1 Get Order # Get Order (Find Order Use Case) Order Found [Yes] [No] Figure 8-2 Trace the scenario to the first decision point.

Session 8—Identifying the Use Case Scenarios 85<br />

For the FillOrder Use Case, I have drawn an Activity diagram (Figure 8-1) so that you can<br />

more easily see the logical steps involved in the execution of the Use Case.<br />

Get Order #<br />

Get Order<br />

(Find Order<br />

Use Case)<br />

Order<br />

Found<br />

[Yes]<br />

Display Order<br />

[No]<br />

Provide Error<br />

Message<br />

Done or<br />

no unfilled<br />

items<br />

[True]<br />

Any unfilled<br />

quantities<br />

[False]<br />

Choose Item<br />

[Yes]<br />

Create Back<br />

Order<br />

[No]<br />

Find Item<br />

(Locate Product)<br />

Use Case<br />

[No]<br />

Item<br />

Found<br />

Find Item<br />

Quantity<br />

[Yes]<br />

Reduce<br />

Inventory<br />

Figure 8-1<br />

Activity diagram for Fill Order Use Case

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

Saved successfully!

Ooh no, something went wrong!