UML - Activity Diagrams (2024)

Activity diagram is another important diagram in UML to describe the dynamic aspects of the system.

Activity diagram is basically a flowchart to represent the flow from one activity to anotheractivity. The activity can be described as an operation of the system.

The control flow is drawn from one operation to another. This flow can be sequential, branched, or concurrent. Activity diagrams deal with all type of flow control by using different elements such as fork, join, etc

Purpose of Activity Diagrams

The basic purposes of activity diagrams is similar to other four diagrams. It captures the dynamic behavior of the system. Other four diagrams are used to show the message flow from one object to another but activity diagram is used to show message flow from one activity to another.

Activity is a particular operation of the system. Activity diagrams are not only used for visualizing the dynamic nature of a system, but they are also used to construct the executable system by using forward and reverse engineering techniques. The only missingthing in the activity diagram is the message part.

It does not show any message flow from one activity to another. Activity diagram is sometimes considered as the flowchart. Although the diagrams look like a flowchart, they are not. It shows different flows such as parallel, branched, concurrent, and single.

The purpose of an activity diagram can be described as −

How to Draw an Activity Diagram?

Activity diagrams are mainly used as a flowchart that consists of activities performed by the system. Activity diagrams are not exactly flowcharts as they have some additional capabilities. These additional capabilities include branching, parallel flow, swimlane, etc.

Before drawing an activity diagram, we must have a clear understanding about the elements used in 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 −

  • Activities

  • Association

  • Conditions

  • Constraints

Once the above-mentioned parameters are identified, we need to make a mental layout of the entire flow. This mental layout is then transformed into an activity diagram.

Following is an example of an activity diagram for order management system. In the diagram, four activities are identified which are associated with conditions. One important point should be clearly understood that an activity diagram cannot be exactly matched with the code. The activity diagram is made to understand the flow of activities and is mainly used by the business users

Following diagram is drawn with the four main activities −

  • Send order by the customer

  • Receipt of the order

  • Confirm the order

  • Dispatch the 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.

UML - Activity Diagrams (1)

Where to Use Activity Diagrams?

The basic usage of activity diagram is similar to other four UML diagrams. The specific usage is to model the control flow from one activity to another. This control flow does not include messages.

Activity diagram is suitable for modeling the activity flow of the system. An application canhave multiple systems. Activity diagram also captures these systems and describes the flow from one system to another. This specific usage is not available in other diagrams. These systems can be database, external queues, or any other system.

We will now look into the practical applications of the activity diagram. From the above discussion, it is clear that an activity diagram is drawn from a very high level. So 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.

This diagram is used to model the activities which are nothing but business requirements. The diagram has more impact on business understanding rather than on implementation details.

Activity diagram can be used for −

  • Modeling work flow by using activities.

  • Modeling business requirements.

  • High level understanding of the system's functionalities.

  • Investigating business requirements at a later stage.

Advertisem*nts

UML - Activity Diagrams (2024)
Top Articles
The Easiest Homemade Apple Cider Vinegar Recipe
Very Vegetable Frittata - Recipe Girl
How To Do A Springboard Attack In Wwe 2K22
How Far Is Chattanooga From Here
LA Times Studios Partners With ABC News on Randall Emmett Doc Amid #Scandoval Controversy
Cape Cod | P Town beach
Best Pawn Shops Near Me
Weekly Math Review Q4 3
Culvers Tartar Sauce
Oppenheimer Showtimes Near Cinemark Denton
Top tips for getting around Buenos Aires
Current Time In Maryland
Fear And Hunger 2 Irrational Obelisk
Who called you from 6466062860 (+16466062860) ?
SXSW Film & TV Alumni Releases – July & August 2024
2 Corinthians 6 Nlt
Mzinchaleft
Adam4Adam Discount Codes
Illinois VIN Check and Lookup
Farmer's Almanac 2 Month Free Forecast
Danforth's Port Jefferson
Academy Sports Meridian Ms
European city that's best to visit from the UK by train has amazing beer
Southland Goldendoodles
California Online Traffic School
Drying Cloths At A Hammam Crossword Clue
Wat is een hickmann?
Unity Webgl Car Tag
Pioneer Library Overdrive
91 Octane Gas Prices Near Me
Christmas Days Away
Everything You Need to Know About Ñ in Spanish | FluentU Spanish Blog
Current Time In Maryland
Cbs Trade Value Chart Week 10
Kokomo Mugshots Busted
Whas Golf Card
Gabrielle Enright Weight Loss
Prima Healthcare Columbiana Ohio
The Boogeyman Showtimes Near Surf Cinemas
RALEY MEDICAL | Oklahoma Department of Rehabilitation Services
Has any non-Muslim here who read the Quran and unironically ENJOYED it?
Denise Monello Obituary
Walmart 24 Hrs Pharmacy
Catchvideo Chrome Extension
Alba Baptista Bikini, Ethnicity, Marriage, Wedding, Father, Shower, Nazi
Craigslist Mendocino
Arch Aplin Iii Felony
Costco The Dalles Or
Myapps Tesla Ultipro Sign In
Evil Dead Rise - Everything You Need To Know
The Hardest Quests in Old School RuneScape (Ranked) – FandomSpot
Arre St Wv Srj
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6042

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.