100 likes | 108 Views
Unified Modeling Language User Guide. Section 4 - Basic Behavioral Modeling Chapter 19 – Activity Diagrams. Overview. Modeling a workflow Modeling an operation Forward and reverse Engineering. Terms & Concepts. Activity Diagram – shows the flow from activity to activity.
E N D
Unified Modeling LanguageUser Guide Section 4 - Basic Behavioral Modeling Chapter 19 – Activity Diagrams
Overview • Modeling a workflow • Modeling an operation • Forward and reverse Engineering CS6359 Chapter 19
Terms & Concepts • Activity Diagram – shows the flow from activity to activity. • Activity – an ongoing non atomic execution within a state machine. Activities ultimately/ pada akhirnya results in some action. • Action – made up of executable atomic computations that results in a change in state of the system or the return of a value (i.e., calling another operation, sending a signal, creating or destroying an object, or some pure computation. CS6359 Chapter 19
Do trade work() Finish construction Initial state Activity Diagram • Activity diagrams commonly contain: • Activity states and actions states • Transitions • Objects Select site Commission Action state architect Develop plan Bid plan concurrent fork Sequential branch [not accepted] [else] Activity state with submachine concurrent join Do site work object flow : CertificateOfOccupancy [completed] final state CS6359 Chapter 19
Action States & Activity States • Action states: executable, atomic computations (states of the system, each representing the execution of an action) – cannot be decomposed/buang. • Activity states: not atomic; can be further/ lebih jauh decomposed; can be represented by other activity diagrams – a composite whose flow of control is made up of other activity states and action states. CS6359 Chapter 19
Release work order Select Site Reschedule Assign tasks Commission architect Transitions & Branching start state guard expression branch [materials not ready] action state triggerless transition [materials ready] stop state guard expression CS6359 Chapter 19
Forking and Joining • Concurrent flow. • Use synchronization bar to specify the forking and joining of these parallel flows of control. • A synchronization bar is rendered as a thick horizontal or vertical line. fork Do trade Do site work work() join CS6359 Chapter 19
Swimlanes • Useful in modeling workflows of business processes – partition the activity states on an activity diagram into groups, each group representing the business organization responsible for those activities. • A swimlane is a kind of package. • Each swimlaine has a name unique within its diagram (a swimlane really has no deep semantic – just represent some real-world entity). • Every activity belongs/mesti to exactly one swimlane, but transitions may cross lanes. CS6359 Chapter 19
Object Flow • Objects may be involved/ ruwet in the flow of control associated with an activity diagram. • Specify the things that are involved in an activity diagram by placing these objects in the diagram, connected using a dependency to the activity or transition that creates, destroys, or modifies them. • Object flow – the use of dependency relationships and objects (represents the participation of an object in a flow of control). CS6359 Chapter 19
Summary • Activity diagram, Activity, & Action • Action states & Activity states • Transition & Branching • Forking & Joining • Swimlanes • Object flow CS6359 Chapter 19