[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655587-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655587-en":130,"doc-similar-655587":163},{"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-16-uml-activity-diagrams","Chapter 16 - UML Activity Diagrams","","This chapter explains UML activity diagrams as a structured way to document system and use-case workflows by showing the sequence and ordering of actions. It introduces the intent and key distinctions between activity and state diagrams, then details core notational elements such as activity nodes (action, object, control) and activity edges. It covers initial and final nodes, action node notation, guard conditions and decision/merge constructs, and illustrates these ideas with examples including implementing activities and parallel behaviors.",{"@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-16-uml-activity-diagrams/655587/",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-16-uml-activity-diagrams/655587.png","ImageObject",300,407,{"name":42,"@type":43},"miraaa_2004","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","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 activity diagrams used for?","Question",{"text":63,"@type":64},"UML activity diagrams describe the workflow of a system by showing activities and their execution order. They help analyze use cases by clarifying what actions must occur and when.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do activity diagrams differ from state diagrams?",{"text":68,"@type":64},"State diagrams model state-dependent behavior and transitions between states, while activity diagrams focus on the flow of actions and the order in which actions occur.",{"name":70,"@type":61,"acceptedAnswer":71},"What do initial nodes and final nodes represent in an activity diagram?",{"text":72,"@type":64},"An activity diagram has exactly one initial node indicating the start of the flow. It may have one or multiple final nodes: an activity final node ends a single flow control, while a flow final node ends all flow controls within the activity.","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},655587,1793114383,{"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":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},962094249165,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Department of Computer Science  \nTackling Design Patterns  \nChapter 16: UML Activity Diagrams  \nCopyright 􀀍c 2016 by Linda Marshall and Vreda Pieterse. All rights reserved.  \nContents  \n16.1 Introduction ................................. 2  \n16.2 Notational Elements ............................ 2  \n16.2.1 Initial and 􀀌nal nodes ............................ 2  \n16.2.2 Action nodes ................................. 2  \n16.2.3 Activity edge ................................. 3  \n16.2.4 Alternate 􀀍ows ................................ 4  \n16.2.5 Parallel 􀀍ows ................................. 4  \n16.2.6 Composite activities ............................. 4  \n16.2.7 Swimlanes .................................. 5  \n16.3 Examples ................................... 5  \n16.3.1 Finding and drinking a beverage ...................... 5  \n16.3.2 Implementing code for an activity diagram ................ 8  \n16.3.3 Activities based on age of the participant ................. 8  \nReferences ....................................... 10  \n16.1 Introduction  \nThe 􀀌rst structured method for documenting process 􀀍ow, the \\􀀍ow process chart\", was introduced by [3] . Activity diagrams combine techniques from 􀀍ow charts, event diagrams [5] and Petri nets [6] . Activity diagrams describe the work􀀍ow of a system. The diagrams describe activities by showing the sequence of activities performed. Activity diagrams are useful for analysing a use case by describing what actions need to take place and when they should occur. Usually activity diagrams are used to describe a complicated algorithm or to model the 􀀍ow in applications with parallel processes. The distinction between state and activity diagrams is only in what they model. Where state diagrams are used to model state-dependent behaviour and conditions for transitions between states, activity diagrams are used to model the 􀀍ow of actions and the order in which the actions take place.  \n16.2 Notational Elements  \nThe notational elements used in state diagrams and activity diagrams are the same except for a few subtle di􀀋erences. The main di􀀋erence between UML state diagrams and UML activity diagrams is in their intent.  \nThe basic elements of UML activity diagrams can be classi􀀌ed as activity nodes and edges. Activity nodes can either be action, object or control nodes. An activity is shown as around-cornered rectangle which encloses all the action and control nodes which make up the activity. Action nodes represent a single step within an activity and are also denoted by a round-cornered rectangle. Control nodes model di􀀋erent 􀀍ows that are controlled by conditions called guards.  \n16.2.1 Initial and 􀀌nal nodes  \nThe starting point of the 􀀍ow that is shown in an activity diagram is indicated with a 􀀌lled circle. An activity diagram must have exactly one initial node. An exit point inan activity diagram is called an 􀀌nal node. There are two kinds of 􀀌nal nodes, referred to as as activity 􀀌nal node and 􀀍ow 􀀌nal node. The 􀀍ow 􀀌nal node denotes the end of all 􀀍ow controls within the activity. The activity 􀀌nal node denotes the end of a single 􀀍ow control. An activity 􀀌nal node is shown with a 􀀌lled circle with an outline. Refer to Figure 1 . An activity diagram may have multiple 􀀌nal nodes. It is also allowable that it has no 􀀌nal node. If an activity diagram has no 􀀌nal node, it models an in􀀌nite activity such as an in􀀌nite loop.  \n16.2.2 Action nodes  \nAn action node in an activity diagram is a rounded square containing a descriptive name for the action. It looks exactly like a state node in a state diagram, as can be seen by comparing ReceivingState in Figure 2 with Action 1 in Figure 3 . The di􀀋erence between a state node and an activity node and more speci􀀌cally the action nodes, is that a state node in a state diagram may contain actions that are performed whereas activity nodes are actions and do not contain state.  \nFigure 1: Start and end nodes  \nA state van have activities An activity does not hav","cbCaikPKxyGSEIyL","https://ap.wps.com/l/cbCaikPKxyGSEIyL","pdf",661907,11,"English","# 16.1 Introduction\n# 16.2 Notational Elements\n## 16.2.1 Initial and final nodes\n## 16.2.2 Action nodes\n## 16.2.3 Activity edge\n## 16.2.4 Alternate flows\n## 16.2.5 Parallel flows\n## 16.2.6 Composite activities\n## 16.2.7 Swimlanes\n# 16.3 Examples\n## 16.3.1 Finding and drinking a beverage\n## 16.3.2 Implementing code for an activity diagram\n## 16.3.3 Activities based on age of the participant\n# References","[{\"question\":\"What are UML activity diagrams used for?\",\"answer\":\"UML activity diagrams describe the workflow of a system by showing activities and their execution order. They help analyze use cases by clarifying what actions must occur and when.\"},{\"question\":\"How do activity diagrams differ from state diagrams?\",\"answer\":\"State diagrams model state-dependent behavior and transitions between states, while activity diagrams focus on the flow of actions and the order in which actions occur.\"},{\"question\":\"What do initial nodes and final nodes represent in an activity diagram?\",\"answer\":\"An activity diagram has exactly one initial node indicating the start of the flow. It may have one or multiple final nodes: an activity final node ends a single flow control, while a flow final node ends all flow controls within the activity.\"}]","Chapter 16 - UML Activity Diagrams | PDF",1792962750,28,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4c0184a30d5cbed1e4d1312fc848ef03.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/228656c52c1526acc0f7163fcde8469c.webp",982,1388,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/063cc35bc99ef31e5cb453a1e951f8ed.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5a2a3aefa2152bdaae37ae66dc84eee6.webp",980,1385,{"list":164,"token":11},[165,171,177,184,190,197,203,209,215,221],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":55,"category_name":29,"create_tm":170},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=1796111279&Signature=KNkjvHQmmDPwSNHNyGxdmhq3f3U%3D","chapter-10-uml-state-diagrams-key-concepts",1792962834,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":116,"category_name":29,"create_tm":176},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=1796111279&Signature=NmbrzQGI%2FSVCXp%2BVZsGlgqPi540%3D","uml-activity-diagrams-lecture-7",1792962779,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},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=1796111279&Signature=AkXWl9CaUgFJQHv61WQQeaFyW6A%3D","uml-activity-diagrams-state-machine-diagrams-and-modelling-lecture-2-introduction-and-notation",15,1792962874,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":102,"category_name":29,"create_tm":189},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=1796111279&Signature=RHMXWF951pat01%2BF%2FSyoJE4n%2BWo%3D","concurrency-in-uml-version-26-a-guide-for-representing-concurrent-execution",1792962632,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},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=1796111279&Signature=EMrZDPv0qH7f%2BU0gHu8NSZjgJnc%3D","unit-5-activity-diagrams-1-activity-diagram-overview-and-drawing-guidance",18,1792962748,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":116,"category_name":29,"create_tm":202},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=1796111279&Signature=9MZBViZEteHluLjpaaGCbHW5lHA%3D","unified-modeling-language-uml-enterprise-architect-user-guide-series-uml-diagrams-overview",1792962871,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":116,"category_name":29,"create_tm":208},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=1796111279&Signature=usS35ayBGjRXJXRox7NYSQg1yFk%3D","state-diagrams-state-and-activity-diagrams",1792962838,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":55,"category_name":29,"create_tm":214},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=1796111279&Signature=BBW4%2FhD8xUF%2FScRU77f58fLnGDA%3D","component-and-deployment-diagrams-chapter-2-modeling-with-uml-component-and-deployment-diagrams",1792963295,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":139,"category_name":29,"create_tm":220},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=1796111279&Signature=G5TNy4kRBVW%2BdCajjtAqPWiGsJU%3D","uml-deployment-and-component-diagrams-notes",1792963227,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":116,"category_name":29,"create_tm":226},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=1796111279&Signature=%2B%2BkGIA%2BJKQ%2FBIKxlu6M6qgDAhd8%3D","uml-atm-class-diagram-use-case-sequence-communication-state-activity",1792962853]