How to Draw Activity Diagram

Create a UML activity diagram

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

Use an activeness diagram to depict how several activities are coordinated to provide a service or other end event. Activity diagrams can show how the events in a apply example relate to one another, or how a collection of use cases coordinate to represent a business workflow.

A sample of a UML activity diagram showing the flow of control for student enrollment at university.

If you desire to stand for a menstruum in response to external events instead, use a country machine diagram.

Get-go an activity diagram

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

  2. In the Search box, type UML action.

  3. Select the UML Activeness diagram.

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

  5. Select Create.

  6. The diagram opens. You should see the Shapes window next to the diagram. If yous don't see it, become to View > Task Panes and make sure that Shapes is selected. If you nonetheless don't come across it, click the Expand the Shapes window button on the left.

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

  8. Yous can now insert swimlanes and build the activity control menstruation in the diagram.

Pattern your diagram

  • If yous desire to indicate responsibility in the activity diagram, drag a Swimlane shape onto the page for each grade, person, or organizational unit y'all want to represent. To practice that:

    1. Drag a Swimlane shape onto the drawing page.

      Swimlane shape.

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

    3. Repeat steps a and b until yous'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 y'all want.

  • Use the Initial node and Concluding node shapes to correspond initial and last pseudo states.

    Initial node. Final node.

  • Add an Activeness shape for each action or activeness state you want to represent.

    Action shape.

  • Use a Decision shape with guard conditions to point a possible transition from an activeness state.

    Decision shape.

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

    Fork node.

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

    Join node.

Start an action diagram

  1. Open up Visio for the web.

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

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

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

    Yous can now insert swimlanes and build the action control in the diagram.

Design your diagram

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

    1. Drag a Swimlane shape onto the cartoon page.

      Swimlane shape.

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

    3. Echo 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 yous want.

  • Use the Initial node and Final node shapes to stand for initial and last pseudo states.

    Initial node. Final node.

  • Add an Action shape for each action or activity land you desire to represent.

    Action shape.

  • Utilise a Conclusion shape with guard weather condition to indicate a possible transition from an activeness state.

    Decision shape.

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

    Fork node.

  • Utilize the Join node to represent the synchronization of multiple activeness states into 1 state.

    Join node.

Starting time an action diagram

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

  2. In the tree view, right-click the icon for the bundle, subsystem, class, operation, or apply case in which you want to create an activeness diagram. Betoken to New, and then click Activity Diagram.

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

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

Design your diagram

  1. If you lot desire to indicate responsibility in the activity diagram, drag a Swimlane shape onto the folio for each course, person, or organizational unit of measurement you want to represent.

    1. From the Activity stencil, elevate a Swimlane shape onto the cartoon page.

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

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

    4. Elevate the side selection handles on the Swimlane shapes to brand the lanes the size you want.

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

  2. Elevate an Activity State or Land shape onto the drawing page for each action or activity state you lot want to represent. Use the Initial State and Terminal Country shapes to represent initial and final pseudo states. Work with state shapes in UML statechart and activity diagrams

  3. Connect Command Flow shapes to Country shapes to indicate the change from i state to some other.

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

    2. Glue the Control Flow shape endpoint (without the arrowhead) to a connection point on the source Activity State or State shape.

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

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

  4. Apply the complex transition shapes, Transition (Fork) or Transition (Join), to stand for the forking of one action state into multiple parallel states, or the synchronization of multiple activeness 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 point icons, use the Signal Send and Betoken Receipt shapes to represent the signals.

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

  7. Save the diagram.

Run across Besides

UML diagrams in Visio

Create a UML state machine diagram

Create a UML use case diagram

Perlu bantuan lainnya?

noursebuind1978.blogspot.com

Source: https://support.microsoft.com/id-id/office/create-a-uml-activity-diagram-19745dae-2872-4455-a906-13b736f01685

0 Response to "How to Draw Activity Diagram"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel