Type Alias Eventstate

Eventstate: {
    compensatedBy?: string;
    end?: End;
    exclusive?: boolean;
    name?: string;
    onEvents?: Onevents[];
    timeouts?: {
        actionExecTimeout?: ActionExecTimeout;
        eventTimeout?: EventTimeout;
        stateExecTimeout?: StateExecTimeout;
    };
    type?: "EVENT";
} & unknown

This state is used to wait for events from event sources, then consumes them and invoke one or more actions to run in sequence or parallel

Type Declaration

  • OptionalcompensatedBy?: string

    Unique Name of a workflow state which is responsible for compensation of this state

  • Optionalend?: End
  • Optionalexclusive?: boolean
  • Optionalname?: string
  • OptionalonEvents?: Onevents[]
  • Optionaltimeouts?: {
        actionExecTimeout?: ActionExecTimeout;
        eventTimeout?: EventTimeout;
        stateExecTimeout?: StateExecTimeout;
    }
    • OptionalactionExecTimeout?: ActionExecTimeout

      Action execution timeout duration (literal ISO 8601 duration format or expression which evaluation results in an ISO 8601 duration)

    • OptionaleventTimeout?: EventTimeout
    • OptionalstateExecTimeout?: StateExecTimeout
  • Optionaltype?: "EVENT"