Tuesday, 18 April 2023

PlantUML: Extending an actor in usecase diagram

Using the symbol <|--, we can specify one actor extends other.

 

Example

actor passenger
actor superAdmin
actor admin

passenger <|-- admin
admin <|-- superAdmin

In the above snippet we are conveying, admin extends passenger, superAdmin extends admin.

 

actorExtension.txt

@startuml

actor passenger
actor superAdmin
actor admin

passenger <|-- admin
admin <|-- superAdmin

usecase "Validate Card details" as VCD
usecase Login
usecase "Book tiket" as BT
usecase "Check Flight Status" as CFS
usecase "Update Flight Schedule" as UFS
usecase "Cancel Ticket" as CT
usecase "Onboard new admin" as ONA

passenger --> Login
passenger --> BT
passenger --> CT
passenger --> CFS

admin --> UFS
admin --> CT

superAdmin --> UFS
superAdmin --> CT
superAdmin --> ONA


@enduml

Above snippet generate below diagram.




  

Previous                                                    Next                                                    Home

No comments:

Post a Comment