I tested four combinations:
- msg structure (payload, delay and data) different data and 'extend delay on'
- msg structure (payload, delay and data) different data and 'extend delay off'
- msg structure (payload, delay, data and first or second) different data and 'extend delay on'
- msg structure (payload, delay, data and first or second) different data and 'extend delay off'
case 1 and 2 msgs:
case 1 result:
here you can see that the output of the trigger
node has msg.payload from the first msg and the rest of the msg is from the second msg.
case 2 result:
here you can see that the output of the trigger
node is the data the first msg
case 3 and 4 msgs:
case 3 result:
Here again you can see that only the payload comes from the first msg
case 4 result:
and here again you can see that this is all from the first msg
Conclusion - If Extend delay
is on, the second msg is sent with the payload from the first msg.
Here is the flow if you want to see yourself
[{"id":"3789b84d0eafb22a","type":"tab","label":"\"Extend delay\" test","disabled":false,"info":"","env":[],"_mcu":{"mcu":false}},{"id":"f818ef9d97ea4587","type":"trigger","z":"3789b84d0eafb22a","name":"extend delay on","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"3","extend":true,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"_mcu":{"mcu":false},"x":380,"y":160,"wires":[["752455121767ecb5"]]},{"id":"752455121767ecb5","type":"debug","z":"3789b84d0eafb22a","name":"same msg - delay on","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":620,"y":160,"wires":[]},{"id":"2102e04e2e0d0561","type":"debug","z":"3789b84d0eafb22a","name":"first msg parts same diff content","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":430,"y":120,"wires":[]},{"id":"8d2f9e925b836029","type":"debug","z":"3789b84d0eafb22a","name":"second msg parts same diff content","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":450,"y":240,"wires":[]},{"id":"ea08c63f09100ca5","type":"trigger","z":"3789b84d0eafb22a","name":"extended delay off","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"3","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"_mcu":{"mcu":false},"x":390,"y":200,"wires":[["ea322209d5de4bb0"]]},{"id":"ea322209d5de4bb0","type":"debug","z":"3789b84d0eafb22a","name":"same msg - delay off","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":620,"y":200,"wires":[]},{"id":"3843e4ac32474fc6","type":"inject","z":"3789b84d0eafb22a","name":"","props":[{"p":"payload"},{"p":"delay","v":"10000","vt":"str"},{"p":"data","v":"special_data_for_flow","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"original_msg","payloadType":"str","_mcu":{"mcu":false},"x":150,"y":160,"wires":[["f818ef9d97ea4587","2102e04e2e0d0561","ea08c63f09100ca5"]]},{"id":"a3d5e2e9e2cd7278","type":"inject","z":"3789b84d0eafb22a","name":"","props":[{"p":"payload"},{"p":"delay","v":"5000","vt":"str"},{"p":"data","v":"delay_reduced","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"second_msg","payloadType":"str","_mcu":{"mcu":false},"x":150,"y":200,"wires":[["f818ef9d97ea4587","8d2f9e925b836029","ea08c63f09100ca5"]]},{"id":"6f05288e13b2d80c","type":"comment","z":"3789b84d0eafb22a","name":"The injects have different msg parts","info":"","_mcu":{"mcu":false},"x":200,"y":340,"wires":[]},{"id":"91af1d89b3efc924","type":"comment","z":"3789b84d0eafb22a","name":"The injects have the same msg parts","info":"","_mcu":{"mcu":false},"x":220,"y":40,"wires":[]},{"id":"83c95bf835bbe623","type":"trigger","z":"3789b84d0eafb22a","name":"extended delay off","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"3","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"_mcu":{"mcu":false},"x":390,"y":420,"wires":[["3c0d1f8d78036980"]]},{"id":"9a2b52bc92379630","type":"inject","z":"3789b84d0eafb22a","name":"","props":[{"p":"payload"},{"p":"delay","v":"10000","vt":"str"},{"p":"data","v":"special_data_for_flow","vt":"str"},{"p":"first","v":"only in first msg","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"original_msg","payloadType":"str","_mcu":{"mcu":false},"x":150,"y":420,"wires":[["83c95bf835bbe623","47d866e599c5438a","56f43b85f515a63d"]]},{"id":"54dbc0708b406f58","type":"inject","z":"3789b84d0eafb22a","name":"","props":[{"p":"payload"},{"p":"delay","v":"5000","vt":"str"},{"p":"data","v":"delay_reduced","vt":"str"},{"p":"second","v":"only in second msg","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"second_msg","payloadType":"str","_mcu":{"mcu":false},"x":150,"y":460,"wires":[["83c95bf835bbe623","cde1074f2fd6f82f","56f43b85f515a63d"]]},{"id":"3c0d1f8d78036980","type":"debug","z":"3789b84d0eafb22a","name":"different msg - delay off","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":630,"y":420,"wires":[]},{"id":"47d866e599c5438a","type":"debug","z":"3789b84d0eafb22a","name":"first msg parts diff + diff content","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":430,"y":380,"wires":[]},{"id":"cde1074f2fd6f82f","type":"debug","z":"3789b84d0eafb22a","name":"second msg parts diff + diff content","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":440,"y":500,"wires":[]},{"id":"56f43b85f515a63d","type":"trigger","z":"3789b84d0eafb22a","name":"Extended delay on","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"3","extend":true,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"_mcu":{"mcu":false},"x":390,"y":460,"wires":[["0c93699c0c24ca2f"]]},{"id":"0c93699c0c24ca2f","type":"debug","z":"3789b84d0eafb22a","name":"different msg - delay on","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","_mcu":{"mcu":false},"x":630,"y":460,"wires":[]}]