ExecuteWorkflow - like node

Hi! I’m tryng to create a new node “Flow Manager” similar to “Execute Workflow” (https://docs.n8n.io/nodes/n8n-nodes-base.executeWorkflow/).

I’ve n8n installed in a docker in local.

To start “Flow Manager” I’m tryng create new node copying totally “Exegute workflow” - import and class (changing the node name obviously).
No error in building and no error in starting workflow with the new node.

I give to “Flow Manager” the “database” as a source and “3” as a Workflow id.

In execution the node return a throw error:
TypeError: Cannot read property 'type' of undefined

This error is returned by this line:
const receivedData = await this.executeWorkflow(workflowInfo, items);
(Before this function, both “workflowInfo” and “items” are printed correctly in console log)

My node “Flow Manager” run correctly if in the workflow is added also “Execute Workflow” (in any place, also without any link). ^^

Thank for your help

Does it not return where exactly the error TypeError: Cannot read property 'type' of undefined is thrown. Because the line you did copy does not mention type anywhere so it has to be deeper.