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

ScheduledEventHandler: Handler

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

OnMessageClause command ScheduleEvent

Statements

\nerror "Event is already scheduled. Please RescheduleEvent to change event information."\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 DelayEvent

Statements

\n"adjust associated scheduled Akka call to emit StartEvent"send event EventDelayed to outlet EventEventsSource.Eventsbecome entity Event to handler DelayedEventHandler\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 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 EndEvent_

#### Statements
```\nerror "End has not started. Cannot end an event that has not started."```\n
### _OnMessageClause command AddLiveUpdate_

## *Used By None*

## *Uses Nothing*