{"id":837,"date":"2014-09-05T01:18:25","date_gmt":"2014-09-05T01:18:25","guid":{"rendered":"http:\/\/www.w3computing.com\/systemsanalysis\/?p=837"},"modified":"2021-05-18T19:41:29","modified_gmt":"2021-05-18T19:41:29","slug":"activity-diagrams","status":"publish","type":"post","link":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/","title":{"rendered":"Activity Diagrams &#8211; Introduction"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram is usually created for one use case and may show the different possible scenarios.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The symbols on an activity diagram are illustrated in the figure below. A rectangle with rounded ends represents an activity, either a manual one, such as signing a legal document, or an automated one, such as a method or program.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8.jpg\" rel=\"lightbox[837]\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"204\" src=\"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-300x204.jpg\" alt=\"Specialized symbols are used to draw an activity diagram.\" class=\"wp-image-791\" srcset=\"https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-300x204.jpg 300w, https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-1024x697.jpg 1024w, https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8.jpg 1044w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption>Specialized symbols are used to draw an activity diagram.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">An arrow represents an event. Events represent things that happen at a certain time and place. A diamond represents either a decision (also called a branch) or a merge. Decisions have one arrow going into the diamond and several going out. A guard condition, showing the condition values, may be included. Merges show several events combining to form one event. A long, flat rectangle represents a synchronization bar. These are used to show parallel activities, and may have one event going into the synchronization bar and several events going out of it, called a fork. A synchronization in which several events merge into one event is called a join.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are two symbols that show the start and end of the diagram. The initial state is shown as a filled-in circle. The final state is shown as a black circle surrounded by a white circle. Rectangles surrounding other symbols, called swimlanes, indicate partitioning and are used to show which activities are done on which platform, such as a browser, server, or mainframe computer; or to show activities done by different user groups. Swimlanes are zones that can depict logic as well as the responsibility of a class.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can see an example of swimlanes in the figure shown below, which illustrates an activity diagram for the <strong>Change Student Information<\/strong> use case. It starts with the student logging onto the system by filling out a Web form and clicking the <strong>Submit<\/strong> button. The form is transmitted to the Web server, which then passes the data to the mainframe computer. The mainframe accesses the STUDENT database and passes either a \u201cNot Found\u201d message or selected student data to the Web server.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.9.jpg\" rel=\"lightbox[837]\"><img loading=\"lazy\" decoding=\"async\" width=\"279\" height=\"300\" src=\"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.9-279x300.jpg\" alt=\"This activity diagram shows three swimlanes: Client Web Page,Web Server, and Mainframe\" class=\"wp-image-792\" srcset=\"https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.9-279x300.jpg 279w, https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.9.jpg 859w\" sizes=\"auto, (max-width: 279px) 100vw, 279px\" \/><\/a><figcaption>This activity diagram shows three swimlanes: Client Web Page,Web Server, and Mainframe<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The diamond below the <strong>Get Student Record<\/strong> state indicates this decision. If the student record has not been found, the Web server displays an error message on the Web page. If the student record has been found, the Web server formats a new Web page containing the current student data in a Web form. The student may cancel the change from either the <strong>Logon System<\/strong> or the <strong>Enter Changes<\/strong> states, and the activity halts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the student enters changes on the Web form and clicks the <strong>Submit<\/strong> button, the change data is transmitted to the server and a program starts running that validates the changes. If there are errors, an error message is sent to the Web page. If the data are valid, the student record is updated and a Change Student Journal Record is written. After a valid update, a confirmation Web page is sent to the browser and the activity terminates.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram is usually created for one use case and may show the different possible scenarios. The symbols on an activity diagram are illustrated in the figure below. A rectangle with rounded ends represents [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[13],"tags":[],"class_list":["post-837","post","type-post","status-publish","format-standard","category-object-oriented-sad-using-uml","entry","has-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Activity Diagrams - Introduction<\/title>\n<meta name=\"description\" content=\"Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Activity Diagrams - Introduction\" \/>\n<meta property=\"og:description\" content=\"Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/w3computing\" \/>\n<meta property=\"article:published_time\" content=\"2014-09-05T01:18:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-18T19:41:29+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-300x204.jpg\" \/>\n<meta name=\"author\" content=\"w3computing.com\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"w3computing.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/\"},\"author\":{\"name\":\"w3computing.com\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/#\\\/schema\\\/person\\\/8395166dc0b94b38a3aeb88dafbd63ce\"},\"headline\":\"Activity Diagrams &#8211; Introduction\",\"datePublished\":\"2014-09-05T01:18:25+00:00\",\"dateModified\":\"2021-05-18T19:41:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/\"},\"wordCount\":535,\"image\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/10.8-300x204.jpg\",\"articleSection\":[\"Object-Oriented Systems Analysis and Design Using UML\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/\",\"url\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/\",\"name\":\"Activity Diagrams - Introduction\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/10.8-300x204.jpg\",\"datePublished\":\"2014-09-05T01:18:25+00:00\",\"dateModified\":\"2021-05-18T19:41:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/#\\\/schema\\\/person\\\/8395166dc0b94b38a3aeb88dafbd63ce\"},\"description\":\"Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/10.8.jpg\",\"contentUrl\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/10.8.jpg\",\"width\":1044,\"height\":711,\"caption\":\"Specialized symbols are used to draw an activity diagram.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/activity-diagrams\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Systems Analysis\",\"item\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Object-Oriented Systems Analysis and Design Using UML\",\"item\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/object-oriented-sad-using-uml\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Activity Diagrams &#8211; Introduction\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/#website\",\"url\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.w3computing.com\\\/systemsanalysis\\\/#\\\/schema\\\/person\\\/8395166dc0b94b38a3aeb88dafbd63ce\",\"name\":\"w3computing.com\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Activity Diagrams - Introduction","description":"Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/","og_locale":"en_US","og_type":"article","og_title":"Activity Diagrams - Introduction","og_description":"Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram","og_url":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/","article_publisher":"https:\/\/www.facebook.com\/w3computing","article_published_time":"2014-09-05T01:18:25+00:00","article_modified_time":"2021-05-18T19:41:29+00:00","og_image":[{"url":"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-300x204.jpg","type":"","width":"","height":""}],"author":"w3computing.com","twitter_misc":{"Written by":"w3computing.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#article","isPartOf":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/"},"author":{"name":"w3computing.com","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/#\/schema\/person\/8395166dc0b94b38a3aeb88dafbd63ce"},"headline":"Activity Diagrams &#8211; Introduction","datePublished":"2014-09-05T01:18:25+00:00","dateModified":"2021-05-18T19:41:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/"},"wordCount":535,"image":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#primaryimage"},"thumbnailUrl":"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-300x204.jpg","articleSection":["Object-Oriented Systems Analysis and Design Using UML"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/","url":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/","name":"Activity Diagrams - Introduction","isPartOf":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#primaryimage"},"image":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#primaryimage"},"thumbnailUrl":"http:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8-300x204.jpg","datePublished":"2014-09-05T01:18:25+00:00","dateModified":"2021-05-18T19:41:29+00:00","author":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/#\/schema\/person\/8395166dc0b94b38a3aeb88dafbd63ce"},"description":"Activity diagrams show the sequence of activities in a process, including sequential and parallel activities, and decisions that are made. An activity diagram","breadcrumb":{"@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#primaryimage","url":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8.jpg","contentUrl":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-content\/uploads\/2014\/09\/10.8.jpg","width":1044,"height":711,"caption":"Specialized symbols are used to draw an activity diagram."},{"@type":"BreadcrumbList","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/activity-diagrams\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Systems Analysis","item":"https:\/\/www.w3computing.com\/systemsanalysis\/"},{"@type":"ListItem","position":2,"name":"Object-Oriented Systems Analysis and Design Using UML","item":"https:\/\/www.w3computing.com\/systemsanalysis\/object-oriented-sad-using-uml\/"},{"@type":"ListItem","position":3,"name":"Activity Diagrams &#8211; Introduction"}]},{"@type":"WebSite","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/#website","url":"https:\/\/www.w3computing.com\/systemsanalysis\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.w3computing.com\/systemsanalysis\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.w3computing.com\/systemsanalysis\/#\/schema\/person\/8395166dc0b94b38a3aeb88dafbd63ce","name":"w3computing.com"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4NNeA-dv","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/posts\/837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":0,"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3computing.com\/systemsanalysis\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}