Uml activity diagrams
Download
1 / 34

UML Activity Diagrams - PowerPoint PPT Presentation


  • 118 Views
  • Updated On :

UML Activity Diagrams . 6 October 2008. Example. Activity Diagram: what is it?. Describes activities and flows of data or decisions between activities Provides a very broad view of business processes Can be used to break out the activities that occur within a use case

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'UML Activity Diagrams' - caraf


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Uml activity diagrams

UML Activity Diagrams

6 October 2008



Activity diagram what is it
Activity Diagram: what is it?

  • Describes activities and flows of data or decisions between activities

  • Provides a very broad view of business processes

  • Can be used to break out the activities that occur within a use case

  • Good for showing parallel threads


Activity diagram when to use it
Activity Diagram: when to use it?

  • When describing work flow across many use cases

  • When analysing a use case, and before methods are assigned to symbols

  • When dealing with multi-threaded applications


Creating an activity diagram
Creating an Activity Diagram

This diagram is useful in showing work flow connections and describing behaviour that has a lot of parallel processing.

When you use an activity diagram you can choose the order in which to do things.

It expresses the essential sequencing rules to follow.

It is different from a flow chart in that it shows parallel processes, not just sequential processes.


Activity diagram
Activity Diagram

  • Shows a set of activities, the flow from activity to activity.

  • Represents the dynamic view of a system.

  • Models the function of a system.


Activity diagram1
Activity Diagram

  • Activity diagrams show the flow of control between activities

    • They can model the sequential and concurrent steps in a computational process

    • They can also model the flow of an object as it moves from state to state at different points in the activity


Uml activity symbols
UML Activity symbols


Action state
Action State

  • In a conceptual diagram an activity is a task that needs to be done – either by a human or a computer

  • In a specification-perspective diagram or an implementation-diagram, an activity is a method on a class


Sequential branching
Sequential Branching

  • A sequential branch is represented as a diamond

    • It may have one incoming transition and two or more outgoing transitions

    • Guards are associated with each transition. The guards are evaluated upon entering the branch, and the one that evaluates to true is then taken




Forking and joining
Forking and Joining

  • Concurrent activities within an activity diagram are modelled with the use of synchronised bars

  • Synchronisation bars are drawn as a thick horizontal or vertical line

  • Joins and Forks should balance

    • The number of flows that leave a fork should equal to the number of flows entering the corresponding join.



Forks joins conditional threads
Forks, Joins & conditional Threads


Swim lanes
Swim lanes

  • The activities of an activity diagram may be performed by different groups.

  • Each zone or lane represents the responsibilities of a particular group.

  • If swimlanes are used, each activity can belong to one and only one swimlane.

  • To use swimlanes, you must arrange your activity diagrams into vertical zones separated by dashed lines.



Activity diagram2
ActivityDiagram




Object flow
Object Flow

  • Objects may be involved in the flow of control associated with an activity.

    • These associations can be shown in activity diagrams by placing objects in the diagram and linking them to specific activities using a dependency link.

    • The same object may be the output of one action and the input of one or more subsequent activities.

    • To distinguish the various appearances of the same object, the state of the object at each point may be placed in brackets and appended to the name of the object.



Date2date example scenario s
Date2date example: scenario’s

  • Use case

  • Log in Subscriber

  • Step-by-step Plan

  • Validate number of invalid login’s

  • If number of invalid login’s more than 2, stop

  • Show web-page

  • Actor enters login and password

  • Actor confirms login

  • Application validates login

  • If login is valid

  • 7.1 Actor is marked as subscriber

  • 7.2 Stop

  • If login is invalid

  • 8.1 Increase the number of steps

  • 8.2 Repeat from 1.




Key point
Key point

  • Activity diagrams are useful for

    • Business Process Redesign

    • Work Flow Modelling

    • Analysing Use Cases


Ns ticket service
NS Ticket service

Destination

  • Define a use case diagram of ‘NS Ticket service’

  • Describe an use case.

Single / Retour

No Reduction / 40% reduction

2e class / 1e class

Take ticket



Make a class diagram of ns ticket service including the classes ticket and destination
Make a class diagram of ‘NS ticket service’ including the classes ‘Ticket’ and ‘Destination’


Make an activity diagram for the actor traveller
Make an activity diagram for the actor ‘ the classes ‘Ticket’ and ‘Destination’Traveller’


ad