Identifying & Creating Use Cases – Part 2 Month Day, Year
Agenda Training Plan Overview Activity Diagram Details Next Steps
Training Plan Overview Introduction Using Rational Administrator Using ClearCase Using ClearQuest Using Rational Rose XDE Identifying & Creating Use-Cases – Part 1 Identifying & Creating Use-Cases – Part 2 Detailing Requirements with RequisitePro Actors and Use-Case Diagrams Sequence and Statechart Diagrams Collaboration and Class Diagrams Integration and Development with the .NET Framework
Activity Diagram Start State Activity Decision State Transition Regular Transition To Self Horizontal and Vertical Synchronization Object State Note Note Anchor Text End State Swimlanes
AD – Decisions & Events A decision defines a specific location on an activity diagram or statechart diagram where the workflow may branch 1 to n branches 1 to 2 branches normal Event defines a trigger of a state transition (1 to n) A decision of ??? Type of event
AD – Decisions & Events
AD - Events Add event Right click transition and select Properties Window Select UML tab
AD - Events Enter Name
AD – Activity Actions An action defines a step within an Activity or State Add Actions Right click activity Select Add UML Select Action
AD – Activity Actions Specify action Repeat as Necessary Do Action On Entry On Exit Repeat as Necessary
AD – Activity Actions
AD – Activity Actions Select activity Right Click and Select Property Window Select Collections
AD – Activity Actions
AD – Activity Actions
AD – Activity Stereotype A stereotype defines a sub-classification of a model element Add Stereotype Right click activity Right Click and Select Property Window Select stereotype from drop down or add new type
AD – Activity Stereotype Change Stereotype Display Select Format, Stereotype & Visibility Style None Label Icon Decoration
AD – Details
AD – Guard Conditions A Guard Condition defines a condition which, when true, allows the transition to occur. As long as the condition remains false, the transition will not occur. Add guard condition Right click transition and select Properties Window Select Detail tab. Enter Guard Condition Click OK
AD – Conditional Threads A conditional thread defines a branch of workflow which only occurs when a set of conditions exist
AD – Conditional Threads and Guard Conditions
AD – Conditional Threads and Guard Conditions
AD – Nested Activities Nested Activities are a way to visually present the equivalent of a sub- diagram of activities Enclosing activity is referred to as a superactivity Nested activities are called subactivities
AD – Nested Activities
AD – Transitions to Self Transitions to Self are a looping mechanism Drag and Drop Transition to Self tool onto activity Add guard condition to new transition Add guard condition to activity completion transition
AD – Transitions to Self
AD – Decision Guard Conditions Decision Guards Conditions control the flow of a decision via the transitions from the decision Boolean logic of True
AD – Decision Guards
AD – Decision Guards
Use-Case View Activities Added State/Models Added Clean Up Rename Other Sub-model elements added
AD - States A state defines a condition of an object in which it performs some activity or waits for an event Add a state Drag and drop Proxy State tool on to the diagram In Model Explorer create State Drag & Drop State on Proxy State Connect transitions
AD - States
AD – State Stereotypes
AD - States
AD - States
Use-Case View States Added
Use-Case View Review Reorganize Complete
Use-Case Analysis
Use-Case Analysis 5 New Use-Cases Add New Use-Cases Check Spelling Verify Address Verify Phone Parse Name Create Spelling Suggestions Add New Use-Cases Follow Process
Use-Case Analysis Delete actions Create sub-activity diagram
AD – Clean Up
AD – Clean Up
AD – Clean Up
Advanced AD - Swimlanes Swimlanes are similar to an object Represent organizational units or roles Allow assignment of activities to the organizational units or roles
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD - Swimlanes
Advanced AD – Object Flows Object flows are used to show how business entities are created and used in a workflow The object flow state represents the state of an object of a class as it participates in the workflow The same object can be manipulated by a number of successive activities that change the object's state. The same object can then be displayed multiple times in an activity graph, with each appearance representing a different state during its life.
Advanced AD – Object Flows Create or Select an Activity Diagram Select the Object State tool Click on diagram to place
Advanced AD – Object Flows Enter Name and Alias New Repeat Saved Add to & from transitions
Advanced AD – Object Flows Create Object Create State Machine Create States
Advanced AD – Object Flows Drag and Drop class object states onto activity diagram object states
Advanced AD – Object Flows
Advanced AD – Object Flows
Advanced AD – Object Flows
Next Steps Homework Classes Ahead Homework Model Explode one top level use-case Concentrate on abstraction of detail Use modeling elements Use-Case Model Level Classes Ahead Detailing Requirements with RequisitePro Actors and Use-Case Diagrams Sequence and Statechart Diagrams Collaboration and Class Diagrams Integration and Development with the .NET Framework