Sunday, 15 January 2023

PlantUML: send message to self in a sequence diagram

Using PlatnUML, a participant can send messages to itself.

 

Example

p1->p1: "I am sending first event to my self"

 

messagesToSelf.txt

@startuml

' Participants definition
participant p1

p1->p1: "I am sending first event to my self"
p1->p1: "I am sending second event to my self"

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment