Sunday, 8 January 2023

PlantUML: Declare participants in a sequence diagram

We can customize the shape of participant in a sequence diagram by defining participants.

 

You can define participants with the help of below keywords.

 

a.   actor

b.   boundary

c.    control

d.   entity

e.   database

f.     collections

g.   queue

 

participants.txt

@startuml

' Participants definition
participant participant1
actor actor1
boundary boundary1
control control1
entity entity1
database database1
collections collections1

participant1 -> actor1 : To actor
participant1 -> boundary1 : To boundary
participant1 -> control1 : To control
participant1 -> entity1 : To entity
participant1 -> database1 : To database
participant1 -> collections1 : To collections

@enduml

 

Above snippet generates below image.


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment