{ "kind": "open-flow-workflow", "version": 1, "name": "Route Example Items by ID", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_7aa3db6db1c2065b": { "name": "Run the example", "kind": "start", "inputDefs": [] }, "n_ab811b69637da5f0": { "inputs": {}, "name": "Route and name items", "kind": "task", "task": { "inputs": [], "outputs": [ { "jsonSchema": { "type": "array", "items": { "type": "object" } }, "nullable": false, "handle": "zero" }, { "jsonSchema": { "type": "array", "items": { "type": "object" } }, "nullable": false, "handle": "other" } ], "name": "Route and name items", "moduleId": "n_8084c4b64c7db6ce", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_d2388549a83c2b5c": { "name": "Branch results", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "array", "items": { "type": "object" } }, "nullable": false, "handle": "zero" }, { "jsonSchema": { "type": "array", "items": { "type": "object" } }, "nullable": false, "handle": "other" } ], "outputMappings": { "zero": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_ab811b69637da5f0", "output": "zero" } ] }, "other": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_ab811b69637da5f0", "output": "other" } ] } } } }, "edges": [ { "source": "n_7aa3db6db1c2065b", "target": "n_ab811b69637da5f0" }, { "source": "n_ab811b69637da5f0", "target": "n_d2388549a83c2b5c" } ] } }, "modules": { "n_8084c4b64c7db6ce": { "name": "Route and name items", "imports": [], "source": "export default function branches(){const rows=[{id:0},{id:1}],zero=[],other=[];for(const row of rows)(row.id===0?zero:other).push({...row,name:row.id===0?'n8n':'nodemation'});return{zero,other}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }