Thursday, 19 January 2023

PlantUML: Stop and resume numbering of messages in a sequence diagram

Commands 'autonumber stop' and 'autonumber resume' will pause and resume automatic numbering.

 

pauseAndResumeNumbering.txt

@startuml

autonumber
p1 -> p2: message1
p1 <- p2: message2
p1 -> p2: message3

autonumber stop
p1 <- p2: message4
p1-> p2: message5

autonumber resume
p1 <- p2: message6
p1-> p2: message7

@enduml

Above snippet generates below diagram.



 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment