asura-tmdb/documentation/sequence_diagrams/sequenceDiagramCreate.puml

29 lines
646 B
Plaintext
Raw Permalink Normal View History

2022-03-15 13:20:01 +01:00
@startuml Create Tournament
2022-03-15 15:30:04 +01:00
title Create Tournament
skinparam actorStyle awesome
2022-03-15 13:20:01 +01:00
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