fix(Wait Node): Fix for hasNextPage in waiting forms (#12636)

This commit is contained in:
Michael Kret
2025-01-20 11:41:50 +02:00
committed by GitHub
parent 847aa1295d
commit 652b8d170b
4 changed files with 66 additions and 9 deletions

View File

@@ -79,18 +79,24 @@ export abstract class NodeExecutionContext implements Omit<FunctionsBase, 'getCr
return this.workflow.getStaticData(type, this.node);
}
getChildNodes(nodeName: string) {
getChildNodes(nodeName: string, options?: { includeNodeParameters?: boolean }) {
const output: NodeTypeAndVersion[] = [];
const nodeNames = this.workflow.getChildNodes(nodeName);
for (const n of nodeNames) {
const node = this.workflow.nodes[n];
output.push({
const entry: NodeTypeAndVersion = {
name: node.name,
type: node.type,
typeVersion: node.typeVersion,
disabled: node.disabled ?? false,
});
};
if (options?.includeNodeParameters) {
entry.parameters = node.parameters;
}
output.push(entry);
}
return output;
}