Monday 23 January 2023

PlantUML: Add header and footer to a diagram

‘header’, ‘footer’ keywords attach header and footer to a diagram.

 

headerFooter.txt

@startuml

title "Login successful flow"
header "User login"
footer %page% of %lastpage%

Client -> LoginServer: Enter user name
Client -> LoginServer: Enter password
Client -> LoginServer: Submit the form 
LoginServer -> ADServer: Check the credentials
ADServer -> LoginServer: Login Successful
LoginServer -> Client: Login Successful

@enduml

Above snippet generates below diagram.



 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment