[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655561-105":59,"doc-detail-655561-en":131,"doc-similar-655561":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","uml-sequence-diagrams-engineering-notebook-column-april-98","UML Sequence Diagrams - Engineering Notebook Column - April, 98","","UML sequence diagrams are explained by contrasting them with UML collaboration diagrams and by walking through a Cellular Phone example. The material covers how objects are represented with underlined names, how lifelines form the time axis, and how message arrows and sequence numbers convey interactions. It further details activations, iteration blocks, object creation/deletion notation, asynchronous “half-arrowheads,” concurrency, and the conditions that lead to race conditions.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/uml-sequence-diagrams-engineering-notebook-column-april-98/655561/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/uml-sequence-diagrams-engineering-notebook-column-april-98/655561.png","ImageObject",300,407,{"name":92,"@type":93},"The weather in my hometown","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What is the main difference between UML sequence diagrams and collaboration diagrams?","Question",{"text":113,"@type":114},"Sequence diagrams emphasize the order of messages, while collaboration diagrams emphasize relationships between objects. Both convey the same underlying interaction information.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How do lifelines and time work in a sequence diagram?",{"text":118,"@type":114},"Lifelines descend from each object to define a downward time axis. The diagram’s lifeline extent indicates whether objects exist before the start and remain after the end of the shown interactions.",{"name":120,"@type":111,"acceptedAnswer":121},"What do half-arrowheads mean and how do asynchronous messages behave?",{"text":122,"@type":114},"Half-arrowheads denote asynchronous messages. The sender returns immediately after spawning the receiving execution in a separate thread, so the receiving activation continues beyond the immediate return.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},655561,1793119628,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":24,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},1374408744247,"https://ap-avatar.wpscdn.com/avatar/14001251d37d565ec6f?x-image-process=image/resize,m_fixed,w_180,h_180&k=1790672120290115972","UML Tutorial: Sequence Diagrams.  \nRobert C. Martin  \nEngineering Notebook Column  \nApril, 98  \nIn my last column, I described UML Collaboration diagrams. Collaboration diagrams allow the designer to specify the sequence of messages sent between objects in a collaboration. The style of the diagram emphasizes the relationships between the objects as opposed to the sequence of the messages.  \nIn this column we will be discussing UML Sequence diagrams. Sequence diagrams contain the same information as Collaboration diagrams, but emphasize the sequence of the messages instead of the relationships between the objects.  \nThe Cellular Phone Revisited  \nHere again is the final collaboration diagram from last column’s Cellular Phone example. (See Figure 1.)  \nFigure 1 : Collaboration diagram of Cellular Phone.  \nThe Sequence diagram that corresponds to this model is shown in Figure 2. It is pretty easy to see what the diagrams in Figure 2 are telling us, especially when we compare them to Figure 1. Let’s walk through the features.  \nFirst of all, there are two sequence diagrams present. The first one captures the course of events that takes place when a digit button is pressed. The second captures what happens when the user pushes the ‘send’button in order to make a call. At the top of each diagram we see the rectangles that represent objects. As in collaboration diagrams, the names of the objects are underlined to distinguish them from classes. Also the object name is separated from the class name by a colon. Some objects, like the Dialer, have no particular object name, so the colon precedes the class name without an object name in front ofit. Descending from each object is a dashed line known as the “lifeline”. These lines define the time axis of the diagram. By convention, time proceeds in a downward direction 1. The lifelines depict how long the  \n1 UML also allows the diagram to be tipped on its side so that time proceeds to the right. However this is avery uncommon variation.  \nobjects that they are connected to are in existence. In Figure 2, we cannot see the full extent of the lifelines; they extend from the very top of the diagram to the very bottom. This implies that the objects portrayed in this diagram are in existence before the start of time in the diagram and remain in existence beyond the end of the diagram.  \nThe arrows between the lifelines represent messages being sent between the objects. Sequence numbers, as shown in the previous column, are permitted but are not necessary. The white narrow rectangles that the arrows terminate on are called activations. They show the duration of the execution of a method in response to a message. The methods implicitly return to their caller at the end of the activation.2  \nFigure 2: Sequence Diagram of Cellular Phone.  \nThe large rectangle that encloses the group of messages in the first sequence diagram defines an iteration. The looping condition for that iteration is shown at the bottom of the rectangle.  \nTake a little time to inspect the two figures. You should be able to prove to yourself that they represent precisely the same information. Yet the two forms are radically different. The Sequence diagrams take upa bit more space, but are much easier to follow algorithmically. The Collaboration diagram shows the whole collaboration in one dense diagram, but obscures the algorithm to some extent. Which of the two you use depends upon the information you are trying to emphasize. Sometimes you really want to show the cohesiveness of a collaboration; other times you want to show the flow of the algorithm.  \nCreation and Deletion of Objects  \nFigure 3 shows how we depict the creation and deletion of objects on a sequence diagram. Here we see the CellularRadio object creating a Connection object in response to a Connect message. Creation is denoted  \n2 Such returns can be shown by an unlabeled arrow that extends from the bottom of the activation back to the lifeline of the calling ob","cbCaitKZlja67P23","https://ap.wps.com/l/cbCaitKZlja67P23","pdf",38093,"English","# UML Sequence Diagrams\n## Cellular Phone example: sequence vs collaboration\n## Diagram elements: objects, lifelines, messages, activations\n## Iterations and reading the algorithm\n## Creation and deletion of objects\n## Asynchronous messages and concurrency\n## Race conditions","[{\"question\":\"What is the main difference between UML sequence diagrams and collaboration diagrams?\",\"answer\":\"Sequence diagrams emphasize the order of messages, while collaboration diagrams emphasize relationships between objects. Both convey the same underlying interaction information.\"},{\"question\":\"How do lifelines and time work in a sequence diagram?\",\"answer\":\"Lifelines descend from each object to define a downward time axis. The diagram’s lifeline extent indicates whether objects exist before the start and remain after the end of the shown interactions.\"},{\"question\":\"What do half-arrowheads mean and how do asynchronous messages behave?\",\"answer\":\"Half-arrowheads denote asynchronous messages. The sender returns immediately after spawning the receiving execution in a separate thread, so the receiving activation continues beyond the immediate return.\"}]","UML Sequence Diagrams - Engineering Notebook Column - April, 98 | PDF",1792962636,13,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b8353061aef92417415b391b4de55ead.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6c2882536c122985d557872e70f15d85.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8b9360ffe661bc1e782656a1b41e6613.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/58dfbd02a52fbba02160c1483c8db530.webp",980,1268,{"list":164,"token":66},[165,171,177,183,190,196,202,209,215,220],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":39,"category_name":30,"create_tm":170},655558,"Sequence Diagram Tutorial - Chapter 4 - Use Cases and Scenarios - UML Sequence Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285279/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=PtBtNNARuPP95IIoBcmwiZF0Htw%3D","sequence-diagram-tutorial-chapter-4-use-cases-and-scenarios-uml-sequence-diagrams",1792962629,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":105,"category_name":30,"create_tm":176},655562,"UML-Sequence Diagrams - Introduction - Notation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285301/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=5dulgJj%2BuJY5nsCDQW%2BesWOnl84%3D","uml-sequence-diagrams-introduction-notation",1792962639,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":44,"category_name":30,"create_tm":182},655682,"Chap56GL - eng(1)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975287376/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=8QzDhFxYwgps%2F9hYYxLxiMB8J9E%3D","chap56gl-eng1",1792963195,{"doc_id":184,"doc_title":185,"file_type":138,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":30,"create_tm":189},655556,"Sequence Diagrams - Part 1 - Introduction and Notations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285263/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=Qm%2FpvUHXC9WEBRaaHNbZZQlaXMc%3D","sequence-diagrams-part-1-introduction-and-notations",16,1792962626,{"doc_id":191,"doc_title":192,"file_type":138,"home_preview_img_url":193,"slug":194,"view_count":105,"category_name":30,"create_tm":195},655696,"Visual Paradigm Handbook - Sequence Diagram - Overview of UML Sequence Diagram Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288090/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=0x49xsoh%2FNTTOdUHOSibc2hJ4pM%3D","visual-paradigm-handbook-sequence-diagram-overview-of-uml-sequence-diagram-concepts",1792963364,{"doc_id":197,"doc_title":198,"file_type":138,"home_preview_img_url":199,"slug":200,"view_count":29,"category_name":30,"create_tm":201},655559,"Concurrency in UML - Version 2.6 - A Guide for Representing Concurrent Execution","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285294/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=%2F%2BY2b0nWdMwoRUCOnn5zy68UeaI%3D","concurrency-in-uml-version-26-a-guide-for-representing-concurrent-execution",1792962632,{"doc_id":203,"doc_title":204,"file_type":138,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":30,"create_tm":208},655922,"How to Develop UML Sequence Diagram with Keyboard? - Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294162/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=ihoZpQls2m7xd6bqRy8Tqd3Xhm8%3D","how-to-develop-uml-sequence-diagram-with-keyboard-tutorial",11,1792964859,{"doc_id":210,"doc_title":211,"file_type":138,"home_preview_img_url":212,"slug":213,"view_count":39,"category_name":30,"create_tm":214},655787,"Lecture 12 - Sequence Diagrams - Collaboration and Time","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975290000/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=aD9DEqpFWs21X%2Fji%2BPa1Y%2FRT6ns%3D","lecture-12-sequence-diagrams-collaboration-and-time",1792963779,{"doc_id":216,"doc_title":217,"file_type":138,"home_preview_img_url":218,"slug":219,"view_count":105,"category_name":30,"create_tm":170},655557,"Sequence Diagrams - UML interaction diagrams for scenarios","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285272/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=viNc75v8BbG%2BNtOL3UwEZT1ToEc%3D","sequence-diagrams-uml-interaction-diagrams-for-scenarios",{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":34,"category_name":30,"create_tm":225},655700,"UML Sequence Diagrams - Interaction Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776062/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=bh1gNmHYDpmiuhqpbodHZ0AKWYw%3D","uml-sequence-diagrams-interaction-diagrams",1792963371]