Create a UML activity diagram (2023)

Visio

Diagrams

Network, software, database

Network, software, database

Create a UML activity diagram

Visio Plan 2 Visio Plan 1 Visio Professional 2021 Visio Standard 2021 Visio Professional 2019 Visio Standard 2019 Visio Professional 2016 Visio Standard 2016 Visio Professional 2013 Visio 2013 Visio Premium 2010 Visio 2010 Visio Standard 2010 Visio 2007 More...Less

A UML activity diagram inVisio looks like a flow chart. The flow of control is triggered by the completion of actions (or activities) within the system. The flow may be sequential, concurrent, or branched, indicated by shapes such as swimlanes, forks, and joins.

Use an activity diagram to describe how several activities are coordinated to provide a service or other end result. Activity diagrams can show how the events in a use case relate to one another, or how a collection of use cases coordinate to represent a business workflow.

Create a UML activity diagram (1)

If you want to represent a flow in response to external events instead, use a state machine diagram.

Newer desktop versionsWeb2010 - 2007

Start an activity diagram

  1. Start Visio. Or if you have a file open already, click File > New.

  2. In the Search box, type UML activity.

    (Video) How to Make UML Activity Diagram | UML Diagram Tutorial

  3. Select the UML Activity diagram.

  4. In the dialog box, select either Metric Units or US Units.

  5. Select Create.

  6. The diagram opens. You should see the Shapes window next to the diagram. If you don’t see it, go to View > Task Panes and make sure that Shapes is selected. If you still don’t see it, click the Expand the Shapes window button on the left.

  7. On the View tab, make sure the check box next to Connection Points is selected. This option makes connection points appear when you start connecting shapes.

  8. You can now insert swimlanes and build the activity control flow in the diagram.

Design your diagram

  • If you want to indicate responsibility in the activity diagram, drag a Swimlane shape onto the page for each class, person, or organizational unit you want to represent. To do that:

    1. Drag a Swimlane shape onto the drawing page.

      Create a UML activity diagram (2)

    2. Double-click each label on the shape to change the default name.

    3. Repeat steps a and b until you've added all the partitions or organizational units you need.

    4. Drag the side selection handles on the swimlane shapes to make the lanes the size you want.

  • Use the Initial node and Final node shapes to represent initial and final pseudo states.

    Create a UML activity diagram (3) Create a UML activity diagram (4)

  • Add an Action shape for each action or activity state you want to represent.

    Create a UML activity diagram (5)

  • Use a Decision shape with guard conditions to indicate a possible transition from an action state.

    Create a UML activity diagram (6)

  • Use the Fork node to represent the forking of one action state into multiple parallel states.

    Create a UML activity diagram (7)

  • Use the Join node to represent the synchronization of multiple action states into one state.

    Create a UML activity diagram (8)

Note:Creating and editing UML diagramson Visio for the web requires a Visio Plan 1 or Visio Plan 2 license, which is purchased separately from Microsoft 365. For more information, contact your Microsoft 365 admin. If your admin has turned on "self-service purchasing," you can buy a license for Visio yourself. For more details, see Self-service purchase FAQ.

Start an activity diagram

  1. Open Visio for the web.

  2. Near the upper right corner of the page, select More templates.

  3. Search for UML Activity or scroll down in the Gallery to the UML Activity row.

    (Video) All About UML Activity Diagrams

  4. Start with a blank UML activity template or a UML activity starter diagram. Select Create on the one you want to use.

    You can now insert swimlanes and build the activity control in the diagram.

Design your diagram

  • If you want to indicate responsibility in the activity diagram, drag a Swimlane shape onto the page for each class, person, or organizational unit you want to represent. To do that:

    1. Drag a Swimlane shape onto the drawing page.

      Create a UML activity diagram (9)

    2. Double-click each label on the shape to change the default name.

    3. Repeat steps a and b until you've added all the partitions or organizational units you need.

    4. Drag the side selection handles on the swimlane shapes to make the lanes the size you want.

  • Use the Initial node and Final node shapes to represent initial and final pseudo states.

    Create a UML activity diagram (10) Create a UML activity diagram (11)

  • Add an Action shape for each action or activity state you want to represent.

    Create a UML activity diagram (12)

  • Use a Decision shape with guard conditions to indicate a possible transition from an action state.

    Create a UML activity diagram (13)

  • Use the Fork node to represent the forking of one action state into multiple parallel states.

    Create a UML activity diagram (14)

  • Use the Join node to represent the synchronization of multiple action states into one state.

    Create a UML activity diagram (15)

Start an activity diagram

  1. Open the UML model diagram that contains the UML element for which you want to create an activity diagram.

  2. In the tree view, right-click the icon for the package, subsystem, class, operation, or use case in which you want to create an activity diagram. Point to New, and then click Activity Diagram.

    A blank page appears, and the UML Activity stencil becomes the top-most stencil. The workspace displays 'Activity' as a watermark. An icon representing the diagram is added to the tree view.

    Note:If the tree view is not visible, on the UML menu, point to View, and then click Model Explorer.

Design your diagram

  1. If you want to indicate responsibility in the activity diagram, drag a Swimlane shape onto the page for each class, person, or organizational unit you want to represent.

    1. From the Activity stencil, drag a Swimlane shape onto the drawing page.

    2. Double-click the shape to add a name and other property values.

    3. Repeat steps a and b until you've added all the partitions or organizational units you need.

    4. Drag the side selection handles on the Swimlane shapes to make the lanes the size you want.

      (Video) Activity Diagram - Step by Step Guide with Example

    5. Drag State, Action State, Object In State and Signal Receipt or Signal Send shapes into the areas defined by the swimlanes and connect them using Control Flow and Object Flow shapes.

  2. Drag an Action State or State shape onto the drawing page for each action or activity state you want to represent. Use the Initial State and Final State shapes to represent initial and final pseudo states. Work with state shapes in UML statechart and activity diagrams

  3. Connect Control Flow shapes to State shapes to indicate the change from one state to another.

    1. In an activity diagram, drag a Control Flow shape onto the drawing page.

    2. Glue the Control Flow shape endpoint (without the arrowhead) to a connection point Create a UML activity diagram (16) on the source Action State or State shape.

    3. Glue the Control Flow shape endpoint (with an arrowhead) to a connection point on the destination Action State or State shape.

    4. Double-click the Control Flow shape to add a transition string, including an event, guard condition, action expression, and more.

  4. Use the complex transition shapes, Transition (Fork) or Transition (Join), to represent the forking of one action state into multiple parallel states, or the synchronization of multiple action states into one state. For more information, see Work with transition shapes in UML statechart and activity diagrams.

  5. If you want to replace transition strings with signal icons, use the Signal Send and Signal Receipt shapes to represent the signals.

  6. Double-click any shape to open its UML Properties dialog box where you can add a name, transition string, guard condition, deferred events, and other properties.

  7. Save the diagram.

See Also

UML diagrams in Visio

Create a UML state machine diagram

Create a UML use case diagram

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Create a UML activity diagram (17)

Microsoft 365 subscription benefits

(Video) UML Activity Diagram

Create a UML activity diagram (18)

Microsoft 365 training

Create a UML activity diagram (19)

Microsoft security

Create a UML activity diagram (20)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Create a UML activity diagram (21)

Ask the Microsoft Community

Create a UML activity diagram (22)

Microsoft Tech Community

Videos

1. How to Make a UML Activity Diagram | Easy Activity Diagram Tutorial
(Gliffy by Perforce)
2. UML 2.0 Activity Diagrams
(Derek Banas)
3. How to Make a UML Sequence Diagram
(Lucid Software)
4. Activity Diagram in Lucidchart
(Fran Hermosilla Mallada)
5. UML Diagrams Full Course (Unified Modeling Language)
(freeCodeCamp.org)
6. How to Draw a UML Activity Diagram?
(GitMind - EN)
Top Articles
Latest Posts
Article information

Author: Jerrold Considine

Last Updated: 03/10/2023

Views: 5434

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.