0% found this document useful (0 votes)
17 views18 pages

Activity Diagram

An activity diagram is a flowchart that represents the flow from one activity to another within a system, illustrating operations, sequences, and parallel processes. Key elements include activities, associations, conditions, and constraints, with notations for initial states, decisions, final states, and synchronization through fork and join nodes. Swimlanes are used to group related activities, and an example is provided for a document management process involving various roles.

Uploaded by

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

Activity Diagram

An activity diagram is a flowchart that represents the flow from one activity to another within a system, illustrating operations, sequences, and parallel processes. Key elements include activities, associations, conditions, and constraints, with notations for initial states, decisions, final states, and synchronization through fork and join nodes. Swimlanes are used to group related activities, and an example is provided for a document management process involving various roles.

Uploaded by

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

Activity Diagram.

1
Activity diagram
• Activity diagram is basically a flowchart to represent the flow from
one activity to another activity.
• The activity can be described as an operation of the system.
• It is also called object-oriented flowchart.
• The purpose of an activity diagram can be described as −
• 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.
How to Draw an Activity Diagram?

• The main element of an activity diagram is the activity itself.


• An activity is a function performed by the system.
• After identifying the activities, we need to understand how they are
associated with constraints and conditions.
• Before drawing an activity diagram, we should identify the following
elements −
1. Activities
2. Association
3. Conditions
4. Constraints
Activity Diagram Notations
The starting stage before
an activity takes place is
depicted as the initial state

a rectangle
with
rounded
corners. It is a diamond shape box which
represents a decision with
alternate paths. It represents the
flow of control.

The state which the


system reaches when a
specific process ends is
known as a Final State
the transitions from one action state
to another. They are usually drawn
with an arrowed line.

1. An object flow arrow from an action to an object


means that the action creates or influences the
object.
2. An object flow arrow from an object to an action
indicates that the action state uses the object.

• A fork node is used to split a single incoming flow


into multiple concurrent flows.
• It is represented as a straight, slightly thicker line
in an activity diagram.
• A join node joins multiple concurrent flows back
into a single outgoing flow.
• A fork and join mode used together are often
referred to as synchronization.
• Signals represent how activities can
be modified from outside the
system.
• the state can't change until a
response is received
• For example, an authorization of
payment is needed before an order
can be completed.
https://images.app.goo.gl/5Ge9dYpsFmYCJSWGA
https://images.app.goo.gl/vHcwVLrCN1dRr72K9
activity for processing e-mails.
Swimlanes
Swimlanes group related activities into one
column.
https://www.uml-diagrams.org/online-shopping-uml-activity-diagram-example.html?context=activity-examples
Example of Purchase
Ticket use case
behavior described
using UML activity
diagram.
An example of Document Management Process activity.

• A document goes through


different state or stages - it
is created, reviewed,
updated, approved, and at
some point archived.
• Different roles participating
in this process
are Author, Reviewer, Ap
prover, and Owner.
• These roles are represented
on the diagram
by partitions rendered as
horizontal "swimlanes".
https://youtu.be/Wf_xlagfHmg

You might also like