Tuesday, 18 April 2023

PlantUML: Add label to the arrow in a use case diagram

By adding a colon  (:) character in the arrow definition, we can apply a label to the arrow.

 

Syntax

actor -> usecase : label

 

arrowLabel.txt

@startuml

actor passenger

usecase Login
usecase "Check for availability" as CFA
usecase "Book ticket" as BT
usecase Payment
usecase "Check Flight Status" as CFS
usecase "Cancel Ticket" as CT

passenger --> Login : user login
passenger --> CFA : Check for ticket availability
passenger --> BT 
passenger --> Payment
passenger --> CT
passenger --> CFS

@enduml

Above snippet generate below diagram.



 

  

Previous                                                    Next                                                    Home

No comments:

Post a Comment