Most probably there are a lot of limitations to be considered - yet this case shall work properly. Could you please post a flow - here or in the repo - showing the (un)expected result?
EDIT: In this simple flow, it looks ok...
[
{
"id": "c5e012d304fa9a01",
"type": "tab",
"label": "Flow 12",
"disabled": false,
"info": "",
"env": [],
"_mcu": {
"mcu": false
}
},
{
"id": "dd694be9de50fd6c",
"type": "context-monitor",
"z": "c5e012d304fa9a01",
"name": "",
"monitoring": [
{
"scope": "flow",
"flow": ".",
"key": "test.a"
}
],
"tostatus": false,
"_mcu": {
"mcu": false
},
"x": 290,
"y": 300,
"wires": [
[
"17824ae8f3e034a5"
],
[]
]
},
{
"id": "d9931bc2496bdce7",
"type": "inject",
"z": "c5e012d304fa9a01",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"_mcu": {
"mcu": false
},
"x": 160,
"y": 80,
"wires": [
[
"760a9856d1d1a96d"
]
]
},
{
"id": "760a9856d1d1a96d",
"type": "function",
"z": "c5e012d304fa9a01",
"name": "reset flow.test",
"func": "let xxx = {\n a: 15,\n b: \"test\"\n}\n\nflow.set(\"test\", xxx);\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"_mcu": {
"mcu": false
},
"x": 340,
"y": 80,
"wires": [
[]
]
},
{
"id": "98f93a115ae8e8c9",
"type": "change",
"z": "c5e012d304fa9a01",
"name": "",
"rules": [
{
"t": "set",
"p": "test.a",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"_mcu": {
"mcu": false
},
"x": 500,
"y": 160,
"wires": [
[
"42de36d2c809e08b"
]
]
},
{
"id": "42de36d2c809e08b",
"type": "debug",
"z": "c5e012d304fa9a01",
"name": "debug 15",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"_mcu": {
"mcu": false
},
"x": 720,
"y": 160,
"wires": []
},
{
"id": "17824ae8f3e034a5",
"type": "debug",
"z": "c5e012d304fa9a01",
"name": "debug 16",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"_mcu": {
"mcu": false
},
"x": 460,
"y": 280,
"wires": []
},
{
"id": "59e96b346835dc3a",
"type": "context-monitor",
"z": "c5e012d304fa9a01",
"name": "",
"monitoring": [
{
"scope": "flow",
"flow": ".",
"key": "test"
}
],
"tostatus": false,
"_mcu": {
"mcu": false
},
"x": 290,
"y": 360,
"wires": [
[
"a80fe6d8c38808a1"
],
[]
]
},
{
"id": "a80fe6d8c38808a1",
"type": "debug",
"z": "c5e012d304fa9a01",
"name": "debug 17",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"_mcu": {
"mcu": false
},
"x": 460,
"y": 360,
"wires": []
},
{
"id": "5d76c2c8d547b519",
"type": "inject",
"z": "c5e012d304fa9a01",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"_mcu": {
"mcu": false
},
"x": 300,
"y": 160,
"wires": [
[
"98f93a115ae8e8c9"
]
]
},
{
"id": "3237488ce24b2d72",
"type": "change",
"z": "c5e012d304fa9a01",
"name": "",
"rules": [
{
"t": "set",
"p": "test[\"a\"]",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"_mcu": {
"mcu": false
},
"x": 510,
"y": 220,
"wires": [
[
"42de36d2c809e08b"
]
]
},
{
"id": "a935be1de6642c19",
"type": "inject",
"z": "c5e012d304fa9a01",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"_mcu": {
"mcu": false
},
"x": 300,
"y": 220,
"wires": [
[
"3237488ce24b2d72"
]
]
},
{
"id": "30e214afba5e7bc1",
"type": "context-monitor",
"z": "c5e012d304fa9a01",
"name": "",
"monitoring": [
{
"scope": "flow",
"flow": ".",
"key": "test[\"a\"]"
}
],
"tostatus": false,
"_mcu": {
"mcu": false
},
"x": 290,
"y": 420,
"wires": [
[
"642937c8fe1695db"
],
[]
]
},
{
"id": "642937c8fe1695db",
"type": "debug",
"z": "c5e012d304fa9a01",
"name": "debug 18",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"_mcu": {
"mcu": false
},
"x": 460,
"y": 420,
"wires": []
},
{
"id": "20605ecc47fd7947",
"type": "tab",
"label": "Flow 13",
"disabled": false,
"info": "",
"env": [],
"_mcu": {
"mcu": false
}
},
{
"id": "98377b416ec58abc",
"type": "debug",
"z": "20605ecc47fd7947",
"name": "debug 19",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"_mcu": {
"mcu": false
},
"x": 340,
"y": 100,
"wires": []
},
{
"id": "dfd7df81b4808338",
"type": "context-monitor",
"z": "20605ecc47fd7947",
"name": "",
"monitoring": [
{
"scope": "flow",
"key": "test.a",
"flow_label": "Flow 12",
"flow": "c5e012d304fa9a01"
}
],
"tostatus": false,
"_mcu": {
"mcu": false
},
"x": 170,
"y": 140,
"wires": [
[
"98377b416ec58abc"
],
[]
]
},
{
"id": "ad86d35daba68d9b",
"type": "global-config",
"env": [],
"modules": {
"@ralphwetzel/node-red-context-monitor": "2.0.0"
}
}
]