Tuesday, 3 January 2023

Working with sequence diagram in PlantUML

Sequence diagram is an interaction diagram, that illustrates the sequence of messages between objects in an interaction.

 

For example, below diagram define the interactions between the components on a successful login flow.


Following snippet generate above diagram.

 

loginSuccessFlow.txt 

@startuml
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

Points to note

a.   Arrow (->) is used to draw a message between two participants.

b.   Participants in the sequence diagram art not declared explicitly,

 


Previous                                                    Next                                                    Home

No comments:

Post a Comment