Activity Diagram
Flow Chart
An activity diagram is associated with the UML(Unified Modelling Language)
A Flow Chart is associated with the programming.
An activity diagram is used to model the dynamic aspects of a system and also illustrates the workflow of activities within a use case or business process.
Depicts a diagrammatic representation illustrating a solution model to a given problem and a flow chart converges into being an activity diagram if complex decisions are being made.
Commonly used in software engineering within the UML for modeling and designing software systems on high level.
Widely used in software engineering for representing algorithms, decision structures, and program flows.
Do we need to use both the diagrams and the textual documentation?
Let’s understand this with the help of an example:
In conclusion, Activity Diagrams serve as invaluable tools in system design and analysis, offering a visual representation of dynamic processes within organizations. They are widely utilized to model business processes, illustrate user interactions, and guide software system design. By providing a clear and concise overview of activities, decision points, and interactions, activity diagrams enhance communication among project stakeholders and contribute to effective documentation.
Similar reads.
Home » UML » Understanding Activity Diagrams in UML: A Comprehensive Guide
Unified Modeling Language (UML) is a powerful tool for visualizing and documenting software systems. Among the various UML diagrams, the Activity Diagram is a versatile and essential tool for modeling and describing the dynamic aspects of a system’s behavior. Whether you’re a software developer, system analyst, or project manager, understanding Activity Diagrams can significantly improve your ability to design and communicate complex processes within a system. In this article, we’ll explore what Activity Diagrams are, their components, and how to create and interpret them.
An Activity Diagram is one of the behavioral diagrams in UML, used to model the dynamic aspects of a system. It focuses on illustrating the workflow or sequence of activities, actions, and decisions within a system or a process. These diagrams are particularly useful for modeling business processes, software algorithms, and workflow scenarios, making them a valuable tool for software design, system analysis, and process optimization.
Activity Diagrams offer several benefits in the software development and system modeling process:
To effectively use Activity Diagrams, it’s essential to understand their key components:
Creating an Activity Diagram
To create an Activity Diagram, follow these steps:
Interpreting an Activity Diagram involves understanding the sequence of activities, decision points, and the flow of control through the diagram. Here are some key points to consider:
In cases where only one person is involved in the process, the concurrent activities can be executed in any order, presuming they cannot be performed simultaneously (though the model permits such simultaneous execution, it might be impractical in reality). For instance, theater box office personnel could either assign seats, then award bonuses, and finally debit the account, or they could start by awarding bonuses, then assigning seats, and lastly, debiting the account. However, it’s essential to note that debiting the account cannot occur until after the seats have been assigned.
Within this process, there is a conditional thread emerging from the fork point. This thread evaluates whether the subscriber is a member, serving as a guard condition. It only initiates if the guard condition is met. If the subscriber is not a member, only one thread is activated, responsible for seat assignment and account debiting, without waiting for synchronization at the join point.
Furthermore, the diagram incorporates object flow symbols, which depict the different states of an “order” object as it traverses a network of activities. For instance, the “Order[placed]” symbol indicates that at that point in the computation, an order has transitioned to the “placed” state within the “Request Service” activity but has not yet been consumed by the “Take Order” activity. After the “Take Order” activity concludes, the order moves to the “entered” state, as evidenced by the object flow symbol following the “Take Order” activity. All the object flows in this instance represent the same object at different stages of its life. As they represent the same object, they cannot coexist simultaneously, and a sequential control path connects them, as evident in the diagram.
Object flow is employed to represent objects that serve as inputs to or outputs from an action. These symbols indicate the object’s state at the specific point in the computation when it is either suitable as an input or just produced as an output (typically, an object fulfills both roles). A dashed arrow links an outgoing transition of an activity state to an object flow, which constitutes one of its outputs. Conversely, another dashed arrow connects the object flow to an incoming transition into an activity state, indicating that the object serves as one of its inputs. Frequently, the same object can be both the output of one activity and the input for one or more subsequent activities.
Activity Diagrams in UML are powerful tools for modeling and visualizing dynamic aspects of a system or process. By understanding the components and principles of Activity Diagrams, you can effectively model complex workflows, improve communication among stakeholders, and optimize processes. Whether you’re involved in software development, business process analysis, or system design, Activity Diagrams can be a valuable addition to your toolkit, helping you create more efficient and well-documented systems.
You must be logged in to post a comment.
Activity diagram at a glance.
Control flow, object flow, decision node, object node.
Activity diagram tutorial.
Activity Diagram is similar to a business work flow diagram or simply a flowchart with much richer semantics. It describes the system activities, or the person who does the activity, and the sequential flow of these activities. The activity diagram is one of the UML diagrams associated with object oriented approach, through it can be used in any other software development paradigm
Activity Diagrams can be used to describe how activities are coordinated to provide a service at different levels of abstraction. The great strength of activity diagrams lies in the fact that they support and encourage parallel behavior. This makes them a great tool for workflow modeling and, in principle, for multithreaded programming. Activity diagrams can also define a link to an object by labeling an activity with an object name or by using swimlanes, which enable an activity diagram to be structured based on responsibilities.
Finding an online Activity Diagram tool? Just click the Draw button below to create your Activity Diagram online. Visual Paradigm Online is free * and intuitive. You can also go through this Activity Diagram tutorial to learn about Activity Diagram before you get started.
Before we go into the details of individual notation in activity diagram, let us have a quick look at a very general activity diagram. Here is the example activity diagram for elaborating the business use case - Check-In in Airport:
Initial, final and flow final node, initial node (start state).
In the UML, a final action state is shown using a circle surrounding a small solid filled circle (a bull's eye). An activity diagram may have only one initial action state, but may have any number of final action states.
UML 2.0 has an additional control node type called Flow Final that is used as an alternative to the Activity Final node to terminate a flow. It is needed because in UML 2.0, when control reaches any instance of Activity Final node, the entire activity (including all flows) is terminated. The Flow Final simply terminates the flow to which it is attached.
Note : This was not an issue in UML 1.5 because of the run-to-completion semantics, but with the unrestricted parallelism of UML 2.0, you might not want all flows stopped and all tokens destroyed.
An activity , also known as an activity state, on a UML Activity diagram typically represents the invocation of an operation, a step in a business process, or an entire business process.
Action is a named element which represents a single atomic step within activity i.e. that is not further decomposed within the activity .
Given a collection of action states, how are those action states related to one another? Flow transitions address this issue, a flow transition shows how action states are ordered or sequenced. There are various types of flow transitions, including control-flow and object-flow transitions.
Action flows or Control flows are also referred to as paths and edges. They are used to show the transition from one activity state to another. An activity state can have multiple incoming and outgoing action flows. We use a line with an arrow head to depict a Control Flow. If there is a constraint to be adhered to while making the transition it is mentioned on the arrow.
In the UML, a control-flow transition is shown as a solid line from a source action state to a target action state.
In the UML, an object-flow transition is shown as a dashed arrow between an action state and an object. An action state that uses an object as input is shown with the object-flow transition arrow pointing from the object to the action state. An action state that updates or produces an object as output is shown with the object-flow transition arrow pointing from the action state to the object.
When we need to make a decision before deciding the flow of control, we use the decision node, such as one incoming transition, and multiple outgoing parallel transitions and/or object flows.
A guard is a condition that must be true in order to traverse a transition.
UML 2.0 activity modeling also supports object nodes. An object node is an activity node that indicates that an instance of a particular classifier, possibly in a particular state, might be available at a particular point in the activity (for example, as output from, or input to an action). Object nodes act as containers to and from which objects of a particular type (and possibly in a particular state) might flow.
A datastore is a stereotype for an object which stores objects persistently.
A swimlane activity diagram groups the activities into swimlanes columns that contain all of the activities which fit into the category represented by that swimlane. Swimlanes can represent many categories of information such as actors which perform the activities (i.e., role or department), the stage of the process in which the activity takes place, or whatever else the creator of the document feels should be emphasized and communicated by the swimlane diagram. The term swimlane was adopted due to the visual similarity between the horizontal rows of the diagram to that of the swimlanes found within a swiming pool.
In the UML, a swimlane is shown as a visual region separated from neighboring swimlanes by vertical solid lines on both sides and labeled at the top with the element responsible for action states within the swimlane.
Time event flows when the time expression is true, while event signal flows when a event occurs. An hourglass symbol can be used to represent the acceptance of a time event.
Accept Event Action is an important element for business processes in activity diagrams. Accepting action waits for an event to occur. After the event is accepted, the flow that comes from this action is executed.
Send Signal Action is a signal being sent to an accepting activity which can react accordingly.
An activity diagram is used to model the workflow depicting conditions, constraints, sequential and concurrent activities. On the other hand, the purpose of a use case is to just depict the functionality i.e. what the system does and not how it is done. So in simple terms, an activity diagram shows 'How' while a Use case shows 'What' for a particular system, thus, activity diagrams are often in pairs with use cases.
In terms of UML, we can use activity diagram for the following purposes, for example:
Note : An activity diagram can be used to illustrate a business process (high level implementation) to a stand alone algorithm (ground level implementation).
This example shows an activity diagram for the theatre office. This diagram shows the activities involved in planning a show.
An activity diagram is helpful in understanding the high-level execution behavior of a system, without getting involved in the internal details of message passing required by a collaboration diagram.
Example – activity diagram – business proposal process.
More Class Diagram examples:
Example 1: Article Submission Process
Example 2: Multidimensional Swimlanes
UML 2.0 extends this partitioning capability to multiple dimensions for activity diagrams and provides additional notation, so that individual actions can be labeled with the name of the partition to which they belong.
The diagram below shows an example of multidimensional swimlanes as they would appear according to UML 2.0, where actions are grouped according to location and responsibility.
You've learned what a Activity Diagram is and how to draw a Activity Diagram step-by-step. It's time to get your hands dirty by drawing a Activity Diagram of your own. Draw UML diagrams free * with Visual Paradigm Online. It's easy-to-use, intuitive.
* The Free edition supports free usage of Visual Paradigm Online for non-commercial use only.
©2024 by Visual Paradigm. All rights reserved.
There are many kinds of UML diagram, and one of them is the Activity diagram. This type visualizes the dynamic sides of any system involved. To put it simply, this is a type of flowchart that shows the complex steps and roundabout of a process. Visually, this chart can appear as a sequential, branch and concurrent in form. Now, if you want to use this type of diagram, then you must first understand when to use it. Luckily, we will provide in-depth information about it, as well as examples that you can use anytime.
When to use activity diagram, components of an activity diagram, editable activity diagram examples, how to make an activity diagram.
Unlike other charts, UML activity diagram can be used under different circumstances. For instance, if you want to demonstrate the relationship between the process involved, then use this type of diagram. Additionally, if you want to show how certain events relates to the other then this diagram is needed. In general, aside from being detailed, it also shows various perspective and gives you an idea about the potential outcome of the project.
There are many things that you can include in your diagram, such as shapes, images and things alike. However, that is not case for some activity diagram online creators. There are only a limited kinds of shapes that you can use in this type of diagram, as it only shows specific data. With that being said, here are some components that you can include in your diagram.
1. Box – This symbol represents actions within the process.
2. Diamonds – This shape presents decisions that you can make within the diagram that coincides with other data.
3. Bars – It represents the beginning and end of two tasks.
4. Black Circle – This is the symbol that represents the initial state or start of the task sequence in your activity diagram.
5. Encased black circle – This is the end state where the desired outcome is supposed to be met.
Here are some sample diagram templates that you can use anytime.
1. Banking System Activity Diagram
The diagram template shows the activities involved when banking. It clearly demonstrates the steps that you need to follow to meet your goal, which is to update the account balance. This means that you will see the end result regardless if you will make a deposit or withdraw from your account.
2. Website Login Process
This simple UML activity diagram shows the process when you log-in to any website account. It will show the actions that you need to take in-order to successfully meet the requirements.
If using templates is not your cup of tea, then you can make you own if you wish. Since the components are provided above, it will be easy to make a diagram from scratch since you already know their functions. Here are the steps that you can follow to make your own activity diagram online using GitMind .
Now that you know a thing or two about this type of diagram, there is no reason for you not to use it next time. All you need to do is look for a great tool that provides UML shapes to ease the creation process. With that being said, you can choose GitMind to get the best options in making activity diagram online.
Comment (1).
This website uses cookies that are essential for the operations of this website and its core functions. Other cookies will only be placed with your consent. For more details visit our Cookies Policy .
Here we provide several examples of UML activity diagrams :
Purpose : An example of activity diagram for online shopping.
Summary : Online customer can browse or search items, view specific item, add it to shopping cart, view and update shopping cart, do checkout. User can view shopping cart at any time.
Purpose : An example of UML activity diagram describing behavior of the Purchase Ticket use case for a Ticket vending machine.
Summary : Activity is started by Commuter actor who needs to buy a ticket. Ticket vending machine will request trip information from Commuter. Based on the info machine will calculate payment due and request payment options. After payment is complete, ticket is dispensed to the Commuter.
Purpose : An example of business flow UML activity diagram to process purchase order.
Summary : Requested order is input parameter of the activity. After order is accepted and all required information is filled in, payment is accepted and order is shipped.
Purpose : An example of UML activity diagram describing a Document Management Process. Some kind of formal and properly communicated document management process is usually required in any major corporation especially under a regulatory compliance.
Summary : Document is created, reviewed, updated, approved, and at some point archived. This activity diagram example shows responsibilities of different roles and a flow of document changes. Partitions represent different roles participating in the activity - Author, Reviewer, Approver, and Owner.
Purpose : Electronic prescriptions UML activity diagram example is based on documentation for the Electronic Prescription Service (EPS) R2 developed by the NHS Connecting for Health (NHS CFH) in England.
Summary : Prescribers could send prescriptions electronically to a pharmacy of the patient's choice where patient can pick it up. Dispenser retrieves electronic prescriptions from the EPS.
Purpose : An example of UML activity diagram to resolve an issue in software design.
Summary : After issue or error ticket is created by some authority and the issue was reproduced, issue is identified, resolution is determined, issue is fixed and verified, and ticket is closed, if issue was resolved.
Purpose : An example of activity diagram describing manual activation of trial (provisional) product which was protected by Sentinel HASP SL software key of the Sentinel HASP - software protection and licensing security solution.
Summary : Customer has some trial product installed, for example, some game or tool, which has specific trial period and could have some limited features or options. After using the product for some time customer decides to activate product by requesting a permanent, full product license. Order Manager creates a new activation key for the product.
Purpose : An example of UML activity diagram which describes Single Sign-On (SSO) to Google Apps for customers using some hosted Google application, such as Gmail.
Summary : When a user attempts to use some hosted Google application, such as Gmail, Google generates a SAML authentication request and sends redirect request back to the user's browser. Redirect points to the specific identity provider. SAML authentication request contains the encoded URL of the Google application that the user is trying to reach.
We use essential cookies to make Venngage work. By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
Manage Cookies
Cookies and similar technologies collect certain information about how you’re using our website. Some of them are essential, and without them you wouldn’t be able to use Venngage. But others are optional, and you get to choose whether we use them or not.
Strictly Necessary Cookies
These cookies are always on, as they’re essential for making Venngage work, and making it safe. Without these cookies, services you’ve asked for can’t be provided.
Show cookie providers
Functionality Cookies
These cookies help us provide enhanced functionality and personalisation, and remember your settings. They may be set by us or by third party providers.
Performance Cookies
These cookies help us analyze how many people are using Venngage, where they come from and how they're using it. If you opt out of these cookies, we can’t get feedback to make Venngage better for you and all our users.
Targeting Cookies
These cookies are set by our advertising partners to track your activity and show you relevant Venngage ads on other sites as you browse the internet.
Blog Data Visualization 11 UML Diagram Examples: Class, Activity, and More
Written by: Danesh Ramuthi Nov 08, 2023
A UML diagram is the visual blueprint of software and business processes, using the Unified Modeling Language as its foundation. This diagram plays a pivotal role in object-oriented design, capturing the essence of both static structure and dynamic behavior within software systems.
UML encompasses various diagram examples, each tailored to illuminate unique facets of a system. From class and activity diagrams which spotlight class operations and the static relationship of one class, to sequence and state diagrams revealing the dynamic behavior of a system.
For professionals, especially software engineers and business analysts, mastering these diagrams is essential for a holistic understanding of the object-oriented paradigm.
If you are ready to create an UML diagram then consider using the Venngage UML Diagram Tool & Diagram Templates for a seamless experience and let your diagrams do the talking.
Click to jump ahead:
Types of uml diagrams.
The Unified Modeling Language (UML) offers a comprehensive set of diagrams to represent and design complex systems. For those interested in understanding the depth and breadth of UML, I present a selection of diagram examples. These examples provide insights into best practices and the utility of UML in various scenarios.
Let’s get into it.
Among the various UML diagram examples, the UML class diagram is paramount for those engaged in object-oriented design.
Serving as a static structure diagram, it emphasizes the foundational elements of an object-oriented system. UML class diagrams typically showcases:
While the focus is primarily on the static relationship, the essence of the UML class diagram lies in its ability to offer a bird’s eye view of the system’s architecture.
When you’re crafting an online shopping platform or a hotel management system , class diagrams distill the intricate network of objects and their interactions, proving essential for both software engineers and business analysts.
Shifting from the static nature of class diagrams, the UML activity diagram brings to the forefront the dynamic behavior of a system. Resonating with the essence of a flowchart, the activity diagram maps out the flow from one activity to the next, visualizing the sequence of operations and their conditions.
Characterized by rounded rectangles representing activities and arrows indicating the flow direction, this diagram shines in scenarios that require understanding procedural logic, decision-making sequences, or concurrent operations.
For example, in an online shopping process, the activity diagram can depict stages like ‘Select Product’, ‘Add to Cart’, ‘Checkout’, and ‘Payment’, illustrating the flow and possible decision points like ‘Apply Coupon’ or ‘Choose Shipping Option’.
The true strength of the activity diagram lies in its ability to represent parallel and concurrent activities. It’s not just about the linear flow; it’s about capturing the entirety of a process, be it the parallel tasks in a hotel management system or the interconnected processes of a domain model.
UML use case diagrams define expected behavior, focusing on the ‘what’ rather than the ‘how’. While use cases describe the system’s desired functionality, their true power lies in providing both textual and graphical representations.
From the standpoint of the end user, use case modeling shines. It enables a design perspective that emphasizes user interactions with the system, ensuring a user-centric approach. However, while a use case diagram provides an overview of actors and their interactions with the system, it deliberately omits details:
New to user experience design? Here are 10 use case diagram examples that might help you out.
The UML Sequence Diagram shows the detailed steps of how things work together. Unlike other diagrams which might focus on static aspects, sequence diagrams delve deep into the ‘when’ aspect of interactions, illustrating the chronological flow of operations.
Characteristics of sequence diagrams:
State diagrams, synonymous with state machines or state-chart diagrams, bring forth the dynamic behavior of a system as it transitions through various conditions or states over time. It focuses not on the entire system but on individual parts or components and their responses to specific time-bound stimuli.
Key Aspects of State Diagrams:
For professionals focusing on the dynamic aspects of system design, understanding state transitions, and pinpointing the events responsible for state changes, the UML State diagram proves to be an invaluable tool.
In the preceding section, we introduced a few types of UML diagrams that provide insights into system design and behavior.
However, the Unified Modeling Language (UML) is vast, and there are numerous other diagram types that software engineers, business analysts, and system designers frequently employ.
In this section, we will look into several additional UML diagrams, offering a concise overview of their purpose and significance.
In this article, I aimed to explore the various UML diagrams by providing succinct, clear examples of class, activity, sequence, state, and use case diagrams. Each one, an integral piece of the software and business process puzzle, offers insights into specific aspects of system design, behavior, and interaction.
The Unified Modeling Language is not just a medium for representation; it’s the lingua franca for software developers and system designers worldwide. It bridges the gap between conceptualization and realization, ensuring that ideas are not just envisioned but are also manifested with precision and clarity.
Our exploration into a few UML diagram examples shed light on the core diagrams like the UML class, activity, and sequence diagrams, amongst others. These diagrams, while varied in their approach and focus, converge on a singular objective – to encapsulate the essence of a system or process, making it both comprehensible and actionable.
Furthermore, our deep foray into the different types of UML diagrams served as a testament to UML’s versatility. From detailing structural relationships in component diagrams to illuminating software deployment on hardware components, each diagram type has a unique role to play in the grand tapestry of system design.
Whether you’re a seasoned developer or a business analyst at the onset of your UML journey, tools like the Venngage UML Diagram Tool & Diagram Templates can be instrumental.
They not only simplify the design process but also elevate it, ensuring that your UML diagrams are not just accurate but also aesthetically appealing.
Discover popular designs
Infographic maker
Brochure maker
White paper online
Newsletter creator
Flyer maker
Timeline maker
Letterhead maker
Mind map maker
Ebook maker
Activity diagram is another important behavioral diagram in UML diagram to describe dynamic aspects of the system. Activity diagram is essentially an advanced version of flow chart that modeling the flow from one activity to another activity.
Are you looking for a Free UML tool for learning UML faster, easier and quicker? Visual Paradigm Community Edition is a UML software that supports all UML diagram types. It is an international award-winning UML modeler, and yet it is easy-to-use, intuitive & completely free.
Activity Diagrams describe how activities are coordinated to provide a service which can be at different levels of abstraction. Typically, an event needs to be achieved by some operations, particularly where the operation is intended to achieve a number of different things that require coordination, or how the events in a single use case relate to one another, in particular, use cases where activities may overlap and require coordination. It is also suitable for modeling how a collection of use cases coordinate to represent business workflows
A basic activity diagram - flowchart like
Given the problem description related to the workflow for processing an order, let's model the description in visual representation using an activity diagram:
Once the order is received, the activities split into two parallel sets of activities. One side fills and sends the order while the other handles the billing. On the Fill Order side, the method of delivery is decided conditionally. Depending on the condition either the Overnight Delivery activity or the Regular Delivery activity is performed. Finally the parallel activities combine to close the order. |
The activity diagram example below visualize the flow in graphical form.
A swimlane is a way to group activities performed by the same actor on an activity diagram or activity diagram or to group activities in a single thread. Here is an example of a Swimlane activity diagram for modeling Staff Expenses Submission:
The activity diagram example below describes the business process for meeting a new client using an activity Diagram without Swimlane.
This figure below describes the business process for meeting a new client using an activity Diagram with Swimlane.
Notation Description | UML Notation |
---|---|
Is used to represent a set of actions | |
A task to be performed | |
Shows the sequence of execution | |
Show the flow of an object from one activity (or action) to another activity (or action). | |
Portrays the beginning of a set of actions or activities | |
Stop all control flows and object flows in an activity (or action) | |
Represent an object that is connected to a set of Object Flows | |
Represent a test condition to ensure that the control flow or object flow only goes down one path | |
Bring back together different decision paths that were created using a decision-node. | |
Split behavior into a set of parallel or concurrent flows of activities (or actions) | |
Bring back together a set of parallel or concurrent flows of activities (or actions). | |
A way to group activities performed by the same actor on an activity diagram or to group activities in a single thread |
You've learned what a Activity Diagram is and how to draw an Activity Diagram. It's time to draw an Activity Diagram of your own. Get Visual Paradigm Community Edition, a free UML software, and create your own Activity Diagram with the free Activity Diagram tool. It's easy-to-use and intuitive.
We use cookies to offer you a better experience. By visiting our website, you agree to the use of cookies as described in our Cookie Policy .
© 2024 by Visual Paradigm. All rights reserved.
Data Analytics Fundamentals Course
Project Management Fundamentals Course
Agile Scrum Foundation Course
DevOps Training for Managers
Domain training courses.
Core business analysis.
Banking Domain Training
Insurance Domain Training
Payment Domain Training
Telecom Domain Training
Supply Chain Domain Training
Investment Banking Domain Training
Trade Finance Domain Training
Data Analytics Certification Training
IIBA CBDA Certification Course
Data Analytics Basics Course (Free)
Power BI Certification Training
Tableau Training
Back to Menu
ECBA Certification Training
CCBA Certification Training
CBAP Certification Training
CBAP Recertification Course
Agile Analysis Certification Course
CPOA Certification Course
BA Training with Banking Domain
BA Training with Healthcare Domain
BA Training with Investment Banking Domain
CBAP On-Demand Course
CCBA On-Demand Course
ECBA Self-Learning Course
PSM Self-Learning Course
CBDA Self-Learning Course
AAC Self-Learning Course
CPOA Self-Learning Course
US HealthCare Domsin Training
Data analytics training.
ECBA Question Bank
CCBA Question Bank
AAC Question Bank
CBAP Question Bank
CBDA Question Bank
CPOA Question Bank
MS Visio / UML Certification Course
SQL Certification For Business Analyst
UML Training/UML Modelling Course
Jira Training
MS Project Training
Confluence Training
Business Analyst Interview Preparation
Use case case study – uml modelling.
In this Use Case case study, I am going to present a case study of the airport check-in system. The case study includes the identification of actors, use cases and scenarios including activity diagrams. I have used a generic case study approach and can be used in any software project. This case study is useful for every business analysis study.
The sequence diagram for the same case study will be covered in some other post as that would have made this post too long.
This proposed software system is to be designed to allow passengers to check in and get the boarding pass for flying. The baggage can also be checked in, which is optional. The check-in can happen by the counter clerk or by the passenger using the kiosk.
The system should allow individuals as well as groups of passengers to check in through the system. The boarding pass can be issued through this system. Passengers below 4 yrs need not have tickets. The airport also allows provisioning for the special needs of passengers like wheelchairs etc.
The system should also be able to capture the fact that the baggage for a passenger is screened by security.
Use case modelling can be done in multiple ways. One of the standard processes is known as Rational Unified Process (RUP), this process is put forward by Rational Inc., now under Oracle.
In this article, I am going to suggest a process, which I used in my projects in various software companies. As per this process, the steps involved are as follows, these steps are for complete system analysis and design using UML models. However, in this article, we will look at only use case modelling steps:
The first step is to identify the actors from the given requirements. Actors are external entities, who interact with the system, to be developed. All the nouns used in the requirements could be actors. In our case, the possible candidates for being actors could be:
Identification of actors is an iterative activity, where we can refine the selection of actors. If you look at the actors' list, you can see that there are multiple types of passengers. This means that an actor namely Passengers has related actors. The actors can be shown as shown below:
Once we have identified actors, we can focus on the interactions of the actors with the system. In our case of the airline system, we can identify the following use cases:
This functional mapping is an excellent way of functional decomposition as well as identification of use cases. Based on the above functional map, we can go ahead to create the use case model. A detailed use case model is shown below:
The use cases are kept within the system boundaries with proper “Include” and “Exclude” relationships.
If you want to brush up on your basics of Use cases and UML, you can read this blog: What Is Use Case Basics & Diagrams?
Once we identify the use cases and build the use case model, the next step is to identify scenarios. The scenarios add details to the use case model. Scenarios also help in identifying business processes and creating activity diagrams.
Typically speaking, every use case may result in one or more scenarios. However, it’s not mandatory to make activity diagrams for each of the use cases. Every model diagram is created only if it helps in understanding the system better.
Scenarios can be of two types:
Let’s see the scenarios for the check-in process:-
Success Scenario: Check-in process getting completed without any issues
Alternate Scenario: Check-in process for Individuals having special needs
There are other alternate scenarios in this case, I am not writing the steps for them. You can try that as exercise.
i. Alternate Scenario: Baggage weight > Allowed limit ii. Alternate Scenario: Valid ID card not available iii. Alternate Scenario: Passenger checks in using Kiosk Having identified the scenarios, the next step is to create the activity diagram.
The activity diagrams can be created on the basis of identified steps and scenarios. You can use a tool to create the activity diagrams or use Microsoft Word or Powerpoint as well.
For our case study, the activity diagram is:
This is a type of case study, which are part of all of our business analysis courses, where we help participants to do it themselves so that they can get hands-on experience.
The use of use cases is an essential technique for business analysts to understand the requirements of stakeholders and build effective software solutions. Through the case study discussed in this article, we have seen how use cases can be applied in real-life scenarios to identify and analyze business requirements, document functional specifications, and develop robust software solutions that meet customer needs.
By following a structured approach to use case development, business analysts can ensure that the software solutions they develop are aligned with business objectives, meet user expectations, and deliver measurable business benefits.
Have you considered getting certified in business analysis but are unsure of which certification to pursue?
Consider getting certified as a Certified Business Analysis Professional (CBAP) by Techcanvass. The CBAP certification is a globally recognized certification that validates your expertise in business analysis and positions you as a leader in the field.
With Techcanvass's CBAP certification training program , you will gain a competitive edge in the job market and open up opportunities for career growth and development. In our training program, we cover tools like UMLet , yUML , and WebSequenceDiagrams . You will get access to all the study material, live instructor-led training, doubt-clearing sessions, and much more.
Comments
Your email address will not be published. Required fields are marked
POST COMMENT
Comment inserted Successsfully
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text
JOIN WEBINAR | |
Copyright © Techcanvass | All Rights Reserved
Use case diagram is a behavioral UML diagram type and frequently used to analyze various systems. They enable you to visualize the different types of roles in a system and how those roles interact with the system. This use case diagram tutorial will cover the following topics and help you create use cases better.
Importance of use case diagrams.
Relationships in use case diagrams, identifying actors, identifying use cases.
A UML (Unified Modeling Language) use case diagram is a visual representation of the interactions between actors (users or external systems) and a system under consideration. It depicts the functionality or behavior of a system from the user’s perspective. Use case diagrams capture the functional requirements of a system and help to identify how different actors interact with the system to achieve specific goals or tasks.
Use case diagrams provide a high-level overview of the system’s functionality, showing the different features or capabilities it offers and how users or external systems interact with it. They serve as a communication tool between stakeholders, helping to clarify and validate requirements, identify system boundaries, and support the development and testing processes.
As mentioned before use case diagrams are used to gather a usage requirement of a system. Depending on your requirement you can use that data in different ways. Below are few ways to use them.
Use case diagrams consist of 4 objects.
The objects are further explained below.
Actor | Actor in a use case diagram is any entity that performs a role in one given system. This could be a person, organization or an external system and usually drawn like skeleton shown below. | |
Use Case | A use case represents a function or an action within the system. It’s drawn as an oval and named with the function. | |
System | The system is used to define the scope of the use case and drawn as a rectangle. This an optional element but useful when you’re visualizing large systems. For example, you can create all the use cases and then use the system object to define the scope covered by your project. Or you can even use it to show the different areas covered in different releases. | |
Package | The package is another optional element that is extremely useful in complex diagrams. Similar to class diagrams, packages are used to group together use cases. They are drawn like the image shown below. |
Although use case diagrams can be used for various purposes there are some common guidelines you need to follow when drawing use cases.
These include naming standards, directions of arrows, the placing of use cases, usage of system boxes and also proper usage of relationships.
We’ve covered these guidelines in detail in a separate blog post. So go ahead and check out use case diagram guidelines .
There are five types of relationships in a use case diagram. They are
We have covered all these relationships in a separate blog post that has examples with images. We will not go into detail in this post but you can check out relationships in use case diagrams .
Up to now, you’ve learned about objects, relationships and guidelines that are critical when drawing use case diagrams. I’ll explain the various processes using a banking system as an example.
Optional functions or additional functions.
Actors are external entities that interact with your system. It can be a person, another system or an organization. In a banking system, the most obvious actor is the customer. Other actors can be bank employee or cashier depending on the role you’re trying to show in the use case.
An example of an external organization can be the tax authority or the central bank. The loan processor is a good example of an external system associated as an actor.
Now it’s time to identify the use cases. A good way to do this is to identify what the actors need from the system. In a banking system, a customer will need to open accounts, deposit and withdraw funds, request check books and similar functions. So all of these can be considered as use cases.
Top level use cases should always provide a complete function required by an actor. You can extend or include use cases depending on the complexity of the system.
Once you identify the actors and the top level use case you have a basic idea of the system. Now you can fine tune it and add extra layers of detail to it.
Look for common functionality that can be reused across the system. If you find two or more use cases that share common functionality you can extract the common functions and add it to a separate use case. Then you can connect it via the include relationship to show that it’s always called when the original use case is executed. ( see the diagram for an example ).
There may be instances where actors are associated with similar use cases while triggering a few use cases unique only to them. In such instances, you can generalize the actor to show the inheritance of functions. You can do a similar thing for use case as well.
One of the best examples of this is “Make Payment” use case in a payment system. You can further generalize it to “Pay by Credit Card”, “Pay by Cash”, “Pay by Check” etc. All of them have the attributes and the functionality of payment with special scenarios unique to them.
There are some functions that are triggered optionally. In such cases, you can use the extend relationship and attach an extension rule to it. In the below banking system example “Calculate Bonus” is optional and only triggers when a certain condition is matched.
Extend doesn’t always mean it’s optional. Sometimes the use case connected by extending can supplement the base use case. The thing to remember is that the base use case should be able to perform a function on its own even if the extending use case is not called.
We’ve gone ahead and created use case diagram templates for some common scenarios. Although your problem or scenario won’t be exactly like this you can use them as a starting point. Check out our use case diagram templates .
We’ve tried to comprehensively cover everything you need to know about creating use case diagrams. If you have doubts about any section or can think of ways to improve this tutorial please let us know in the comments.
Join over thousands of organizations that use Creately to brainstorm, plan, analyze, and execute their projects successfully.
When to apply use case diagrams.
In a use case diagram, the following elements are typically included:
On the other hand, use case diagrams do not include the following:
Software engineer turned tech evangelist. I handle marketing stuff here at Creately including writing blog posts and handling social media accounts. In my spare time, I love to read and travel.
Why use a uml diagram, i want to create my own use case diagram in lucidchart., i want to create a use case diagram from a lucidchart template..
The purpose of a use case diagram in UML is to demonstrate the different ways that a user might interact with a system. Create a professional diagram for nearly any use case using our UML diagram tool.
4 minute read
Do you want to create your own UML diagram? Try Lucidchart. It's fast, easy, and totally free.
In the Unified Modeling Language (UML), a use case diagram can summarize the details of your system's users (also known as actors) and their interactions with the system. To build one, you'll use a set of specialized symbols and connectors. An effective use case diagram can help your team discuss and represent:
Scenarios in which your system or application interacts with people, organizations, or external systems
Goals that your system or application helps those entities (known as actors) achieve
The scope of your system
A use case diagram doesn't go into a lot of detail—for example, don't expect it to model the order in which steps are performed. Instead, a proper use case diagram depicts a high-level overview of the relationship between use cases, actors, and systems. Experts recommend that use case diagrams be used to supplement a more descriptive textual use case.
UML is the modeling toolkit that you can use to build your diagrams. Use cases are represented with a labeled oval shape. Stick figures represent actors in the process, and the actor's participation in the system is modeled with a line between the actor and use case. To depict the system boundary, draw a box around the use case itself.
UML use case diagrams are ideal for:
Representing the goals of system-user interactions
Defining and organizing functional requirements in a system
Specifying the context and requirements of a system
Modeling the basic flow of events in a use case
To answer the question, "What is a use case diagram?" you need to first understand its building blocks. Common components include:
Associations:, system boundary boxes:, use case diagram examples, book publishing use case diagram example.
You can adapt this template for any process where a customer purchases a service. With attractive color schemes, text that’s easy to read and edit, and a wide-ranging UML shape library, you’re ready to go! Click to try out this template on your own.
Consider this example: A man with a chainsaw interacts with the environment around him. Depending on the situation and the context of the situation, he might fall into one of many different use cases. Does he seem to be on his way to work? Is there anything ominous about the way he is wielding his chainsaw? For example, if he is using the chainsaw in a non-occupational setting, we might have reason to think that he falls within the scope of "scary."
Use Lucidchart to collaborate and create UML diagrams when you start an account for free today! No plugins or download required.
IMAGES
VIDEO
COMMENTS
Activity Diagram: Examples, How to Draw, Benefits
Activity Diagram for module 1 of case study 2. The user can search books, viewbooks Without any fee but can download the Book only and only if he pays money. Provide the facility of managing the cart To the user, so that he can update his cart. how many activity diagrams for one project or module .
Creating an activity diagram based on the use case description of a use case is often easier than creating one from scratch because the use case description provides a clear and structured understanding of the steps involved in the use case. Specifically, the use case description outlines the preconditions, postconditions, alternative flows ...
Activity Diagram Tutorial | Easy Guide with Examples
Activity Diagrams are used to illustrate the flow of control in a system and refer to the steps involved in the execution of a use case. It is a type of behavioral diagram and we can depict both sequential processing and concurrent processing of activities using an activity diagram ie an activity diagram focuses on the condition of flow and the sequence in which it happens.
UML Activity Diagram Tutorial
Understanding Activity Diagrams in UML
How to Draw an Activity Diagram
In this article, I will cover how to build activity Diagrams using the case study we started last week. A UML diagram is a diagram based on the UML (Unified Modeling Language) with the purpose of…
An activity diagram is used to model the workflow depicting conditions, constraints, sequential and concurrent activities. On the other hand, the purpose of a use case is to just depict the functionality i.e. what the system does and not how it is done. So in simple terms, an activity diagram shows 'How' while a Use case shows 'What' for a ...
2. Diamonds - This shape presents decisions that you can make within the diagram that coincides with other data. 3. Bars - It represents the beginning and end of two tasks. 4. Black Circle - This is the symbol that represents the initial state or start of the task sequence in your activity diagram. 5.
Activity Diagram in UML. An activity diagram in UML (Unified Modeling Language) is a type of diagram used to represent the dynamic aspects of a system, business process, or workflow. It focuses on modeling the flow of activities, actions, and decisions within the system or process. Activity diagrams are particularly useful for understanding the ...
In this video, you're going to learn1. What is the Activity Diagram? 2. How to draw an activity diagram? 3. Step by step with examples. One of the other imp...
Ticket vending machine. Purpose: An example of UML activity diagram describing behavior of the Purchase Ticket use case for a Ticket vending machine.. Summary: Activity is started by Commuter actor who needs to buy a ticket.Ticket vending machine will request trip information from Commuter. Based on the info machine will calculate payment due and request payment options.
This UML activity diagram template can help you: - Describe what must happen in the system being modeled. - Illustrate a business process or workflow between users and the system. - Improve any process by clarifying complicated use cases. Open this template to view a detailed example of a UML activity diagram that you can customize to your use case.
11 UML Diagram Examples: Class, Activity, and ...
What is Activity Diagram?
UML - Activity diagram case studyWatch more Videos at https://www.tutorialspoint.com/videotutorials/index.htmLecture By: Mr. Arnab Chakraborty, Tutorials Poi...
Activity diagram is an advancement of a flowchart that contains some unique capabilities. Activity diagrams include swimlanes, branching, parallel flow, control nodes, expansion nodes, and object nodes. Activity diagram also supports exception handling. To draw an activity diagram, one must understand and explore the entire system.
Step 4: Creating activity diagrams. The activity diagrams can be created on the basis of identified steps and scenarios. You can use a tool to create the activity diagrams or use Microsoft Word or Powerpoint as well. For our case study, the activity diagram is: This is a type of case study, which are part of all of our business analysis courses ...
Use Case Diagram Tutorial (Guide with Examples)
The drag-and-drop interface is responsive and easy to learn. Lucidchart comes populated with an extensive shape library for every UML diagram type, including activity diagrams, class diagrams, and use case diagrams. Book publishing use case diagram example. This use case diagram is a visual representation of the prose scenario shown above.
UML Use Case Diagram Tutorial