110 likes | 122 Views
Explore UML activity diagrams, a variation of state machines, illustrating flow of sequential or concurrent actions. Learn notation, criticisms, and more about this widely used tool for system lifecycle visualization.
E N D
UML StateChart Diagrams Activity Diagrams
Activity Diagrams: What is ? • Variation of a state machine in which the states represent the performance of actions or sub-activities and the transitions are triggered by the completion of the actions or sub-activities. • Describe a flow of sequential or concurrent actions/activities.
x y A/O Activity Diagrams: Notation • Action State • Subactivity State • Decisions • Swimlanes • Action State • Subactivity State • Decisions • Swimlanes • Action-Object Flow action
Activity Diagrams: Notation • Synch States • Join • Fork
Activity Diagrams: When ? • Behavior doesn’t depend on external events. • Tasks that terminate without being interrupt by external events. • Flow of data between tasks.
Activity Diagrams vs States • Both represent a lifetime cycle of a system. • Automatic transitions, not handled by external events. • Majority states are action states.
Activity Diagrams: Criticism • Impedance Mismatch • Easy to read (not) • Bad understand can originate complex diagrams.
Conclusion • Essentially a concurrent diagram, not only sequential tasks. • Parallel tasks, the execution order is not important. • Widely used to describe use cases.