mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
43 lines
908 B
TypeScript
43 lines
908 B
TypeScript
import {
|
||
NodeConnectionType,
|
||
type IExecuteFunctions,
|
||
type INodeExecutionData,
|
||
type INodeType,
|
||
type INodeTypeDescription,
|
||
} from 'n8n-workflow';
|
||
|
||
export class Start implements INodeType {
|
||
description: INodeTypeDescription = {
|
||
displayName: 'Start',
|
||
name: 'start',
|
||
icon: 'fa:play',
|
||
group: ['input'],
|
||
version: 1,
|
||
description: 'Starts the workflow execution from this node',
|
||
maxNodes: 1,
|
||
hidden: true,
|
||
defaults: {
|
||
name: 'Start',
|
||
color: '#00e000',
|
||
},
|
||
|
||
inputs: [],
|
||
outputs: [NodeConnectionType.Main],
|
||
properties: [
|
||
{
|
||
displayName:
|
||
'This node is where a manual workflow execution starts. To make one, go back to the canvas and click ‘execute workflow’',
|
||
name: 'notice',
|
||
type: 'notice',
|
||
default: '',
|
||
},
|
||
],
|
||
};
|
||
|
||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||
const items = this.getInputData();
|
||
|
||
return [items];
|
||
}
|
||
}
|