[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655596-105":59,"doc-detail-655596-en":130,"doc-similar-655596":161},{"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":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","state-diagram-basic-concepts-and-how-to-draw-it","State Diagram - Basic Concepts and How to Draw It","","A practical guide to UML state diagrams, explaining how they model a system’s dynamic behavior through finite state transitions over time. Covers terminology such as state machines and state-chart diagrams, key uses, and how state diagrams differ from flowcharts. Details essential components including initial, transitions, states, fork/join, self transitions, composite states, and final states. Provides step-by-step instructions and an online order example. Includes reference questions on purpose and distinctions from related UML diagrams.",{"@graph":69,"@context":122},[70,84,105],{"@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/state-diagram-basic-concepts-and-how-to-draw-it/655596/",{"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/state-diagram-basic-concepts-and-how-to-draw-it/655596.png","ImageObject",300,407,{"name":92,"@type":93},"8796093062539","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of a state diagram?","Question",{"text":112,"@type":113},"State diagrams describe the behavior of objects during their entire lifespan. They also make state changes and the events causing transitions explicit.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the difference between a state diagram and a flowchart?",{"text":117,"@type":113},"A state diagram portrays changes in state, not the processes or commands that cause them. A flowchart instead depicts processes or commands that, when executed, change the object’s state.",{"name":119,"@type":110,"acceptedAnswer":120},"How do activity diagrams relate to state diagrams?",{"text":121,"@type":113},"Activity diagrams are a variation of state diagrams focusing on the flow of actions and events. They can model human tasks and business processes.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},655596,1793131612,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":66,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":138,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":139,"faqs":140,"seo_title":141,"seo_description":67,"update_tm":142,"read_time":143,"preview_page_count":19,"preview_urls":144},8796093062539,"State Diagrams  \nA state diagram is used to represent the condition of the system or part of the system at finite instances of time. It’s a behavioral diagram and it represents the behavior using finite state transitions. State diagrams are also referred to as State machines and State-chart Diagrams. These terms are often used interchangeably. So simply, a state diagram is used to model the dynamic behavior of a class in response to time and changing external stimuli. We can say that each and every class has a state but we don’t model every class using State diagrams. We prefer to model the states with three or more states.  \nUses of statechart diagram –  \n• We use it to state the events responsible for change in state (we do not show what processes cause those events) .  \n• We use it to model the dynamic behavior of the system .  \n• To understand the reaction of objects/classes to internal or external stimuli.  \nFirstly let us understand what are Behavior diagrams? There are two types of diagrams in UML :  \n1. Structure Diagrams – Used to model the static structure of a system, for example- class diagram, package diagram, object diagram, deployment diagram etc.  \n2. Behavior diagram – Used to model the dynamic change in the system over time. They are used to model and construct the functionality of a system. So, a behavior diagram simply guides us through the functionality of the system using Use case diagrams, Interaction diagrams, Activity diagrams and State diagrams.  \nDifference between state diagram and flowchart – The basic purpose of a state diagram is to portray various changes in state of the class and not the processes or commands causing the changes. However, a flowchart on the other hand portrays the processes or commands that on execution change the state of class or an object of the class.  \nThe state diagram below shows the different states in which the verification sub-system or class exist for a particular system.  \nFigure – a state diagram for user verification  \nBasic components of a statechart diagram –  \n1. Initial state – We use a black filled circle represent the initial state of a System or a class.  \nFigure – initial state notation  \n2. Transition – We use a solid arrow to represent the transition or change of control from one state to another. The arrow is labelled with the event which causes the change in state.  \nFigure – transition  \n3. State – We use a rounded rectangle to represent a state. A state represents the conditions or circumstances of an object of a class at an instant of time.  \nFigure – state notation  \n4. Fork – We use a rounded solid rectangular bar to represent a Fork notation with incoming arrow from the parent state and outgoing arrows towards the newly created states. We use the fork notation to represent a state splitting into two or more concurrent states.  \nFigure – a diagram using the fork notation  \n5. Join – We use a rounded solid rectangular bar to represent a Join notation with incoming arrows from the joining states and outgoing arrow towards the common goal state. We use the join notation when two or more states concurrently converge into one on the occurrence of an event or events.  \nFigure – a diagram using join notation  \n6. Self transition – We use a solid arrow pointing back to the state itself to represent a self transition. There might be scenarios when the state of the object does not change upon the occurrence of an event. We use self transitions to represent such cases.  \nFigure – self transition notation  \n7. Composite state – We use a rounded rectangle to represent a composite state also. We represent a state with internal activities using a composite state.  \nFigure – a state with internal activities  \n8. Final state – We use a filled circle within a circle notation to represent the final state in a state machine diagram.  \nFigure – final state notation  \nSteps to draw a state diagram –  \n1. Identify the initial state and the final terminating states.  \n2.","cbCaii1oXPFSUCBw","https://ap.wps.com/l/cbCaii1oXPFSUCBw","pdf",288314,"English","# Uses of Statechart Diagrams\n# Behavior Diagrams in UML\n# Difference Between State Diagram and Flowchart\n# Basic Components of a Statechart Diagram\n## Initial State\n## Transition, State, Fork, Join, Self Transition\n## Composite State and Final State\n# Steps to Draw a State Diagram\n# Example: Online Order State Diagram\n# Reference Questions","[{\"question\":\"What is the purpose of a state diagram?\",\"answer\":\"State diagrams describe the behavior of objects during their entire lifespan. They also make state changes and the events causing transitions explicit.\"},{\"question\":\"What is the difference between a state diagram and a flowchart?\",\"answer\":\"A state diagram portrays changes in state, not the processes or commands that cause them. A flowchart instead depicts processes or commands that, when executed, change the object’s state.\"},{\"question\":\"How do activity diagrams relate to state diagrams?\",\"answer\":\"Activity diagrams are a variation of state diagrams focusing on the flow of actions and events. They can model human tasks and business processes.\"}]","State Diagram - Basic Concepts and How to Draw It | PDF",1792962828,18,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/cde693ccffb7ba90195dd4f55095a561.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/305b6d8f05489df175befc0265439a5e.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7041f568d75ef4aab4be4fa7de6e53bd.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a0d21b52bc4a3ae6779ba2a6dc13b20c.webp",980,1268,{"list":162,"token":66},[163,169,175,181,187,193,199,205,212,218],{"doc_id":164,"doc_title":165,"file_type":136,"home_preview_img_url":166,"slug":167,"view_count":44,"category_name":30,"create_tm":168},655641,"Activity Diagram - UML Models - Definitions and Types","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286522/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=ZxsRHRg1kjp3aYAgXXqYZ41ZI1M%3D","activity-diagram-uml-models-definitions-and-types",1792962986,{"doc_id":170,"doc_title":171,"file_type":136,"home_preview_img_url":172,"slug":173,"view_count":29,"category_name":30,"create_tm":174},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=1796128799&Signature=tk0pDtUInGmsKKKdPn1S2t6g9ls%3D","concurrency-in-uml-version-26-a-guide-for-representing-concurrent-execution",1792962632,{"doc_id":176,"doc_title":177,"file_type":136,"home_preview_img_url":178,"slug":179,"view_count":44,"category_name":30,"create_tm":180},657280,"COEN-4720 Embedded Systems Design - Lecture 2 - Flowcharts, Algorithmic State Machines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975408543/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=3SxpXQrZKw1yswIJUw4BPO2kkLs%3D","coen-4720-embedded-systems-design-lecture-2-flowcharts-algorithmic-state-machines",1792976871,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":39,"category_name":30,"create_tm":186},655601,"Flowcharts, State Transition Tables and State Transition Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286052/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=OHY%2BLulJZGdCFH7SI85DKbSymwE%3D","flowcharts-state-transition-tables-and-state-transition-diagrams",1792962841,{"doc_id":188,"doc_title":189,"file_type":136,"home_preview_img_url":190,"slug":191,"view_count":44,"category_name":30,"create_tm":192},655612,"Unified Modeling Language (UML) - Enterprise Architect User Guide Series - UML Diagrams - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974775478/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=BshcTucUfPyulSl83vY%2B5k5gGKE%3D","unified-modeling-language-uml-enterprise-architect-user-guide-series-uml-diagrams-overview",1792962871,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":44,"category_name":30,"create_tm":198},665483,"Information Systems Analysis and Design - State and Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983495517/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=VIWsRtJP0fzxjo8Gbtlh2SkWRUA%3D","information-systems-analysis-and-design-state-and-activity-diagrams",1793304474,{"doc_id":200,"doc_title":201,"file_type":136,"home_preview_img_url":202,"slug":203,"view_count":39,"category_name":30,"create_tm":204},655548,"Unified Modeling Language - Enterprise Architect User Guide Series - Version 17.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284950/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=keRHQcJeh3J9NQF8llgKygqXHJY%3D","unified-modeling-language-enterprise-architect-user-guide-series-version-171",1792962569,{"doc_id":206,"doc_title":207,"file_type":136,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},655784,"Unified Modeling Language (UML) Enterprise Architect - User Guide Series - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289647/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=5dozSR3Y5Ub%2FiF6RHUAuh6NuIcs%3D","unified-modeling-language-uml-enterprise-architect-user-guide-series-table-of-contents",12,1792963746,{"doc_id":213,"doc_title":214,"file_type":136,"home_preview_img_url":215,"slug":216,"view_count":44,"category_name":30,"create_tm":217},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=1796128799&Signature=o8SbB2eZdGyhr%2BomtX29XcyAbn0%3D","state-diagrams-state-and-activity-diagrams",1792962838,{"doc_id":219,"doc_title":220,"file_type":136,"home_preview_img_url":221,"slug":222,"view_count":52,"category_name":30,"create_tm":223},655652,"Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Lecture 11 - Interaction and State Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286672/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796128799&Signature=rzZ7jOnh6%2B94i3fHAN3PC6KvKDs%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams",1792963024]