Interface CodeProps

Source
interface CodeProps {
    alwaysOutputData?: boolean;
    disabled?: boolean;
    executeOnce?: boolean;
    label?: string;
    maxTries?: number;
    notes?: string;
    notesInFlow?: boolean;
    onError?:
        | "continueRegularOutput"
        | "continueErrorOutput";
    outputSchema?: Type<unknown, {}>;
    parameters:
        | Omit<
            CodeNodeParameters,
            "language"
            | "jsCode"
            | "pythonCode",
        > & {
            jsCode: string | NodejsFunction;
            language?: "javaScript";
            pythonCode?: undefined;
        }
        | Omit<
            CodeNodeParameters,
            "language"
            | "jsCode"
            | "pythonCode",
        > & {
            jsCode?: undefined;
            language?: "python";
            pythonCode: string | PythonFunction;
        };
    position?: NodePosition;
    retryOnFail?: boolean;
}

Properties§

Source§

alwaysOutputData?: boolean

Source§

disabled?: boolean

If true, the node won't run but subsequent nodes WILL be executed

default
false
Source§

executeOnce?: boolean

If active, the node executes only once, with data from the first item it receives

default
false
Source§

label?: string

Source§

maxTries?: number

Number of times to attempt to execute the node before failing the execution Enabled if retryOnFail is true

default
3
Source§

notes?: string

Optional note to save with the node

default
undefined
Source§

notesInFlow?: boolean

Source§

onError?: "continueRegularOutput" | "continueErrorOutput"

Action to take when the node execution fails When undefined, an error will stop the workflow execution

default
undefined
Source§

outputSchema?: Type<unknown, {}>

{@inheritDoc OutputSchema}

Source§

parameters:
    | Omit<
        CodeNodeParameters,
        "language"
        | "jsCode"
        | "pythonCode",
    > & {
        jsCode: string | NodejsFunction;
        language?: "javaScript";
        pythonCode?: undefined;
    }
    | Omit<
        CodeNodeParameters,
        "language"
        | "jsCode"
        | "pythonCode",
    > & {
        jsCode?: undefined;
        language?: "python";
        pythonCode: string | PythonFunction;
    }

Source§

position?: NodePosition

Source§

retryOnFail?: boolean

If active, the node tries to execute again when it fails

default
false