2019-06-23 03:35:23 -07:00
|
|
|
import { IExecuteFunctions } from 'n8n-core';
|
|
|
|
import {
|
|
|
|
INodeExecutionData,
|
|
|
|
INodeType,
|
|
|
|
INodeTypeDescription,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class Start implements INodeType {
|
|
|
|
description: INodeTypeDescription = {
|
|
|
|
displayName: 'Start',
|
|
|
|
name: 'start',
|
2019-07-26 02:27:46 -07:00
|
|
|
icon: 'fa:play',
|
2019-06-23 03:35:23 -07:00
|
|
|
group: ['input'],
|
|
|
|
version: 1,
|
|
|
|
description: 'Starts the workflow execution from this node',
|
|
|
|
maxNodes: 1,
|
|
|
|
defaults: {
|
|
|
|
name: 'Start',
|
2019-07-26 02:41:08 -07:00
|
|
|
color: '#00e000',
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
inputs: [],
|
|
|
|
outputs: ['main'],
|
|
|
|
properties: [
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
|
|
|
const items = this.getInputData();
|
|
|
|
|
|
|
|
return this.prepareOutputData(items);
|
|
|
|
}
|
|
|
|
}
|