1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/nodes/examples/sequence/join/02 - Manual join mode.json

1 line
14 KiB
JSON
Raw Permalink Normal View History

2020-06-18 03:41:36 +02:00
[{"id":"7bf47d74.b233b4","type":"comment","z":"65391466.6687ec","name":"Example: Manual Mode","info":"Join node can be used to join payload of messages into single message payload. In manual mode, it can uses number of messages, duration of time, or `msg.complete` property to decide sequence of messages to join. The data format of the join result can also be selected.","x":140,"y":40,"wires":[]},{"id":"7f104f68.aecff","type":"inject","z":"65391466.6687ec","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":200,"y":160,"wires":[["ed0381d3.e25fc"]]},{"id":"ed0381d3.e25fc","type":"template","z":"65391466.6687ec","name":"data","field":"payload","fieldType":"msg","format":"text","syntax":"plain","template":"Apple\nOrange\nBanana\nKiwi","output":"str","x":350,"y":160,"wires":[["12b322b7.78f48d"]]},{"id":"a4f5546e.28b268","type":"join","z":"65391466.6687ec","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":",","joinerType":"str","accumulate":false,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":630,"y":160,"wires":[["e3e636ab.5c5068"]]},{"id":"12b322b7.78f48d","type":"split","z":"65391466.6687ec","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":490,"y":160,"wires":[["a4f5546e.28b268"]]},{"id":"e3e636ab.5c5068","type":"debug","z":"65391466.6687ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":790,"y":160,"wires":[]},{"id":"6a104137.204b3","type":"comment","z":"65391466.6687ec","name":"Join two consecutive messages into single message","info":"","x":270,"y":100,"wires":[]},{"id":"d91412a1.eb2fa","type":"comment","z":"65391466.6687ec","name":"↑ split input text data into messages","info":"","x":580,"y":200,"wires":[]},{"id":"db100cd0.4cfdd","type":"comment","z":"65391466.6687ec","name":"↓ manually join message sequence by ','","info":"","x":740,"y":120,"wires":[]},{"id":"d873311b.ab6f8","type":"inject","z":"65391466.6687ec","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":200,"y":320,"wires":[["854ae07c.1b88f"]]},{"id":"854ae07c.1b88f","type":"template","z":"65391466.6687ec","name":"data","field":"payload","fieldType":"msg","format":"text","syntax":"plain","template":"Apple\nOrange\nBanana\nKiwi","output":"str","x":350,"y":320,"wires":[["4da6db2a.a610f4"]]},{"id":"5c158c02.fcd224","type":"join","z":"65391466.6687ec","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":",","joinerType":"str","accumulate":false,"timeout":"2","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":790,"y":320,"wires":[["659414e8.e901fc"]]},{"id":"4da6db2a.a610f4","type":"split","z":"65391466.6687ec","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":490,"y":320,"wires":[["8e4f1c67.cdac4"]]},{"id":"659414e8.e901fc","type":"debug","z":"65391466.6687ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":950,"y":320,"wires":[]},{"id":"c002f9d0.a04128","type":"comment","z":"65391466.6687ec","name":"Join messages received within specified time range into single message","info":"","x":330,"y":260,"wires":[]},{"id":"3b62f93e.ad2af6","type":"comment","z":"65391466.6687ec","name":"↑ split input text data into messages","info":"","x":580,"y":360,"wires":[]},{"id":"db741240.4d6a1","type":"comment","z":"65391466.6687ec","name":"↓ manually join message received withn 2 secs","info":"","x":920,"y":280,"wires":[]},{"id":"8e4f1c67.cdac4","type":"delay","z":"65391466.6687ec","name":"","pauseType":"rate","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":650,"y":320,"wires":[["5c158c02.fcd22