Monday, 25 September 2023

How to Define Association Relationships Between Objects in PlantUML?

Arrow (-->) symbol can be used to define association relationship. You can even use dots (..>) to depict a dotted arrow.

association.txt

@startuml

title "Object Association"

object "Anand:Manager" as anand

object "Ravi:Employee" as ravi
object "Sailu:Employee" as sailu

ravi --> anand : reports to
sailu --> anand : reports to

object "ChatServer:Project" as chatServer

anand ..> chatServer : manages

@enduml

 Above snippet generate below diagram.


 
 

Previous                                                    Next                                                    Home

No comments:

Post a Comment