Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to end a participant's line in PlantUML sequence diagram

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

enter image description here

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!

like image 964
Lauri Peltonen Avatar asked Nov 08 '22 12:11

Lauri Peltonen


1 Answers

This option is not available on the sequence help. I suppose you have to have SP3 on the right side. A trick to shorten with the diagram's width is to add line breaks \n on long messages or notes.

like image 65
Ricardo Avatar answered Dec 31 '22 04:12

Ricardo