Visualizing Dynamic Interactions: A Comprehensive Guide to UML Sequence Diagrams
Explore the world of UML sequence diagrams and message sequence charts to effectively illustrate dynamic interactions within systems. This guide covers the fundamental components, including vertical lifelines for processes and horizontal arrows for messages, distinguishing between synchronous, asynchronous, and reply messages. Using practical examples such as the purchasing process, it highlights how businesses can visualize communication and process flows. Gain insights into the applications of sequence charts in web development and beyond, using tools and resources to enhance your understanding.
Visualizing Dynamic Interactions: A Comprehensive Guide to UML Sequence Diagrams
E N D
Presentation Transcript
Sequence Charts Edel Sherratt
Visualizing Interactions • UML sequence diagrams • Message Sequence Charts (ITU) • And there are many other ways to illustrate dynamic interaction
UML sequence diagram • Vertical lifelines represent processes • Horizontal arrows represent messages • solid arrow heads: synchronous messages • open arrow heads: asynchronous messages • dashed lines: reply messages.
Some Examples • http://www.tutorialspoint.com/uml/uml_interaction_diagram.htm • https://www.lucidchart.com/pages/uml/sequence-diagram • http://www.conceptdraw.com/solution-park/diagramming-uml • http://en.wikipedia.org/wiki/Sequence_diagram • http://www.ibm.com/developerworks/rational/library/3101.html
Message Sequence Chart • Originally developed to specify real-time communication • Vertical lines represent autonomous executing entities • Arrows represent asynchronous messages
Business Processes as Sequence Charts • A simple message sequence chart • Vertical lines represent roles • Arrows represent asynchronous messages
From before: Purchasing Process • S = Supplier C= Customer • C asks S for price • S sends price to C • C send Purchase order to S • S sends goods to C • C signs GRN and send to S • S sends invoice to C • C send cheque to S • C reports fault to S • S send credit note to C
Betty’s and Mike’s • Betty’s Bakery Ltd. orders 20 pallets of wholemeal flour from Mike’s Mill Ltd. • Mike's sends a delivery of 15 pallets of wholemeal and 5 pallets of white flour. • Betty’s accepts the wholemeal, but returns the white flour. • At the end of the month, Betty’s Ltd. pays for the 15 pallets of wholemeal.
Summary • Visualizing exchange of messages • UML sequence diagrams • ITU standard message sequence charts • Simple sequence charts to represent business processes • Think about how sequence charts could be used by web developers