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