{"id":6703,"date":"2022-05-31T02:36:10","date_gmt":"2022-05-31T02:36:10","guid":{"rendered":"https:\/\/www.booksofall.com\/cn\/?post_type=product&#038;p=6703"},"modified":"2022-06-15T03:28:23","modified_gmt":"2022-06-15T03:28:23","slug":"uml-guide-uml-activity-diagrams","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/","title":{"rendered":"UML Guide: UML Activity Diagrams"},"content":{"rendered":"<h3 id=\"firstHeading\" class=\"firstHeading mw-first-heading\">Activity diagram<\/h3>\n<p id=\"bpBCnFb\"><b>Activity diagrams<\/b>\u00a0are graphical representations of\u00a0<a title=\"Workflow\" href=\"https:\/\/en.wikipedia.org\/wiki\/Workflow\">workflows<\/a>\u00a0of stepwise activities and actions with support for choice, iteration and concurrency. In the\u00a0<a title=\"Unified Modeling Language\" href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Modeling_Language\">Unified Modeling Language<\/a>, the first structured method for documenting process flow, the \u201cflow process chart\u201d. Activity diagrams combine techniques from flow charts, event diagrams, and Petri nets. Activity diagrams describe the workflow 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 flow 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 flow of actions and the order in which the actions take place.<\/p>\n<h4>Notational Elements<\/h4>\n<p>The notational elements used in state diagrams and activity diagrams are the same except for a few subtle differences. The main difference between UML state diagrams and UML activity diagrams is in their intent. The basic elements of UML activity diagrams can be classified as activity nodes and edges. Activity nodes can either be action, object or control nodes. An activity is shown as a round-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 different flows that are controlled by conditions called guards.<\/p>\n<h4>Initial and final nodes<\/h4>\n<p>The starting point of the flow that is shown in an activity diagram is indicated with a filled circle. An activity diagram must have exactly one initial node. An exit point in an activity diagram is called an final node. There are two kinds of final nodes, referred to as as activity final node and flow final node. The flow final node denotes the end of all flow controls within the activity. The activity final node denotes the end of a single flow control. An activity final node is shown with a filled circle with an outline.<\/p>\n<h4><span id=\"Construction\" class=\"mw-headline\">Construction<\/span><\/h4>\n<p>Activity diagrams are constructed from a limited number of shapes, connected with arrows.<sup id=\"cite_ref-4\" class=\"reference\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Activity_diagram#cite_note-4\">[4]<\/a><\/sup>\u00a0The most important shape types:<\/p>\n<ul>\n<li><i>ellipses<\/i>\u00a0represent\u00a0<i>actions<\/i>;<\/li>\n<li><i>diamonds<\/i>\u00a0represent\u00a0<i>decisions<\/i>;<\/li>\n<li><i>bars<\/i>\u00a0represent the start (<i>split<\/i>) or end (<i>join<\/i>) of concurrent activities;<\/li>\n<li>a\u00a0<i>black circle<\/i>\u00a0represents the start (<i>initial node<\/i>) of the workflow;<\/li>\n<li>an\u00a0<i>encircled black circle<\/i>\u00a0represents the end (<i>final node<\/i>).<\/li>\n<\/ul>\n<p>Arrows run from the start towards the end and represent the order in which activities happen.<\/p>\n<p>Activity diagrams can be regarded as a form of a structured\u00a0<a title=\"Flowchart\" href=\"https:\/\/en.wikipedia.org\/wiki\/Flowchart\">flowchart<\/a>\u00a0combined with a traditional data flow diagram. Typical flowchart techniques lack constructs for expressing concurrency. However, the join and split symbols in activity diagrams only resolve this for simple cases; the meaning of the model is not clear when they are arbitrarily combined with decisions or loops.<\/p>\n<p>While in UML 1.x, activity diagrams were a specialized form of state diagrams, in UML 2.x, the activity diagrams were reformalized to be based on\u00a0<a title=\"Petri net\" href=\"https:\/\/en.wikipedia.org\/wiki\/Petri_net\">Petri net<\/a>-like semantics, increasing the scope of situations that can be modeled using activity diagrams. <sup id=\"cite_ref-7\" class=\"reference\"><\/sup>These changes cause many UML 1.x activity diagrams to be interpreted differently in UML 2.x.<\/p>\n<p>UML activity diagrams in version 2.x can be used in various domains, e.g. in design of embedded systems. It is possible to verify such a specification using model checking technique.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 700px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/uml-guide--uml-activity-diagrams-yzgtnnjmi?enforceShowPromotionBar=true\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":6717,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency."},"product_brand":[],"product_cat":[213],"product_tag":[201],"class_list":{"0":"post-6703","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-computer-uml","7":"product_tag-lecture-notes","9":"first","10":"instock","11":"shipping-taxable","12":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>UML Guide: UML Activity Diagrams - BooksOfAll Simplified Chinese<\/title>\n<meta name=\"description\" content=\"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency.\" \/>\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.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UML Guide: UML Activity Diagrams - BooksOfAll Simplified Chinese\" \/>\n<meta property=\"og:description\" content=\"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Simplified Chinese\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-15T03:28:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/\",\"url\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/\",\"name\":\"UML Guide: UML Activity Diagrams - BooksOfAll Simplified Chinese\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/cn\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg\",\"datePublished\":\"2022-05-31T02:36:10+00:00\",\"dateModified\":\"2022-06-15T03:28:23+00:00\",\"description\":\"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg\",\"width\":\"596\",\"height\":\"842\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/cn\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"UML Guide: UML Activity Diagrams\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/cn\/#website\",\"url\":\"https:\/\/www.booksofall.com\/cn\/\",\"name\":\"BooksOfAll Simplified Chinese\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/cn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/cn\/#organization\",\"name\":\"BooksOfAll Simplified Chinese\",\"url\":\"https:\/\/www.booksofall.com\/cn\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.booksofall.com\/cn\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Simplified Chinese\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/cn\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UML Guide: UML Activity Diagrams - BooksOfAll Simplified Chinese","description":"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency.","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.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/","og_locale":"zh_CN","og_type":"article","og_title":"UML Guide: UML Activity Diagrams - BooksOfAll Simplified Chinese","og_description":"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency.","og_url":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/","og_site_name":"BooksOfAll Simplified Chinese","article_modified_time":"2022-06-15T03:28:23+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg","twitter_misc":{"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/","url":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/","name":"UML Guide: UML Activity Diagrams - BooksOfAll Simplified Chinese","isPartOf":{"@id":"https:\/\/www.booksofall.com\/cn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg","datePublished":"2022-05-31T02:36:10+00:00","dateModified":"2022-06-15T03:28:23+00:00","description":"Activity diagrams\u00a0are graphical representations of\u00a0workflows\u00a0of stepwise activities and actions with support for choice, iteration and concurrency.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#primaryimage","url":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg","contentUrl":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/img_62a1937b40500.jpeg","width":"596","height":"842"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/cn\/uml-guide-uml-activity-diagrams\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/cn\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/cn\/categories\/"},{"@type":"ListItem","position":3,"name":"UML Guide: UML Activity Diagrams"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/cn\/#website","url":"https:\/\/www.booksofall.com\/cn\/","name":"BooksOfAll Simplified Chinese","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/cn\/#organization","name":"BooksOfAll Simplified Chinese","url":"https:\/\/www.booksofall.com\/cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.booksofall.com\/cn\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/cn\/wp-content\/uploads\/sites\/2\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Simplified Chinese"},"image":{"@id":"https:\/\/www.booksofall.com\/cn\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/product\/6703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/media\/6717"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/media?parent=6703"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/product_brand?post=6703"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/product_cat?post=6703"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/cn\/wp-json\/wp\/v2\/product_tag?post=6703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}