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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SESSION<br />

14<br />

Modeling the Functional View:<br />

The Activity Diagram<br />

Session Checklist<br />

✔ Explaining the purpose and use of the Activity diagram<br />

✔ Explaining the Activity diagram notation<br />

The Activity diagram is part of the Functional view because it describes logical<br />

processes, or functions, implemented using code. Each process describes a sequence of<br />

tasks and the decisions that govern when and how they are done. You must understand<br />

these processes in order to write correct code.<br />

Functional modeling has acquired a poor reputation with the onset of object-oriented<br />

(OO) modeling. But both functional modeling and data modeling provide valuable insight<br />

into software development. OO development methods simply bring the two concepts<br />

together. Functional modeling is still a very basic part of any application design.<br />

Introducing the Activity Diagram<br />

In the past, you used flowcharts, a simple technique with a wide range of applications. The<br />

<strong>UML</strong> offers an enhanced version of flowcharts in the form of the Activity diagram, the focus<br />

of this session.<br />

Where might you use the Activity diagram There are at least three places in the <strong>UML</strong><br />

where an Activity diagram provides valuable insight: workflow, Use Cases, and operations.<br />

Modeling workflow and Use Cases<br />

When modeling a Use Case, you’re attempting to understand the goal that the system must<br />

achieve in order to be successful. Use the Activity diagram to follow the user through a procedure,<br />

noting the decisions made and tasks performed at each step. The procedure may<br />

incorporate many Use Cases (workflow), a single Use Case, or only part of a Use Case as you

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

Saved successfully!

Ooh no, something went wrong!