bunqueue v2.8 API referenceall versions · guide
bunqueue
    Preparing search index...

    Type Alias WorkflowNode

    WorkflowNode:
        | { def: StepDefinition; type: "step" }
        | { def: BranchDefinition; type: "branch" }
        | { event: string; timeout?: number; type: "waitFor" }
        | { def: ParallelDefinition; type: "parallel" }
        | {
            inputMapper: SubWorkflowInputMapper<any, any>;
            name: string;
            pollInterval: number;
            timeout: number;
            type: "subWorkflow";
        }
        | { def: LoopDefinition; type: "doUntil" }
        | { def: LoopDefinition; type: "doWhile" }
        | { def: ForEachDefinition; type: "forEach" }
        | { def: MapDefinition; type: "map" }
        | { type: "pivot" }

    Workflow node (discriminated union)