OOS SQUARE Activity Diagram SQUARE Lab UML 2
OOS SQUARE Activity Diagram SQUARE Lab *UML 2 and the Unified Process Second Edition을 인용하여 작성됨
What are activity diagrams OOS SQUARE v Activity diagrams are often called “OO flowcharts”. v You can also use activity diagrams to model business processes and workflows v Activity diagrams are most commonly used in the following ways § In the analysis workflow • To model the flow in a use case in a graphical way that is easy for stakeholders to understand • To model the flow between use cases. This uses a special form of activity diagram called an interaction overview diagram § In design • To model the details of an operation • To model the details of an algorithm § In business modeling • To model a business process 2
Activities – Node (1/3) OOS SQUARE v Activity are networks of nodes connected by edges. v There are three categories of node § Action node: represent discrete units of work that are atomic within the activity § Control node: control the flow through the activity § Object node: represent objects used in the activity 3
Activities – Node (2/3) OOS SQUARE v Activity are networks of nodes connected by edges. v There are three categories of node § Action node: represent discrete units of work that are atomic within the activity § Control node: control the flow through the activity § Object node: represent objects used in the activity 4
Activities – Node (3/3) OOS SQUARE v Activity are networks of nodes connected by edges. v There are three categories of node § Action node: represent discrete units of work that are atomic within the activity § Control node: control the flow through the activity § Object node: represent objects used in the activity 5
Activities – Edge (1/2) OOS SQUARE v Edges represent flow through the activity § Control flow: represent the flow of control through the activity § Object flow: represent the flow of objects through the activity 6
Activities – Edge (2/2) OOS SQUARE v Edges represent flow through the activity § Control flow: represent the flow of control through the activity § Object flow: represent the flow of objects through the activity 7
Action nodes OOS SQUARE v An action represents a single step within an activity v Action nodes execute when § There is a token simultaneously on each of their input edges AND § The input tokens satisfy all of the action node local preconditions 8
Action nodes - advanced OOS SQUARE 9
Control nodes OOS SQUARE v Control nodes manage the flow of control within an activity 10
Control nodes – Decision node OOS SQUARE 11
Control nodes – Fork and join nodes OOS SQUARE 12
Object nodes OOS SQUARE v Object nodes indicate that instances of a classifier are available v Object flows represent the movement of objects around an activity 13
Pins OOS SQUARE v A pin is an object node that represents one input to or output from an action 14
Sending signals and accepting events OOS SQUARE v Signals represent information that is passed asynchronously between objects. 15
Interruptible activity regions OOS SQUARE v Interruptible activity regions are regions of an activity that are interrupted when a token traverses an interrupting edge v When the region is interrupted, all flows within the region are immediately aborted 16
- Slides: 16