0% found this document useful (0 votes)
55 views3 pages

Experiment 7 - Activity Diagram

1) The document provides instructions for a lab assignment on creating activity diagrams using MS Visio to model the procedural flow of actions. 2) Students are asked to create an activity diagram of an ATM cash withdrawal system by representing states, actions, and control flow using shapes from the UML activity stencil. 3) Creating swimlanes, adding transition strings to shapes, and using complex transition shapes allows students to fully diagram the parallel and synchronized processes of the ATM system.

Uploaded by

hassan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views3 pages

Experiment 7 - Activity Diagram

1) The document provides instructions for a lab assignment on creating activity diagrams using MS Visio to model the procedural flow of actions. 2) Students are asked to create an activity diagram of an ATM cash withdrawal system by representing states, actions, and control flow using shapes from the UML activity stencil. 3) Creating swimlanes, adding transition strings to shapes, and using complex transition shapes allows students to fully diagram the parallel and synchronized processes of the ATM system.

Uploaded by

hassan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Lab #7

Subject: SOFTWARE DESIGN AND ARCHITECTURE


Course: CS26
Instructor: Engr Saiqa Anjum

Instructions:
1. You have to complete the task in lab.
2. You may be asked to submit the task in the assignment folder up to next day
depending upon the complexity of task.
3. Viva may be conducted by any or every student.
4. Copied work will be given zero marks.

EXPERIMENT 7 – ACTIVITY DIAGRAM

OBJECTIVE
The aim of this lab is to introduce students to the concept of activity diagrams. The same
shall be drawn using MS Visio.

ACTIVITY DIAGRAM
The purpose of the activity diagram is to model the procedural flow of actions that are
part of a larger activity.

In projects in which use cases are present, activity diagrams can model a specific use case
at a more detailed level. However, activity diagrams can be used independently of use
cases for modeling a business-level function, such as buying a concert ticket or
registering for a college class. Activity diagrams can also be used to model system-level
functions, such as how a ticket reservation data mart populates a corporate sales system's
data warehouse.

How to Create Activity Diagram:

1. Go to FileNewSoftware & DatabaseUML Model Diagram.


2. Select UML Activity stencil from Shapes Menu.
3. If you want to indicate responsibility in the activity diagram, drag a Swimlane
shape onto the page for each class, person, or organizational unit you want to
represent.
Create swimlanes in an activity diagram:
a. In an activity diagram, drag a Swimlane shape onto the drawing page.

1 SE-210 Software Design & Architecture – Use Case Description


b. Double-click the shape to add a name and other property values.
c. Repeat steps a, b until you've added all the partitions or organizational units
you need.
d. Drag the side selection handles on the Swimlane shapes to make the lanes
the size you want.
e. Drag State, Action State, Object In State and Signal Receipt or Signal
Send shapes into the areas defined by the swimlanes and connect them
using Control Flow and Object Flow shapes.
4. Drag an Action State or State shape onto the drawing page for each action or
activity state you want to represent. Use the Initial State and Final State shapes
to represent initial and final pseudo states.
5. Connect Control Flow shapes to State shapes to indicate the change from one
state to another.
Indicate the flow of control in an activity diagram:
a. In an activity diagram, drag a Control Flow shape onto the drawing page.
b. Glue the Control Flow shape endpoint (without the arrowhead) to a
connection point on the source Action State or State shape.
c. Glue the Control Flow shape endpoint (with an arrowhead) to a connection
point on the destination Action State or State shape.
d. Double-click the Control Flow shape to add a transition string, including
an event (event: An occurrence in Visio, such as a change to a shape
formula or the deletion of a page.), guard condition, action expression, and
more.

6. Use the complex transition shapes, Transition (Fork) or Transition (Join), to


represent the forking of one action state into multiple parallel states, or the
synchronization of multiple action states into one state.
7. Double-click any shape to open its UML Properties dialog box where you can
add a name, transition string etc.
8. Save the diagram.

TASK
Create an activity diagram of the ATM Cash Withdrawal system explained in Experiment
6. (10)

2 SE-210 Software Design & Architecture – Use Case Description


Web Resources

 http://en.wikipedia.org/wiki/Activity_diagram
 http://www.tutorialspoint.com/uml/uml_activity_diagram.htm
 http://www.sparxsystems.com/resources/uml2_tutorial/uml2_activitydiagram.
html
 http://msdn.microsoft.com/en-us/library/dd409465.aspx

Summary

Activity Diagrams are important for modeling system functions. They


emphasizes the flow of objects and synchronization of the flow in
support of parallel processing. The activity diagram of the given
case study showed important flows of the system.

3 SE-210 Software Design & Architecture – Use Case Description

You might also like