{ "kind": "open-flow-workflow", "version": 1, "name": "Collect Example People into an Array", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_bec74d5efffd4a4b": { "name": "Run the example", "kind": "start", "inputDefs": [] }, "n_fbb47a35abecb283": { "inputs": {}, "name": "Collect the people", "kind": "task", "task": { "inputs": [], "outputs": [ { "jsonSchema": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "nullable": false, "handle": "data_object" } ], "name": "Collect the people", "moduleId": "n_5b4d6a4f52b16c34", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_0dac65af885e157c": { "name": "Collected people", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "nullable": false, "handle": "data_object" } ], "outputMappings": { "data_object": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_fbb47a35abecb283", "output": "data_object" } ] } } } }, "edges": [ { "source": "n_bec74d5efffd4a4b", "target": "n_fbb47a35abecb283" }, { "source": "n_fbb47a35abecb283", "target": "n_0dac65af885e157c" } ] } }, "modules": { "n_5b4d6a4f52b16c34": { "name": "Collect the people", "imports": [], "source": "export default function collect(){const items=[{id:1,name:'Jim'},{id:2,name:'Stefan'},{id:3,name:'Hans'}];return{data_object:items.map(item=>({...item}))}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }