How to use the n8n-core.NodeExecuteFunctions.getExecuteTriggerFunctions function in n8n-core

To help you get started, we’ve selected a few n8n-core 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 / cli / src / ActiveWorkflowRunner.ts View on Github external
return ((workflow: Workflow, node: INode) => {
			const returnFunctions = NodeExecuteFunctions.getExecuteTriggerFunctions(workflow, node, additionalData, mode);
			returnFunctions.emit = (data: INodeExecutionData[][]): void => {

				const nodeExecutionStack: IExecuteData[] = [
					{
						node,
						data: {
							main: data,
						}
					}
				];

				const executionData: IRunExecutionData = {
					startData: {},
					resultData: {
						runData: {},
					},