02 UML-Activity Diagram
02 UML-Activity Diagram
Activity Diagrams
What is an Activity Diagram?
Activity diagrams represent the dynamic (behavioral) view of a system
UML activity diagrams are the object oriented equivalent of flow chart and
data flow diagrams in function-oriented design approach
IIT
Enrollment
Student Registrar
<<include>>
Course registration
SEIIT System
Here different activities are:
Received enrollment form filled by the student
Registrar checks the form
Input data to the system
System authenticate the environment
Pay fees by the student
Registrar checks the amount to be remitted and prepare a bill
System acknowledge fee receipts and print receipt
Hostel allotment
Allot hostel
Receive hostel charge
Allot room
Medical check up
Create hostel record
Conduct medical bill
Enter record
Issue library card
Issue identity card
Activity Diagram for the Use Case
Received form
Hostel
Payment fees Medical check
allotment
Activity
The rounded circle represents
activities that occur. An activity is Issue identity Issue library
card card
not necessarily a program, it may be
a manual thing also
Flow/ edge
The arrows in the diagram. No label
is necessary
Basic Components in an Activity
Diagram Received form
Fork
A black bar ( horizontal/vertical )
with one flow going into it and
several leaving it. This denotes the Payment fees
Hostel
allotment
Medical check
beginning of parallel activities
Join
A block bar with several flows Issue identity Issue library
card card
entering it and one leaving it. this
denotes the end of parallel activities
Merge
A diamond with several flows
entering and one leaving. The
implication is that all incoming flow
to reach this point until processing
continues
Basic Components in an Activity
Diagram
be horizontal or vertical
Detailed Activity Diagram of SEIIT
1
Received form
Hostel
Payment fees Medical check
allotment
2
Issue identity Issue library
card card
Detailed Activity Diagram of SEIIT
Fill-in Check
form form
[Incorrect]
Regret message
[Correct]
Regret
registration
Detailed Activity Diagram of SEIIT
Display Calculate
1 enrollment form registration fees
Dispaly fees
payable screen
Process
payment
Pay fee 2
Print receipt
Activity Diagram of SEIIT with Swim Lane
Student
Fill-in
form
Verify the [Found]
[Incorrect]
applications
[Not Found]
Check
Regret message
Registrar
form
[Correct]
Display student
screen
Create record
System
Input student
information
[Match]
1
Search for Student
selection list [No Match]
Regret
registration
Importance of Activity
Diagram
An activity diagram can depict a model in several ways
Activity diagram can also be drawn that cross several use cases, or that address
just a small portion of use case
The activity diagram can be used to develop interaction diagrams which help to
allocate activities to classes