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?: "pythonNative";
pythonCode: string | PythonFunction;
};
position?: NodePosition;
retryOnFail?: boolean;
}
Properties§
§
§
§
§
§
§
§
always Output Data?: boolean
§disabled?: boolean
execute Once?: boolean
If active, the node executes only once, with data from the first item it receives
label?: string
§max Tries?: number
Number of times to attempt to execute the node before failing the execution
Enabled if retryOnFail is true
notes?: string
Optional note to save with the node
notes In Flow?: boolean
§on Error?: "continueRegularOutput" | "continueErrorOutput"
Action to take when the node execution fails When undefined, an error will stop the workflow execution
readonly output Schema?: Type<unknown, {}>
{@inheritDoc OutputSchema}
parameters:
| Omit<
CodeNodeParameters,
"language"
| "jsCode"
| "pythonCode",
> & {
jsCode: string | NodejsFunction;
language?: "javaScript";
pythonCode?: undefined;
}
| Omit<
CodeNodeParameters,
"language"
| "jsCode"
| "pythonCode",
> & {
jsCode?: undefined;
language?: "pythonNative";
pythonCode: string | PythonFunction;
}
§position?: NodePosition
§retry On Fail?: boolean
If active, the node tries to execute again when it fails
If true, the node won't run but subsequent nodes WILL be executed