Activity Diagrams Sohel Khan - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

Activity Diagrams Sohel Khan

Description:

After creating a use case diagram, activity diagrams may be created to represent ... WD or Bal? Select tra. Get bal. Print bal. Take bal. How much ? Enter ... – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 25
Provided by: soh64
Category:

less

Transcript and Presenter's Notes

Title: Activity Diagrams Sohel Khan


1
Activity DiagramsSohel Khan
2
Activity Diagrams
  • They represents the dynamics of a system.
  • They are flow charts that are used to show the
    work flow of a system.
  • They show the flow of control from activity to
    activity in the system.
  • They show what activities can be done in
    parallel, and any alternative paths through the
    flow.

3
Activity Diagrams cont..
  • After creating a use case diagram, activity
    diagrams may be created to represent the flow
    across use cases or they may be created to
    represent the flow within a particular use case.
  • Activity diagrams may also be created to show the
    workflow for an operation.

4
Activity Diagrams cont..
  • Activity diagrams contain
  • Activities,
  • Transitions between activities,
  • Decision points,
  • Synchronization bars.
  • Input/output

5
Activity
  • Represented in UML by a rounded rectangle.
  • Activity represents the performance of some
    behavior in the work flow.

6
Components of Activity Diagrams
  • Activities
  • Performance of some behavior in the workflow

7
Components
  • Synchronization
  • What activities are done concurrently.
  • What activities must complete before processing
    may continue (join).

8
Transitions
  • Transitions are used to show the passing of the
    flow of control from activity to activity.
  • They are typically triggered by the completion of
    the behavior in the originating activity.

9
Components
  • Transition
  • Passing the flow of control from activity to
    activity

10
Synchronization Bars
  • In a workflow there are typically some activities
    that may be done in parallel.
  • A synchronization bar allows you to specify what
    activities may be done concurrently.
  • A synchronization bar may have
  • many incoming transition and one outgoing
    transition, or
  • one incoming transition and many outgoing
    transitions.

11
Decision Points
  • When modeling the workflow of a system, it is
    often necessary to show where the flow of control
    branches based on a decision point.
  • The transition from a decision point contain a
    guard condition.
  • The guard condition is used to determine which
    path from the decision point is taken.
  • Decisions along with their guard conditions allow
    you to show alternative paths through a work
    flow.

12
Components
  • Decision
  • Show where the flow of control branches based on
    a decision point.
  • Guard condition is used to determine which path
    from the decision point is taken.

13
A typical Activity Diagram for Receiving and
Dispatching Orders
Receive
Order
for each line

item on order
Cancel
Check
Authorize
Order
Line Item
Payment
failed
in stock
Assign to
Order
succeeded
need to
stock assigned to
reorder
all line items and
Reorder
payment authorised
Item
Dispatch
Order
14
Activity Diagram -- example
15
Input/output - sending/receiving signals
16
Swimlanes
  • Swimlanes may be used to partition an activity
    diagram.
  • This facility allows activity diagrams to expand
    and show who has the responsibility for each
    activity in a process
  • Eg- Consider a consulting firm and the business
    process involved in meeting a new client

17
Swimlanes cont
  • A salesperson calls the client and sets up an
    appointment.
  • If the appointment is onsite, corporate
    technicians prepare a conference room for a
    presentation.
  • If the appointment is offsite,a consultant
    prepares a presentation on a laptop.
  • The consultant and the salesperson meet with the
    client at the agreed-upon location and time.
  • The salesperson follows up with a letter.
  • If the meeting has resulted in a statement of a
    problem, the consultant creates a proposal and
    sends it to the client

18
Activity Diagram
19
Example Swimlanes
20
Registration Activity Diagram
Assign Professor
21
(No Transcript)
22
Bank Example
  • A use case is a sequence of transactions
    performed by a system that yields a measurable
    result of value for a particular actor.

23
Bank Example
Next Transaction
  • Activity Diagrams depicts Flow within and
    between Use Cases Multithreads can be Shown

24
Activity Diagrams - Summary
  • Activity diagrams describe the procedural
    possibilities of a system with the aid of
    activities.
  • Activity is a single step in a procedure.
  • Data and Control flow
  • Parallel activities
  • Synchronization
  • Input/output
  • Swimlanes show responsibilities
Write a Comment
User Comments (0)
About PowerShow.com