Add additional external workflow hooks

This commit is contained in:
Jan Oberhauser
2020-05-06 00:59:58 +02:00
parent 0387671cae
commit 6e1254fd54
6 changed files with 65 additions and 34 deletions

View File

@@ -1,5 +1,6 @@
import {
Db,
ExternalHooks,
IExecutionDb,
IExecutionFlattedDb,
IPushDataExecutionFinished,
@@ -302,6 +303,10 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi
workflowData = workflowInfo.code;
}
const externalHooks = ExternalHooks();
await externalHooks.init();
await externalHooks.run('workflow.execute', [workflowData, mode]);
const nodeTypes = NodeTypes();
const workflowName = workflowData ? workflowData.name : undefined;