I have a use case where I feed a number of "in" nodes for devices of the same type to a subflow. The subflow makes use of msg.topic to learn which device sent the message. I could use a global variable to pass the device name but that is perilous because another instance of the subflow could be created by a different device while the first one is still in progress. Using msg.topic is safer, cleaner and may have uses in other nodes and use cases as well.
I have a use case where I feed a number of "in" nodes for devices of the same type to a subflow. The subflow makes use of msg.topic to learn which device sent the message. I could use a global variable to pass the device name but that is perilous because another instance of the subflow could be created by a different device while the first one is still in progress. Using msg.topic is safer, cleaner and may have uses in other nodes and use cases as well.
Thanks for considering this request.