Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • I: any

Hierarchy

  • Flow

Index

Constructors

constructor

Properties

result

result: FlowResult

Methods

allFail

  • Calls the callback with the errors of stages when all stages throw exceptions.

    Parameters

    Returns Promise<void>

allOk

  • Calls the callback with the results of stages when all stages run without errors.

    Parameters

    Returns Promise<void>

anyFail

  • Calls the callback with the errors of stages when any stage throws an exception.

    Parameters

    Returns Promise<void>

anyOk

  • Calls the callback with the results of stages when any stage runs without error.

    Parameters

    Returns Promise<void>

execute

fail

  • fail(stageId: string | number, callback: Function): Promise<void>
  • Calls the callback with the error of the provided stage name or its index.

    Parameters

    • stageId: string | number
    • callback: Function

    Returns Promise<void>

ok

  • ok(stageId: string | number, callback: CallbackOk): Promise<void>
  • Calls the callback with the result of the provided stage name or its index.

    Parameters

    Returns Promise<void>

Generated using TypeDoc