Activity Diagrams
WHAT IS AN ACTIVITY DIAGRAM?
Activity diagrams consist of activities, states and transitions between activities and states. Activity diagrams combine ideas from event diagrams, Petri nets and state modeling techniques An activity diagram is a special case of state charts in which most or all states are activity states and most or all transitions are triggered by the completion of activities in the source state.
What is an Activity Diagram?
The diagram represents activities. It Looks like a “flowchart” or a “data flow” diagram. It is used to determine the processing logic of activities.
– It shows the order of activities and shows concurrency and parallel behavior
An activity is a task which needs to be done. It can be a class method.
Activity Diagram - Purpose
Activity diagrams are a means of describing workflows and can be used in a variety of ways. Activity diagrams can be used throughout a project, from business analysis through to program design As an analysis tool – they can describe business flows in varying levels of detail – They can also be used to describe complex flows within or between use cases At the design level – They can be used to describe in detail the flow within an operation
Activity Diagram - Purpose
They are used to model business workflows They are used to identify candidate use cases, through the examination of business workflows. They are used to identify pre- and post-conditions for use cases. They are used to model workflow between use cases They are used to model workflow within use cases. They are used to model complicated workflows in operations on objects. They are used to model complex activities in a high level activity diagram in more detail
Example 1: Business workflow
Before we define the system use-cases, we may want to understand the business process where the use-cases fit.
Example 1: Business workflow
Fig. 10-2: Activity diagram to