Activity diagram
{{Short description|Graphical representation of a workflow}}
Image:Activity conducting.svg process.]]
{{UML diagram types}}
Activity diagrams{{cite book
|chapter=Activities
|title=Unified Modeling Language 2.5.1
|series=OMG Document Number formal/2017-12-05
|date=December 2017
|publisher=Object Management Group Standards Development Organization (OMG SDO)
|page=373
|url=https://www.omg.org/spec/UML/2.5.1/PDF
}}
are graphical representations of workflows of stepwise activities and actions[http://highered.mcgraw-hill.com/sites/0077110005/student_view0/glossary.html Glossary of Key Terms] at McGraw-hill.com. Retrieved 20 July 2008.
with support for choice, iteration, and concurrency.
In the Unified Modeling Language, activity diagrams are intended to model both computational and organizational processes (i.e., workflows), as well as the data flows intersecting with the related activities.J. Rumbaugh, I. Jacobson, and G. Booch. The Unified Modeling Language Reference Manual. Addison-Wesley, 1999.
"Object nodes hold data that is input to and output from executable nodes, and moves across object flow edges.
Control nodes specify sequencing of executable nodes via control flow edges."
In other words, although activity diagrams primarily show the overall control flow, they can also include elements showing the data flow between activities through one or more data stores.
Construction
Activity diagrams are constructed from a limited number of shapes, connected with arrows.OMG Unified Modeling Language Superstructure Specification, version 2.1.1. Document
formal/2007-02-05, Object Management Group, February 2007. http://www.omg.org/cgi-bin/doc?formal/2007-02-05. The most important shape types are as follows:
- stadia represent actions;
- diamonds represent decisions;
- bars represent the start (split) or end (join) of concurrent activities;
- a black circle represents the start (initial node) of the workflow;
- an encircled black circle represents the end (final node).
Arrows run from the start towards the end and represent the order in which activities happen.
Activity diagrams can be regarded as a form of a structured flowchart combined with a traditional data flow diagram. Typical flowchart techniques lack constructs for expressing concurrency.Jibitesh Mishra and Ashok Mohanty. Software Engineering. Pearson Education, 2011. However, the join and split symbols in activity diagrams only resolve this for simple cases. The meaning of the model is not clear when these symbols are arbitrarily combined with decisions or loops.{{citation needed|date=January 2018}}
While in UML 1.x, activity diagrams were a specialized form of state diagram,Dumas, Marlon, and Arthur H.M. Ter Hofstede. "UML activity diagrams as a workflow specification language." ≪ UML≫ 2001—The Unified Modeling Language. Modeling Languages, Concepts, and Tools. Springer Berlin Heidelberg, 2001. 76-90. in UML 2.x, the activity diagrams were reformalized to be based on Petri net-like semantics, increasing the scope of situations that can be modeled using activity diagrams.Störrle, Harald, and J. H. Hausmann. "semantics of uml 2.0 activities." Proceedings of the IEEE Symposium on Visual Languages and Human-Centric Computing. 2004. These changes cause many UML 1.x activity diagrams to be interpreted differently in UML 2.x.{{citation needed|date=January 2018}}
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 techniques.I. Grobelna, M. Grobelny, M. Adamski, "Model Checking of UML Activity Diagrams in Logic Controllers Design", Proceedings of the Ninth International Conference on Dependability and Complex Systems DepCoS-RELCOMEX, Advances in Intelligent Systems and Computing Volume 286, Springer International Publishing Switzerland, pp. 233-242, 2014
See also
References
{{reflist|1}}
External links
{{commons category}}
- [http://conradbock.org/bockonline.html#UML2.0 Articles on UML 2 Activities and Actions]
{{UML}}
{{DEFAULTSORT:Activity Diagram}}
Category:Unified Modeling Language diagrams