0% found this document useful (0 votes)
21 views15 pages

Activity & State Diagram

The document explains Activity and State Chart Diagrams, highlighting their purposes and how to create them. Activity diagrams represent the flow of activities in a system, while State Chart Diagrams describe the different states of a component and how they change in response to events. Both diagrams are essential for modeling workflows and understanding system functionalities, particularly in an Order Management System context.

Uploaded by

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

Activity & State Diagram

The document explains Activity and State Chart Diagrams, highlighting their purposes and how to create them. Activity diagrams represent the flow of activities in a system, while State Chart Diagrams describe the different states of a component and how they change in response to events. Both diagrams are essential for modeling workflows and understanding system functionalities, particularly in an Order Management System context.

Uploaded by

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

Activity and State Chart Diagram

Activity Diagram
• It does not show any message flow from one activity
to another.
• Activity diagram is some time considered as the flow
chart. Although the diagrams looks like a flow chart
but it is not.
• It shows different flow like parallel, branched,
concurrent and single
• Activity diagram is basically:
– A flow chart to represent the flow form one activity to
another activity.
– The activity can be described as an operation of the system
Purpose
• So the purposes 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 make an Activity Diagram?
• The main element of an activity diagram:
• 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.
• Activities
• Association
• Conditions
• Constraints
Order Management System
• The activity diagram is made to understand the
flow of activities and mainly used by the
business users
• The following diagram is drawn with the four
main activities:
– Send order by the customer
– Receipt of the order
– Confirm order
– Dispatch order
• After receiving the order request condition
checks are performed to check if it is normal
or special order.
• After the type of order is identified dispatch
activity is performed and that is marked as the
termination of the process
Description
• it gives high level view of a system. This high
level view is mainly for business users or any
other person who is not a technical person.
• Following are the main usages of activity
diagram:
– Modeling work flow by using activities.
– Modeling business requirements.
– High level understanding of the system's
functionalities.
– Investigate business requirements at a later stage.
State Chart Diagram
• It describes different states of a component in
a system. The states are specific to a
component/object of a system.
• It describes a state machine.
• A machine which defines different states of an
object and these states are controlled by
external or internal events.
Purpose
• They define different states of an object
during its lifetime.
• These states are changed by events. So
Statechart diagrams are useful to model
reactive systems.
• Reactive systems can be defined as a system
that responds to external or internal events.
• States are defined as a condition in which an
object exists and it changes when some event is
triggered
• To model life time of an object from creation to
termination.
• Following are the main purposes:
– To model dynamic aspect of a system.
– To model life time of a reactive system.
– To describe different states of an object during its
life time.
– Define a state machine to model states of an object.
How to draw Statechart Diagram?
• The emphasis is given on the state changes
upon some internal or external events
• Before drawing a Statechart diagram we must
have clarified the following points:
– Identify important objects to be analyzed.
– Identify the states
– Identify the events
Order Management System
• Order object is analyzed
• The first state is an idle state from where the
process starts.
• The next states are arrived for events like send
request, confirm request, and dispatch order
• It goes through the following states and there
may be some abnormal exists also
• This abnormal exit may occur due to some
problem in the system
• The initial and final state of an object is also
shown below
Description
• When implementing a system it is very
important to clarify different states of an
object during its life time and statechart
diagrams are used for this purpose.
• When these states and events are identified
they are used to model it and these models
are used during implementation of the
system.

You might also like