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

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

 

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

 

Thanks,

Rainer

1 Answer

0 votes
answered Feb 11, 2015 by plantuml (294,960 points)

Hello,

You can have something like that:

@startuml
activate B
create C
B -> C: DoWork
activate C
C --> B: WorkDone
destroy C
@enduml

Is this what you are looking for ?

commented Feb 11, 2015 by rkrug (420 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.
...