[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655597-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655597-en":130,"doc-similar-655597":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","chapter-10-uml-state-diagrams-key-concepts","Chapter 10: UML State Diagrams - Key Concepts","","This chapter explains how UML state diagrams model the behavior of nontrivial objects over time. It introduces the core purpose of state diagrams for identifying an object’s attributes and refining a behavior description based on external events. It then details notational elements, including three kinds of state nodes (initial, end, and state), the structure of transition edges (event, optional guard, optional action), and control nodes for alternate and parallel flows. It also provides examples and exercises.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/chapter-10-uml-state-diagrams-key-concepts/655597/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/chapter-10-uml-state-diagrams-key-concepts/655597.png","ImageObject",300,407,{"name":42,"@type":43},"Jiven","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What are UML state diagrams used to describe?","Question",{"text":63,"@type":64},"UML state diagrams describe the behavior of nontrivial objects, focusing on how an object’s state changes over time in response to external events.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What do state nodes represent in a UML state diagram?",{"text":68,"@type":64},"State nodes represent points where an object can be during its lifetime. The chapter distinguishes initial nodes, end nodes, and named state nodes.",{"name":70,"@type":61,"acceptedAnswer":71},"How is a transition edge specified in UML state diagrams?",{"text":72,"@type":64},"A transition edge connects a current state to a target state and can include an event trigger, an optional guard condition in brackets, and an optional action executed during the transition indicated with a leading slash (/).","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655597,1793052276,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":116,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":144,"preview_page_count":33,"preview_urls":145},1099513958607,"https://ap-avatar.wpscdn.com/avatar/100002390cf8733938c?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778829742770036399","Department of Computer Science  \nTackling Design Patterns  \nChapter 10: UML State Diagrams  \nCopyright 􀀍c 2016 by Linda Marshall and Vreda Pieterse. All rights reserved.  \nContents  \n10.1 Introduction ................................. 2  \n10.2 Notational Elements ............................ 2  \n10.2.1 State Nodes ................................. 2  \n10.2.2 Transition edges ............................... 3  \n10.2.3 Control Nodes ................................ 4  \n10.2.4 Actions .................................... 5  \n10.2.5 Signals .................................... 5  \n10.2.6 Composite States .............................. 6  \n10.3 Examples ................................... 6  \n10.4 Exercises ................................... 7  \nReferences ....................................... 8  \n10.1 Introduction  \nUML State diagrams are used to describe the behaviour of nontrivial objects. State diagrams are good for describing the behaviour of one object over time and are used to identify object attributes and to re􀀌ne the behaviour description of an object.  \nA state is a condition in which an object can be at some point during its lifetime, for some 􀀌nite period of time [4] . State diagrams describe all the possible states a particular object can get into and how the objects state changes as a result of external events that reach the object [1] . The notation for state diagrams was 􀀌rst introduced by Harel [2], and then adopted by UML.  \n10.2 Notational Elements  \nA UML State diagram is a graph in the mathematical sense of the word. It is a diagram consisting of nodes and edges. The nodes can assume a variety of forms each with speci􀀌c meaning, while the edges are labeled arrows connecting these nodes. In Section 10 .2.1 we discuss the basic nodes. The basic nodes are called state nodes. In Section 10 .2.2 we discuss the syntax for the edges. They are called transitions. To be able to model complicated transitions special nodes called control nodes are introduced in Section 10 .2.3.  \n10.2.1 State Nodes  \nThere are three kinds of state nodes; initial nodes, state nodes and end nodes.  \nFigure 1: Initial Node  \nFigure 1 shows the symbol used to indicate the initial node. It is a 􀀌lled circle. The initial node is the starting point of a state diagram. It indicates the default state of an object whose behaviour may change over time. A state diagram may at most have one initial node. Although a diagram may be drawn without indicating the starting point it is considered good practice to always have a starting point.  \nFigure 2: End Node  \nFigure 2 shows the symbol used to indicate an end node. It is a 􀀌lled circle with another open circle around it. It indicates where the system terminates. A system may be running in􀀌nitely while sometimes changing state. In such case its UML state diagram may have no end nodes. It is also permissible for a state diagram to have many 􀀌nal nodes. Since a state diagram is used to model behaviour that is dependent on events that may or may not happen, it is conceivable that the system may terminate in a variety of ways.  \nFigure 3: State Node  \nFigure 3 shows the symbol used to indicate a state. It is a rounded square. In a state diagram each state other than the initial state (initial node) and the 􀀌nal state (end node), should be named. The name of a state is a short descriptive name that can be used to refer to the state. The name of the state in this 􀀌gure is Active. We discuss more detail about states in Section 10 .2.4.  \n10.2.2 Transition edges  \nFigure 4: Transition Edge  \nTransition edges in a state diagram are used to indicate transition between states. If an object in a system changes state as a reaction to some event, it is indicated by connecting the current state with a target state with an arrow labeled with the name of the event that triggers such transition. The following detail may be shown on a transition in a UML state diagram. These are all optional i.e. if not required, they ","cbCaijNHmDU00TBd","https://ap.wps.com/l/cbCaijNHmDU00TBd","pdf",362610,"English","# 10.1 Introduction\n# 10.2 Notational Elements\n## 10.2.1 State Nodes\n## 10.2.2 Transition edges\n## 10.2.3 Control Nodes\n## 10.2.4 Actions\n## 10.2.5 Signals\n## 10.2.6 Composite States\n# 10.3 Examples\n# 10.4 Exercises\n# References","[{\"question\":\"What are UML state diagrams used to describe?\",\"answer\":\"UML state diagrams describe the behavior of nontrivial objects, focusing on how an object’s state changes over time in response to external events.\"},{\"question\":\"What do state nodes represent in a UML state diagram?\",\"answer\":\"State nodes represent points where an object can be during its lifetime. The chapter distinguishes initial nodes, end nodes, and named state nodes.\"},{\"question\":\"How is a transition edge specified in UML state diagrams?\",\"answer\":\"A transition edge connects a current state to a target state and can include an event trigger, an optional guard condition in brackets, and an optional action executed during the transition indicated with a leading slash (/).\"}]","Chapter 10: UML State Diagrams - Key Concepts | PDF",1792962834,23,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/85453c01c80060c1a5acf9e64a1224ee.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6c9bbe9c435e3688b93c6058093f0fd0.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/be60cda6b04b787da9f8f964d2784f4a.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5bda4dc5ab9ae274621fd4dbf0d097b2.webp",980,1385,{"list":163,"token":11},[164,170,176,182,188,193,199,205,212,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":55,"category_name":29,"create_tm":169},655587,"Chapter 16 - UML Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285692/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=uOtYad%2BTysy8MYFOzbuunw%2FIMFA%3D","chapter-16-uml-activity-diagrams",1792962750,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":116,"category_name":29,"create_tm":175},655594,"UML Activity Diagrams - Lecture 7","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285727/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=0wxzjBHvVPO6GTRFl7%2BrzAqIx%2B0%3D","uml-activity-diagrams-lecture-7",1792962779,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":111,"category_name":29,"create_tm":181},655600,"State Machine Diagrams - A simple state machine diagram - Explanation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286051/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=WmCCxb49TYFKq3UGPxkhaybwHgA%3D","state-machine-diagrams-a-simple-state-machine-diagram-explanation",1792962838,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":55,"category_name":29,"create_tm":187},655846,"UNIT-I - INTRODUCTION TO UML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974779026/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=G1wmNJmb3hEW11NDn7XpyK96F1k%3D","unit-i-introduction-to-uml",1792964301,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":116,"category_name":29,"create_tm":181},655599,"State Diagrams - State and Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286048/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=VSNnTceOBnP5qtIs77aTz77nakc%3D","state-diagrams-state-and-activity-diagrams",{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":116,"category_name":29,"create_tm":198},655604,"UML-ATM - Class Diagram, Use Case, Sequence, Communication, State, Activity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974775471/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=hQigx%2FIzBiwiFPyE0TIi40u52BY%3D","uml-atm-class-diagram-use-case-sequence-communication-state-activity",1792962853,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":55,"category_name":29,"create_tm":204},655690,"Component and Deployment Diagrams - Chapter 2 - Modeling with UML: Component and Deployment Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975287816/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=cYAgWU2Ll7OdF69MyVmzeiWgYFI%3D","component-and-deployment-diagrams-chapter-2-modeling-with-uml-component-and-deployment-diagrams",1792963295,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},655585,"Unit-5 - Activity Diagrams - 1 - Activity diagram overview and drawing guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285680/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=zbHVdgWjA6E0aWlYE6TTfUam%2FTM%3D","unit-5-activity-diagrams-1-activity-diagram-overview-and-drawing-guidance",18,1792962748,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},655613,"UML Activity Diagrams, State-Machine Diagrams and Modelling - Lecture 2 - Introduction and Notation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286122/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=%2FkVRNECVJBAddiG8SfQAUqYgo7M%3D","uml-activity-diagrams-state-machine-diagrams-and-modelling-lecture-2-introduction-and-notation",15,1792962874,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},655683,"UML Deployment and Component Diagrams - Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975287615/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=rME0TRAk3R%2BRrNSHH5aYejnpDws%3D","uml-deployment-and-component-diagrams-notes",11,1792963227]