[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655599-105":59,"doc-detail-655599-en":130,"doc-similar-655599":160},{"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-diagrams-state-and-activity-diagrams","State Diagrams - State and Activity Diagrams","","Material focuses on UML state diagrams and activity diagrams within the Information Systems Analysis and Design course (CSC340). It explains state transition concepts, including events with optional Event[Condition]/Action triples, the distinction between events and longer-running states, and how transitions fire when conditions and events occur. It also covers superstates (AND/OR) and illustrates course lifetimes and other example flows. The notes introduce activity diagrams for concurrency and synchronization and connect them to Petri net-like notation.",{"@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-diagrams-state-and-activity-diagrams/655599/",{"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-diagrams-state-and-activity-diagrams/655599.png","ImageObject",300,407,{"name":92,"@type":93},"Patrick","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","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 UML state diagrams in these notes?","Question",{"text":112,"@type":113},"They describe state transitions in a system’s operating environment, including how the system interacts with that environment and the lifetime of objects during execution.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do events and conditions relate to transitions?",{"text":117,"@type":113},"Transitions represent actions that occur quickly and are not interruptible; a transition’s event must occur and its associated condition must be true for the transition to fire, after which the action is carried out.",{"name":119,"@type":110,"acceptedAnswer":120},"What do superstates (AND vs OR) mean?",{"text":121,"@type":113},"A superstate groups one or more states. When an AND superstate is on, all contained states are on; when an OR superstate is on, exactly one of its states is on.","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},655599,1792962838,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":19,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":52,"preview_page_count":19,"preview_urls":143},549758146520,"https://ap-avatar.wpscdn.com/avatar/80002397d8c0411e94?_k=1775819394049821470","Information Systems Analysis and Design CSC340  \nIV. State and Activity Diagrams  \nState Diagrams  \nEvents and States  \nSuperstates  \nActivity Diagrams  \nPetri Nets  \n© 2002 Jaelson Castro and John Mylopoulos Statechart Diagrams-- 1  \nInformation Systems Analysis and Design CSC340  \nState Diagrams (Statecharts)  \n􀀁 These are state transition diagrams (with some interesting additions) which can be used to describe the operating environment of the system, interactions of the system with that environment, also the lifetime of some object (a person, a student,…) within or without the system.  \n􀀁 Transitions are supposed to represent actions which occur  \n“quickly” and are not interruptible. A transition can have an associated triple  \nEvent[Condition]/Action all parts of this triple are optional.  \n􀀁 States are supposed to represent longer-running activities (or other things). What constitutes “quickly” and “longer-running”depends on the application.  \n© 2001 Jaelson Castro and John Mylopoulos State and Activity Diagrams-- 2  \n\n| Information Systems Analysis and Design\u003Cbr>Events | CSC340 |\n| --- | --- |\n| 􀀁 An eventis a happening that the system needs to know about.\u003Cbr>􀀁 For example, completing an assignment, failing an exam, or a system crash are all events.\u003Cbr>􀀁 An event may trigger an action by an actor or the system being developed.\u003Cbr>􀀁 In UML, there are four types of events:\u003Cbr>􀀂 Change events occur when a condition becomes true, e.g., when(balance \u003C 0);\u003Cbr>􀀂 Signal events designate the receipt of an explicit (real-time) signal from one object or actor to another;\u003Cbr>􀀂 Call events indicate the receipt of a call for an operation by an object or actor;\u003Cbr>􀀂 Time events mark the passage of a designated period of time, e.g., after(10 seconds)\u003Cbr>© 2001 Jaelson Castro and John Mylopoulos State and Activity Diagrams-- 4 |  |\n\n\n| Information Systems Analysis and Design\u003Cbr>States | CSC340 |\n| --- | --- |\n| 􀀁 A state represents a time period during which\u003Cbr>􀀂 A predicate is true, e.g., budget-expenses >0,\u003Cbr>􀀂 An action is being performed, e.g., check inventory for order items, or\u003Cbr>􀀂 Someone waits for an event to happen, e.g., arrival of a missing order item.\u003Cbr>􀀁 A state can be “on” or “off”.\u003Cbr>􀀁 When a state is “on”, all its outgoing transitions are eligible to fire. Fora transition to fire, its event must occur and its condition must be true. When a transition does fire, its action is carried out.\u003Cbr>􀀁 States can have associated activities. Special activity constructs include:\u003Cbr>􀀂 do/stateDiagramName(parameterList ) -- “calls” another state diagram;\u003Cbr>􀀂 entry/action--carry out the action when entering the activity;\u003Cbr>􀀂 exit/action--carry out the action when exiting;\u003Cbr>© 2001 Jaelson Castro and John Mylopoulos State and Activity Diagrams-- 6 |  |\n\nInformation Systems Analysis and Design  \nCourse Lifetimes, Again  \nCSC340  \n| Initialization |\n| --- |\n| do / Initialize |\n\naddStudent/  \ncount=0;CourseRoster .Create() addStudent[count\u003C10]   \n\n|  | \u003Cbr>Open |\n| --- | --- |\n| |  |\n|  | entry/RegisterStudent\u003Cbr>exit/CourseRoster .AddStudent(student) |\n\n\n| \u003Cbr>Cancelled |\n| --- |\n|  |\n\n[count=10]  \ncancel  \nCourseRoster .Delete() quarterStarted  \n\n| Closed |\n| --- |\n| do/FinalizeCourse |\n\n© 2001 Jaelson Castro and John Mylopoulos State and Activity Diagrams-- 7  \nInformation Systems Analysis and Design CSC340  \nAn OR Superstate  \n© 2001 Jaelson Castro and John Mylopoulos State and Activity Diagrams-- 9  \n\n| Information Systems Analysis and Design CSC340\u003Cbr>An AND Superstate |\n| --- |\n| \u003Cbr>|\n| © 2001 Jaelson Castro and John Mylopoulos State and Activity Diagrams-- 11 |\n\n\n| Information Systems Analysis and Design\u003Cbr>Superstates | CSC340 |\n| --- | --- |\n| 􀀁 State transition diagrams can be very hard to read once they grow to more than a few dozen states.\u003Cbr>􀀁 For UML state diagrams, states can be composed into nested states, or superstates. Such compositions make it possible to view a state diagram at different levels of abstraction.\u003C","cbCaigWkoVGiBeqk","https://ap.wps.com/l/cbCaigWkoVGiBeqk","pdf",175612,"English","# State Diagrams\n## Events and States\n## Superstates\n## Activity Diagrams\n## Petri Nets","[{\"question\":\"What is the purpose of UML state diagrams in these notes?\",\"answer\":\"They describe state transitions in a system’s operating environment, including how the system interacts with that environment and the lifetime of objects during execution.\"},{\"question\":\"How do events and conditions relate to transitions?\",\"answer\":\"Transitions represent actions that occur quickly and are not interruptible; a transition’s event must occur and its associated condition must be true for the transition to fire, after which the action is carried out.\"},{\"question\":\"What do superstates (AND vs OR) mean?\",\"answer\":\"A superstate groups one or more states. When an AND superstate is on, all contained states are on; when an OR superstate is on, exactly one of its states is on.\"}]","State Diagrams - State and Activity Diagrams | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7beeb3f1355a581de4ad96cb50a984ce.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c9e17854cb18c0cacd80d7153923cc6f.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e33783f2350672ed6fcd06911ffc3716.webp",981,1269,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6aeda9aa8bede143a9a4901d68118a33.webp",980,1268,{"list":161,"token":66},[162,168,174,180,186,192,199,205,212,218],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":29,"category_name":30,"create_tm":167},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=1796161019&Signature=MIhhXouoHMScXOKVGbKW%2FYcYus4%3D","concurrency-in-uml-version-26-a-guide-for-representing-concurrent-execution",1792962632,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":44,"category_name":30,"create_tm":173},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=1796161019&Signature=uHayVSKQI6qdCgPS4XlYfKdXBDo%3D","uml-atm-class-diagram-use-case-sequence-communication-state-activity",1792962853,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":44,"category_name":30,"create_tm":179},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=1796161019&Signature=MQczosENF7mjARPi4r%2F1x%2Bn%2F%2Fos%3D","information-systems-analysis-and-design-state-and-activity-diagrams",1793304474,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":44,"category_name":30,"create_tm":185},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=1796161019&Signature=DTM8XHn5Ws4%2BKwCD9F3JwFT3GBo%3D","activity-diagram-uml-models-definitions-and-types",1792962986,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":52,"category_name":30,"create_tm":191},655597,"Chapter 10: UML State Diagrams - Key Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286038/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=2zbqwtPeiti5FtH%2B7GLTd6cXbZY%3D","chapter-10-uml-state-diagrams-key-concepts",1792962834,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":30,"create_tm":198},655607,"UML Slides Final - 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286108/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161019&Signature=%2FejHHroeziYmf0xTZ3B%2BssHErR8%3D","uml-slides-final-1",11,1792962860,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":44,"category_name":30,"create_tm":204},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=1796161019&Signature=Eux5YcnW7YdKzhEkSrL1LImBsWY%3D","uml-activity-diagrams-lecture-7",1792962779,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"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=1796161019&Signature=3VDLNHGxsrNw%2BJ1z2cjkli8tA%2FU%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":39,"category_name":30,"create_tm":217},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=1796161019&Signature=e35cSOElHKX0Iht5QKaKPz%2FgzkI%3D","unified-modeling-language-enterprise-architect-user-guide-series-version-171",1792962569,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":223,"category_name":30,"create_tm":224},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=1796161019&Signature=Hbd4z6o8MM7GuNPskeKMZtircUk%3D","uml-sequence-diagrams-engineering-notebook-column-april-98",12,1792962636]