100 likes | 306 Views
Activity Diagrams. Activity Diagrams Overview. A flexible model for examining the flow of activity Starts with an initial state and end with a final state Documents the flow of activities Shows the sequence of activities
E N D
Activity Diagrams Overview • A flexible model for examining the flow of activity • Starts with an initial state and end with a final state • Documents the flow of activities • Shows the sequence of activities • Can use swimlanes to show how activities are split among different users, departments, or subsystems
Activity Diagrams Overview • Uses transitions (pairs of solid lines) to show the beginning and end of • Actions that may be repeated • Branches where more than 1 action occurs in parallel • Uses a diamond shape (decision) to show where the next activitie(s) varies based upona condition
Activity Diagrams Purpose • A flexible model for communication with users about how activities (use cases?) interact to implement a complete function or lifecycle of a key system element • Similar to, but less formal than a state machine model
VISIO Activity Diagram Elements • States • Initial , Final • Action state • Note that the object name is displayed only for the action state • State do appear as objects in the model explorer & can be used across diagrams
Visio Swimlanes • Swimlanes allow activities to be classified by the user doing them, the location, the sub-system, etc. • Swim lanes are not saved as objects that can appear across diagrams
Control Flows • Control flows link 2 states • The control flow name is not displayed, but its guard body is • As a flow it is not saved as an object shared across diagrams
Decision • The decision component creates and object that can be used across diagrams • It displays as a small diamond on the drawing and its name and description do not display • Can label the flows from it or could add a Note to describe it
Transition (Fork) • Transitions are to be added in pairs to denote the beginning and end of a set of activities where • The activities between the transitions may be performed repeated before moving on to the succeeding activities or • Multiple activities or sets of activities occur over the same period and all must be completed before moving on to the steps below the last transition
Transition Examples • Appear as bars on the diagram with no labels • Are saved as objects • Labels flows in and out or add notes if needed to describe actions