Dex TypeScript SDK 1.28.1
    Preparing search index...

    Interface Flow<StartInput>

    Defines one durable application Flow and its registered API surface.

    interface Flow<StartInput = void> {
        getFlowType(): string;
        getPersistenceSchema?(): PersistenceSchema;
        getSteps(): StepList<StartInput>;
        handleTimeout?(context: AsyncContext): StepDecision | Promise<StepDecision>;
    }

    Type Parameters

    • StartInput = void

      Value accepted by the optional starting Step.

    Index

    Methods

    • Returns the protocol Flow type.

      Returns string

      A non-empty Flow type unique within the Registry.

    • Returns this Flow's persistence definitions.

      Returns PersistenceSchema

      Attributes and Channels owned by this Flow. Flows without this method have none.

    • Handles expiration of this Flow's durable soft-timeout timer.

      When present, a positive timeout defaults to the handler policy. Dex awaits the result and applies it with normal Step Execute validation. One logical invocation may include retry attempts configured by FlowTimeoutHandlerOptions. The hook may transition, dead-end, complete, fail, or request graceful completion.

      Parameters

      • context: AsyncContext

        Timeout invocation Context; it must not be retained.

      Returns StepDecision | Promise<StepDecision>

      A StepDecision, synchronously or asynchronously.