mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
33 lines
641 B
TypeScript
33 lines
641 B
TypeScript
|
import { IExecuteFunctions } from 'n8n-core';
|
||
|
import {
|
||
|
INodeExecutionData,
|
||
|
INodeType,
|
||
|
INodeTypeDescription,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
|
||
|
export class Start implements INodeType {
|
||
|
description: INodeTypeDescription = {
|
||
|
displayName: 'Start',
|
||
|
name: 'start',
|
||
|
group: ['input'],
|
||
|
version: 1,
|
||
|
description: 'Starts the workflow execution from this node',
|
||
|
maxNodes: 1,
|
||
|
defaults: {
|
||
|
name: 'Start',
|
||
|
color: '#553399',
|
||
|
},
|
||
|
inputs: [],
|
||
|
outputs: ['main'],
|
||
|
properties: [
|
||
|
],
|
||
|
};
|
||
|
|
||
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||
|
const items = this.getInputData();
|
||
|
|
||
|
return this.prepareOutputData(items);
|
||
|
}
|
||
|
}
|