Variable ArvoDomainConst

ArvoDomain: {
    FROM_EVENT_CONTRACT: "domain.contract.inherit";
    FROM_SELF_CONTRACT: "domain.contract.self.inherit";
    FROM_TRIGGERING_EVENT: "domain.event.inherit";
} = ...

Symbolic constants for domain resolution in Arvo event emission.

These can be passed into the domain array of an emitted ArvoEvent to indicate that the final domain should be dynamically resolved from a specific context.

Type declaration

  • ReadonlyFROM_EVENT_CONTRACT: "domain.contract.inherit"

    Resolve the domain from the contract that defines the event being emitted (eventContract.domain).

    In ArvoResumable and ArvoMachine, this is typically used when emitting service events (not the completion event). In ArvoEventHandler, where only the self contract exists, this resolves to the same value as FROM_SELF_CONTRACT.

    For orchestration complete events, this behaves identically to FROM_SELF_CONTRACT since the emitting contract is also the self contract.

  • ReadonlyFROM_SELF_CONTRACT: "domain.contract.self.inherit"

    Resolve the domain from the emitting handler’s own contract (handlerSelfContract.domain).

    Use this when the handler’s contract defines a stable domain that should apply to all emitted events, regardless of the triggering context.

  • ReadonlyFROM_TRIGGERING_EVENT: "domain.event.inherit"

    Resolve the domain from the triggering event’s domain field (triggeringEvent.domain).

    Use this when you want to preserve the domain context of the incoming event and carry it forward through event emissions.