Accepted answer

it is indeed possible to refer to the self instance

in fact uml spec 2.5b1 page 607, about a lifeline is said. if the name is the keyword self, then the lifeline represents the object of the classifier that encloses the interaction that owns the lifeline. ports of the encloser may be shown separately even when self is included.

enter image description here


for a complete example


i think, in sequence diagram you need show sequence of calls and no more. i think, is no important about connectable elements, reference to the container etc. it is just shows chain of calls between objects. i can call sequence diagram: messaging diagram.

sequence diagram

Related Query

More Query from same tag