Smart Events · Feature state machine

Events Agenda

A single EventActivity as the host steps it through the live agenda — timing, pause/stop, team rotation, voting, and repeating rounds. This is the engine behind Any.Company's live flow.

State diagram

stateDiagram-v2
    [*] --> Pending
    Pending --> Active : host starts activity (timed or unlimited)
    Active --> Paused : host taps "Pause"
    Paused --> Active : host resumes
    Active --> Overtime : countdown reaches zero
    Overtime --> Stopped : host taps "Stop"
    Active --> Stopped : host taps "Stop"

    Stopped --> NextActivityPanel
    NextActivityPanel --> RotateTeams : host chooses "Rotate teams"
    RotateTeams --> Pending : next activity queued
    NextActivityPanel --> Pending : next activity queued (no rotation)

    Stopped --> Voting : activity type = Voting
    Voting --> Closed : votes submitted
    Closed --> AnonymousReport : host enables summary
    AnonymousReport --> [*]
    Closed --> [*]

    Stopped --> NewRound : IsRepeating = true
    NewRound --> Pending : inserted into agenda
    

States

StateMeaning
PendingQueued in the agenda, not yet started.
ActiveRunning, countdown shown in green (or unlimited).
PausedHost has temporarily halted the timer.
OvertimeCountdown expired; timer shown in red, activity still live.
StoppedHost ended the activity; branches to next steps.
NextActivityPanel / RotateTeamsHost decides whether to rotate table members before continuing.
Voting / Closed / AnonymousReportThe feedback path for Voting-type activities.
NewRoundA repeating activity spawns another Pending round on the spot.

Reading the diagram