First of all I am running 0.16.2 (running on Jessie raspberry pi)
I have a flow that has a change node where I set a property on the flow context.
This doesn't appear to be getting set (as far as I can tell). To test it I have a function right after the change node that sets msg.flow to the flow object, then a debug node which dumps the entire msg. Basically like this:
[
{
"id": "4a64d7ea.ffaa88",
"type": "inject",
"z": "2de8ef9b.ec8fe",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"x": 136.5,
"y": 129.5,
"wires": [
[
"72e38345.25e72c"
]
]
},
{
"id": "72e38345.25e72c",
"type": "change",
"z": "2de8ef9b.ec8fe",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "flow",
"to": "whatever",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 317.5,
"y": 134.5,
"wires": [
[
"ae3819fa.1cb0a8"
]
]
},
{
"id": "ae3819fa.1cb0a8",
"type": "function",
"z": "2de8ef9b.ec8fe",
"name": "get flow",
"func": "msg.payload = flow.payload\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 556.5,
"y": 161.5,
"wires": [
[
"c5119dd5.5fe09"
]
]
},
{
"id": "c5119dd5.5fe09",
"type": "debug",
"z": "2de8ef9b.ec8fe",
"name": "",
"active": true,
"console": "false",
"complete": "true",
"x": 645.5,
"y": 238,
"wires": []
}
]
Any ideas?