I have this simple function which I use to initialise two variables in context:
// Manually set context variables context.set("lastTemp", 22); context.set("status", 0); msg.payload = "Context variables initialized: lastTemp is 22, status is 0"; return msg;
After injecting the function I would expect to see those values in context. I don't. I refreshed the context and the browser but still no values are show.
I am not sure why. I do not get any error and the confirmation message show up from the debug node.
However the flow is thereafter acting like those values exists because it is working as expected.