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.

Session 15—Applying the Activity Diagram to the Case Study 165<br />

Multiple processes may take place at the same time. Model them using the fork bar<br />

and the synchronization bar. The fork initiates multiple processes and the synchronization<br />

bar shows the completion of the multiple processes and the continuation of<br />

activity as a single process.<br />

<strong>To</strong> model decisions in the process, you have two options. A decision that results<br />

from the completion of an activity is drawn using guard conditions. Each transition<br />

out of the activity is labeled with a unique (mutually exclusive) conditional expression<br />

enclosed in square brackets [ ]. For a decision that is not the result of one specific<br />

activity, use the diamond icon. Each transition out of the diamond decision<br />

point is also labeled with a unique conditional expression enclosed in square<br />

brackets [ ].<br />

When the logical flow of the process needs to return to a previous point in the flow,<br />

use the diamond icon as a merge point diamond. There may be two or more arrows<br />

entering the merge point, but only one exiting the merge point.<br />

End points are drawn using a bull’s-eye symbol. There may be as many end points as<br />

the logic requires. In practice, there should be one transition to an end point for<br />

each Use Case termination option.<br />

QUIZ YOURSELF<br />

1. What part of the Use Case narrative provides the start for your Activity diagram<br />

(See “Building an Activity Diagram for the Case Study.”)<br />

2. What notation do you use to return to a previous place in the Activity diagram<br />

(See “Building an Activity Diagram for the Case Study.”)<br />

3. The Activity diagram offers two ways to handle decisions. When do you use the<br />

diamond symbol for a decision (See “Building an Activity Diagram for the Case<br />

Study.”)<br />

4. What notation do you use to show that a transition triggers multiple processes<br />

(See “Building an Activity Diagram for the Case Study.”)<br />

5. What notation do you use to show that multiple, concurrent paths end and become<br />

one logical path (See “Building an Activity Diagram for the Case Study.”)

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

Saved successfully!

Ooh no, something went wrong!