1 / 17

UML Activity Diagram

UML Activity Diagram. Software Engineering EKT 420. What is Activity Diagram. Activity diagrams are graphical representations of workflows of stepwise activities and a ctions with support for choice, iteration and concurrency.

kailey
Download Presentation

UML Activity Diagram

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UML Activity Diagram Software Engineering EKT 420

  2. What is Activity Diagram • Activity diagrams are graphical representations of workflows of stepwise activities and actionswith support for choice, iteration and concurrency. • In UML, activity diagrams can be used to describe the business and operational step-by-step workflows of components in a system. • An activity diagram shows the overall flow of control.

  3. The flow of execution is modeled as activity nodes connected by activity edges. • A node can be the execution of a subordinate behavior, such as an arithmetic computation, a call to an operation, or manipulation of object contents. • Activity nodes also include flow of control constructs, such as synchronization, decision, and concurrency control. • Activities may form invocation hierarchies invoking other activities, ultimately resolving to individual actions.

  4. Example 1 Activity diagram for a guided brainstormingprocess

  5. Example 2 Activity diagram to authenticate PIN number

  6. Example 3 Activity diagrams with swimlanes Chapter 8: Modelling Interactions and Behaviour

  7. Labels/Symbols/Notation • Initial node. The filled in circle is the starting point of the diagram.  • Activity final node. The filled circle with a border is the ending point.  An activity diagram can have zero or more activity final nodes. • Activity.   The rounded rectangles represent activities that occur. An activity may be physical, such as Inspect Forms, or electronic, such as Display Create Student Screen. • Flow/edge.  The arrows on the diagram.  • Fork.  A black bar with one flow going into it and several leaving it.  This denotes the beginning of parallel activity. • Join.  A black bar with several flows entering it and one leaving it.  All flows going into the join must reach it before processing may continue.  This denotes the end of parallel processing.

  8. Labels/Symbols/Notation • Condition.  Text such as [Incorrect Form] on a flow, defining a guard which must evaluate to true in order to traverse the node. • Decision. A diamond with one flow entering and several leaving.  • Merge.  A diamond with several flows entering and one leaving.  The implication is that one or more incoming flows must reach this point until processing continues, based on any guards on the outgoing flow. • Partition. Partitions also called swimlanes, indicating who/what is performing the activities (either the Applicant, Registrar, or System). • Sub-activity indicator.  The rake in the bottom corner of an activity, such as in the Apply to University activity, indicates that the activity is described by a more finely detailed activity diagram.  In Example 4 the Enroll In Seminar activity includes this symbol. • Flow final.  The circle with the X through it.  This indicates that the process stops at this point. 

  9. Example 4 UML activity diagram with partitions based on actors.

  10. More labels/symbols • Activity edge is notated by an open arrowhead line connecting two activity nodes. • Activity edge connects Fill Order and Review Order.

  11. More labels/symbols • Edges can be named, however, edges are not required to have unique names within an activity. If the edge has a name, it is notated near the arrow. • Activity edge "updated" connects two nodes.

  12. More labels/symbols • Activity edge can have a guard - specification evaluated at runtime to determine if the edge can be traversed. The guard must evaluate to true for every token that is offered to pass along the edge. • The guard of the activity edge is shown in square brackets that contain the guard. • Fill Order when priority is 1

  13. More labels/symbols • Connectors are generally used to avoid drawing a long edge. This is purely notational. It does not affect the underlying model. • Connector A connects two edges between Fill Order and Review Order.

  14. More labels/symbols • Object flowedges are activity edges used to show data flow of object and data tokens between action nodes. • An object flow is notated by an arrowed line. • Object flowof Orders between Fill Order and Review Order actions

  15. More labels/symbols • The weight of the edge may be shown in curly braces that contain the weight. The weight is a value specification, which may be a constant, that evaluates to a non-zero unlimited natural value. An unlimited weight is notated as "*". • Send Notification when number of Warnings reaches 6

  16. More labels/symbols • Interrupting edge is activity edge expressing interruption for regions having interruptions. It is rendered as a lightning-bolt. • Cancel Request signal causes interruption resulting in Cancel Order.

  17. More labels/symbols • Activity diagram can have external entitythat may exist during the activity Authenticate Check balance <<system>> Accounting system

More Related