EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 600+ Courses All in One Bundle
  • Login
Home Software Development Software Development Tutorials Software Engineering Tutorial UML Activity Diagram
Secondary Sidebar
Software Engineering Tutorial
  • UML Daigram
    • StarUML
    • Architecture of UML
    • StarUML? Download
    • Types of UML Diagrams
    • UML Activity Diagram
    • UML Component?Diagram
    • UML Deployment Diagram
    • UML Diagram Softwares
    • UML Object?Diagram
    • UML Sequence Diagram
    • UML Use Case Diagram
    • State Diagram
    • Class Diagram
    • UML Dependency
    • UML Interaction Diagrams
    • Data Flow Diagrams
  • Basic
    • What is Software Engineering?
    • What is SDET
    • What Is SDLC
    • SDLC Methodologies
    • Software Classification
    • Software Design
    • Software Design Principles
    • Software Metrics
    • Utility Software Types
    • UI Design Tools
    • User Interface Design Principles
    • Architectural Design in Software Engineering
    • Software Configuration Management
    • Software Configuration Management Tools
    • What is Risk Management?
    • System Engineering
    • Object oriented programming paradigm
    • CASE Tools
  • Models
    • Prototype Model
    • What is Spiral Model
    • Waterfall?Model
    • Prototyping Tools
    • Incremental Model
    • Iterative Model
    • RAD Model
    • Fish Model
    • What is Scrum Methodology?
    • RUP? Methodology
    • COCOMO Model
    • Big Bang Model
    • System Models
    • People Capability Maturity Model
    • Analysis Modeling
    • User Interface Design
    • Capability Maturity Model Integration
    • What is Agile Development?
    • Agile Model Advantages and Disadvantages
    • Agile Process Model
    • Rational Unified Process
  • Advanced
    • Functional Point Analysis
    • Software Quality Control
    • Quality Assurance Tools
    • Prototype model advantages and disadvantages
    • UML Modelling Tools
    • Tomcat Server
    • Quality Software
    • UI Prototyping
    • Hybrid Model
    • Behavioral Model in Software Engineering
    • Flowchart symbols
    • Critical System
    • Legacy System
    • SOA Architecture
    • Software Quality Attributes
    • Software Maintenance
    • Software Cost Estimation
    • Software Inspection
    • Cohesion in Software Engineering
    • Coupling in Software Engineering
    • Component-based Software Engineering
    • Design Modeling in Software Engineering
    • Iterative Methodology
    • System Flow Diagram
    • Data Flow Architecture
    • SEICMM
    • Function Oriented Design
  • Interview Questions
    • Software Engineering Interview Questions
    • SDLC Interview Questions

Related Courses

Software Testing Course

Cyber Security Training

Software Development Course Training

UML Activity Diagram

By Priya PedamkarPriya Pedamkar

UML Activity Diagram

Introduction to UML Activity Diagram

To understand UML Activity Diagrams, we first need to understand what the UML Diagram means. UML stands for Unified Modelling Language. It is a standardized set or a collection of diagrams that helps the software developers and software architects to understand the flow of the software. In other words, UML Diagrams are diagrams that depict how the software system is going to function.

UML Diagrams are divided into three types:

  • Structure Diagrams
  • Interaction Diagrams
  • Behavior Diagrams

What is a UML Activity Diagram?

A UML Activity Diagram is a behavioral diagram out of the above-mentioned three types of UML diagrams. Now, how are they different from UML diagrams? So activity depicts what action is going to take place in the process. It is a pictorial representation of how the software system is going to function. At the time of execution, the software system must function according to the required flow, so according to it, activity diagrams depict it as forward and reverse engineering process/actions.

Symbols and Components of UML Activity Diagram

Beforehand, one must have knowledge of how to draw the UML activity diagrams, and for it, the following components and symbols are needed.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

All in One Software Development Bundle(600+ Courses, 50+ projects)
Python TutorialC SharpJavaJavaScript
C Plus PlusSoftware TestingSQLKali Linux
Price
View Courses
600+ Online Courses | 50+ projects | 3000+ Hours | Verifiable Certificates | Lifetime Access
4.6 (86,502 ratings)

1. Starting State

The initial state is yet to be used or modified in the activity. Activity Diagrams start from this step. Also known as the entry state. Start Node is the starting point of any activity.

It is depicted as:

UML Activity Diagram - Start Node

2. Action State

A step in which the users or software performs a certain task. It represents an action that is going to take place at this stage of the software system. Generally depicted with the rounded-edged rectangle.

It is depicted as:

UML Activity Diagram - Action state

3. Control Flow

Connectors between two states or two actions to depict the flow. Shows the sequence of execution. Also known as paths. One action state can have multiple control flows input and also output to another action state. A single-headed arrow is used to depict the control flow.

It is depicted as:

UML Activity Diagram - Control Flow

4. Decision Node

A conditional node or a decisional node is one where there are multiple options available. Or there are two or more conditions that can be considered at the point of the software system.

Example: There’s an ice cream shop. A person enters into that shop and wants to buy one of the many options available. Now, if he chooses, Vanilla flavor, server 1 has to give it to him, else he chooses other flavors, then others have to serve it to him. So this is the condition in the activity diagram. It is drawn as a diamond shape with multiple inputs and outputs.

It is depicted as:

UML Activity Diagram - Decision Node

5. Fork

A point from where two concurrent or parallel processes are executed or run, or processed. It generally includes a single input but may or may not get one output.

Example: There’s one ice cream shop. A person tends to buy ice cream for himself and his friend. Now, both of them buy the same vanilla flavor, but one of them wants choco-dip, and others want to have fruities to be put upon it. So, here the input is the same, that is of vanilla ice cream, but the output results are different. So, this is a perfect example of a fork.

It is depicted as:

fork

6. Join

A join is one where two results of concurrent activities add and form a single result. In joining, there is more than one input, but only one output is obtained. Two results are obtained from two activities, and one result is obtained.

Example: There is a requirement for the sandwich. But first, we need to have tomatoes and spinach for it.

It is depicted as:

join

7. End State

This is the last stage of the UML activity diagram. This is where the activity ends in a software system ends.

It is depicted as:

end state

Advantages and Disadvantages of UML Activity Diagram

Following are some advantages and disadvantages of the UML activity diagram:

Advantages:

  • Complex stage or steps in a software system can be explained easily diagrammatically.
  • Dynamic modeling of a software system.
  • Each and every activity flow in the system can be explained as it is.
  • Methods, functions, and operations can be explained in detail.
  • Business processes and flows can be depicted easily.
  • Simplified view, though the complex system.
  • Business requirement analysis.
  • The understanding of system requirements is explained in a lucid and simple manner.
  • The workflow of the user and the system and user with the system is explained in detail.

Disadvantage:

  • The only drawback is the UML Activity Diagram is the messages or the communications between two components, or the user cannot be shown.

Symbols used in the UML Activity Diagram

The symbols used in the UML activity diagram is given in the below table:

UML Activity Diagram symbols

How to make a UML Activity Diagram with Example

We’ll consider an example of developing software in Android Studio:

  • Open Android Studio.
  • Create New Project & Save the project under a unique name.
  • Import the new packages which are needed for the project.
  • Start the emulator.
  • Run the project on the emulator.
  • Exit Project.

UML Activity Diagram:

How to make UMl Diagram

Conclusion

So, in all, we can say that UML Activity Diagrams are necessary during and before the development of any software system. It is very useful in documenting and depicting visualizing the exact process and steps involved in the developmental process. All the complex stages can be displayed very easily. The person who knows the notations correctly can easily draw the UML activity diagrams. The most important part of using these diagrams is anyone can draw them according to the flow and at almost every step of the software system development life cycle. There are many software available online which are helpful in drawing the UML Activity Diagrams like SmartDraw, etc.

Recommended Articles

This has been a guide to UML Activity Diagram. Here we discuss introduction, symbols, components, advantages, and disadvantage of the UML Activity Diagram. You can also go through our other suggested articles to learn more –

  1. Class Diagram
  2. What is Software Testing?
  3. Reverse Engineering
  4. UML Interaction Diagrams
Popular Course in this category
All in One Software Development Bundle (600+ Courses, 50+ projects)
  600+ Online Courses |  3000+ Hours |  Verifiable Certificates |  Lifetime Access
4.6
Price

View Course

Related Courses

Software Testing Training (11 Courses, 2 Projects)4.9
Cyber Security Training (10 Courses, 3 Projects)4.8
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Software Development Course

C# Programming, Conditional Constructs, Loops, Arrays, OOPS Concept

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more