An activity in Unified Modeling Language (UML) is a major task that must take place in order to fulfill an operation contract. The Student Guide to Object-Oriented Development defines an activity as a "sequence of activities that make up a process."[1] Activities can be represented in activity diagrams. The word Activity is often confused with that of Action, which describes a step within an activity.[2]

An activity diagram, with the activity "Cooking Spaghetti" outlined with an "Activity frame"

An activity can represent:

  • The invocation of an operation.
  • A step in a business process.
  • An entire business process.

Activities can be decomposed into subactivities, until at the bottom we find atomic actions.[2]

The entire activity can be enclosed in a rounded rectangle called an "Activity Frame", with the name of the activity listed in the upper left corner, although it is often omitted.

The underlying conception of an activity has changed between UML 1.5 and UML 2.0. In UML 2.0 an activity is no longer based on the state-chart rather it is based on a Petri net like coordination mechanism. There the activity represents user-defined behavior coordinating actions. Actions in turn are pre-defined (UML offers a series of actions for this).

Literature

edit

References

edit
  1. ^ Britton, Carol; Doake, Jill (21 August 2004). A Student Guide to Object-Oriented Development. Elsevier. p. 15. ISBN 978-0-08-054204-1.
  2. ^ a b Miles, Russell; Hamilton, Kim (2006). McLaughlin, Brett; O'Brien, Mary T. (eds.). Learning UML 2.0: a pragmatic introduction to UML (1. ed.). Beijing Köln: O'Reilly. pp. 46–47. ISBN 978-0-596-00982-3.