UML Diagrams Activity Diagram Activity Diagrams Activity diagram

  • Slides: 21
Download presentation
UML Diagrams Activity Diagram

UML Diagrams Activity Diagram

Activity Diagrams � Activity diagram is basically a flow chart to represent the flow

Activity Diagrams � Activity diagram is basically a flow chart to represent the flow from one activity to another activity.

Activity diagrams elements 1. 2. 3. 4. 5. 6. Actions or activity. Start and

Activity diagrams elements 1. 2. 3. 4. 5. 6. Actions or activity. Start and End States. Transitions. Decision. Forks and Joins. Swim lane.

Actions or activity � An action represents a single step within an activity, that

Actions or activity � An action represents a single step within an activity, that is, one that is not further decomposed within the activity.

Start and End States Start state � The End state start and end states

Start and End States Start state � The End state start and end states let you know where the flow begins and ends. � Each activity diagram must have a start state, which is drawn as a solid dot, to signify where the flow begins. � End states are optional on the diagram � You can have more than one end state on the diagram, but only a single start state.

Transitions �A transition shows how the flow of control moves from one activity to

Transitions �A transition shows how the flow of control moves from one activity to another. � We can, set limitations on the transition to control when the transition occurs. � This can be done either by using an event condition.

Transitions event

Transitions event

Decision � In creating the activity diagram, you might need to model two or

Decision � In creating the activity diagram, you might need to model two or more different sequences of actions.

Forks and Joins You can use the Fork Node and the Join Node to

Forks and Joins You can use the Fork Node and the Join Node to describe two or more threads of activities that can execute at the same time. � A fork node is a control node that splits a flow into multiple concurrent flows. � A fork node has one incoming edge and multiple outgoing edges. � A join node is a control node that synchronizes multiple flows. � A join node has multiple incoming edges and one outgoing edge. �

Forks and Joins

Forks and Joins

Swimlane

Swimlane

Examples

Examples