DelayedEventHandler: Handler
Item | Value |
---|---|
Briefly | Brief description missing. |
Definition Path | ImprovingApp.Events.EventContext.Event.ScheduledEvent.DelayedEventHandler |
View Source Link | eventContext.riddl(196:17) |
\nerror "Cannot schedule a delayed event, please reschedule"
\n
\nset field ScheduledEventState.info to "EventContext.newInfoFromFieldsPresentInEditable"set field ScheduledEventState.meta to "EventMetaInfo"send event EventInfoEdited to outlet EventEventsSource.Events
\n
\n"cancel associated scheduled call to emit StartEvent"send event EventCancelled to outlet EventEventsSource.Eventsbecome entity Event to handler CancelledEventHandler
\n
{
"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*