[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655557-105":59,"doc-detail-655557-en":131,"doc-similar-655557":164},{"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","sequence-diagrams-uml-interaction-diagrams-for-scenarios","Sequence Diagrams - UML interaction diagrams for scenarios","","Sequence diagrams model how objects collaborate within a single UML scenario, showing participants as lifelines and the ordered messages exchanged between them. The text walks through a concrete example of an Order calculating line-item prices and computing an overall discount, then compares a centralized-control implementation with a distributed-control alternative. It explains notation such as found messages, activation bars, participant naming syntax, return arrows, and how distributed control clarifies processing responsibilities while supporting polymorphism and change localization.",{"@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/sequence-diagrams-uml-interaction-diagrams-for-scenarios/655557/",{"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/sequence-diagrams-uml-interaction-diagrams-for-scenarios/655557.png","ImageObject",300,407,{"name":92,"@type":93},"lugxt","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","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 does a UML sequence diagram capture in a scenario?","Question",{"text":113,"@type":114},"It captures the collaboration of participants for a single scenario, showing lifelines and the ordered messages passed between participants within the use case.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does centralized control differ from distributed control in the example?",{"text":118,"@type":114},"Centralized control concentrates most processing in one participant, while distributed control splits processing across many participants, with each doing part of the algorithm.",{"name":120,"@type":111,"acceptedAnswer":121},"What is a found message in sequence diagram notation?",{"text":122,"@type":114},"The first message that has no sending participant is called a found message, indicating it comes from an undetermined source.","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},655557,1793073301,{"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":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},3985747862600,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","# Sequence Diagrams\n\nInteraction diagrams describe how groups of objects collaborate in some behav-ior.The UML defines several forms of interaction diagram,of which the mostcommon is the sequence diagram.  \nTypically,a sequence diagram captures the behavior of a single scenario.Thediagram shows a number of example objects and the messages that are passedbetween these objects within the use case.  \nTo begin the discussion,I'll consider a simple scenario.We have an order andare going to invoke a command on it to calculate its price.To do that,the orderneeds to look at all the line items on the order and determine their prices,whichare based on the pricing rules of the order line's products.Having done that forall the line items,the order then needs to compute an overall discount,which isbased on rules tied to the customer.  \nFigure 4.1 is a sequence diagram that shows one implementation of that sce-nario.Sequence diagrams show the interaction by showing each participantwith a lifeline that runs vertically down the page and the ordering of messagesby reading down the page.  \nOne of the nice things about a sequence diagram is that I almost don't haveto explain the notation.You can see that an instance of order sends getQuantityand getProduct messages to the order line.You can also see how we show theorder invoking a method on itself and how that method sends getDiscountInfo toan instance of customer.  \nThe diagram,however,doesn't show everything very well.The sequence ofmessages getQuantity,getProduct,getPricingDetails,and calculateBasePrice needs tobe done for each order line on the order,while calculateDiscounts is invoked justonce.You can't tell that from this diagram,although I'll introduce some morenotation to handle that later.  \nMost of the time,you can think of the participants in an interaction diagramas objects,as indeed they were in UML1.But in UML2,their roles are muchmore complicated,and to explain it all fully is beyond this book.So I use the  \nFigure 4.1 A sequence diagram for centralized control  \nterm participants,a word that isn't used formally in the UML spec.In UML1,participants were objects and so their names were underlined,but in UML 2,they should be shown without the underline,as I've done here.  \nIn these diagrams,I've named the participants using the style anOrder.Thisworks well most of the time.A fuller syntax is name:Class,where both the nameand the class are optional,but you must keep the colon if you use the class.(Figure 4.4,shown on page 58,uses this style.)  \nEach lifeline has an activation bar that shows when the participant is active inthe interaction.This corresponds to one of the participant's methods being onthe stack.Activation bars are optional in UML,but I find them extremely valu-able in clarifying the behavior.My one exception is when exploring a design dur-ing a design session,because they are awkward to draw on whiteboards.  \nNaming often is useful to correlate participants on the diagram.The call get-Product is shown returning aProduct,which is the same name,and therefore the  \nsame participant,as the aProduct that the getPricingDetails call is sent to.Notethat I've used a return arrow for only this call;I did that to show the correspon-dance.Some people use returns for all calls,but I prefer to use them only wherethey add information;otherwise,they simply clutter things.Even in this case,you could probably leave the return out without confusing your reader.  \nThe first message doesn't have a participant that sent it,as it comes from anundetermined source.It's called a found message.  \nFor another approach to this scenario,take a look at Figure 4.2.The basicproblem is stillthe same,but the way in which the participants collaborate toimplement it is very different.The Order asks each Order Line to calculate itsown Price.The Order Line itself further hands off the calculation to the Product;note how we show the passing of a parameter.Similarly,to calculate the dis-count,the Order invokes","cbCaieQv98QoFIyN","https://ap.wps.com/l/cbCaieQv98QoFIyN","pdf",641533,11,"English","# Sequence diagrams overview\n## Example scenario: Order, order lines, products, customer\n## Notation details: lifelines, messages, activation bars\n## Centralized vs distributed control styles\n## Strengths and design implications","[{\"question\":\"What does a UML sequence diagram capture in a scenario?\",\"answer\":\"It captures the collaboration of participants for a single scenario, showing lifelines and the ordered messages passed between participants within the use case.\"},{\"question\":\"How does centralized control differ from distributed control in the example?\",\"answer\":\"Centralized control concentrates most processing in one participant, while distributed control splits processing across many participants, with each doing part of the algorithm.\"},{\"question\":\"What is a found message in sequence diagram notation?\",\"answer\":\"The first message that has no sending participant is called a found message, indicating it comes from an undetermined source.\"}]","Sequence Diagrams - UML interaction diagrams for scenarios | PDF",1792962629,28,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b7f6ed08f38e3bd21fc4c0e85bc72f17.webp",983,1399,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5e77f2c01414dec9071bb9eea462922e.webp",982,1398,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8ab2ed7e2a5655ac61569f275cb7af3b.webp",981,1396,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0969e3d4e4f5c460d10bf2997d47a61a.webp",980,1395,{"list":165,"token":66},[166,172,178,184,189,195,201,208,214,220],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":105,"category_name":30,"create_tm":171},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=1796175719&Signature=KaPZ%2Fq7I%2FrTNof9fndPITz1Ynzk%3D","visual-paradigm-handbook-sequence-diagram-overview-of-uml-sequence-diagram-concepts",1792963364,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":29,"category_name":30,"create_tm":177},655648,"Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Modelling Interactions and Behaviour","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286609/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175719&Signature=FyDc8qU9v4yTcF%2BYopORqfksv4M%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour",1792963009,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":105,"category_name":30,"create_tm":183},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=1796175719&Signature=%2FlTy5BBwgIDiOoA%2F1um4lXCNVyQ%3D","uml-sequence-diagrams-introduction-notation",1792962639,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":39,"category_name":30,"create_tm":145},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=1796175719&Signature=W1dFwb7yXX8dbWzx1Tph9Hpqlbs%3D","sequence-diagram-tutorial-chapter-4-use-cases-and-scenarios-uml-sequence-diagrams",{"doc_id":190,"doc_title":191,"file_type":138,"home_preview_img_url":192,"slug":193,"view_count":44,"category_name":30,"create_tm":194},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=1796175719&Signature=p2E%2Fnz%2FBJKiCbv3Q5EzRv2X%2ButU%3D","chap56gl-eng1",1792963195,{"doc_id":196,"doc_title":197,"file_type":138,"home_preview_img_url":198,"slug":199,"view_count":39,"category_name":30,"create_tm":200},655778,"How to Draw UML Communication Diagram - Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289635/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175719&Signature=71%2Bm5vKzgNkGAuTEmDaem%2BhVBSI%3D","how-to-draw-uml-communication-diagram-tutorial",1792963735,{"doc_id":202,"doc_title":203,"file_type":138,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":30,"create_tm":207},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=1796175719&Signature=hl%2FQORvI9OX61OrguUiH7EqbDf0%3D","sequence-diagrams-part-1-introduction-and-notations",16,1792962626,{"doc_id":209,"doc_title":210,"file_type":138,"home_preview_img_url":211,"slug":212,"view_count":105,"category_name":30,"create_tm":213},655561,"UML Sequence Diagrams - Engineering Notebook Column - April, 98","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285299/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175719&Signature=e1CHi5t3cH2LWZKbqD8oBJ861Eo%3D","uml-sequence-diagrams-engineering-notebook-column-april-98",1792962636,{"doc_id":215,"doc_title":216,"file_type":138,"home_preview_img_url":217,"slug":218,"view_count":140,"category_name":30,"create_tm":219},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=1796175719&Signature=IIVMB63LyB3CHemkq7B3P15TP1M%3D","how-to-develop-uml-sequence-diagram-with-keyboard-tutorial",1792964859,{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":52,"category_name":30,"create_tm":225},655702,"UML Sequence and Interaction Diagrams - Technical Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776048/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796175719&Signature=eLp6gwtASUloOXOVIoNrfEmrTEM%3D","uml-sequence-and-interaction-diagrams-technical-guide",1792963375]