[
{
"id": "c05f687368999ce5",
"type": "group",
"z": "517cd16e4d7e6ae4",
"name": "Hauptflow",
"style": {
"fill": "#e3f3d3",
"label": true
},
"nodes": [
"edf6186f87bd29cf",
"43d75f1a298e4228",
"5c2a6fd166cadeea",
"1f3ca857652a6f2d",
"d0227b7791f129b7",
"4385c065f4bcf50b",
"2686fd64b3416b63",
"105628d009801c57"
],
"x": 54,
"y": 1559,
"w": 1612,
"h": 82
},
{
"id": "edf6186f87bd29cf",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "Nachricht",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1560,
"y": 1600,
"wires": []
},
{
"id": "43d75f1a298e4228",
"type": "link call",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "",
"links": [
"0261bc0c575a8179"
],
"linkType": "static",
"timeout": "30",
"x": 340,
"y": 1600,
"wires": [
[
"1f3ca857652a6f2d"
]
]
},
{
"id": "5c2a6fd166cadeea",
"type": "inject",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "trigger",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 150,
"y": 1600,
"wires": [
[
"43d75f1a298e4228"
]
]
},
{
"id": "1f3ca857652a6f2d",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "",
"rules": [
{
"t": "set",
"p": "result",
"pt": "msg",
"to": "$flowContext(\"Secvest.partition.\"& next)\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 540,
"y": 1600,
"wires": [
[
"d0227b7791f129b7"
]
]
},
{
"id": "d0227b7791f129b7",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "Nur wenn OK?",
"property": "result",
"propertyType": "msg",
"rules": [
{
"t": "cont",
"v": "OK",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 740,
"y": 1600,
"wires": [
[
"2686fd64b3416b63"
]
]
},
{
"id": "4385c065f4bcf50b",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "",
"rules": [
{
"t": "set",
"p": "Secvest.nextPart",
"pt": "flow",
"to": "next",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1340,
"y": 1600,
"wires": [
[
"edf6186f87bd29cf"
]
]
},
{
"id": "2686fd64b3416b63",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"name": "",
"rules": [
{
"t": "set",
"p": "next",
"pt": "msg",
"to": "next + 1",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 940,
"y": 1600,
"wires": [
[
"105628d009801c57"
]
]
},
{
"id": "105628d009801c57",
"type": "range",
"z": "517cd16e4d7e6ae4",
"g": "c05f687368999ce5",
"minin": "1",
"maxin": "5",
"minout": "1",
"maxout": "5",
"action": "roll",
"round": true,
"property": "next",
"name": "",
"x": 1110,
"y": 1600,
"wires": [
[
"4385c065f4bcf50b"
]
]
},
{
"id": "79474f37517badfa",
"type": "group",
"z": "517cd16e4d7e6ae4",
"name": "Status",
"style": {
"fill": "#ffffbf",
"label": true
},
"nodes": [
"046d20801968277a",
"166f54f5d95776c5",
"967ae311bedb5398",
"f531134c2d277c8e",
"f7e0ad7f8c47e9e2",
"b859b6f87ebdea89",
"acd1fb1a37c75788"
],
"x": 54,
"y": 1659,
"w": 672,
"h": 222
},
{
"id": "046d20801968277a",
"type": "status",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "",
"scope": [
"26da1e75ad50f497",
"77406c09f2b4935f",
"a36d2b0336d314d5",
"dca5caeebd3fa237"
],
"x": 140,
"y": 1780,
"wires": [
[
"166f54f5d95776c5",
"f531134c2d277c8e"
]
]
},
{
"id": "166f54f5d95776c5",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "",
"property": "status.source.id",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "26da1e75ad50f497",
"vt": "str"
},
{
"t": "eq",
"v": "77406c09f2b4935f",
"vt": "str"
},
{
"t": "eq",
"v": "a36d2b0336d314d5",
"vt": "str"
},
{
"t": "eq",
"v": "dca5caeebd3fa237",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 330,
"y": 1760,
"wires": [
[
"967ae311bedb5398"
],
[
"f7e0ad7f8c47e9e2"
],
[
"b859b6f87ebdea89"
],
[
"acd1fb1a37c75788"
]
]
},
{
"id": "967ae311bedb5398",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "",
"rules": [
{
"t": "set",
"p": "Secvest.partition.1",
"pt": "flow",
"to": "status.text ",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 1700,
"wires": [
[]
]
},
{
"id": "f531134c2d277c8e",
"type": "debug",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "status all",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "status",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 320,
"y": 1840,
"wires": []
},
{
"id": "f7e0ad7f8c47e9e2",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "",
"rules": [
{
"t": "set",
"p": "Secvest.partition.2",
"pt": "flow",
"to": "status.text ",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 1740,
"wires": [
[]
]
},
{
"id": "b859b6f87ebdea89",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "",
"rules": [
{
"t": "set",
"p": "Secvest.partition.3",
"pt": "flow",
"to": "status.text ",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 1780,
"wires": [
[]
]
},
{
"id": "acd1fb1a37c75788",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "79474f37517badfa",
"name": "",
"rules": [
{
"t": "set",
"p": "Secvest.partition.4",
"pt": "flow",
"to": "status.text ",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 1820,
"wires": [
[]
]
},
{
"id": "b7fe5d925d8e97e6",
"type": "group",
"z": "517cd16e4d7e6ae4",
"name": "Abfrage",
"style": {
"fill": "#dbcbe7",
"label": true
},
"nodes": [
"678dc9ba9d8c785f",
"f848c65833d70071",
"40bce79305c4643d",
"26da1e75ad50f497",
"50b76a92e1d49815",
"610c1cd0aa01c457",
"edf0b36304b14ced",
"77406c09f2b4935f",
"b291f001e92e6035",
"94e0553e3cd9b288",
"27712704a9ab0b48",
"a36d2b0336d314d5",
"fd85b9e702df0f23",
"b3e5ed6bd910648d",
"d6c566a7f673e2bf",
"dca5caeebd3fa237",
"6203be293dd53946",
"77ed707586880c2f",
"0261bc0c575a8179",
"c867ec0ddf91ddf0",
"bf53714046156c85",
"de3b72e71c80a313"
],
"x": 54,
"y": 1899,
"w": 1612,
"h": 422
},
{
"id": "678dc9ba9d8c785f",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "part1",
"property": "$random()\t",
"propertyType": "jsonata",
"rules": [
{
"t": "lt",
"v": "0.5",
"vt": "num"
},
{
"t": "gte",
"v": "0.5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 1960,
"wires": [
[
"f848c65833d70071"
],
[
"40bce79305c4643d"
]
]
},
{
"id": "f848c65833d70071",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"},{\"id\":\"110\",\"name\":\"BW Fen. R.\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part1",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"green\",\"shape\":\"dot\",\"text\":\"OK\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 1940,
"wires": [
[
"26da1e75ad50f497"
]
]
},
{
"id": "40bce79305c4643d",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Nicht Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part1",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"red\",\"shape\":\"dot\",\"text\":\"Error\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 1980,
"wires": [
[
"26da1e75ad50f497"
]
]
},
{
"id": "26da1e75ad50f497",
"type": "function",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Simuliere Secvest Command - Partition 1",
"func": "var newMsg;\nnode.status(msg.status);\nnewMsg = {topic:msg.topic, payload:msg.payload}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1120,
"y": 1960,
"wires": [
[
"de3b72e71c80a313"
]
]
},
{
"id": "50b76a92e1d49815",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "part2",
"property": "$random()\t",
"propertyType": "jsonata",
"rules": [
{
"t": "lt",
"v": "0.5",
"vt": "num"
},
{
"t": "gte",
"v": "0.5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 2060,
"wires": [
[
"610c1cd0aa01c457"
],
[
"edf0b36304b14ced"
]
]
},
{
"id": "610c1cd0aa01c457",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"},{\"id\":\"110\",\"name\":\"BW Fen. R.\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part2",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"green\",\"shape\":\"dot\",\"text\":\"OK\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 2040,
"wires": [
[
"77406c09f2b4935f"
]
]
},
{
"id": "edf0b36304b14ced",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Nicht Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part2",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"red\",\"shape\":\"dot\",\"text\":\"Error\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 2080,
"wires": [
[
"77406c09f2b4935f"
]
]
},
{
"id": "77406c09f2b4935f",
"type": "function",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Simuliere Secvest Command - Partition 2",
"func": "var newMsg;\nnode.status(msg.status);\nnewMsg = {topic:msg.topic, payload:msg.payload}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1120,
"y": 2060,
"wires": [
[
"de3b72e71c80a313"
]
]
},
{
"id": "b291f001e92e6035",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "part3",
"property": "$random()\t",
"propertyType": "jsonata",
"rules": [
{
"t": "lt",
"v": "0.5",
"vt": "num"
},
{
"t": "gte",
"v": "0.5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 2160,
"wires": [
[
"94e0553e3cd9b288"
],
[
"27712704a9ab0b48"
]
]
},
{
"id": "94e0553e3cd9b288",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"},{\"id\":\"110\",\"name\":\"BW Fen. R.\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part3",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"green\",\"shape\":\"dot\",\"text\":\"OK\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 2140,
"wires": [
[
"a36d2b0336d314d5"
]
]
},
{
"id": "27712704a9ab0b48",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Nicht Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part3",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"red\",\"shape\":\"dot\",\"text\":\"Error\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 2180,
"wires": [
[
"a36d2b0336d314d5"
]
]
},
{
"id": "a36d2b0336d314d5",
"type": "function",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Simuliere Secvest Command - Partition 3",
"func": "var newMsg;\nnode.status(msg.status);\nnewMsg = {topic:msg.topic, payload:msg.payload}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1120,
"y": 2160,
"wires": [
[
"de3b72e71c80a313"
]
]
},
{
"id": "fd85b9e702df0f23",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "part4",
"property": "$random()\t",
"propertyType": "jsonata",
"rules": [
{
"t": "lt",
"v": "0.5",
"vt": "num"
},
{
"t": "gte",
"v": "0.5",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 630,
"y": 2260,
"wires": [
[
"b3e5ed6bd910648d"
],
[
"d6c566a7f673e2bf"
]
]
},
{
"id": "b3e5ed6bd910648d",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"},{\"id\":\"110\",\"name\":\"BW Fen. R.\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part4",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"green\",\"shape\":\"dot\",\"text\":\"OK\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 2240,
"wires": [
[
"dca5caeebd3fa237"
]
]
},
{
"id": "d6c566a7f673e2bf",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Ergebnis Nicht Ok",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "[{\"id\":\"109\",\"name\":\"Kontakt\",\"state\":\"closed\"}]",
"tot": "json"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "part4",
"tot": "str"
},
{
"t": "set",
"p": "status",
"pt": "msg",
"to": "{\"fill\":\"red\",\"shape\":\"dot\",\"text\":\"Error\"}",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 810,
"y": 2280,
"wires": [
[
"dca5caeebd3fa237"
]
]
},
{
"id": "dca5caeebd3fa237",
"type": "function",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "Simuliere Secvest Command - Partition 4",
"func": "var newMsg;\nnode.status(msg.status);\nnewMsg = {topic:msg.topic, payload:msg.payload}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1120,
"y": 2260,
"wires": [
[
"de3b72e71c80a313"
]
]
},
{
"id": "6203be293dd53946",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "",
"rules": [
{
"t": "set",
"p": "next",
"pt": "msg",
"to": "$exists($flowContext(\"Secvest.nextPart\")) ? $flowContext(\"Secvest.nextPart\") : 1\t\t",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 220,
"y": 2100,
"wires": [
[
"77ed707586880c2f"
]
]
},
{
"id": "77ed707586880c2f",
"type": "switch",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "",
"property": "next",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "1",
"vt": "num"
},
{
"t": "eq",
"v": "2",
"vt": "num"
},
{
"t": "eq",
"v": "3",
"vt": "num"
},
{
"t": "eq",
"v": "4",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 430,
"y": 2100,
"wires": [
[
"678dc9ba9d8c785f"
],
[
"50b76a92e1d49815"
],
[
"b291f001e92e6035"
],
[
"fd85b9e702df0f23"
]
]
},
{
"id": "0261bc0c575a8179",
"type": "link in",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "queryPartition",
"links": [],
"x": 95,
"y": 2100,
"wires": [
[
"6203be293dd53946"
]
]
},
{
"id": "c867ec0ddf91ddf0",
"type": "link out",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "queryResponse",
"mode": "return",
"links": [],
"x": 1625,
"y": 2100,
"wires": []
},
{
"id": "bf53714046156c85",
"type": "change",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"name": "",
"rules": [
{
"t": "delete",
"p": "status",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1490,
"y": 2100,
"wires": [
[
"c867ec0ddf91ddf0"
]
]
},
{
"id": "de3b72e71c80a313",
"type": "junction",
"z": "517cd16e4d7e6ae4",
"g": "b7fe5d925d8e97e6",
"x": 1360,
"y": 2100,
"wires": [
[
"bf53714046156c85"
]
]
}
]