n8n-workflow
Advanced tools
Comparing version 0.70.0 to 0.71.0
@@ -26,3 +26,6 @@ import { Expression, IConnections, IGetExecuteTriggerFunctions, INode, INodeExecuteFunctions, INodeExecutionData, INodeParameters, INodes, INodeType, INodeTypes, IPollFunctions, IRunExecutionData, ITaskDataConnections, ITriggerResponse, IWebhookData, IWebhookResponseData, IWorfklowIssues, IWorkflowExecuteAdditionalData, IWorkflowSettings, NodeParameterValue, WebhookSetupMethodNames, WorkflowActivateMode, WorkflowExecuteMode } from '.'; | ||
checkIfWorkflowCanBeActivated(ignoreNodeTypes?: string[]): boolean; | ||
checkReadyForExecution(): IWorfklowIssues | null; | ||
checkReadyForExecution(inputData: { | ||
startNode?: string; | ||
destinationNode?: string; | ||
}): IWorfklowIssues | null; | ||
getStaticData(type: string, node?: INode): IDataObject; | ||
@@ -29,0 +32,0 @@ getTriggerNodes(): INode[]; |
@@ -91,3 +91,3 @@ "use strict"; | ||
} | ||
checkReadyForExecution() { | ||
checkReadyForExecution(inputData) { | ||
let node; | ||
@@ -97,3 +97,12 @@ let nodeType; | ||
const workflowIssues = {}; | ||
for (const nodeName of Object.keys(this.nodes)) { | ||
let checkNodes = []; | ||
if (inputData.destinationNode) { | ||
checkNodes = this.getParentNodes(inputData.destinationNode); | ||
checkNodes.push(inputData.destinationNode); | ||
} | ||
else if (inputData.startNode) { | ||
checkNodes = this.getChildNodes(inputData.startNode); | ||
checkNodes.push(inputData.startNode); | ||
} | ||
for (const nodeName of checkNodes) { | ||
nodeIssues = null; | ||
@@ -100,0 +109,0 @@ node = this.nodes[nodeName]; |
{ | ||
"name": "n8n-workflow", | ||
"version": "0.70.0", | ||
"version": "0.71.0", | ||
"description": "Workflow base code of n8n", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
Sorry, the diff of this file is not supported yet
466747
7338