2022-03-15 13:20:01 +01:00
|
|
|
@startuml Create Tournament
|
|
|
|
Actor Admin #palegreen
|
|
|
|
participant Website
|
|
|
|
database Server #brown
|
|
|
|
hide footbox
|
|
|
|
|
|
|
|
Admin->Website: createTournament(Tournament)
|
2022-03-15 13:40:45 +01:00
|
|
|
activate Admin
|
|
|
|
activate Website
|
2022-03-15 13:20:01 +01:00
|
|
|
Website->Server: sendInfo(Tournament)
|
2022-03-15 13:40:45 +01:00
|
|
|
activate Server
|
2022-03-15 13:20:01 +01:00
|
|
|
Server-->Website: {status: success | failure}
|
2022-03-15 13:40:45 +01:00
|
|
|
deactivate Server
|
2022-03-15 13:20:01 +01:00
|
|
|
alt status = success
|
2022-03-15 13:40:45 +01:00
|
|
|
Website->Server: fetchInfo(Tournament)
|
|
|
|
activate Server
|
|
|
|
Server-->Website: sendInfo(Tournament)
|
|
|
|
deactivate Server
|
2022-03-15 13:20:01 +01:00
|
|
|
Website-->Admin: displayTournament(Tournament)
|
|
|
|
end
|
2022-03-15 13:40:45 +01:00
|
|
|
alt status = failure
|
|
|
|
Website-->Admin: displayError(error)
|
|
|
|
end
|
|
|
|
deactivate Admin
|
|
|
|
deactivate Website
|
2022-03-15 13:20:01 +01:00
|
|
|
@enduml
|