Activity Model Topics to be Discuss Activity Diagram
Activity Model
Topics to be Discuss Activity Diagram Notations Activity Diagram Swimlanes Activity Diagram with Swimlanes Guidelines for Activity Models
Activity Diagram Notations Activity: § § An activity is the specification of a parameterized sequence of behaviour. An activity is shown as a round-cornered rectangle enclosing all the actions, control flows and other elements that make up the activity. They are graphically rendered as rounded rectangle. Notation for Activity 10 -3
Branches: The diamond below represents a conditional branch point or decision node. A decision node has one input and two or more outputs. [Condition] [Else] [Condition] Each output has a condition attached to it, which is written in brackets. If a condition is met, the flow proceeds along the appropriate output. An 'else' output can be defined along which the flow can proceed if no other condition is met.
Ø Initiation Point: - A solid circle with an outgoing arrow shows the starting point of an activity diagram. Ø Termination points: - A bulls eye shows the termination point. When the control reaches the bulls eye, the overall activities are completed & activity diagram ends.
Concurrent Activity: Unlike traditional flow chart organization can perform more than activity at a time i. e. several concurrent activities can work simultaneously. This is represented by solid lines. Notation for Concurrent Activity BACK
Activity Diagram An activity diagram shows the sequence of steps that make up a complex process , such as an algorithm or workflow. An activity diagram shows flow of control, similar to a sequence diagram, but focuses on operations rather than on objects. An activity diagram is like a traditional flowchart in that it shows the flow of control from step to step. Unlike a traditional flowchart, however an activity diagram can show both sequential and concurrent flow of control. For Exp: - The figure 3. 1 shows an activity diagram for the processing of a stock trade order that has been received by an online stock broker.
Verify order Execute order [Failure] [success] Send informatio n Debit account Update online portfolio Send failure notice Settle trade Close order Figure 3. 1 -Activity diagram for stock trade processing BACK
Swimlanes partition organizations: groups of activities Customer Receive product based on, for instance, business Billing Bill Customer Pay bill BACK
Flight attendant Clean trash Ground crew Add fuel Catering Load food And drinks Figure 3. 2 -shows a simple example for servicing an airplane Activity Diagram with Swimlanes BACK
Guidelines for Activity Models Activity diagrams elaborate the details of computations, thus documenting the steps needed to implement an operation or a business process. Activity diagrams can help developers understand complex computations by graphically displaying the progression through intermediate execution steps. Here is some advice for activity models: Ø Ø Ø Don’t misuse activity diagrams Level diagrams Be careful with branches and conditions Be careful with concurrent activities Consider executable activity diagram BACK
THANKS BACK
- Slides: 12