{ "kind": "open-flow-workflow", "version": 1, "name": "Extract a Domain from an Email Address", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_4872575da05db91f": { "name": "Enter an email address", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "email" } ] }, "n_bfb66e6f6f30fbf2": { "inputs": { "email": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_4872575da05db91f", "output": "email" } ] } }, "name": "Extract the domain", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "email" } ], "outputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "domain" } ], "name": "Extract the domain", "moduleId": "n_fe485bacb3d2f789", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_3f200e6a5e8951b5": { "name": "Domain", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "domain" } ], "outputMappings": { "domain": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_bfb66e6f6f30fbf2", "output": "domain" } ] } } } }, "edges": [ { "source": "n_4872575da05db91f", "target": "n_bfb66e6f6f30fbf2" }, { "source": "n_bfb66e6f6f30fbf2", "target": "n_3f200e6a5e8951b5" } ] } }, "modules": { "n_fe485bacb3d2f789": { "name": "Extract the domain", "imports": [], "source": "export default function domain({email}){return{domain:email.substring(email.lastIndexOf('@')+1)}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }