Skip to content

Use Case 1: Waiting Time Analysis

Ihar Suvorau edited this page Sep 14, 2023 · 1 revision

WTA workflow is the first core use case we want to cover. It engages all our current core services: WTA, simulation, BPS discovery.

Workflow

flowchart LR
    UploadLog[Upload a log] --> RunWTA[Run WTA]
    RunWTA --> ExamineWTAReport[Examine WTA report]
    RunWTA --> DiscoverBPSModel[Discover BPS model]
    DiscoverBPSModel --> SimulateBPSModel[Simulate BPS model]
    SimulateBPSModel --> ExamineSimulationReport[Examine simulation report]
    ExamineSimulationReport --> ModifySimulationScenario[Modify simulation scenario]
    ModifySimulationScenario --> SimulateBPSModel

Loading

Sequence Diagrams

File upload sequence diagram

sequenceDiagram
    actor User
    participant Frontend
    participant Backend
    participant Assets
    participant Projects
    participant WaitingTimeAnalysis
    participant Simulation
    participant BPSDiscovery
    participant Notifications

    User ->> Frontend: upload event log
    Frontend ->> Backend: upload event log
    Backend ->> Projects: get project
    Projects -->> Backend: project
    Backend ->> Assets: upload event log
    Assets -->> Backend: event log uploaded
    Backend -->> Frontend: event log uploaded
    Frontend -->> User: event log uploaded
Loading

Analysis sequence diagram

sequenceDiagram
    actor User
    participant Frontend
    participant Backend
    participant Assets
    participant Projects
    participant WaitingTimeAnalysis
    participant Simulation
    participant BPSDiscovery
    participant Notifications

    User ->> Frontend: run WTA on event log
    Frontend ->> Backend: run WTA on event log
    Backend -->> Frontend: WTA accepted
    Frontend -->> User: WTA accepted
    Backend ->> Assets : get event log
    Assets -->> Backend: event log
    Backend ->> WaitingTimeAnalysis: run analysis on event log
    activate WaitingTimeAnalysis
    WaitingTimeAnalysis -->> Backend: analysis finished
    deactivate WaitingTimeAnalysis
    Backend ->> Assets: save analysis results
    Assets -->> Backend: analysis results saved
    Backend -->> Frontend: analysis finished
    Backend ->> Notifications: send notification
    activate Notifications
    Notifications -->> Backend: notification sent
    deactivate Notifications
Loading

Clone this wiki locally