RIDDL Specification For improving.app
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

DelayedEventHandler: Handler

ItemValue
BrieflyBrief description missing.
Definition PathImprovingApp.Events.EventContext.Event.ScheduledEvent.DelayedEventHandler
View Source LinkeventContext.riddl(196:17)

OnMessageClause command ScheduleEvent

Statements

\nerror "Cannot schedule a delayed event, please reschedule"\n

OnMessageClause command EditEventInfo

Statements

\nset field ScheduledEventState.info to "EventContext.newInfoFromFieldsPresentInEditable"set field ScheduledEventState.meta to "EventMetaInfo"send event EventInfoEdited to outlet EventEventsSource.Events\n

OnMessageClause command CancelEvent

Statements

\n"cancel associated scheduled call to emit StartEvent"send event EventCancelled to outlet EventEventsSource.Eventsbecome entity Event to handler CancelledEventHandler\n

OnMessageClause command RescheduleEvent

Statements

{
  "adjust associated scheduled call to emit StartEvent"
  set field ScheduledEventState.info to "EventInfo"
  set field ScheduledEventState.meta to "EventMetaInfo"
  send event EventRescheduled to outlet EventEventsSource.Events
}
```\n
### _OnMessageClause command DelayEvent_

#### Statements
```\nerror "Cannot delay a delayed event again, must be rescheduled"```\n
### _OnMessageClause command StartEvent_
_to be invoked by Akka scheduler upon ScheduleEvent reception_

#### Statements
```\n"create scheduled Akka call using ScheduledEventState.info.expectedEnd to emit EndEvent"send event EventStarted to outlet EventEventsSource.Eventsbecome entity Event to handler InProgressEventHandler```\n
### _OnMessageClause command EndEvent_

#### Statements
```\nerror "Only events that are InProgress may be ended. If you wish to end this event it must be started first. If you wish to cancel the event, please use the CancelEvent Command."```\n
### _OnMessageClause command AddLiveUpdate_

## *Used By*
* [OnMessageClause 'On command DelayEvent'](/improvingapp/events/eventcontext/event/scheduledevent/scheduledeventhandler#on-command-delayevent) in [Handler 'ScheduledEventHandler'](/improvingapp/events/eventcontext/event/scheduledevent/scheduledeventhandler)
* [OnMessageClause 'On command DelayEvent'](/improvingapp/events/eventcontext/event/scheduledevent/inprogresseventhandler#on-command-delayevent) in [Handler 'InProgressEventHandler'](/improvingapp/events/eventcontext/event/scheduledevent/inprogresseventhandler)

## *Uses Nothing*