Tuesday 5 December 2023

PlantUML: Actor in a deployment diagram

Actor is defined with the keyword ‘actor’.

 

actor actor1

 

You can add description to the actor using brackets [].

 

actor actor2 [This is actor2]

 

You can add colors to actor element.

 

actor actor3 #palegreen;line:blue;line.dotted;text:blue[

This is actor 3

]

 

actor.txt

@startuml

title "actor element"

actor actor1

actor actor2 [
This is actor2, 
<b>HTML</b> styling is supported
]

actor actor3 #palegreen;line:blue;line.dotted;text:blue[
This is actor 3
]

@enduml

 

Above snippet generate below diagram.

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment