Wednesday, 11 January 2023

PlantUML: Customize the display order of participants in a sequence diagram

Using ‘order’ keyword, we can customize the display order of participant.

 

Example

participant fourth order 1

 participantsDisplayOrder.txt

@startuml

' Participants definition
participant first order 4
participant third order 2
participant second order 3
participant fourth order 1

fourth->first: "I am 3km ahead"
fourth->second: "I am 2km ahead"
fourth->third: "I am 1km ahead"

@enduml

 


 

 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment