Skip to main content

RunActionModeCompletedEvent

This event is emitted when run-action has run, or found no need to run, the action of one external resource.

@group

Events/ModeResult

Hierarchy

  • ModeResultEvent<{ action: add | delete | noop | update; predecessorResourceId?: string; reason?: already-done | taken-from-predecessor | unchanged; resourceId: string }>
    • RunActionModeCompletedEvent

Index

Constructors

Properties

Constructors

constructor

  • RunActionModeCompletedEvent(name?: string, payload?: { action: add | delete | noop | update; predecessorResourceId?: string; reason?: already-done | taken-from-predecessor | unchanged; resourceId: string }): RunActionModeCompletedEvent
  • Parameters

    • optionalname: string

      The subject of the event, when the event type alone does not identify it.

    • optionalpayload: { action: add | delete | noop | update; predecessorResourceId?: string; reason?: already-done | taken-from-predecessor | unchanged; resourceId: string }

      The event's data.

      • action: add | delete | noop | update

        What became of the resource. noop means its action did not run.

      • optionalpredecessorResourceId: string

        The resource whose response a taken-from-predecessor noop took.

      • optionalreason: already-done | taken-from-predecessor | unchanged

        Why a noop ran nothing: nothing changed since the last commit, an earlier call already ran the action for these inputs, or a renamed resource with its predecessor's properties took that response. Absent for any other action.

      • resourceId: string

    Returns RunActionModeCompletedEvent

Properties

readonlyinheritedheader

header: { sequence: number; timestamp: number }

When the event was created. sequence counts every event this process created, so it orders two events created in the same millisecond, and events a late listener receives replayed.


Type declaration

  • sequence: number
  • timestamp: number

readonlyinheritedname

name: string

The subject of the event, when the event type alone does not identify it - e.g. the class name on a registration event. Empty otherwise.

readonlyinheritedpayload

payload: { action: add | delete | noop | update; predecessorResourceId?: string; reason?: already-done | taken-from-predecessor | unchanged; resourceId: string }

The event's data. Its shape is fixed by the event type.


Type declaration

  • action: add | delete | noop | update

    What became of the resource. noop means its action did not run.

  • optionalpredecessorResourceId?: string

    The resource whose response a taken-from-predecessor noop took.

  • optionalreason?: already-done | taken-from-predecessor | unchanged

    Why a noop ran nothing: nothing changed since the last commit, an earlier call already ran the action for these inputs, or a renamed resource with its predecessor's properties took that response. Absent for any other action.

  • resourceId: string
Page Options