Session 21 Applying the Basic Statechart to the Case Study Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by.

Slides:



Advertisements
Similar presentations
Creating and Submitting Orders Remy Order Management System.
Advertisements

State Diagram 1. State diagram: Shows the behavior of one object. They describe all of the possible states that a particular object can get into and how.
Nested state diagrams:Problems with flat state diagram
UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
State Machine Diagram Page
Main Menu F3 Exit = Press F3 to exit this screen. Commonly Use Keys: F4 Prompt = Position cursor in front of ‘?’ location and press F4 to display a list.
Inter-Warehouse Transfers An Enhancement For iSeries 400 DMAS from  Copyright I/O International, 2004, 2005, 2007, 2010 Skip Intro.
Session 18 Modeling the Dynamic View: The Collaboration Diagram Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 20, 2011 Presented.
Slide 10B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Journalizing INVENTORY-Related Transactions Slideshow 8 B.
Starter Kit. Starter kit Production : Cut operations receiving ECN (Eng. Change Notice) Auto copy to prod orders details Shop floor reporting Generic.
Interaction Modeling. Sequence Models  There are two kinds of sequence models: scenarios and sequence diagrams  A scenario is a sequence of events that.
Lecture 4 Finite State Machine CS6133 Software Specification and Verification.
Session 24 Modeling the Development Environment Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by Hyewon Lim.
Chapter 10 State Machine Diagrams
Session 12 Applying the Class Diagram to the Case Study Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 12, 2011 Presented by Hyewon.
Copyright 2013 GHSP | A JSJ Company 2 SUPPLIER TRAINING – Advance Shipping Notice (ASN) Guidelines Discover, Align, Deliver. Worry Free. GHSP.
Chapter 5 Merchandising Operations
Session 26 Modeling the Static View: The Deployment Diagram Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
Guide to State Transition Diagram. 2 Contents  What is state transition diagram?  When is state transition diagram used?  What are state transition.
1 Copyright ©2012 Pearson Education Inc. Publishing as Prentice Hall.
Session 22 Modeling the Extended Features of the Statechart Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented.
5-1 Quest will occur on Thursday October 9 2 Unit 2: Chapter 5.
Session 4 Defining Requirements for the Case Study Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 5, 2011 Presented by Kang-Pyo.
CSIS3600 System Analysis and Design Statechart Diagrams.
Copyright 2013 GHSP | A JSJ Company 2 Supply Chain Portal - Creating an ASN Discover, Align, Deliver. Worry Free. GHSP.
Chapter 9 Applying UML and Patterns -Craig Larman
Information System Design IT60105
Software Engineering Design & Modeling Statechart Diagram.
IST331 Assignment 7 Task-Action Diagrams Answer Guide.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
Drop Shipment in Microsoft Dynamics ® AX 2012 Drop Shipment.
Skip Intro Tab then Enter. To start the process, The Warehouse will invite you to use The Warehouse Group Supplier Electronic Portal and will send you.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
Copyright Flying Kiwi Productions Inc. 1 An Introduction to Object-Oriented Analysis Objects and UML in plain English. Chapter.
States.
Training Day 5 Customer Order Processing Recipe Manager © User Training September 2014 Recipe Manager Vydata Systems Training Presentation.
Statechart Diagrams. Creating a Statechart Diagram A Statechart diagram shows the life cycle of a single object, from the time that it is created until.
Session 3 How to Approach the UML Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 5, 2011 Presented by Kang-Pyo Lee.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Accounting Information Systems: A Business Process Approach Chapter Three: Documenting Accounting Systems.
The Return Process Product is ordered by customer. Customer needs to return product, a Return Authorization is created. The RA is reviewed and approved.
Process Control Management Prepared by: Dhason Operating Systems.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Advanced UML State Diagrams.
Tour - session 5 Sales Order entry
State Machine Diagram.
State Machine Diagrams
System Sequence Diagrams and Operation Contracts
Training Presentation for Supply Chain Platform: BAE Systems
State Machine Diagrams
UML State Diagrams.
How To Impress Your Customers With On-time Delivery of Their Orders
S9k Traceability System
The Fulfillment Process
CSC 422 Kutztown University Dr. Spiegel
Sales Order Process.
States.
Perpetual Inventory Activity
Chapter 10 Object States and The Statechart Diagram
Chapter 5 state Modeling
States.
Accounting Information Systems: A Business Process Approach
Presentation transcript:

Session 21 Applying the Basic Statechart to the Case Study Written by Thomas A. Pender Published by Wiley Publishing, Inc. October 27, 2011 Presented by Kang-Pyo Lee

Contents  Defining Entry and Exit Actions  Defining Send Events  Order of Events  Applying the Basic Statechart Diagram Notation to the Case Study 2

Defining Entry and Exit Actions (1/3)  Modeling state transitions often results in more than one event that changes the object to the same state  The UML offers two simplifications called entry & exit actions 3

Defining Entry and Exit Actions (2/3)  Whenever an action must take place with every event that transitions to the same state, you can write the action(s) once as an entry action –When the redundant action is replaced by the entry action, you can remove it from the individual event arrows –This simplifies the diagram while preserving the same meaning –You would read the diagram to say, “Every time you enter this state issue an order confirmation.” 4

Defining Entry and Exit Actions (3/3)  The same simplification may be used for actions associated with events that leave a state with exit actions –Modeled in the same manner as entry actions  Just remember that they may only be used when the action takes place every time you enter (for entry actions) or every time you exit (for exit actions) the state 5

Contents  Defining Entry and Exit Actions  Defining Send Events  Order of Events  Applying the Basic Statechart Diagram Notation to the Case Study 6

Defining Send Events  A send event is used when the object in the Statechart diagram needs to communicate with another object  An outgoing event must define the receiving object whether it is only one object or a broadcast to many objects –Simply provide the object name followed by a period before the action expression –This is often referred to as the dot notation 7

Contents  Defining Entry and Exit Actions  Defining Send Events  Order of Events  Applying the Basic Statechart Diagram Notation to the Case Study 8

Order of Events  When an event occurs, the order of execution runs like this: –1. If an activity is in progress in the current state, interrupt it (gracefully if possible) –2. Execute the exit action(s) –3. Execute the actions associated with the event that started it all –4. Execute the entry: action(s) of the new state –5. Execute the activity or activities of the new state 9

Contents  Defining Entry and Exit Actions  Defining Send Events  Order of Events  Applying the Basic Statechart Diagram Notation to the Case Study 10

Applying the Basic Statechart Diagram Notation to the Case Study (1/7)  Inventory control: Problem statement 11 Products are first entered into our system when they are ordered using a purchase order (P.O.). Each product keeps a record of the originating P.O. (*1) When the product is received, it is placed into inventory by recording the location where it is placed. When the product is received, you have to update the P.O. to indicate that you have received the product. (*2) When a product is sold, the product tracks the order to which it belongs. (*3) When a product is sold, it is also packed for shipping and the associated shipment is recorded. (*4) When the product is shipped, you need to record the shipper and the date it was picked up. (*5) Occasionally, a product is returned. In that case, you put the product back into inventory and record the location. (*6)

Applying the Basic Statechart Diagram Notation to the Case Study (2/7)  Constructing the Statechart diagram for the product object (*1) – The initial state is On Order –The action is to record the purchase order –Notice that an action may be associated with the creation of the object 12

Applying the Basic Statechart Diagram Notation to the Case Study (3/7)  Constructing the Statechart diagram for the product object (*2) –The transition from On Order to Inventoried is triggered by the receive event –The associated actions are to update the purchase order object with the product and quantity received and update the product with the inventory location 13

Applying the Basic Statechart Diagram Notation to the Case Study (4/7)  Constructing the Statechart diagram for the product object (*3) –The sell event triggering the transition to the sold state and the action to record the Order that now holds the product 14

Applying the Basic Statechart Diagram Notation to the Case Study (5/7)  Constructing the Statechart diagram for the product object (*4) –The event pack for shipping triggering the transition from sold to packaged –The pack for shipping event also triggers the action to record the shipment 15

Applying the Basic Statechart Diagram Notation to the Case Study (6/7)  Constructing the Statechart diagram for the product object (*5) –The ship event is the trigger –The action is setShipped with the date and the carrier 16

Applying the Basic Statechart Diagram Notation to the Case Study (7/7)  Constructing the Statechart diagram for the product object (*6) –The return event requires us to record the inventory location –The other incoming event also logs the inventory location 17

The End