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