Is there a way to end a participant's line in a sequence diagram before the end of the diagram? For example if I want to display how database stored procedures call each other:
@startuml
participant SP0
SP0 -> SP0 : Do minor stuff
create participant SP2
SP0 -> SP2 : Exec SP2
SP2 -> SP2 : Insert into table Tbl
SP2 -> SP2 : Do other stuff
SP2 -> SP0
SP0 -> SP0 : Do minor stuff
@enduml
I would like to terminate SP2's line as soon as it returns processing to SP0. Furthermore, if I later call a complicated procedure SP3 from SP0, I would like to place it on the same level vertically as SP2.
I can remove the footer with hide footbox
but the line still stays there. Also activate
and destroy
don't end the line.
Thanks!