How to use the n8n-workflow.NodeHelpers.nodeIssuesToString function in n8n-workflow

To help you get started, we’ve selected a few n8n-workflow examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github n8n-io / n8n / packages / editor-ui / src / components / mixins / workflowRun.ts View on Github external
return;
			}

			const workflow = this.getWorkflow();

			try {
				// Check first if the workflow has any issues before execute it
				const issuesExist = this.$store.getters.nodesIssuesExist;
				if (issuesExist === true) {
					// If issues exist get all of the issues of all nodes
					const workflowIssues = this.checkReadyForExecution(workflow);
					if (workflowIssues !== null) {
						const errorMessages = [];
						let nodeIssues: string[];
						for (const nodeName of Object.keys(workflowIssues)) {
							nodeIssues = NodeHelpers.nodeIssuesToString(workflowIssues[nodeName]);
							for (const nodeIssue of nodeIssues) {
								errorMessages.push(`${nodeName}: ${nodeIssue}`);
							}
						}

						this.$showMessage({
							title: 'Workflow can not be executed',
							message: 'The workflow has issues. Please fix them first:<br>&nbsp;&nbsp;- ' + errorMessages.join('<br>&nbsp;&nbsp;- '),
							type: 'error',
							duration: 0,
						});
						return;
					}
				}

				// Get the direct parents of the node
github n8n-io / n8n / packages / editor-ui / src / components / Node.vue View on Github external
nodeIssues (): string {
			if (this.data.issues === undefined) {
				return '';
			}

			const nodeIssues = NodeHelpers.nodeIssuesToString(this.data.issues, this.data);

			return 'Issues:<br>&nbsp;&nbsp;- ' + nodeIssues.join('<br>&nbsp;&nbsp;- ');
		},
		nodeDisabledIcon (): string {