{
    "nodes": [
        {
            "id": "node_wromduxz",
            "type": "listener",
            "componentName": "eventListener",
            "position": {
                "x": 0,
                "y": 0
            },
            "data": {
                "nodeName": "Entity Listener",
                "parameters": {
                    "entities": [
                        "milesight-gateway.device.24E124767E031885.line_1_total_in"
                    ]
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_kecfxllr",
            "type": "ifelse",
            "componentName": "choice",
            "position": {
                "x": 288,
                "y": 0
            },
            "data": {
                "nodeName": "IF/ELSE",
                "parameters": {
                    "choice": {
                        "when": [
                            {
                                "id": "condition_gzcuasod",
                                "logicOperator": "AND",
                                "expressionType": "condition",
                                "conditions": [
                                    {
                                        "id": "subcondition_lmzkluuv",
                                        "expressionValue": {
                                            "key": "#{properties.node_wromduxz['milesight-gateway.device.24E124767E031885.line_1_total_in']}",
                                            "value": "",
                                            "operator": "IS_NOT_EMPTY"
                                        }
                                    }
                                ]
                            }
                        ],
                        "otherwise": {
                            "id": "condition_rvmkvrpp"
                        }
                    }
                }
            },
            "measured": {
                "width": 240,
                "height": 140
            }
        },
        {
            "id": "node_uwjfoygs",
            "type": "assigner",
            "componentName": "entityAssigner",
            "position": {
                "x": 576,
                "y": 0
            },
            "data": {
                "nodeName": "Entity Assigner",
                "parameters": {
                    "exchangePayload": {
                        "system.integration.87ea1d69565c45a08bb8c365c929663f": "#{properties.node_wromduxz['milesight-gateway.device.24E124767E031885.line_1_total_in']}"
                    }
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_mjboegck",
            "type": "select",
            "componentName": "entitySelector",
            "position": {
                "x": 864,
                "y": 0
            },
            "data": {
                "nodeName": "Entity Selection",
                "parameters": {
                    "entities": [
                        "system.integration.06edab8acf7f4747b1c69f3f3e64e991"
                    ]
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_ebvacxrt",
            "type": "code",
            "componentName": "code",
            "position": {
                "x": 1152,
                "y": 0
            },
            "data": {
                "nodeName": "Code",
                "parameters": {
                    "inputArguments": {
                        "arg1": "#{properties.node_mjboegck['system.integration.06edab8acf7f4747b1c69f3f3e64e991']}",
                        "arg2": "#{properties.node_wromduxz['milesight-gateway.device.24E124767E031885.line_1_total_in']}"
                    },
                    "expression": {
                        "language": "js",
                        "expression": "arg1 = (arg1 == null || arg1 === '') ? 0 : Number(arg1);\narg2 = (arg2 == null || arg2 === '') ? 0 : Number(arg2);\nreturn {\n  result: arg1 + arg2\n};"
                    },
                    "payload": [
                        {
                            "name": "result",
                            "type": "LONG"
                        }
                    ]
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_plejdyfu",
            "type": "assigner",
            "componentName": "entityAssigner",
            "position": {
                "x": 1440,
                "y": 0
            },
            "data": {
                "nodeName": "Entity Assigner 2",
                "parameters": {
                    "exchangePayload": {
                        "system.integration.e0e89f219c8d45b39679b0dae051c407": "#{properties.node_ebvacxrt['result']}"
                    }
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_relbsqqp",
            "type": "select",
            "componentName": "entitySelector",
            "position": {
                "x": 576,
                "y": 96
            },
            "data": {
                "nodeName": "Entity Selection 2",
                "parameters": {
                    "entities": [
                        "system.integration.87ea1d69565c45a08bb8c365c929663f"
                    ]
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_gjespslg",
            "type": "ifelse",
            "componentName": "choice",
            "position": {
                "x": 864,
                "y": 96
            },
            "data": {
                "nodeName": "IF/ELSE 2",
                "parameters": {
                    "choice": {
                        "when": [
                            {
                                "id": "condition_xexffzsh",
                                "logicOperator": "AND",
                                "expressionType": "condition",
                                "conditions": [
                                    {
                                        "id": "subcondition_dldzkltq",
                                        "expressionValue": {
                                            "key": "#{properties.node_relbsqqp['system.integration.87ea1d69565c45a08bb8c365c929663f']}",
                                            "value": "",
                                            "operator": "IS_EMPTY"
                                        }
                                    }
                                ]
                            }
                        ],
                        "otherwise": {
                            "id": "condition_hztiaxjv"
                        }
                    }
                }
            },
            "measured": {
                "width": 240,
                "height": 140
            }
        },
        {
            "id": "node_gxnbiwol",
            "type": "assigner",
            "componentName": "entityAssigner",
            "position": {
                "x": 1152,
                "y": 96
            },
            "data": {
                "nodeName": "Entity Assigner 3",
                "parameters": {
                    "exchangePayload": {
                        "system.integration.87ea1d69565c45a08bb8c365c929663f": "0"
                    }
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_fdqmwbqx",
            "type": "select",
            "componentName": "entitySelector",
            "position": {
                "x": 1440,
                "y": 96
            },
            "data": {
                "nodeName": "Entity Selection 3",
                "parameters": {
                    "entities": [
                        "system.integration.06edab8acf7f4747b1c69f3f3e64e991"
                    ]
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_lrgargkd",
            "type": "code",
            "componentName": "code",
            "position": {
                "x": 1728,
                "y": 96
            },
            "data": {
                "nodeName": "Code 2",
                "parameters": {
                    "inputArguments": {
                        "arg1": "#{properties.node_fdqmwbqx['system.integration.06edab8acf7f4747b1c69f3f3e64e991']}",
                        "arg2": "#{properties.node_gxnbiwol['system.integration.87ea1d69565c45a08bb8c365c929663f']}"
                    },
                    "expression": {
                        "language": "js",
                        "expression": "arg1 = (arg1 == null || arg1 === '') ? 0 : Number(arg1);\narg2 = (arg2 == null || arg2 === '') ? 0 : Number(arg2);\nreturn {\n  result: arg1 + arg2\n};"
                    },
                    "payload": [
                        {
                            "name": "result",
                            "type": "LONG"
                        }
                    ]
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        },
        {
            "id": "node_edqqbxje",
            "type": "assigner",
            "componentName": "entityAssigner",
            "position": {
                "x": 2016,
                "y": 96
            },
            "data": {
                "nodeName": "Entity Assigner 4",
                "parameters": {
                    "exchangePayload": {
                        "system.integration.e0e89f219c8d45b39679b0dae051c407": "#{properties.node_lrgargkd['result']}"
                    }
                }
            },
            "measured": {
                "width": 240,
                "height": 48
            }
        }
    ],
    "edges": [
        {
            "id": "edge_hhrktzzp",
            "type": "addable",
            "source": "node_wromduxz",
            "target": "node_kecfxllr",
            "data": {}
        },
        {
            "id": "edge_nktpqfen",
            "type": "addable",
            "source": "node_kecfxllr",
            "target": "node_uwjfoygs",
            "sourceHandle": "condition_gzcuasod",
            "data": {}
        },
        {
            "id": "edge_tbceozhg",
            "type": "addable",
            "source": "node_uwjfoygs",
            "target": "node_mjboegck",
            "data": {}
        },
        {
            "id": "edge_skntzaau",
            "type": "addable",
            "source": "node_mjboegck",
            "target": "node_ebvacxrt",
            "data": {}
        },
        {
            "id": "edge_glttiwbk",
            "type": "addable",
            "source": "node_ebvacxrt",
            "target": "node_plejdyfu",
            "data": {}
        },
        {
            "id": "edge_gjlkfqhg",
            "type": "addable",
            "source": "node_kecfxllr",
            "target": "node_relbsqqp",
            "sourceHandle": "condition_rvmkvrpp",
            "data": {}
        },
        {
            "id": "edge_vovckmbr",
            "type": "addable",
            "source": "node_relbsqqp",
            "target": "node_gjespslg",
            "data": {}
        },
        {
            "id": "edge_udkygtqs",
            "type": "addable",
            "source": "node_gjespslg",
            "target": "node_gxnbiwol",
            "sourceHandle": "condition_xexffzsh",
            "data": {}
        },
        {
            "id": "edge_jgkfkkhz",
            "type": "addable",
            "source": "node_gxnbiwol",
            "target": "node_fdqmwbqx",
            "data": {}
        },
        {
            "id": "edge_ceufkbxu",
            "type": "addable",
            "source": "node_fdqmwbqx",
            "target": "node_lrgargkd",
            "data": {}
        },
        {
            "id": "edge_zudztyhy",
            "type": "addable",
            "source": "node_lrgargkd",
            "target": "node_edqqbxje",
            "data": {}
        }
    ],
    "viewport": {
        "x": 86.90909090909099,
        "y": 342.58446163765313,
        "zoom": 0.7704706640876853
    }
}