[
    {
        "id": "2955fc1f6b699cc8",
        "type": "group",
        "z": "5a915a7ec2edb327",
        "name": "Read OPCUA File",
        "style": {
            "label": true
        },
        "nodes": [
            "bae94b02cb7b2d47",
            "78fe65da913ed5d7",
            "66d620c9e10276f3"
        ],
        "x": 114,
        "y": 979,
        "w": 672,
        "h": 82
    },
    {
        "id": "bae94b02cb7b2d47",
        "type": "OpcUa-Client2-FileOperation",
        "z": "5a915a7ec2edb327",
        "g": "2955fc1f6b699cc8",
        "inputs": 1,
        "output": 1,
        "name": "",
        "endpoint": "c80889511cc51fe9",
        "nodeId": "/ns1:FolderDemo/ns1:subfolder/ns1:Hello1_txt",
        "mode": "Read",
        "encoding": "none",
        "format": "utf8",
        "x": 450,
        "y": 1020,
        "wires": [
            [
                "66d620c9e10276f3"
            ]
        ]
    },
    {
        "id": "78fe65da913ed5d7",
        "type": "inject",
        "z": "5a915a7ec2edb327",
        "g": "2955fc1f6b699cc8",
        "name": "",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 210,
        "y": 1020,
        "wires": [
            [
                "bae94b02cb7b2d47"
            ]
        ]
    },
    {
        "id": "66d620c9e10276f3",
        "type": "debug",
        "z": "5a915a7ec2edb327",
        "g": "2955fc1f6b699cc8",
        "name": "debug 21",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 680,
        "y": 1020,
        "wires": []
    },
    {
        "id": "c80889511cc51fe9",
        "type": "OpcUa-Endpoint2",
        "name": "",
        "endpoint": "opc.tcp://opcuademo.sterfive.com:26543/UA/SampleServer",
        "securityMode": "None",
        "securityPolicy": "None",
        "userIdentityType": "Anonymous",
        "pkiName": "",
        "useTransport": false,
        "maxChunkCount": 1,
        "maxMessageSize": 8192,
        "receiveBufferSize": 8192,
        "sendBufferSize": 8192,
        "subscriptions": [
            {
                "id": "s0",
                "name": "Default Subscription",
                "isDefault": true,
                "parameters": {
                    "publishingEnabled": true,
                    "requestedLifetimeCount": "1000",
                    "requestedMaxKeepAliveCount": "10",
                    "requestedPublishingInterval": "1000",
                    "maxNotificationsPerPublish": "0",
                    "priority": "100"
                }
            },
            {
                "id": "s1",
                "name": "Slow Subscription",
                "isDefault": true,
                "parameters": {
                    "publishingEnabled": true,
                    "requestedLifetimeCount": "100",
                    "requestedMaxKeepAliveCount": "3",
                    "requestedPublishingInterval": "5000",
                    "maxNotificationsPerPublish": "100",
                    "priority": "10"
                }
            },
            {
                "id": "s2",
                "name": "Fast Subscription",
                "isDefault": true,
                "parameters": {
                    "publishingEnabled": true,
                    "requestedLifetimeCount": "4000",
                    "requestedMaxKeepAliveCount": "50",
                    "requestedPublishingInterval": "250",
                    "maxNotificationsPerPublish": "100",
                    "priority": "200"
                }
            }
        ],
        "namespaceAliases": [
            {
                "namespaceUri": "http://opcfoundation.org/UA/",
                "alias": "ua"
            },
            {
                "namespaceUri": "urn:opcuademo.sterfive.com:NodeOPCUA-Server-for-CTT",
                "alias": "ns1"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/DI/",
                "alias": "di"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/ADI/",
                "alias": "adi"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/AutoID/",
                "alias": "autoId"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/MachineVision",
                "alias": "machineVision"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Robotics/",
                "alias": "robotics"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/CommercialKitchenEquipment/",
                "alias": "commercialKitchenEquipment"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/ISA95-JOBCONTROL_V2/",
                "alias": "isa95JobControl"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Dictionary/IRDI",
                "alias": "irdi"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/IA/",
                "alias": "ia"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Machinery/",
                "alias": "machinery"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Machinery/Jobs/",
                "alias": "machineryJobs"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/MachineTool/",
                "alias": "machineTool"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/PackML/",
                "alias": "packML"
            },
            {
                "namespaceUri": "urn://node-opcua-simulator",
                "alias": "ns2"
            },
            {
                "namespaceUri": "http://sterfive.com/UA/CoffeeMachine/",
                "alias": "ns3"
            }
        ]
    },
    {
        "id": "55d44445df2bfba0",
        "type": "group",
        "z": "5a915a7ec2edb327",
        "name": "Wfite OPCUA File",
        "style": {
            "label": true
        },
        "nodes": [
            "729ceb209a6e2b68",
            "3e05f8d16b8ca137",
            "14e5c2f8a8cfbea1"
        ],
        "x": 114,
        "y": 1079,
        "w": 452,
        "h": 142
    },
    {
        "id": "729ceb209a6e2b68",
        "type": "debug",
        "z": "5a915a7ec2edb327",
        "g": "55d44445df2bfba0",
        "name": "debug 19",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 420,
        "y": 1180,
        "wires": []
    },
    {
        "id": "3e05f8d16b8ca137",
        "type": "OpcUa-Client2-FileOperation",
        "z": "5a915a7ec2edb327",
        "g": "55d44445df2bfba0",
        "inputs": 1,
        "output": 1,
        "name": "",
        "endpoint": "c80889511cc51fe9",
        "nodeId": "/ns1:FolderDemo/ns1:subfolder/ns1:Hello1_txt",
        "mode": "Write",
        "encoding": "none",
        "format": "buffer",
        "x": 450,
        "y": 1120,
        "wires": [
            []
        ]
    },
    {
        "id": "14e5c2f8a8cfbea1",
        "type": "inject",
        "z": "5a915a7ec2edb327",
        "g": "55d44445df2bfba0",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "$now() & \" :  Hello World\\n\" ",
        "payloadType": "jsonata",
        "x": 210,
        "y": 1120,
        "wires": [
            [
                "3e05f8d16b8ca137",
                "729ceb209a6e2b68"
            ]
        ]
    },
    {
        "id": "3662b194d80eb5cb",
        "type": "group",
        "z": "5a915a7ec2edb327",
        "name": "Create OPCUA FIle",
        "style": {
            "label": true
        },
        "nodes": [
            "6c8261e5d697482b",
            "b18c4e067c31e356",
            "68b6d0ef6e1b51b3",
            "d96146043d9b7d1b",
            "c15beb47ee105e2a",
            "e3dd35152d86abfd"
        ],
        "x": 114,
        "y": 1439,
        "w": 732,
        "h": 202
    },
    {
        "id": "6c8261e5d697482b",
        "type": "OpcUa-Client2-Call",
        "z": "5a915a7ec2edb327",
        "g": "3662b194d80eb5cb",
        "inputs": 1,
        "output": 4,
        "name": "Create   OPCUA File",
        "endpoint": "6c09869f97e2b37c",
        "action": "read",
        "methodId": "/1:FolderDemo.CreateFile",
        "objectId": "/1:FolderDemo",
        "x": 450,
        "y": 1480,
        "wires": [
            [
                "68b6d0ef6e1b51b3"
            ],
            []
        ]
    },
    {
        "id": "b18c4e067c31e356",
        "type": "inject",
        "z": "5a915a7ec2edb327",
        "g": "3662b194d80eb5cb",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"FileName\":\"MyGeneratedFile2.txt\",\"RequestFileOpen\":false}",
        "payloadType": "json",
        "x": 210,
        "y": 1480,
        "wires": [
            [
                "6c8261e5d697482b"
            ]
        ]
    },
    {
        "id": "68b6d0ef6e1b51b3",
        "type": "debug",
        "z": "5a915a7ec2edb327",
        "g": "3662b194d80eb5cb",
        "name": "debug 20",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 740,
        "y": 1540,
        "wires": []
    },
    {
        "id": "d96146043d9b7d1b",
        "type": "OpcUa-Client2-FileOperation",
        "z": "5a915a7ec2edb327",
        "g": "3662b194d80eb5cb",
        "inputs": 1,
        "output": 1,
        "name": "Write to new OPCUA File",
        "endpoint": "6c09869f97e2b37c",
        "nodeId": "/ns1:FolderDemo/ns1:myGeneratedFile_txt",
        "mode": "WriteAppend",
        "encoding": "none",
        "format": "buffer",
        "x": 430,
        "y": 1540,
        "wires": [
            [
                "68b6d0ef6e1b51b3"
            ]
        ]
    },
    {
        "id": "c15beb47ee105e2a",
        "type": "inject",
        "z": "5a915a7ec2edb327",
        "g": "3662b194d80eb5cb",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "$now() & \": Hello World\"",
        "payloadType": "jsonata",
        "x": 210,
        "y": 1540,
        "wires": [
            [
                "d96146043d9b7d1b"
            ]
        ]
    },
    {
        "id": "e3dd35152d86abfd",
        "type": "OpcUa-Client2-Monitor",
        "z": "5a915a7ec2edb327",
        "g": "3662b194d80eb5cb",
        "inputs": 0,
        "output": 2,
        "name": "Monitor File size",
        "endpoint": "c80889511cc51fe9",
        "subscription": "s0",
        "startImmediately": true,
        "nodeId": "/1:FolderDemo/1:myGeneratedFile_txt.Size",
        "samplingInterval": "100",
        "discardOldest": true,
        "queueSize": 10,
        "x": 460,
        "y": 1600,
        "wires": [
            [
                "68b6d0ef6e1b51b3"
            ]
        ]
    },
    {
        "id": "6c09869f97e2b37c",
        "type": "OpcUa-Endpoint2",
        "name": "",
        "endpoint": "opc.tcp://opcuademo.sterfive.com:26543/UA/SampleServer",
        "securityMode": "SignAndEncrypt",
        "securityPolicy": "Basic256Sha256",
        "userIdentityType": "UserName",
        "pkiName": "",
        "useTransport": false,
        "maxChunkCount": 1,
        "maxMessageSize": 8192,
        "receiveBufferSize": 8192,
        "sendBufferSize": 8192,
        "subscriptions": [
            {
                "id": "s0",
                "name": "Default Subscription",
                "isDefault": true,
                "parameters": {
                    "publishingEnabled": true,
                    "requestedLifetimeCount": "1000",
                    "requestedMaxKeepAliveCount": "10",
                    "requestedPublishingInterval": "1000",
                    "maxNotificationsPerPublish": "0",
                    "priority": "100"
                }
            },
            {
                "id": "s1",
                "name": "Slow Subscription",
                "isDefault": true,
                "parameters": {
                    "publishingEnabled": true,
                    "requestedLifetimeCount": "100",
                    "requestedMaxKeepAliveCount": "3",
                    "requestedPublishingInterval": "5000",
                    "maxNotificationsPerPublish": "100",
                    "priority": "10"
                }
            },
            {
                "id": "s2",
                "name": "Fast Subscription",
                "isDefault": true,
                "parameters": {
                    "publishingEnabled": true,
                    "requestedLifetimeCount": "4000",
                    "requestedMaxKeepAliveCount": "50",
                    "requestedPublishingInterval": "250",
                    "maxNotificationsPerPublish": "100",
                    "priority": "200"
                }
            }
        ],
        "namespaceAliases": [
            {
                "namespaceUri": "http://opcfoundation.org/UA/",
                "alias": "ua"
            },
            {
                "namespaceUri": "urn:opcuademo.sterfive.com:NodeOPCUA-Server-for-CTT",
                "alias": "ns1"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/DI/",
                "alias": "di"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/ADI/",
                "alias": "adi"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/AutoID/",
                "alias": "autoId"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/MachineVision",
                "alias": "machineVision"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Robotics/",
                "alias": "robotics"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/CommercialKitchenEquipment/",
                "alias": "commercialKitchenEquipment"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/ISA95-JOBCONTROL_V2/",
                "alias": "isa95JobControl"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Dictionary/IRDI",
                "alias": "irdi"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/IA/",
                "alias": "ia"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Machinery/",
                "alias": "machinery"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/Machinery/Jobs/",
                "alias": "machineryJobs"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/MachineTool/",
                "alias": "machineTool"
            },
            {
                "namespaceUri": "http://opcfoundation.org/UA/PackML/",
                "alias": "packML"
            },
            {
                "namespaceUri": "urn://node-opcua-simulator",
                "alias": "ns2"
            },
            {
                "namespaceUri": "http://sterfive.com/UA/CoffeeMachine/",
                "alias": "ns3"
            }
        ]
    },
    {
        "id": "3b668d0b979f4075",
        "type": "group",
        "z": "5a915a7ec2edb327",
        "name": "Read & Writte Append",
        "style": {
            "label": true
        },
        "nodes": [
            "9ec7abc27f33c47b",
            "65200fe187034ce0",
            "c7a70ef6afb42e48"
        ],
        "x": 114,
        "y": 1239,
        "w": 732,
        "h": 82
    },
    {
        "id": "9ec7abc27f33c47b",
        "type": "OpcUa-Client2-FileOperation",
        "z": "5a915a7ec2edb327",
        "g": "3b668d0b979f4075",
        "inputs": 1,
        "output": 1,
        "name": "",
        "endpoint": "c80889511cc51fe9",
        "nodeId": "/ns1:FolderDemo/ns1:subfolder/ns1:Hello1_txt",
        "mode": "Read",
        "encoding": "none",
        "format": "utf8",
        "x": 450,
        "y": 1280,
        "wires": [
            [
                "65200fe187034ce0"
            ]
        ]
    },
    {
        "id": "65200fe187034ce0",
        "type": "OpcUa-Client2-FileOperation",
        "z": "5a915a7ec2edb327",
        "g": "3b668d0b979f4075",
        "inputs": 1,
        "output": 1,
        "name": "",
        "endpoint": "c80889511cc51fe9",
        "nodeId": "/ns1:FolderDemo/ns1:subfolder/ns1:Hello1_txt",
        "mode": "WriteAppend",
        "encoding": "none",
        "format": "buffer",
        "x": 710,
        "y": 1280,
        "wires": [
            []
        ]
    },
    {
        "id": "c7a70ef6afb42e48",
        "type": "inject",
        "z": "5a915a7ec2edb327",
        "g": "3b668d0b979f4075",
        "name": "",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 210,
        "y": 1280,
        "wires": [
            [
                "9ec7abc27f33c47b"
            ]
        ]
    },
    {
        "id": "285d857818cafd4b",
        "type": "group",
        "z": "5a915a7ec2edb327",
        "name": "Append new line to file",
        "style": {
            "label": true
        },
        "nodes": [
            "9266cc6c0c7b98fa",
            "c46497cddbcca586"
        ],
        "x": 114,
        "y": 1339,
        "w": 492,
        "h": 82
    },
    {
        "id": "9266cc6c0c7b98fa",
        "type": "inject",
        "z": "5a915a7ec2edb327",
        "g": "285d857818cafd4b",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "$now() & \"Hello World\"",
        "payloadType": "jsonata",
        "x": 210,
        "y": 1380,
        "wires": [
            [
                "c46497cddbcca586"
            ]
        ]
    },
    {
        "id": "c46497cddbcca586",
        "type": "OpcUa-Client2-FileOperation",
        "z": "5a915a7ec2edb327",
        "g": "285d857818cafd4b",
        "inputs": 1,
        "output": 1,
        "name": "",
        "endpoint": "c80889511cc51fe9",
        "nodeId": "/ns1:FolderDemo/ns1:subfolder/ns1:Hello1_txt",
        "mode": "WriteAppend",
        "encoding": "none",
        "format": "buffer",
        "x": 470,
        "y": 1380,
        "wires": [
            []
        ]
    }
]