You are on page 1of 8

ADVANCED PROGRAMMING WITH JAVA

AND UML
CSC 417

By
Dr. Alhassan S.

March 30, 2022


UML Diagrams

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 2/8
Activity Diagrams

It is used to display the sequence of activities in a system.


It is used to represent the flow from one activity to another
activity.
It captures the dynamic behavior of the system.
Activity Diagrams show the workflow from a start point to the
finish point detailing the many decision paths that exist in the
progression of events contained in the activity.
Activity Diagrams are useful for Business Modelling where they
are used for detailing the processes involved in business activities.

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 3/8
Activity Diagrams cont.

Purpose of Activity Diagrams


Draw the activity flow of a system.
Describe the sequence from one activity to another.
Describe the parallel, branched and concurrent flow of the
system.

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 4/8
Activity Diagrams cont.

How to Draw a Activity Diagrams?


Identify the following elements
Activities
Association
Conditions
Constraints
Next make a mental layout of the entire flow.
Transformed the mental layout into an activity diagram.

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 5/8
Activity Diagrams cont.

Uses of Activity Diagrams


Modeling work flow by using activities.
Modeling business requirements.
High level understanding of the system’s functionalities.
Investigating business requirements at a later stage.

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 6/8
Activity Diagrams cont.
Some Elements of Activity Diagrams

Element Description Symbol


Activity It is the specification of a
parameterized sequence of
behaviour

Action It represents a single step


within an activity
Control Flow It shows the flow of control
from one act ion to the next.
Initial Node Start Node.
Final Node Ends control flow.

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 7/8
Activity Diagrams Cont.

An activity diagram for order management system

ByDr. Alhassan S. ADVANCED PROGRAMMING WITH JAVA AND UML March 30, 2022 8/8

You might also like