Add SubflowModule class for running subflow modules

This commit is contained in:
Nick O'Leary
2020-09-02 19:33:31 +01:00
committed by Nick O'Leary
parent 0c9fd25d3e
commit 814fc8bc69
2 changed files with 41 additions and 2 deletions

View File

@@ -120,7 +120,8 @@ function createNode(flow,config) {
}
})
var subflow = require("./Subflow").create(
var subflow = require("./Subflow").createModuleInstance(
nodeTypeConstructor.type,
flow,
flow.global,
subflowConfig.subflows[nodeTypeConstructor.subflow.id],