RunEvents

fun EventSchemaBuilderScope.RunEvents(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {})

Runs its own child events inline, in order, each receiving this event's incomingData — the way to fan one trigger out into several events, or to group events for reuse, without changing incomingData along the way. Unlike most events, events here is the payload executed rather than a downstream chain; each entry is run guarded, so one failing event is logged and the rest still run. Dispatches onSuccess (no data) when every event ran without throwing; onFailure (no data), once at the end after all were attempted, when at least one threw (each failure logged).

Parameters

id

Unique identifier of this event. Defaults to a random id.

trigger

Trigger that fires this event, built via EventTriggers.

events

Events run inline, in order, each receiving this event's incomingData.