What is an Actor in UML, what recommendations are there and how is the actor visualised?
The initiator of an action
An actor is the initiator of an action. The term actor is used in many areas. In films, series or on theatre stages he is an actor, in sociology a socially engaged person or organisation. Indirectly, the actor also exists in business administration in the modelling of business processes and workflows. And also in IT, the term is used both in requirements management and in the course of Unified Modeling Language (UML) in the modeling of use cases.
The Actor in the UML
In UML, an actor is a model element that interacts with a system. As a model element, it can be an abstract person (e.g. “customer”) or another external system. In the practice of modeling it is recommended to define the role unambiguously with stereotypes – e.g. “User”, “Stakehoder” or “External System”.
In principle, however, an actor can not only be
- the creator of an action (such as the initiator of an application case)
- but also the recipient of an expected result.
If the recipient merely accepts the result without actively interacting with the system again, the actor is sometimes referred to as a “passor” – a suitcase word consisting of “passive” and “actor”. Despite bidirectional association, a passor does not pursue any intention in the direction of the system under consideration; however, the term passor is not found in the UML documentation.
Visualisation of the Actor in the UML
The actor is represented in a use case diagram with a small stick figure. Sometimes actors can also be found in activity diagrams, but even if they play an important role in this context, the UML does not define a corresponding notation for them.
Here you will find additional information from our Smartpedia section: