An actor can be defined
a. By enclosing the actor name in colons (:)
b. By enclosing the actor name in double quotes
c. Using actor keyword
Use cases are defined by
a. enclosing the use case name in parenthesis.
b. Using usecase keyword.
We can connect an actor to a use case using an arrow (-->).
helloworld.txt
@startuml actor passenger actor admin actor bank usecase Login usecase "Check for availability" as CFA usecase "Book tiket" as BT usecase Payment usecase "Cancel Ticket" as CT usecase "Check Flight Status" as CFS usecase "Update Flight Schedule" as UFS usecase "Validate Card details" as VCD passenger --> Login passenger --> CFA passenger --> BT passenger --> Payment passenger --> CT passenger --> CFS admin --> UFS admin --> CT bank --> VCD Payment --> VCD @enduml
Above snippet generate below diagram
No comments:
Post a Comment