Friday 27 January 2023

PlantUML: Add notes to the messages in a sequence diagram

Using ‘note left’, ‘note right’ keywords we can add notes the messages in a sequence diagram.

 

notes.txt

@startuml

Client -> LoginServer: Enter user name
Client -> LoginServer: Enter password
note left: Input from the user \n should be taken by client

Client -> LoginServer: Submit the form 
note right: User details are validated \n against login server

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