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. Uma actividade pode ser decomposta: Um caso de utilizacao Uma operacao de uma classe Um grupo de casos de utilizacao relacionados entre si Uma parte de uma actividade de mais alto nivel
Activity Diagrams: Notation Action State Subactivity State Decisions Swimlanes Action-Object Flow Action State Subactivity State Decisions Swimlanes action Action State – state with an entry action and at least one outgoing x y A/O
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: In Action
Activity Diagrams: In Action
Activity Diagrams: In Action
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.