Sequence diagram - a "destroy" to the "create"?

+2 votes
asked Feb 10, 2015 in To be sorted by rkrug (240 points)


Is there a a "destroy" which acts analoguous to the "create", to indicate that a certain message is destroying the object?




1 Answer

0 votes
answered Feb 11, 2015 by plantuml (198,780 points)


You can have something like that:

activate B
create C
B -> C: DoWork
activate C
C --> B: WorkDone
destroy C

Is this what you are looking for ?

commented Feb 11, 2015 by rkrug (240 points)
Thanks I could use that. But actually I was thinking about the same way that "create C"is shown, i.e,. having the lower box "C" being moved up to where WorkDone is.