{ "nodes": [ { "id": "input", "type": "InputNode", "x": 300, "y": 200, "properties": {}, "text": { "x": 310, "y": 200, "value": "input" } }, { "id": "cf717a24-2917-444f-9927-74a0d486ad7a", "type": "LogNode", "x": 820, "y": 200, "properties": { "name": "log", "script": "function ToString(msg, metadata, msgType) {\n return '\\nIncoming message:\\n' + JSON.stringify(msg) + \n '\\nIncoming metadata:\\n' + JSON.stringify(metadata);\n\n }\n " }, "text": { "x": 830, "y": 200, "value": "log" } }, { "id": "c56b90cc-64fc-4782-8d9e-b0b24dabc876", "type": "MessageGeneratorNode", "x": 520, "y": 40, "properties": { "name": "ada", "messageCount": 2, "periodSecond": 5, "script": "function Generate(msg, metadata, msgType) {\n var msg = { temp: 42, humidity: 77 };\nvar metadata = { data: 40 };\nvar msgType = \"telemetry\";\n\nreturn { msg: msg, metadata: metadata, msgType: msgType };\n }\n " }, "text": { "x": 530, "y": 40, "value": "generator" } } ], "edges": [ { "id": "ca4c7e4b-2ffa-4f72-83d0-456d9db72add", "type": "node-link", "sourceNodeId": "input", "targetNodeId": "c56b90cc-64fc-4782-8d9e-b0b24dabc876", "startPoint": { "x": 350, "y": 200 }, "endPoint": { "x": 460, "y": 40 }, "properties": {}, "pointsList": [ { "x": 350, "y": 200 }, { "x": 450, "y": 200 }, { "x": 360, "y": 40 }, { "x": 460, "y": 40 } ] }, { "id": "feeb016c-c52c-48ed-8d2c-fde36439da7d", "type": "node-link", "sourceNodeId": "c56b90cc-64fc-4782-8d9e-b0b24dabc876", "targetNodeId": "cf717a24-2917-444f-9927-74a0d486ad7a", "startPoint": { "x": 580, "y": 40 }, "endPoint": { "x": 770, "y": 200 }, "properties": { "type": "Success" }, "text": { "x": 675, "y": 120, "value": "Success" }, "pointsList": [ { "x": 580, "y": 40 }, { "x": 680, "y": 40 }, { "x": 670, "y": 200 }, { "x": 770, "y": 200 } ] } ] }