@gregoriusrippenstein/erlang-red-unittest 0.20.2 → 0.21.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/README.md +4 -2
  2. package/examples/.core/support JS hash naming in variable access.json +1 -0
  3. package/examples/.elixir/support basic module code.json +1 -0
  4. package/examples/.jsonata/$privdir operator.json +1 -0
  5. package/examples/.jsonata/$replace should be working for newlines.json +1 -0
  6. package/examples/.jsonata/$type operator.json +1 -0
  7. package/examples/.jsonata/ensure that $millis() works.json +1 -0
  8. package/examples/.jsonata/non-string key names.json +1 -0
  9. package/examples/.jsonata/split function.json +1 -0
  10. package/examples/.jsonata/support array definition.json +1 -0
  11. package/examples/assert values/ignores failures if requested and boolean not-equal test.json +1 -0
  12. package/examples/batch/basic behaviour.json +1 -0
  13. package/examples/binary/initial test.json +1 -0
  14. package/examples/binary/parse PNG image data.json +1 -0
  15. package/examples/captureio/Capture io from function node.json +1 -0
  16. package/examples/captureio/Mutliple captures.json +1 -0
  17. package/examples/captureio/capture io from gen_server behaviour.json +1 -0
  18. package/examples/captureio/collect io from event handlers.json +1 -0
  19. package/examples/captureio/collect io from state machine node.json +1 -0
  20. package/examples/catch/catch all exceptions in a single group.json +1 -0
  21. package/examples/catch/catch all in group except those handler elsewhere.json +1 -0
  22. package/examples/catch/deal with it yourself.json +1 -0
  23. package/examples/catch/don't catch if the node isn't selected.json +1 -0
  24. package/examples/change/debug message if no catch node.json +1 -0
  25. package/examples/change/set functionality.json +1 -0
  26. package/examples/change/support buffer type.json +1 -0
  27. package/examples/change/support num types.json +1 -0
  28. package/examples/change/support underscores in binary, hex & octal values.json +1 -0
  29. package/examples/clientcode/Client code node test.json +1 -0
  30. package/examples/complete/avoid endless recursion.json +1 -0
  31. package/examples/complete/avoid recursion - test case 2.json +1 -0
  32. package/examples/complete/its complete nodes all the way down.json +1 -0
  33. package/examples/complete/split node.json +1 -0
  34. package/examples/complete/when is a join complete.json +1 -0
  35. package/examples/csv-decode/comma separated, parse numbers & msg per row.json +1 -0
  36. package/examples/csv-decode/separators other than comma.json +1 -0
  37. package/examples/csv-decode/single message for entire CSV, comma, RFC4180.json +1 -0
  38. package/examples/csv-decode/single message per line.json +1 -0
  39. package/examples/csv-decode/skip line happens before parsing content.json +1 -0
  40. package/examples/csv-encode/line termination and separator.json +1 -0
  41. package/examples/csv-encode/simple object.json +1 -0
  42. package/examples/debug/Jsonata expressions in output field.json +1 -0
  43. package/examples/debug/ensure debug messages are generated.json +1 -0
  44. package/examples/debug/handle largish json files as content.json +1 -0
  45. package/examples/debug/only debug specific property.json +1 -0
  46. package/examples/debug/status message counter.json +1 -0
  47. package/examples/debug/type hadling of JSONata results (ered).json +1 -0
  48. package/examples/debug/type hadling of JSONata results (node-red).json +1 -0
  49. package/examples/delay/delay messages by 5 seconds.json +1 -0
  50. package/examples/delay/delay multiple message for the same length of time.json +1 -0
  51. package/examples/delay/need to provide a status message of queue size.json +1 -0
  52. package/examples/delay/respect the reset flag and dont pass on the reset msg.json +1 -0
  53. package/examples/eventhandler/handle kill exits.json +1 -0
  54. package/examples/eventhandler/handle normal exits.json +1 -0
  55. package/examples/eventhandler/multiple dynamic event handlers.json +1 -0
  56. package/examples/eventhandler/register and unregister handler.json +1 -0
  57. package/examples/eventhandler/static configuration.json +1 -0
  58. package/examples/eventhandler/static handler with arguments.json +1 -0
  59. package/examples/eventhandler/static handler: multiple instances.json +1 -0
  60. package/examples/eventhandler/used with a supervisor node.json +1 -0
  61. package/examples/exec/async with noisy command.json +1 -0
  62. package/examples/exec/empty commands are not supported.json +1 -0
  63. package/examples/exec/generate complete msg once command is done.json +1 -0
  64. package/examples/exec/handle multiple process at once (ered).json +1 -0
  65. package/examples/exec/handle multiple process at once (nred).json +1 -0
  66. package/examples/exec/support timeout specification (ered).json +1 -0
  67. package/examples/exec/support timeout specification (nred).json +1 -0
  68. package/examples/exec/synchronised execution (ered).json +1 -0
  69. package/examples/exec/synchronised execution (nred).json +1 -0
  70. package/examples/file in/basic functionality of being able to read a file.json +1 -0
  71. package/examples/file in/error when file not found.json +1 -0
  72. package/examples/file in/warning if no file name is defined.json +1 -0
  73. package/examples/file in/will accept file name from msg obj.json +1 -0
  74. package/examples/filter/ignore initial value per topic.json +1 -0
  75. package/examples/filter/ignore initial value.json +1 -0
  76. package/examples/filter/post if value changed.json +1 -0
  77. package/examples/flowhubpull/retrieve flow id.json +1 -0
  78. package/examples/function/divide by zero throws kills node.json +1 -0
  79. package/examples/function/ensure /"on stop/" code is executed.json" +1 -0
  80. package/examples/function/function and module work together.json +1 -0
  81. package/examples/function/handle corrupt code.json +1 -0
  82. package/examples/function/return values are important.json +1 -0
  83. package/examples/function/set node context.json +1 -0
  84. package/examples/function/speaks Erlang.json +1 -0
  85. package/examples/function/supervisor interaction.json +1 -0
  86. package/examples/function/support multiple outputs.json +1 -0
  87. package/examples/function/support not returning a message.json +1 -0
  88. package/examples/function/support timeout setting.json +1 -0
  89. package/examples/function/supports completed node.json +1 -0
  90. package/examples/genserver/addressing modules.json +1 -0
  91. package/examples/genserver/triggering functionality.json +1 -0
  92. package/examples/http/Dynamic Routing.json +1 -0
  93. package/examples/http/POST & GET have different endpoints.json +1 -0
  94. package/examples/http/dynamic redirect.json +1 -0
  95. package/examples/http/have params in the path.json +1 -0
  96. package/examples/http/http static routing.json +1 -0
  97. package/examples/http/multiple endpoints don't all get the request.json +1 -0
  98. package/examples/http/nodes should be able to handle requests.json +1 -0
  99. package/examples/http/post requests - json content.json +1 -0
  100. package/examples/http/request parses JSON conent.json +1 -0
  101. package/examples/http/request, ensure url and method are handled.json +1 -0
  102. package/examples/http/set content type.json +1 -0
  103. package/examples/http/support query string on get request.json +1 -0
  104. package/examples/inject/repeat interval.json +1 -0
  105. package/examples/inject/support octal, binary & hex underscore values.json +1 -0
  106. package/examples/inject/trigger after - does not trigger.json +1 -0
  107. package/examples/inject/unsupported JSONata function.json +1 -0
  108. package/examples/join/manual config with count & nested property name.json +1 -0
  109. package/examples/json/parse example json content.json +1 -0
  110. package/examples/json/raise exception if content not valid.json +1 -0
  111. package/examples/json/support prettify json content.json +1 -0
  112. package/examples/link nodes/across flow tabs.json +1 -0
  113. package/examples/link nodes/cascading link calls.json +1 -0
  114. package/examples/markdown/allow for inline html.json +1 -0
  115. package/examples/markdown/convert markdown to html.json +1 -0
  116. package/examples/markdown/support code block.json +1 -0
  117. package/examples/module/Using with Statemachine.json +1 -0
  118. package/examples/module/Using with function node.json +1 -0
  119. package/examples/mqtt/auto-(re)connect.json +1 -0
  120. package/examples/noop/Noop node will error out.json +1 -0
  121. package/examples/process/Can send messages.json +1 -0
  122. package/examples/range/basic examples.json +1 -0
  123. package/examples/split/Array type.json +1 -0
  124. package/examples/split/binary type.json +1 -0
  125. package/examples/split/using strings and buffers.json +1 -0
  126. package/examples/split/work with binary data as string data (ered).json +1 -0
  127. package/examples/split/work with binary data as string data (nred).json +1 -0
  128. package/examples/statemachine/Representing gen_statem in Erlang-Red.json +1 -0
  129. package/examples/statemachine/combined with supervisor.json +1 -0
  130. package/examples/statemachine/exception if no action to perform.json +1 -0
  131. package/examples/status/basic working version.json +1 -0
  132. package/examples/status/only one message per status value.json +1 -0
  133. package/examples/status/source map inside the status map.json +1 -0
  134. package/examples/supervisor/inform user if config needs updating.json +1 -0
  135. package/examples/supervisor/multiple individual supervisors.json +1 -0
  136. package/examples/supervisor/order defined by Y coordinate..json +1 -0
  137. package/examples/supervisor/restart after exit call.json +1 -0
  138. package/examples/supervisor/supervising two function nodes.json +1 -0
  139. package/examples/supervisor/supervisor loops.json +1 -0
  140. package/examples/supervisor/supervisor of supervisor of supervisor of .....json +1 -0
  141. package/examples/supervisor/supervisor told to stop.json +1 -0
  142. package/examples/supervisor/supervisor tree.json +1 -0
  143. package/examples/supervisor/two supervisors cannot supervise the same nodes.json +1 -0
  144. package/examples/supervisor/unsupported configrations.json +1 -0
  145. package/examples/switch/JSONata undefined value & exceptions.json +1 -0
  146. package/examples/switch/post debug on JSONata exception.json +1 -0
  147. package/examples/switch/raise exception if JSONata has exception.json +1 -0
  148. package/examples/tcp/Bad value on output port (3425).json +1 -0
  149. package/examples/tcp/multiple tcp in connectors (1194).json +1 -0
  150. package/examples/tcp/request node - disconnect immediately (1001).json +1 -0
  151. package/examples/tcp/tcp-out node in reply mode (1202).json +1 -0
  152. package/examples/tcp/transfer string between nodes (1201).json +1 -0
  153. package/examples/template/handle base64 encoded data.json +1 -0
  154. package/examples/template/support mustache template.json +1 -0
  155. package/examples/trigger/initial example.json +1 -0
  156. package/nodes/ut-assert-debug.js +305 -19
  157. package/nodes/ut-assert-values.js +179 -161
  158. package/package.json +3 -2
  159. package/plugins/sidebar.html +99 -55
  160. package/priv/testdata/helloworld.txt +1 -0
  161. package/{examples/9e7ccc97f80d9afb/flows.json → priv/testdata/test.json} +53 -20
  162. package/examples/069552b2eb6bce48/flows.json +0 -265
  163. package/examples/08183069b5f8ef9c/flows.json +0 -156
  164. package/examples/084fb0fc954b7156/flows.json +0 -132
  165. package/examples/090eb2d5d71fd45f/flows.json +0 -158
  166. package/examples/0c35d269ca7178c6/flows.json +0 -443
  167. package/examples/0cc95e44532c14ec/flows.json +0 -94
  168. package/examples/0e54563ba63b1501/flows.json +0 -1
  169. package/examples/16b0bc0cdb0c5807/flows.json +0 -1
  170. package/examples/16b254125478329a/flows.json +0 -114
  171. package/examples/182731f54d855071/flows.json +0 -52
  172. package/examples/1ace9e051618db79/flows.json +0 -125
  173. package/examples/1c1d2cb981cf9f01/flows.json +0 -120
  174. package/examples/1db9c9a1b92e0263/flows.json +0 -172
  175. package/examples/20eeaf41372f7b17/flows.json +0 -62
  176. package/examples/27804627fb8f56bd/flows.json +0 -178
  177. package/examples/2a2c508260b96236/flows.json +0 -141
  178. package/examples/34f859d75b76d03c/flows.json +0 -200
  179. package/examples/36846ad6698e1bc0/flows.json +0 -163
  180. package/examples/3be6bc074c7647bd/flows.json +0 -319
  181. package/examples/44f12f6e4a455084/flows.json +0 -272
  182. package/examples/45209c67f865ce73/flows.json +0 -1
  183. package/examples/4657dbc0aa4a97bb/flows.json +0 -268
  184. package/examples/47514a335b4cd67e/flows.json +0 -362
  185. package/examples/486c1412721bb241/flows.json +0 -525
  186. package/examples/51bfa9456b1745c0/flows.json +0 -639
  187. package/examples/538be5947c639b32/flows.json +0 -75
  188. package/examples/545871d31c3f5f3f/flows.json +0 -376
  189. package/examples/55f105cfd894b06c/flows.json +0 -121
  190. package/examples/57d44c342a1f00e2/flows.json +0 -1
  191. package/examples/597ee2a683d9908f/flows.json +0 -129
  192. package/examples/59da63b5adb460db/flows.json +0 -188
  193. package/examples/61142eb3e4e54eab/flows.json +0 -536
  194. package/examples/64445798b59d2630/flows.json +0 -257
  195. package/examples/6d46e3fe1f2245b8/flows.json +0 -86
  196. package/examples/6dd3a5754f83dc2e/flows.json +0 -232
  197. package/examples/6ff45e2a0ce77393/flows.json +0 -131
  198. package/examples/700c94899fdd3334/flows.json +0 -107
  199. package/examples/7581c2be261f9c17/flows.json +0 -1874
  200. package/examples/7ecfd18f58fc6510/flows.json +0 -1
  201. package/examples/7fea9696f6186962/flows.json +0 -141
  202. package/examples/80655e5d4035fa71/flows.json +0 -215
  203. package/examples/8421f37b6c40e1ec/flows.json +0 -1
  204. package/examples/866410b56fa42447/flows.json +0 -1076
  205. package/examples/89aeaeef64509bed/flows.json +0 -101
  206. package/examples/8a627c9bfe3b4aff/flows.json +0 -552
  207. package/examples/96f6f83dcab507e5/flows.json +0 -105
  208. package/examples/9746601768c3b3b6/flows.json +0 -93
  209. package/examples/9942fa1aeb1b2428/flows.json +0 -2346
  210. package/examples/9b1023c95a2613cc/flows.json +0 -141
  211. package/examples/9d11bfc3a6d88535/flows.json +0 -301
  212. package/examples/9f0d6c3ad7798a77/flows.json +0 -142
  213. package/examples/9f7351d7a7304584/flows.json +0 -83
  214. package/examples/a123cd431f1967cd/flows.json +0 -1757
  215. package/examples/a4c9cabf4b335488/flows.json +0 -86
  216. package/examples/a916165378c446e3/flows.json +0 -240
  217. package/examples/ae38b2dbd23d1681/flows.json +0 -3089
  218. package/examples/ae8a9b0bbbaff447/flows.json +0 -271
  219. package/examples/b07b511dc8bb8339/flows.json +0 -92
  220. package/examples/b1501de32c769cf2/flows.json +0 -94
  221. package/examples/b5fbcdbffb568569/flows.json +0 -1
  222. package/examples/b723353a316fa50e/flows.json +0 -1
  223. package/examples/b864b3e3510cd120/flows.json +0 -205
  224. package/examples/bdbe94d065f3b3a6/flows.json +0 -143
  225. package/examples/bfced61e72c69715/flows.json +0 -616
  226. package/examples/c0b1cf6656eac77f/flows.json +0 -518
  227. package/examples/c381b5135cc947cd/flows.json +0 -272
  228. package/examples/c4690c0a085d6ef5/flows.json +0 -145
  229. package/examples/c5f513bc380bc30a/flows.json +0 -696
  230. package/examples/cfa8595b2e2b8269/flows.json +0 -255
  231. package/examples/d17fb2553fe8013a/flows.json +0 -157
  232. package/examples/d61182e87a604efa/flows.json +0 -340
  233. package/examples/eb24c92ce5621760/flows.json +0 -141
  234. package/examples/eb447048178f6e16/flows.json +0 -201
  235. package/examples/eed68dbcecd1431f/flows.json +0 -204
  236. package/examples/ef61f644d5436dbe/flows.json +0 -1
  237. package/examples/f19fdae0c02b4f03/flows.json +0 -1008
  238. package/examples/f2f61ec9fc46a468/flows.json +0 -575
  239. package/examples/f346d45c81f595e5/flows.json +0 -501
  240. package/examples/f38603a59963386c/flows.json +0 -1
  241. package/examples/f5f82ca50317fda7/flows.json +0 -121
  242. package/examples/f946aafaebb1398d/flows.json +0 -135
  243. package/examples/f94db507552f4934/flows.json +0 -165
  244. package/examples/fb50bac16667fc54/flows.json +0 -364
  245. /package/examples/{684b9066e98b9722/flows.json → .core/Disabled node should not be sent messages.json} +0 -0
  246. /package/examples/{7b77600dcf78933f/flows.json → .core/attribute parsing.json} +0 -0
  247. /package/examples/{93c6e969dcf84e70/flows.json → .core/ensure that message ids don't change.json} +0 -0
  248. /package/examples/{d206746f9f2594a6/flows.json → .jsonata/$match operator.json} +0 -0
  249. /package/examples/{37883612d913fd66/flows.json → .jsonata/$not operator.json} +0 -0
  250. /package/examples/{caccb020fce3f485/flows.json → .jsonata/$pad function.json} +0 -0
  251. /package/examples/{a862ae412a70ded1/flows.json → .jsonata/$substring functionality.json} +0 -0
  252. /package/examples/{0b299a3175fc0df1/flows.json → .jsonata/array indexing both forwards and backwards.json} +0 -0
  253. /package/examples/{2037454a5ee0d6c3/flows.json → .jsonata/basic support for JSONata.json} +0 -0
  254. /package/examples/{3e9e526b992d4c48/flows.json → .jsonata/ensure random is seeded.json} +0 -0
  255. /package/examples/{e7184b7ca4f07907/flows.json → .jsonata/sum arrays of objects.json} +0 -0
  256. /package/examples/{218350f2e240a15d/flows.json → .jsonata/support $keys function.json} +0 -0
  257. /package/examples/{b50f775ae3b74d38/flows.json → .jsonata/testing the modulo operator.json} +0 -0
  258. /package/examples/{1658196c31549916/flows.json → batch/batch until batch is full.json} +0 -0
  259. /package/examples/{c843dacf753a19d8/flows.json → batch/ensure batch size of 1 works.json} +0 -0
  260. /package/examples/{9a1bdfdcd7b2be8e/flows.json → batch/performance.json} +0 -0
  261. /package/examples/{538d2f4704cd2eca/flows.json → catch/ensure source is inside error map.json} +0 -0
  262. /package/examples/{6a9ffd45c418497b/flows.json → catch/file not found exception.json} +0 -0
  263. /package/examples/{71f65246c742cfc9/flows.json → catch/multiple nodes in one flow is possible.json} +0 -0
  264. /package/examples/{ed621e03921c13de/flows.json → catch/uncaught catch - part 2 - work.json} +0 -0
  265. /package/examples/{f5bdafa844f6d280/flows.json → catch/uncaught catches.json} +0 -0
  266. /package/examples/{9c51a179141515b2/flows.json → change/change functionality.json} +0 -0
  267. /package/examples/{ea246f68766c8630/flows.json → change/delete functionality.json} +0 -0
  268. /package/examples/{30465efe017cc9b0/flows.json → change/delete nested keys.json} +0 -0
  269. /package/examples/{ced70c769db825eb/flows.json → change/ensure rules are expected in order.json} +0 -0
  270. /package/examples/{7dae2b1a7881c607/flows.json → change/move functionality.json} +0 -0
  271. /package/examples/{92054e0dd22f14c6/flows.json → change/raises an exception if JSONata has exception.json} +0 -0
  272. /package/examples/{b85795a24882502b/flows.json → change/set support nested properties.json} +0 -0
  273. /package/examples/{c28048d859db3773/flows.json → change/support boolean types.json} +0 -0
  274. /package/examples/{12572f9ac11e1786/flows.json → change/support json values in the set.json} +0 -0
  275. /package/examples/{def45a46c8f4da72/flows.json → change/support nested array indicies - setting & getting & deleting.json} +0 -0
  276. /package/examples/{0cb8971e5f88ed1e/flows.json → change/support nested keys on the set operation.json} +0 -0
  277. /package/examples/{48d9fdcde317974e/flows.json → change/support timestamp type.json} +0 -0
  278. /package/examples/{1bac0a78e0a36ec0/flows.json → comment/what is there to test-.json} +0 -0
  279. /package/examples/{b9cd19107a5145c4/flows.json → complete/disabled nodes don't receive.json} +0 -0
  280. /package/examples/{5e07acf2da13b504/flows.json → complete/ensure the altered msg object is sent.json} +0 -0
  281. /package/examples/{01b074cfa6ae8818/flows.json → complete/link nodes.json} +0 -0
  282. /package/examples/{cd44a688eb2ab3cf/flows.json → complete/messags from unconnected inject.json} +0 -0
  283. /package/examples/{30c79fc42a5c35eb/flows.json → complete/only handle messages from listened to nodes.json} +0 -0
  284. /package/examples/{f8727464c799eb22/flows.json → complete/switch node isn't compatible with complete.json} +0 -0
  285. /package/examples/{b2a67e301fabab0e/flows.json → debug/handle the button press to active and deactive debug output.json} +0 -0
  286. /package/examples/{a6dc7002d0a8640e/flows.json → debug/if not active, no debug message in panel.json} +0 -0
  287. /package/examples/{b1463d7bbf545725/flows.json → debug/inactive debug nodes still count messages.json} +0 -0
  288. /package/examples/{5a06352874fa379d/flows.json → debug/only send debug message to server console if asked to.json} +0 -0
  289. /package/examples/{c1370220fd37968e/flows.json → delay/ignore msg.delay if its not set.json} +0 -0
  290. /package/examples/{d17062b01c4a9435/flows.json → delay/random between two values.json} +0 -0
  291. /package/examples/{3ea113b4ec3b6e5e/flows.json → delay/set delay via msg.delay.json} +0 -0
  292. /package/examples/{e2a801d2b3e2143f/flows.json → exec/add payload and append arguments.json} +0 -0
  293. /package/examples/{b98d0b05a760ad79/flows.json → exec/execute simple command.json} +0 -0
  294. /package/examples/{6ea4c6b373eeaa8d/flows.json → filter/narrowband no topic.json} +0 -0
  295. /package/examples/{cef9dd7dc179b8b3/flows.json → filter/value differ by topic.json} +0 -0
  296. /package/examples/{b2fcc5806b2715c0/flows.json → inject/JSONata undefined value & exceptions.json} +0 -0
  297. /package/examples/{09aab59a2455cf15/flows.json → inject/Payload, topic and fubar set on inject.json} +0 -0
  298. /package/examples/{8180ae5891c673de/flows.json → inject/ensure that topic is set correctly.json} +0 -0
  299. /package/examples/{1eb35963b752eca9/flows.json → inject/json support for properties other than payload.json} +0 -0
  300. /package/examples/{61847d719e50f83f/flows.json → inject/jsonata support for both payload and other properties.json} +0 -0
  301. /package/examples/{459322e0f8e0b785/flows.json → inject/nested hash & array support.json} +0 -0
  302. /package/examples/{c163c627bd2a37c7/flows.json → inject/support boolean type.json} +0 -0
  303. /package/examples/{7e1d04570c6bdff9/flows.json → inject/support jsonata for topic values.json} +0 -0
  304. /package/examples/{1a196bce3e57f5c1/flows.json → inject/support nested property names.json} +0 -0
  305. /package/examples/{2a12af161b544aa1/flows.json → inject/support num types.json} +0 -0
  306. /package/examples/{ec921769b3c24fb6/flows.json → inject/support the msg property type.json} +0 -0
  307. /package/examples/{9ff2e8ab21d922c5/flows.json → inject/trigger once - default value.json} +0 -0
  308. /package/examples/{1d3326a724ecbea0/flows.json → join/automatic mode.json} +0 -0
  309. /package/examples/{24f35eaa8656755f/flows.json → join/count overrides parts, complete overrides count.json} +0 -0
  310. /package/examples/{987cd33b9cda8529/flows.json → join/manual configration with count and property name.json} +0 -0
  311. /package/examples/{50d5679818477b66/flows.json → join/manual configuration counting messages.json} +0 -0
  312. /package/examples/{894f6e38bfd1aca6/flows.json → join/remove parts once matched.json} +0 -0
  313. /package/examples/{5cf6aec7d688fce4/flows.json → join/results are not ordered by index.json} +0 -0
  314. /package/examples/{d5424657b497d5af/flows.json → join/useparts with count value.json} +0 -0
  315. /package/examples/{77854a5ea962257b/flows.json → join/useparts without count value.json} +0 -0
  316. /package/examples/{f1e71f2ccb34fd6e/flows.json → join/wait for complete until messages are sent.json} +0 -0
  317. /package/examples/{d4ce58359ff6ff96/flows.json → join/with parts until complete received.json} +0 -0
  318. /package/examples/{b3f365d0b7d1f97d/flows.json → json/overwrite the attribute.json} +0 -0
  319. /package/examples/{e1ced3b16782f7c8/flows.json → junction/should just pass on the message.json} +0 -0
  320. /package/examples/{51870a76d1aaf67a/flows.json → link nodes/_linkSource support.json} +0 -0
  321. /package/examples/{bbb1fc2d47c3cd5f/flows.json → link nodes/basic test whether out and in can connect.json} +0 -0
  322. /package/examples/{15c2fad089960984/flows.json → link nodes/dynamic targets and timeout.json} +0 -0
  323. /package/examples/{c274a07715a87ca4/flows.json → link nodes/exception if dynamic link does not exist.json} +0 -0
  324. /package/examples/{9463eba0ab843567/flows.json → link nodes/exception if multiple link nodes match.json} +0 -0
  325. /package/examples/{641ddaab2819c61d/flows.json → link nodes/flow for call and returning.json} +0 -0
  326. /package/examples/{b6d4e4592b27a344/flows.json → link nodes/implement time out on link call node.json} +0 -0
  327. /package/examples/{c6ee6e89a51c98fc/flows.json → link nodes/link call - return to sender.json} +0 -0
  328. /package/examples/{38616d22e1569aa5/flows.json → link nodes/link call to a dynamic link in node - by name.json} +0 -0
  329. /package/examples/{5433b57035d597f9/flows.json → link nodes/link call to a dynamic link in node - by node id.json} +0 -0
  330. /package/examples/{213803d61ecfde3a/flows.json → link nodes/mutliple links.json} +0 -0
  331. /package/examples/{b7ebaf91f4d66ab3/flows.json → sort/array of objects.json} +0 -0
  332. /package/examples/{cffa610c817beb43/flows.json → sort/msg.complete is not respected.json} +0 -0
  333. /package/examples/{5f6929bb3374b782/flows.json → sort/sort by parts.index.json} +0 -0
  334. /package/examples/{b1430ea37ba7cc19/flows.json → split/array split.json} +0 -0
  335. /package/examples/{4de34883c5d93dc3/flows.json → split/len value is the array split size.json} +0 -0
  336. /package/examples/{2c59ef974b2523ba/flows.json → split/nested parts.json} +0 -0
  337. /package/examples/{02b18fc0ed9de178/flows.json → split/parts id is identical.json} +0 -0
  338. /package/examples/{435d3b48dd0f462c/flows.json → split/silently ignore integer as a value to split.json} +0 -0
  339. /package/examples/{5cd133958df17529/flows.json → switch/catch all v. stop after first.json} +0 -0
  340. /package/examples/{562c518969666f24/flows.json → switch/empty, non-empty, null & not-null operators.json} +0 -0
  341. /package/examples/{3edda6bd788f88c2/flows.json → switch/ensure JSONata support.json} +0 -0
  342. /package/examples/{2c1c291ec8466bfb/flows.json → switch/handle is true & is false.json} +0 -0
  343. /package/examples/{59aa8a866d8d7a70/flows.json → switch/handle nested values.json} +0 -0
  344. /package/examples/{def56742e02f6a75/flows.json → switch/property is not defined on msg object.json} +0 -0
  345. /package/examples/{f4c4a57e77439a1b/flows.json → switch/regular expression operator.json} +0 -0
  346. /package/examples/{ce2f98273da05245/flows.json → switch/support otherwise /"catchall/" rule.json"} +0 -0
  347. /package/examples/{0616f795a4aee63e/flows.json → switch/working JSONata expression operator.json} +0 -0
  348. /package/examples/{84a5a362cafe703f/flows.json → tcp/request node - stream of strings (1101).json} +0 -0
  349. /package/examples/{6f0dcbf18234c5e2/flows.json → tcp/tcp in node connect to (9393).json} +0 -0
  350. /package/examples/{2a95a7b40a798878/flows.json → tcp/telnet server (2323).json} +0 -0
  351. /package/examples/{698b83b8aeb5d5b6/flows.json → template/contains plain text and no mustache content.json} +0 -0
  352. /package/examples/{63ca9baf860d1d8f/flows.json → template/support Json encoding.json} +0 -0
  353. /package/examples/{3ed472eab9503b4f/flows.json → template/support logic in logicless mustache template.json} +0 -0
  354. /package/examples/{ad2bf1089481dcfb/flows.json → trigger/extend timer.json} +0 -0
  355. /package/examples/{8bc7412d6a4869c6/flows.json → trigger/loops of triggers.json} +0 -0
  356. /package/examples/{55f7fbe90e5befa8/flows.json → trigger/msg.delay overrides the configured delay.json} +0 -0
  357. /package/examples/{34d211e37618313c/flows.json → trigger/override via delay but no delay set.json} +0 -0
  358. /package/examples/{988f27b9abdde6e9/flows.json → trigger/send both messages on one pipe.json} +0 -0
  359. /package/examples/{338c5b411f4edfe8/flows.json → trigger/send first but not second message.json} +0 -0
  360. /package/examples/{5d4908af3d4f95e5/flows.json → trigger/send second message only.json} +0 -0
  361. /package/examples/{d595c53abba88f72/flows.json → trigger/the noop trigger.json} +0 -0
  362. /package/examples/{1566e453a88578a9/flows.json → trigger/two outputs.json} +0 -0
@@ -0,0 +1 @@
1
+ [{"id":"83c5e1824f32abec","type":"tab","label":"[supervisor] supervisor tree","disabled":false,"info":"<small><i>[Share link](https://flows.red-erik.org/f/83c5e1824f32abec)</i></small>\n\n## Supervisor Tree\n\nThis is a typical data bus flow with various components sampling from the data bus. Each component is supervised by a supervisor node ensuring that the overall architecture is self-healing.\n\n<i>Note this flow is a specialised form of the [supervisor for supervisor for supervisor for ...](https://flows.red-erik.org/f/e447b0048a5983b5) flow. More details there on how these test flows work.</i>\n\nThe <a class=\"ahl-group-only\" data-ids=\"a2a7e74a4af61408\">message generator</a> generates random message that flow along the <a class='ahl-link-node' data-ids='42854c33d24cc147,2034061e36a4f15f,2034061e36a4f15f,902a3ee2db441271,260e4be19268b1a6,902a3ee2db441271,f6220844d7d6beb1'>data bus</a> (horizontal line extending out from the <a class=\"ahl-node-only\" data-ids=\"42854c33d24cc147\">change: 2 rules</a> node).\n\n## Supervisor behaviour\n\nThe supersivor node is implemented using the Erlang [supervisor behaviour](https://www.erlang.org/doc/apps/stdlib/supervisor.html).\n\n## Setup\n\nThe <a class=\"ahl-node-only\" data-ids=\"1af8ba70d5a3524f\">root supervisor</a> supervises the <a class=\"ahl-node-only\" data-ids=\"393f1b779c6091f6\">right branch</a> supervisor and the <a class=\"ahl-node-only\" data-ids=\"fa5012a137b001d9\">left branch</a> supervisor and ensures either is restarted using the `one-for-one` restart strategy.\n\nSince the left and right branches of this tree have nothing to do with one another, using the `one-for-one` restart strategy ensures that the failure of one branch does not influence the other branch.\n\nAlternatively shutting down the <a class=\"ahl-node-only\" data-ids=\"1af8ba70d5a3524f\">root supervisor</a> will ensure that the entire flow is shutdown. So the flow has a single on/off switch.\n\nThe <a class=\"ahl-node-only\" data-ids=\"fa5012a137b001d9\">left branch</a> supervisor is in control of <a class=\"ahl-group-only\" data-ids=\"876cb4e6a0e13e60\">this group of nodes</a> including a <a class=\"ahl-node-only\" data-ids=\"96ae99eb5ff0f75e\">sub-supervisor leaf left</a>. The <a class=\"ahl-node-only\" data-ids=\"96ae99eb5ff0f75e\">leaf left</a> supervisor manages this <a class=\"ahl-group-only\" data-ids=\"7a32d11ddf48f390\">group of nodes</a>.\n\nThe <a class=\"ahl-node-only\" data-ids=\"393f1b779c6091f6\">right branch</a> supervisor supervisese these <a class=\"ahl-group-only\" data-ids=\"61bf066466ccf6c9\">nodes</a> which also includes a sub-supervisor called <a class=\"ahl-node-only\" data-ids=\"579f89501d19b608\">leaf right</a> which manages these <a class=\"ahl-group-only\" data-ids=\"198c5ec84a4303d3\">nodes</a>.\n\nAs in other supervisor test flows, the <a class=\"ahl-node-only\" data-ids=\"2be5de12297e37e8,b2079d01bc6083b3,77db69c180d41d6f\">exit</a> function nodes exit immediately upon receiving a message thus causing their respective supervisors to restart them. The <a class=\"ahl-node-only\" data-ids=\"f05dfd8751fd199d,da885704f8719ad6,0fbbd20588aed361,c9d06322583751b1,9b4dec78a245edbd,871aea169f73c835\">msg counter</a> nodes simply count the number of messages they have received. These counts are reset if the debug node is restarted.\n\nA single <a class=\"ahl-node-only\" data-ids=\"4f3ae8c1ef6c1cd7\">function node</a> does something differently and instead it just passes through the messages it receives. Difference are the spice of life.\n\n## Why is this important?\n\nOne thing to remember is that even though this flow is simply a test using placeholder <a class=\"ahl-node-only\" data-ids=\"2be5de12297e37e8,b2079d01bc6083b3,4f3ae8c1ef6c1cd7,77db69c180d41d6f\">function nodes</a>, these function nodes can easily (drag & drop & deploy) be replaced by MQTT out nodes. The <a class=\"ahl-group-only\" data-ids=\"a2a7e74a4af61408\">message generator</a> can similarly be replaced by an MQTT in node and nothing else changes. The supervisors remain the same, the debug (msg counter nodes) can stay.\n\nThe only difference would be that it would suddenly be a production ready data pipeline that any good Erlang architect would put together - in textual form.\n\nThe nodes use the same Erlang concepts and behaviours as any Erlang programmer would create using their favourite textual tool.\n\nThe only other difference is that one can *see* the data pipeline and one can even sample from the pipeline using some extra tooling (those batteries aren't included here).\n\nBut as most folks prefer to imagine a better future, visualising that future isn't half as much fun.\n\n## UML-like visual representation of the visual representation\n\nThis flow implements the following supervisor tree:\n\n```mermaid\n%% change this to LR Node-RED like UML\ngraph TB\n1af8ba70d5a3524f[\"root supervisor\"] --> fa5012a137b001d9[\"left branch\"]\n1af8ba70d5a3524f[\"root supervisor\"] --> 393f1b779c6091f6[\"right branch\"]\n393f1b779c6091f6[\"right branch\"] --> f05dfd8751fd199d([\"msg counter right branch\"])\n393f1b779c6091f6[\"right branch\"] --> 2be5de12297e37e8([\"exit\"])\n393f1b779c6091f6[\"right branch\"] --> 579f89501d19b608[\"leaf right\"]\nfa5012a137b001d9[\"left branch\"] --> 4f3ae8c1ef6c1cd7([\"pass Msg through\"])\nfa5012a137b001d9[\"left branch\"] --> 96ae99eb5ff0f75e[\"leaf left\"]\nfa5012a137b001d9[\"left branch\"] --> c9d06322583751b1([\"msg count left branch\"])\n579f89501d19b608[\"leaf right\"] --> da885704f8719ad6([\"msg counter right leaf top\"])\n579f89501d19b608[\"leaf right\"] --> b2079d01bc6083b3([\"exit\"])\n579f89501d19b608[\"leaf right\"] --> 0fbbd20588aed361([\"msg counter right leaf bottom\"])\n96ae99eb5ff0f75e[\"leaf left\"] --> 9b4dec78a245edbd([\"msg count left left top\"])\n96ae99eb5ff0f75e[\"leaf left\"] --> 77db69c180d41d6f([\"exit\"])\n96ae99eb5ff0f75e[\"leaf left\"] --> 871aea169f73c835([\"msg count left left bottom\"])\n```\n\n## Other behaviours\n\n- [Event handler](https://flows.red-erik.org/f/b70a7ce34819e4d5)\n- [State machine](https://flows.red-erik.org/f/5672fa442b2b881d)","env":[{"name":"ERED_TIMEOUT","value":"10","type":"num"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"10ad535c44495df5","type":"group","z":"83c5e1824f32abec","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["1af8ba70d5a3524f","393f1b779c6091f6","fa5012a137b001d9"],"x":1297,"y":469,"w":1153,"h":240},{"id":"61bf066466ccf6c9","type":"group","z":"83c5e1824f32abec","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["2be5de12297e37e8","f05dfd8751fd199d","579f89501d19b608"],"x":2313,"y":723,"w":384,"h":186},{"id":"198c5ec84a4303d3","type":"group","z":"83c5e1824f32abec","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["b2079d01bc6083b3","0fbbd20588aed361","da885704f8719ad6"],"x":2511,"y":967,"w":392,"h":228},{"id":"876cb4e6a0e13e60","type":"group","z":"83c5e1824f32abec","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["4f3ae8c1ef6c1cd7","c9d06322583751b1","96ae99eb5ff0f75e","2034061e36a4f15f"],"x":1064.1674642562866,"y":815,"w":428.8325357437134,"h":381.5},{"id":"7a32d11ddf48f390","type":"group","z":"83c5e1824f32abec","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["77db69c180d41d6f","9b4dec78a245edbd","871aea169f73c835"],"x":1596,"y":1033,"w":340,"h":241},{"id":"a2a7e74a4af61408","type":"group","z":"83c5e1824f32abec","name":"message generator","style":{"label":true},"nodes":["42854c33d24cc147","d5267b01ad627817","783c38c513ee2063","3d86e58d1499701d","33e9669d5da36116"],"x":103,"y":806,"w":745.3333740234375,"h":263.08251953125},{"id":"f6220844d7d6beb1","type":"junction","z":"83c5e1824f32abec","x":2163.1428351402283,"y":1085,"wires":[["da885704f8719ad6","b2079d01bc6083b3","0fbbd20588aed361"]]},{"id":"2034061e36a4f15f","type":"junction","z":"83c5e1824f32abec","g":"876cb4e6a0e13e60","x":1090.1674642562866,"y":950.70751953125,"wires":[["c9d06322583751b1","4f3ae8c1ef6c1cd7","902a3ee2db441271"]]},{"id":"902a3ee2db441271","type":"junction","z":"83c5e1824f32abec","x":2076.000049829483,"y":950.70751953125,"wires":[["f6220844d7d6beb1","260e4be19268b1a6"]]},{"id":"260e4be19268b1a6","type":"junction","z":"83c5e1824f32abec","x":2163.1428351402283,"y":818,"wires":[["2be5de12297e37e8","f05dfd8751fd199d"]]},{"id":"42854c33d24cc147","type":"change","z":"83c5e1824f32abec","g":"a2a7e74a4af61408","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"","tot":"date"},{"p":"msgcnt","pt":"msg","t":"set","to":"$$.msgcnt + 1","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":465.3333740234375,"y":950.70751953125,"wires":[["d5267b01ad627817","783c38c513ee2063","2034061e36a4f15f"]]},{"id":"d5267b01ad627817","type":"delay","z":"83c5e1824f32abec","g":"a2a7e74a4af61408","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":694.3334045410156,"y":1025.08251953125,"wires":[["3d86e58d1499701d"]]},{"id":"783c38c513ee2063","type":"debug","z":"83c5e1824f32abec","g":"a2a7e74a4af61408","name":"debug 6","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":742.3333740234375,"y":847,"wires":[]},{"id":"3d86e58d1499701d","type":"switch","z":"83c5e1824f32abec","g":"a2a7e74a4af61408","name":"stop after 2000 messages","property":"msgcnt","propertyType":"msg","rules":[{"t":"lt","v":"2023","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":239,"y":1028.08251953125,"wires":[["42854c33d24cc147"]]},{"id":"1af8ba70d5a3524f","type":"erlsupervisor","z":"83c5e1824f32abec","g":"10ad535c44495df5","name":"root supervisor","scope":["393f1b779c6091f6","fa5012a137b001d9"],"supervisor_type":"static","strategy":"one_for_one","auto_shutdown":"never","intensity":"1000","period":"1","child_type":"worker","child_restart":"permanent","child_shutdown":"infinite","child_shutdown_timeout":"0","x":1818,"y":510,"wires":[[]]},{"id":"393f1b779c6091f6","type":"erlsupervisor","z":"83c5e1824f32abec","g":"10ad535c44495df5","name":"right branch","scope":["2be5de12297e37e8","f05dfd8751fd199d","579f89501d19b608"],"supervisor_type":"static","strategy":"one_for_one","auto_shutdown":"never","intensity":"233","period":"30","child_type":"worker","child_restart":"permanent","child_shutdown":"infinite","child_shutdown_timeout":"5","x":2354,"y":668,"wires":[["39bd5634461fab43"]]},{"id":"2be5de12297e37e8","type":"function","z":"83c5e1824f32abec","g":"61bf066466ccf6c9","name":"exit","func":"exit(self(), failure)","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2389,"y":764,"wires":[[]]},{"id":"b2079d01bc6083b3","type":"function","z":"83c5e1824f32abec","g":"198c5ec84a4303d3","name":"exit","func":"exit(self(), failure)","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":2587,"y":1085,"wires":[[]]},{"id":"f05dfd8751fd199d","type":"debug","z":"83c5e1824f32abec","g":"61bf066466ccf6c9","name":"msg counter right branch","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":2486,"y":818,"wires":[]},{"id":"0fbbd20588aed361","type":"debug","z":"83c5e1824f32abec","g":"198c5ec84a4303d3","name":"msg counter right leaf bottom","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":2727,"y":1154,"wires":[]},{"id":"579f89501d19b608","type":"erlsupervisor","z":"83c5e1824f32abec","g":"61bf066466ccf6c9","name":"leaf right","scope":["da885704f8719ad6","b2079d01bc6083b3","0fbbd20588aed361"],"supervisor_type":"static","strategy":"rest_for_one","auto_shutdown":"never","intensity":"133","period":"10","child_type":"worker","child_restart":"permanent","child_shutdown":"brutal_kill","child_shutdown_timeout":"5","x":2611,"y":868,"wires":[[]]},{"id":"da885704f8719ad6","type":"debug","z":"83c5e1824f32abec","g":"198c5ec84a4303d3","name":"msg counter right leaf top","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":2695,"y":1008,"wires":[]},{"id":"4f3ae8c1ef6c1cd7","type":"function","z":"83c5e1824f32abec","g":"876cb4e6a0e13e60","name":"pass Msg through","func":"Msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1289,"y":1155.5,"wires":[["9b4dec78a245edbd","77db69c180d41d6f","871aea169f73c835","b5340bbb2ab54e07"]]},{"id":"c9d06322583751b1","type":"debug","z":"83c5e1824f32abec","g":"876cb4e6a0e13e60","name":"msg count left branch","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":1347,"y":856,"wires":[]},{"id":"96ae99eb5ff0f75e","type":"erlsupervisor","z":"83c5e1824f32abec","g":"876cb4e6a0e13e60","name":"leaf left","scope":["9b4dec78a245edbd","77db69c180d41d6f","871aea169f73c835"],"supervisor_type":"static","strategy":"one_for_all","auto_shutdown":"never","intensity":"127","period":"10","child_type":"worker","child_restart":"permanent","child_shutdown":"brutal_kill","child_shutdown_timeout":"5","x":1376,"y":1068,"wires":[[]]},{"id":"77db69c180d41d6f","type":"function","z":"83c5e1824f32abec","g":"7a32d11ddf48f390","name":"exit","func":"exit(self(), failure)","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1672,"y":1155.5,"wires":[[]]},{"id":"9b4dec78a245edbd","type":"debug","z":"83c5e1824f32abec","g":"7a32d11ddf48f390","name":"msg count left left top","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":1769,"y":1233,"wires":[]},{"id":"871aea169f73c835","type":"debug","z":"83c5e1824f32abec","g":"7a32d11ddf48f390","name":"msg count left left bottom","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"","statusType":"counter","x":1780,"y":1074,"wires":[]},{"id":"fa5012a137b001d9","type":"erlsupervisor","z":"83c5e1824f32abec","g":"10ad535c44495df5","name":"left branch","scope":["4f3ae8c1ef6c1cd7","96ae99eb5ff0f75e","c9d06322583751b1"],"supervisor_type":"static","strategy":"rest_for_one","auto_shutdown":"never","intensity":"233","period":"30","child_type":"worker","child_restart":"permanent","child_shutdown":"infinite","child_shutdown_timeout":"5","x":1393,"y":659,"wires":[[]]},{"id":"33e9669d5da36116","type":"inject","z":"83c5e1824f32abec","g":"a2a7e74a4af61408","name":"Start Button","props":[{"p":"payload"},{"p":"msgcnt","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":262,"y":856,"wires":[["42854c33d24cc147"]]},{"id":"b5340bbb2ab54e07","type":"ut-assert-success","z":"83c5e1824f32abec","name":"","count":"2023","x":1640.5715789794922,"y":1338.3571014404297,"wires":[]},{"id":"39bd5634461fab43","type":"ut-assert-success","z":"83c5e1824f32abec","name":"","count":"24","x":2720.714500427246,"y":612.5000371932983,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"7444a788860dd588","type":"tab","label":"[supervisor] two supervisors cannot supervise the same nodes","disabled":false,"info":"<small><i>[Share link](https://flows.red-erik.org/f/7444a788860dd588)</i></small>\n\n## Supervising same nodes\n\nHere the <a class=\"ahl-node-only\" data-ids=\"8cf83b208e89d91f\">supervisor</a> on the left fails because it wants to supervise the same three nodes as the <a class=\"ahl-node-only\" data-ids=\"cb99647226dc6873\">supervisor</a> on the right which does start.\n\nIn fact it is unclear which supervisor will fail because it depends on the initialisation sequence.\n\nHowever one will fail because it is not possible to supervise the same nodes via two different (nor two *same*) supervisors.\n\nErlang supports monitoring two separate processes of the same codebase by providing the same [start parameters](https://www.erlang.org/doc/system/sup_princ.html#child-specification) in the definition of children.\n\nThe equivalent in Erlang-Red would be to copy & paste an existing node and have the copy being suprvised by another supervisor - code duplication done visually.\n\nThis raises an interesting aspect of visual programming: code duplication. Does the ideas of [DRY](https://en.wikipedia.org/wiki/Don't_repeat_yourself) actually apply to visual programming?\n\nAnswer is: No, they don't.\n\nCopying code visually is perfectly ok *provided* one is absolutely sure that code won't be altered again.\n\nQuestion: how does one know the code won't be altered again? Answer: Experience.\n\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"8cf83b208e89d91f","type":"erlsupervisor","z":"7444a788860dd588","name":"left supervisor","scope":["2453ef161a859858","486a9779dc4ed6a5","749aa6b2a5e2813d"],"supervisor_type":"static","strategy":"one_for_one","auto_shutdown":"never","intensity":"1","period":"5","child_type":"worker","child_restart":"permanent","child_shutdown":"brutal_kill","child_shutdown_timeout":"0","x":410.66665267944336,"y":379.666627407074,"wires":[[]]},{"id":"2453ef161a859858","type":"switch","z":"7444a788860dd588","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":562,"y":535,"wires":[[]]},{"id":"486a9779dc4ed6a5","type":"function","z":"7444a788860dd588","name":"function 1","func":"%% Code here is wrapped in a fun (Msg) call\n%% fun (Msg) ->\n Msg\n%% end.\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":566,"y":491,"wires":[[]]},{"id":"749aa6b2a5e2813d","type":"change","z":"7444a788860dd588","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":565,"y":582,"wires":[[]]},{"id":"cb99647226dc6873","type":"erlsupervisor","z":"7444a788860dd588","name":"right supervisor","scope":["2453ef161a859858","486a9779dc4ed6a5","749aa6b2a5e2813d"],"supervisor_type":"static","strategy":"one_for_one","auto_shutdown":"never","intensity":"1","period":"5","child_type":"worker","child_restart":"permanent","child_shutdown":"brutal_kill","child_shutdown_timeout":"0","x":754.0000228881836,"y":393.6666679382324,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"05a47f94321ed67e","type":"tab","label":"[supervisor] unsupported configrations","disabled":false,"info":"## User Interface\n\nClearly indicate whether a supervisor configuration is supported or not.","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"0deaa822bdca14f3","type":"group","z":"05a47f94321ed67e","name":"not supported configurations","style":{"label":true},"nodes":["50392eef4dd28a98","09f47d51e29f1147","ce1f7dda43c3a284","456864c3796a15ac","eafc72fec37ef25e","c4f4bf57e287beef"],"x":327.6666259765625,"y":238.6666717529297,"w":232,"h":370},{"id":"50392eef4dd28a98","type":"erlsupervisor","z":"05a47f94321ed67e","d":true,"g":"0deaa822bdca14f3","name":"","scope":null,"supervisor_type":"static","strategy":"one_for_one","auto_shutdown":"never","intensity":"1","period":"5","x":443.6666259765625,"y":279.6666717529297,"wires":[[]]},{"id":"09f47d51e29f1147","type":"erlsupervisor","z":"05a47f94321ed67e","d":true,"g":"0deaa822bdca14f3","name":"","scope":null,"supervisor_type":"dynamic","strategy":"one_for_one","auto_shutdown":"any_significant","intensity":"1","period":"5","x":443.6666259765625,"y":336.1666717529297,"wires":[[]]},{"id":"ce1f7dda43c3a284","type":"erlsupervisor","z":"05a47f94321ed67e","d":true,"g":"0deaa822bdca14f3","name":"","scope":"flow","supervisor_type":"dynamic","strategy":"one_for_one","auto_shutdown":"never","intensity":"10","period":"30","x":443.6666259765625,"y":454.6666717529297,"wires":[[]]},{"id":"456864c3796a15ac","type":"erlsupervisor","z":"05a47f94321ed67e","d":true,"g":"0deaa822bdca14f3","name":"","scope":"group","supervisor_type":"dynamic","strategy":"one_for_one","auto_shutdown":"never","intensity":"10","period":"30","x":443.6666259765625,"y":511.1666717529297,"wires":[[]]},{"id":"eafc72fec37ef25e","type":"erlsupervisor","z":"05a47f94321ed67e","d":true,"g":"0deaa822bdca14f3","name":"","scope":"flow","supervisor_type":"dynamic","strategy":"one_for_one","auto_shutdown":"never","intensity":"1","period":"5","x":443.6666259765625,"y":567.6666717529297,"wires":[[]]},{"id":"c4f4bf57e287beef","type":"erlsupervisor","z":"05a47f94321ed67e","d":true,"g":"0deaa822bdca14f3","name":"","scope":"flow","supervisor_type":"dynamic","strategy":"one_for_one","auto_shutdown":"never","intensity":"1","period":"5","x":443.6666259765625,"y":392.6666717529297,"wires":[[]]},{"id":"5ef1e10acd1ef147","type":"inject","z":"05a47f94321ed67e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":281,"y":716,"wires":[["f9b63a71e68681f0"]]},{"id":"f9b63a71e68681f0","type":"ut-assert-success","z":"05a47f94321ed67e","name":"","count":1,"x":715,"y":711.5,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"9942fa1aeb1b2428","type":"tab","label":"[switch] JSONata undefined value & exceptions","disabled":false,"info":"## What happens with JSONata result is undefined?\n\nThe only value that matches is `is null` for an undefined value in JSONata.\n\nWhat happens if the JSONata stanza is in error but at runtime?","env":[{"name":"NODE_RED_DIVERGENT","value":"true","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"199386de1f8d0b26","type":"group","z":"9942fa1aeb1b2428","name":"invalid JSONata stanza as property to check against","style":{"label":true},"nodes":["b77637f8d2cf275e","e0d79226c256fba7","639bfb064cb9a1b0","1aac37181e9199c1","5a777e9e4671f290","bea644861571de7c","eaaf5126503dee9f","e6f7ea380e167f62","57b76009ceaf2f44","0545a24dd6a9bed7","6f9d22eef60f83c0","6214c2a00e7550fc"],"x":1000,"y":124,"w":843,"h":682},{"id":"095fb4627c140119","type":"group","z":"9942fa1aeb1b2428","name":"invalid JSONata stanza as property to check against","style":{"label":true},"nodes":["00c047659d5dbc95","7b9c699e33a65d39","a87613d1a8562a64","a1d2d70259b74abf","fe92a602e3813db8","7345143768c0a247","160de08859c4a5e3","feafd3649014bfab","947d682562ee8c40","7a529fb88b614b74","c62b20a4d4905b49","987e86048f782eee"],"x":1002.5,"y":1352.5,"w":843,"h":706},{"id":"d25fadc270655483","type":"group","z":"9942fa1aeb1b2428","name":"JSONata as field type","style":{"label":true},"nodes":["1b86e50802681fd8","2a1e1e18b1bdc778"],"x":1834,"y":572,"w":1750,"h":474.00002034505223},{"id":"c4690892cc9015ad","type":"group","z":"9942fa1aeb1b2428","name":"JSONata as rule operator","style":{"label":true},"nodes":["2471e07080841ae7","53300cc6a277013b"],"x":1836.4287109375,"y":61.428565979003906,"w":1750,"h":474.0000203450521},{"id":"124bc1ad94cb23e5","type":"group","z":"9942fa1aeb1b2428","name":"JSONata as rule operator","style":{"label":true},"nodes":["556156e102e73804","8293d2234fecbed8"],"x":1883.5,"y":1291,"w":1752,"h":413},{"id":"c66766891e9c9701","type":"group","z":"9942fa1aeb1b2428","name":"JSONata as field type","style":{"label":true},"nodes":["004ba979caee84d8","e4c37bace09b5a4b"],"x":1882.285888671875,"y":1750.71435546875,"w":1772,"h":413},{"id":"1f20f08de37f7131","type":"group","z":"9942fa1aeb1b2428","name":"JSONata produces an undefined value","style":{"label":true},"nodes":["2c867a9d03379f5a","ecba7c047b16c199","13e3ac4d41044a4f","f425ab69290c3f35","5548c0aea846610c","ebf2a754a54c2879","8a46b76b4bdb907c","3fec0a85b5ebe591","15ca188eebbded5c","bfeb35a2b25b13ec","388d526d8b5bc65f","b74874da3cc77fe5"],"x":112,"y":124,"w":828,"h":565},{"id":"b31b246f6078a7fa","type":"group","z":"9942fa1aeb1b2428","name":"JSONata produces an undefined value","style":{"label":true},"nodes":["d312c33b49855c32","11d72e400487bab0","a8c8c15a45430e5f","3b3eb3dd3938871a","06d8610bc474af1a","c36a634373dec16c","14a0e8512a9393e4","69ba2357e97a16e6","60881c68cf92f227","05fbce3f65e95def","e5527783b9bcd9e1","651ce4cd24a96813"],"x":112,"y":1431.9999593098958,"w":825,"h":540.8571898142498},{"id":"2471e07080841ae7","type":"group","z":"9942fa1aeb1b2428","g":"c4690892cc9015ad","name":"invalid JSONata stanza as rule value - before match","style":{"label":true},"nodes":["dffbdccb4839b1b2","050353ded7981963","eb5b381efed62930","555535b72a413553","9afb6e63cb5604cb","3461c3ef26234ac8","6e9e325f4664e4eb","76743090d2555fde"],"x":1862.4287109375,"y":87.4285659790039,"w":840,"h":410},{"id":"53300cc6a277013b","type":"group","z":"9942fa1aeb1b2428","g":"c4690892cc9015ad","name":"invalid JSONata stanza as rule value - after match","style":{"label":true},"nodes":["dfc0c4b73ba963aa","6735c45edbb34c8b","1b7d81e38e3d5141","99e0d84f124ea910","5555564f777e5fdd","aabab4db0bd44f2a","9cdf0af0c29dcbc2","93a0c887ef8a3e70"],"x":2720.4287109375,"y":92.428586324056,"w":840,"h":417},{"id":"556156e102e73804","type":"group","z":"9942fa1aeb1b2428","g":"124bc1ad94cb23e5","name":"invalid JSONata stanza as rule value - after match","style":{"label":true},"nodes":["423e0bde8dded2cd","89ef46ed5db8127a","1bcf8390328e5b16","8a46f8ca2822cad2","39521ca6f0582e9e","0c0adfed2b928cd6","1a361cb294fd717f","e4267133256b2fa9"],"x":2795.5,"y":1317,"w":814,"h":357},{"id":"8293d2234fecbed8","type":"group","z":"9942fa1aeb1b2428","g":"124bc1ad94cb23e5","name":"invalid JSONata stanza as rule value - before match","style":{"label":true},"nodes":["fa4d9c24770444b3","edb3595a348ab634","6c7cc9a6ca7cd4f3","4ad5eab07763e233","1d85976b4b0e687c","4be742290f829cc5","c424cd1b9ee2a594","f9104297e8353b18"],"x":1909.5,"y":1321,"w":814,"h":357},{"id":"1b86e50802681fd8","type":"group","z":"9942fa1aeb1b2428","g":"d25fadc270655483","name":"invalid JSONata stanza as rule value - before match","style":{"label":true},"nodes":["b16b105563ef1765","be4884d1ef8c9327","b711fd378e663278","2a533aeb5cd07897","db505fb0b0997fb3","5b68102fe81fe789","c700b88cea604319","0121100f46b9a2f6"],"x":1860,"y":598,"w":840,"h":417},{"id":"2a1e1e18b1bdc778","type":"group","z":"9942fa1aeb1b2428","g":"d25fadc270655483","name":"invalid JSONata stanza as rule value - after match","style":{"label":true},"nodes":["0cd730c8ce078dfa","5c0214cf09248149","b7619d367f6362ac","f43af69646ed8372","8f0fcbc0ddf91a18","e8931d22befdbdfb","d067e5695140c3f5","d215047493c59c5f"],"x":2718,"y":603.0000203450521,"w":840,"h":417},{"id":"004ba979caee84d8","type":"group","z":"9942fa1aeb1b2428","g":"c66766891e9c9701","name":"invalid JSONata stanza as field type - after match","style":{"label":true},"nodes":["85e62996aecce136","64f7f0f05384dd8f","2abc796939081ff2","35a13e7f0f9fad1d","b6c05e8822a98be7","0a48f56a9fc05666","db7504914c7f096a","61837ad6a12064f4"],"x":2794.285888671875,"y":1776.71435546875,"w":834,"h":357},{"id":"e4c37bace09b5a4b","type":"group","z":"9942fa1aeb1b2428","g":"c66766891e9c9701","name":"invalid JSONata stanza as field type - before match","style":{"label":true},"nodes":["1958d237b3d1f43f","fea71c0eb266ec97","e63fa7e2ca1762ea","7ddb97124682abbd","4e05f68a4f62fc0a","986a3a304382c511","60b072c35d4771da","8f3b143dd63ade9d"],"x":1908.285888671875,"y":1780.71435546875,"w":834,"h":357},{"id":"987e86048f782eee","type":"group","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"Node-RED diverge","style":{"fill":"#bfdbef","label":true,"color":"#9363b7"},"nodes":["509e5a34a29f7ff3"],"x":1587.5,"y":1950.5,"w":232,"h":82},{"id":"6214c2a00e7550fc","type":"group","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"Node-RED diverge","style":{"fill":"#bfdbef","label":true,"color":"#9363b7"},"nodes":["4e0a3736aee9a07c"],"x":1585,"y":698,"w":232,"h":82},{"id":"93a0c887ef8a3e70","type":"group","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"Node-RED diverge","style":{"fill":"#bfdbef","label":true,"color":"#9363b7"},"nodes":["e7b6437b94874bf1"],"x":3302.4287109375,"y":194,"w":232,"h":82},{"id":"d215047493c59c5f","type":"group","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"Node-RED diverge","style":{"fill":"#bfdbef","label":true,"color":"#9363b7"},"nodes":["25531b16d5ca4356"],"x":3300,"y":708,"w":232,"h":82},{"id":"76743090d2555fde","type":"group","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"Node-RED diverge","style":{"fill":"#bfdbef","label":true,"color":"#9363b7"},"nodes":["e608bd8005f3e593"],"x":2444.4287109375,"y":240,"w":232,"h":82},{"id":"0121100f46b9a2f6","type":"group","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"Node-RED diverge","style":{"fill":"#bfdbef","label":true,"color":"#9363b7"},"nodes":["56169ac1105b2469"],"x":2442,"y":755,"w":232,"h":82},{"id":"2c867a9d03379f5a","type":"switch","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"check all tests","property":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","propertyType":"jsonata","rules":[{"t":"eq","v":"","vt":"str"},{"t":"true"},{"t":"false"},{"t":"null"},{"t":"empty"},{"t":"nempty"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"},{"t":"nnull"}],"checkall":"true","repair":false,"outputs":8,"x":502,"y":378,"wires":[["f425ab69290c3f35"],["5548c0aea846610c"],["ebf2a754a54c2879"],["13e3ac4d41044a4f"],["8a46b76b4bdb907c"],["3fec0a85b5ebe591"],["15ca188eebbded5c"],["bfeb35a2b25b13ec"]]},{"id":"ecba7c047b16c199","type":"inject","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":208,"y":165,"wires":[["2c867a9d03379f5a"]]},{"id":"13e3ac4d41044a4f","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","count":1,"x":824,"y":372,"wires":[]},{"id":"f425ab69290c3f35","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":165,"wires":[]},{"id":"5548c0aea846610c","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":234,"wires":[]},{"id":"ebf2a754a54c2879","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":303,"wires":[]},{"id":"8a46b76b4bdb907c","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":441,"wires":[]},{"id":"3fec0a85b5ebe591","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":510,"wires":[]},{"id":"15ca188eebbded5c","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":579,"wires":[]},{"id":"d312c33b49855c32","type":"switch","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"stop after first match","property":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","propertyType":"jsonata","rules":[{"t":"eq","v":"","vt":"str"},{"t":"true"},{"t":"false"},{"t":"empty"},{"t":"nempty"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"},{"t":"nnull"},{"t":"null"}],"checkall":"false","repair":false,"outputs":8,"x":519,"y":1670,"wires":[["3b3eb3dd3938871a"],["06d8610bc474af1a"],["c36a634373dec16c"],["14a0e8512a9393e4"],["69ba2357e97a16e6"],["60881c68cf92f227"],["05fbce3f65e95def"],["a8c8c15a45430e5f"]]},{"id":"11d72e400487bab0","type":"inject","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":208,"y":1472.9999593098958,"wires":[["d312c33b49855c32"]]},{"id":"a8c8c15a45430e5f","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","count":1,"x":821,"y":1931.8571491241455,"wires":[]},{"id":"3b3eb3dd3938871a","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1472.9999593098958,"wires":[]},{"id":"06d8610bc474af1a","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1538.5509864262172,"wires":[]},{"id":"c36a634373dec16c","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1604.1020135425385,"wires":[]},{"id":"14a0e8512a9393e4","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1669.65304065886,"wires":[]},{"id":"69ba2357e97a16e6","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1735.2040677751813,"wires":[]},{"id":"60881c68cf92f227","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1800.7550948915027,"wires":[]},{"id":"bfeb35a2b25b13ec","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":824,"y":648,"wires":[]},{"id":"05fbce3f65e95def","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":821,"y":1866.3061220078241,"wires":[]},{"id":"b77637f8d2cf275e","type":"switch","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"check all tests","property":"$match($$.payload, /./,-1)","propertyType":"jsonata","rules":[{"t":"eq","v":"","vt":"str"},{"t":"true"},{"t":"false"},{"t":"null"},{"t":"empty"},{"t":"nempty"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"},{"t":"nnull"}],"checkall":"true","repair":false,"outputs":8,"x":1385,"y":438,"wires":[["639bfb064cb9a1b0"],["1aac37181e9199c1"],["5a777e9e4671f290"],["0545a24dd6a9bed7"],["bea644861571de7c"],["eaaf5126503dee9f"],["e6f7ea380e167f62"],["57b76009ceaf2f44"]]},{"id":"e0d79226c256fba7","type":"inject","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":1096,"y":165,"wires":[["b77637f8d2cf275e"]]},{"id":"639bfb064cb9a1b0","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":165,"wires":[]},{"id":"1aac37181e9199c1","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":234,"wires":[]},{"id":"5a777e9e4671f290","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":303,"wires":[]},{"id":"bea644861571de7c","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":441,"wires":[]},{"id":"eaaf5126503dee9f","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":510,"wires":[]},{"id":"e6f7ea380e167f62","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":579,"wires":[]},{"id":"57b76009ceaf2f44","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":648,"wires":[]},{"id":"0545a24dd6a9bed7","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","x":1701,"y":375,"wires":[]},{"id":"6f9d22eef60f83c0","type":"catch","z":"9942fa1aeb1b2428","g":"199386de1f8d0b26","name":"","scope":["b77637f8d2cf275e"],"uncaught":false,"x":1104,"y":739,"wires":[["4e0a3736aee9a07c"]]},{"id":"dffbdccb4839b1b2","type":"switch","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"check all tests","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"jsonata_exp","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"eq","v":"111","vt":"str"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":2247.4287109375,"y":241.4285659790039,"wires":[["eb5b381efed62930"],["555535b72a413553"],["e608bd8005f3e593"],["9afb6e63cb5604cb"]]},{"id":"050353ded7981963","type":"inject","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":1958.4287109375,"y":128.4285659790039,"wires":[["dffbdccb4839b1b2"]]},{"id":"eb5b381efed62930","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"","x":2560.4287109375,"y":146.4285659790039,"wires":[]},{"id":"555535b72a413553","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"","x":2560.4287109375,"y":200.09523264567056,"wires":[]},{"id":"9afb6e63cb5604cb","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"","x":2560.4287109375,"y":360.4285659790039,"wires":[]},{"id":"3461c3ef26234ac8","type":"catch","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"","scope":["dffbdccb4839b1b2"],"uncaught":false,"x":1958.4287109375,"y":456.4285659790039,"wires":[["6e9e325f4664e4eb"]]},{"id":"dfc0c4b73ba963aa","type":"switch","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"check all tests","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"eq","v":"111","vt":"str"},{"t":"jsonata_exp","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":3105.4287109375,"y":242.4285888671875,"wires":[["1b7d81e38e3d5141"],["e7b6437b94874bf1"],["5555564f777e5fdd"],["aabab4db0bd44f2a"]]},{"id":"6735c45edbb34c8b","type":"inject","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":2816.4287109375,"y":133.428586324056,"wires":[["dfc0c4b73ba963aa"]]},{"id":"1b7d81e38e3d5141","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"","x":3418.4287109375,"y":151.428586324056,"wires":[]},{"id":"99e0d84f124ea910","type":"catch","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"","scope":["dfc0c4b73ba963aa"],"uncaught":false,"x":2816.4287109375,"y":468.428586324056,"wires":[["9cdf0af0c29dcbc2"]]},{"id":"423e0bde8dded2cd","type":"switch","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"stop after first match","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"eq","v":"111","vt":"str"},{"t":"jsonata_exp","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"false","repair":false,"outputs":4,"x":3200.5,"y":1471,"wires":[["1bcf8390328e5b16"],["e4267133256b2fa9"],["8a46f8ca2822cad2"],["39521ca6f0582e9e"]]},{"id":"89ef46ed5db8127a","type":"inject","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":2891.5,"y":1358,"wires":[["423e0bde8dded2cd"]]},{"id":"1bcf8390328e5b16","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","x":3493.5,"y":1376,"wires":[]},{"id":"8a46f8ca2822cad2","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","x":3493.5,"y":1483.3333333333335,"wires":[]},{"id":"39521ca6f0582e9e","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","x":3493.5,"y":1537,"wires":[]},{"id":"0c0adfed2b928cd6","type":"catch","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","scope":["423e0bde8dded2cd"],"uncaught":false,"x":3179.5,"y":1633,"wires":[["1a361cb294fd717f"]]},{"id":"1a361cb294fd717f","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","x":3493.5,"y":1633,"wires":[]},{"id":"fa4d9c24770444b3","type":"switch","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"stop after first match","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"jsonata_exp","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"eq","v":"111","vt":"str"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"false","repair":false,"outputs":4,"x":2314.5,"y":1481,"wires":[["6c7cc9a6ca7cd4f3"],["4ad5eab07763e233"],["4be742290f829cc5"],["1d85976b4b0e687c"]]},{"id":"edb3595a348ab634","type":"inject","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":2005.5,"y":1362,"wires":[["fa4d9c24770444b3"]]},{"id":"6c7cc9a6ca7cd4f3","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","x":2607.5,"y":1380,"wires":[]},{"id":"4ad5eab07763e233","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","x":2607.5,"y":1433.6666666666665,"wires":[]},{"id":"1d85976b4b0e687c","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","x":2607.5,"y":1541,"wires":[]},{"id":"4be742290f829cc5","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","x":2607.5,"y":1487.3333333333333,"wires":[]},{"id":"c424cd1b9ee2a594","type":"catch","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","scope":["fa4d9c24770444b3"],"uncaught":false,"x":2270.5,"y":1637,"wires":[["f9104297e8353b18"]]},{"id":"00c047659d5dbc95","type":"switch","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"stop after first match","property":"$match($$.payload, /./,-1)","propertyType":"jsonata","rules":[{"t":"eq","v":"","vt":"str"},{"t":"true"},{"t":"false"},{"t":"null"},{"t":"empty"},{"t":"nempty"},{"t":"jsonata_exp","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"},{"t":"nnull"}],"checkall":"false","repair":false,"outputs":8,"x":1407.5,"y":1662.5,"wires":[["a87613d1a8562a64"],["a1d2d70259b74abf"],["fe92a602e3813db8"],["7a529fb88b614b74"],["7345143768c0a247"],["160de08859c4a5e3"],["feafd3649014bfab"],["947d682562ee8c40"]]},{"id":"7b9c699e33a65d39","type":"inject","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":1098.5,"y":1393.5,"wires":[["00c047659d5dbc95"]]},{"id":"a87613d1a8562a64","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1393.5,"wires":[]},{"id":"a1d2d70259b74abf","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1462.5,"wires":[]},{"id":"fe92a602e3813db8","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1531.5,"wires":[]},{"id":"7345143768c0a247","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1669.5,"wires":[]},{"id":"160de08859c4a5e3","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1738.5,"wires":[]},{"id":"feafd3649014bfab","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1807.5,"wires":[]},{"id":"947d682562ee8c40","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1876.5,"wires":[]},{"id":"7a529fb88b614b74","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","x":1703.5,"y":1603.5,"wires":[]},{"id":"c62b20a4d4905b49","type":"catch","z":"9942fa1aeb1b2428","g":"095fb4627c140119","name":"","scope":["00c047659d5dbc95"],"uncaught":false,"x":1086.5,"y":1991.5,"wires":[["509e5a34a29f7ff3"]]},{"id":"f9104297e8353b18","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"8293d2234fecbed8","name":"","count":1,"x":2607.5,"y":1637,"wires":[]},{"id":"e4267133256b2fa9","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"556156e102e73804","name":"","count":1,"x":3493.5,"y":1429.6666666666667,"wires":[]},{"id":"6e9e325f4664e4eb","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"2471e07080841ae7","name":"","count":1,"x":2560.4287109375,"y":456.4285659790039,"wires":[]},{"id":"b16b105563ef1765","type":"switch","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"check all tests","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"eq","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"eq","v":"111","vt":"str"},{"t":"eq","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":2245,"y":752,"wires":[["b711fd378e663278"],["2a533aeb5cd07897"],["56169ac1105b2469"],["db505fb0b0997fb3"]]},{"id":"be4884d1ef8c9327","type":"inject","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":1956,"y":639,"wires":[["b16b105563ef1765"]]},{"id":"b711fd378e663278","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"","x":2558,"y":657,"wires":[]},{"id":"2a533aeb5cd07897","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"","x":2558,"y":710.6666666666666,"wires":[]},{"id":"db505fb0b0997fb3","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"","x":2558,"y":878,"wires":[]},{"id":"5b68102fe81fe789","type":"catch","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"","scope":["b16b105563ef1765"],"uncaught":false,"x":2244,"y":974,"wires":[["c700b88cea604319"]]},{"id":"c700b88cea604319","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"1b86e50802681fd8","name":"","count":1,"x":2558,"y":974,"wires":[]},{"id":"0cd730c8ce078dfa","type":"switch","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"check all tests","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"eq","v":"111","vt":"str"},{"t":"eq","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"eq","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":4,"x":3103,"y":757.0000203450521,"wires":[["b7619d367f6362ac"],["25531b16d5ca4356"],["f43af69646ed8372"],["8f0fcbc0ddf91a18"]]},{"id":"5c0214cf09248149","type":"inject","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":2814,"y":644.0000203450521,"wires":[["0cd730c8ce078dfa"]]},{"id":"b7619d367f6362ac","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"","x":3416,"y":662.0000203450521,"wires":[]},{"id":"f43af69646ed8372","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"","x":3416,"y":829.3333536783855,"wires":[]},{"id":"8f0fcbc0ddf91a18","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"","x":3416,"y":883.0000203450521,"wires":[]},{"id":"e8931d22befdbdfb","type":"catch","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"","scope":["0cd730c8ce078dfa"],"uncaught":false,"x":2814,"y":979.0000203450521,"wires":[["d067e5695140c3f5"]]},{"id":"d067e5695140c3f5","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"2a1e1e18b1bdc778","name":"","count":1,"x":3416,"y":979.0000203450521,"wires":[]},{"id":"85e62996aecce136","type":"switch","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"stop after first match","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"eq","v":"111","vt":"str"},{"t":"eq","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"eq","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"false","repair":false,"outputs":4,"x":3249.285888671875,"y":1930.71435546875,"wires":[["2abc796939081ff2"],["61837ad6a12064f4"],["35a13e7f0f9fad1d"],["b6c05e8822a98be7"]]},{"id":"64f7f0f05384dd8f","type":"inject","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":2890.285888671875,"y":1817.71435546875,"wires":[["85e62996aecce136"]]},{"id":"2abc796939081ff2","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","x":3512.285888671875,"y":1835.71435546875,"wires":[]},{"id":"35a13e7f0f9fad1d","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","x":3512.285888671875,"y":1943.0476888020835,"wires":[]},{"id":"b6c05e8822a98be7","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","x":3512.285888671875,"y":1996.71435546875,"wires":[]},{"id":"0a48f56a9fc05666","type":"catch","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","scope":["85e62996aecce136"],"uncaught":false,"x":3178.285888671875,"y":2092.71435546875,"wires":[["db7504914c7f096a"]]},{"id":"db7504914c7f096a","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","x":3512.285888671875,"y":2092.71435546875,"wires":[]},{"id":"61837ad6a12064f4","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"004ba979caee84d8","name":"","count":1,"x":3512.285888671875,"y":1889.3810221354167,"wires":[]},{"id":"1958d237b3d1f43f","type":"switch","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"stop after first match","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"eq","v":"$match($$.payload, /./,-1)","vt":"jsonata"},{"t":"eq","v":"111","vt":"str"},{"t":"eq","v":"$match($$.payload, /([0-9]+)([a-z]+)([0-9]+)([a-z]+)/,0)","vt":"jsonata"}],"checkall":"false","repair":false,"outputs":4,"x":2343.285888671875,"y":1940.71435546875,"wires":[["e63fa7e2ca1762ea"],["7ddb97124682abbd"],["986a3a304382c511"],["4e05f68a4f62fc0a"]]},{"id":"fea71c0eb266ec97","type":"inject","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"str","x":2004.285888671875,"y":1821.71435546875,"wires":[["1958d237b3d1f43f"]]},{"id":"e63fa7e2ca1762ea","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","x":2626.285888671875,"y":1839.71435546875,"wires":[]},{"id":"7ddb97124682abbd","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","x":2626.285888671875,"y":1893.3810221354165,"wires":[]},{"id":"4e05f68a4f62fc0a","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","x":2626.285888671875,"y":2000.71435546875,"wires":[]},{"id":"986a3a304382c511","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","x":2626.285888671875,"y":1947.0476888020833,"wires":[]},{"id":"60b072c35d4771da","type":"catch","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","scope":["1958d237b3d1f43f"],"uncaught":false,"x":2292.285888671875,"y":2096.71435546875,"wires":[["8f3b143dd63ade9d"]]},{"id":"8f3b143dd63ade9d","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"e4c37bace09b5a4b","name":"","count":1,"x":2626.285888671875,"y":2096.71435546875,"wires":[]},{"id":"4e0a3736aee9a07c","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"6214c2a00e7550fc","name":"","count":1,"x":1701,"y":739,"wires":[]},{"id":"509e5a34a29f7ff3","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"987e86048f782eee","name":"","count":1,"x":1703.5,"y":1991.5,"wires":[]},{"id":"e7b6437b94874bf1","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"93a0c887ef8a3e70","name":"","count":1,"x":3418.4287109375,"y":235,"wires":[]},{"id":"25531b16d5ca4356","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"d215047493c59c5f","name":"","count":1,"x":3416,"y":749,"wires":[]},{"id":"5555564f777e5fdd","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"","x":3418.4287109375,"y":318.76191965738934,"wires":[]},{"id":"aabab4db0bd44f2a","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"","x":3418.4287109375,"y":372.428586324056,"wires":[]},{"id":"9cdf0af0c29dcbc2","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"53300cc6a277013b","name":"","count":1,"x":3418.4287109375,"y":468.428586324056,"wires":[]},{"id":"e608bd8005f3e593","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"76743090d2555fde","name":"","count":1,"x":2560.4287109375,"y":281,"wires":[]},{"id":"56169ac1105b2469","type":"ut-assert-success","z":"9942fa1aeb1b2428","g":"0121100f46b9a2f6","name":"","count":1,"x":2558,"y":796,"wires":[]},{"id":"388d526d8b5bc65f","type":"catch","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","scope":["2c867a9d03379f5a"],"uncaught":false,"x":208,"y":648,"wires":[["b74874da3cc77fe5"]]},{"id":"b74874da3cc77fe5","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"1f20f08de37f7131","name":"","x":522,"y":648,"wires":[]},{"id":"e5527783b9bcd9e1","type":"catch","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","scope":["d312c33b49855c32"],"uncaught":false,"x":208,"y":1931.8571491241455,"wires":[["651ce4cd24a96813"]]},{"id":"651ce4cd24a96813","type":"ut-assert-failure","z":"9942fa1aeb1b2428","g":"b31b246f6078a7fa","name":"","x":522,"y":1931.8571491241455,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"36846ad6698e1bc0","type":"tab","label":"[switch] post debug on JSONata exception","disabled":false,"info":"","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"68fc7da02e4ce9da","type":"group","z":"36846ad6698e1bc0","name":"catch captures exception","style":{"label":true},"nodes":["83ab1354d90466f0","e9aa1d82d093db52","8d0e6a588bc579ce","915116870214bc0f","1466e3dcc32f09f6","5756ca28703729dc","5973bb0d4b1948b1","67fd7857fbebca0f"],"x":8,"y":828,"w":930,"h":354.5},{"id":"0e4b83838b47f758","type":"group","z":"36846ad6698e1bc0","name":"no catch node to capture the exception","style":{"label":true},"nodes":["9f0163ae195dc699","6dcf13bd6d4133a1","1a2dc9cdead129cb","4a51dd50369e9361","287121aac37d559b","4928acc9d0bc81a2"],"x":31,"y":362.5,"w":1030,"h":383},{"id":"5973bb0d4b1948b1","type":"group","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"Node-RED diverge","style":{"color":"#9363b7","fill":"#bfdbef","label":true},"nodes":["0dfefb756493e5d9","1bb2357cf149aeb0"],"x":680,"y":1018.5,"w":232,"h":138},{"id":"287121aac37d559b","type":"group","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"Node-RED Diverge","style":{"color":"#9363b7","fill":"#bfdbef","label":true},"nodes":["93eda421738039cf","6ff441e31fe3209a"],"x":580,"y":512.5,"w":232,"h":144},{"id":"9f0163ae195dc699","type":"inject","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":137,"y":553.5,"wires":[["6dcf13bd6d4133a1"]]},{"id":"6dcf13bd6d4133a1","type":"switch","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"property uses broken jsonata","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":415,"y":553.5,"wires":[["1a2dc9cdead129cb"],["93eda421738039cf"],["6ff441e31fe3209a"]]},{"id":"1a2dc9cdead129cb","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","x":696,"y":403.5,"wires":[]},{"id":"4a51dd50369e9361","type":"ut-assert-debug","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","scope":["6dcf13bd6d4133a1"],"nodeid":"6dcf13bd6d4133a1","msgtype":"error","inverse":false,"x":387,"y":704.5,"wires":[["4928acc9d0bc81a2"]]},{"id":"93eda421738039cf","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"287121aac37d559b","name":"","count":1,"x":696,"y":553.5,"wires":[]},{"id":"6ff441e31fe3209a","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"287121aac37d559b","name":"","count":1,"x":696,"y":615.5,"wires":[]},{"id":"83ab1354d90466f0","type":"inject","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":114,"y":944,"wires":[["e9aa1d82d093db52"]]},{"id":"e9aa1d82d093db52","type":"switch","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"broken property jsonata","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":393,"y":996,"wires":[["8d0e6a588bc579ce"],["0dfefb756493e5d9"],["1bb2357cf149aeb0"]]},{"id":"8d0e6a588bc579ce","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","x":792,"y":946.5,"wires":[]},{"id":"915116870214bc0f","type":"ut-assert-debug","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","scope":["e9aa1d82d093db52"],"nodeid":"e9aa1d82d093db52","msgtype":"error","inverse":true,"x":411,"y":1066.5,"wires":[["67fd7857fbebca0f"]]},{"id":"0dfefb756493e5d9","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"5973bb0d4b1948b1","name":"","count":1,"x":796,"y":1059.5,"wires":[]},{"id":"1bb2357cf149aeb0","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"5973bb0d4b1948b1","name":"","count":1,"x":796,"y":1115.5,"wires":[]},{"id":"1466e3dcc32f09f6","type":"catch","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","scope":["e9aa1d82d093db52"],"uncaught":false,"x":384,"y":926,"wires":[["5756ca28703729dc"]]},{"id":"5756ca28703729dc","type":"ut-assert-success","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","count":1,"x":793,"y":869,"wires":[]},{"id":"67fd7857fbebca0f","type":"ut-assert-failure","z":"36846ad6698e1bc0","g":"68fc7da02e4ce9da","name":"","x":408,"y":1131,"wires":[]},{"id":"4928acc9d0bc81a2","type":"ut-assert-values","z":"36846ad6698e1bc0","g":"0e4b83838b47f758","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"debug.nodeid","pt":"msg","t":"eql","to":"6dcf13bd6d4133a1","tot":"str"},{"p":"payload['level']","pt":"msg","t":"eql","to":"20","tot":"num"},{"p":"payload.msg.error_msg","pt":"msg","t":"eql","to":"jsonata unsupported function: {fromMillis,[]}","tot":"str"},{"p":"payload.name","pt":"msg","t":"eql","to":"property uses broken jsonata","tot":"str"}],"x":955,"y":704,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"b1501de32c769cf2","type":"tab","label":"[switch] raise exception if JSONata has exception","disabled":false,"info":"This test case covers the error if the property to be compared is a JSONata stanza and it raises an exception.\n\nThen no message is set and an exception is raised.","env":[{"name":"NODE_RED_ONLY","value":"true","type":"bool"}]},{"id":"b179a3729bc7c881","type":"group","z":"b1501de32c769cf2","name":"no catch node to capture exception, exception pushed to debug panel","style":{"label":true},"nodes":["acd59574afa50c69","e1619782ce85c87e","8ad67238a56a315e","0302ea142e5c8cab","02f8693eb7c07248","68c4b79eb9859c82","6364919d0c880add"],"x":101,"y":389.5,"w":681,"h":332.5},{"id":"acd59574afa50c69","type":"inject","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":207,"y":524,"wires":[["e1619782ce85c87e"]]},{"id":"e1619782ce85c87e","type":"switch","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","property":"$fromMillis()","propertyType":"jsonata","rules":[{"t":"eq","v":"$fromMillis()","vt":"jsonata"},{"t":"else"},{"t":"eq","v":"hello world","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":433,"y":524,"wires":[["8ad67238a56a315e"],["02f8693eb7c07248"],["0302ea142e5c8cab"]]},{"id":"8ad67238a56a315e","type":"ut-assert-failure","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","x":666,"y":430.5,"wires":[]},{"id":"0302ea142e5c8cab","type":"ut-assert-failure","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","x":666,"y":570.5,"wires":[]},{"id":"02f8693eb7c07248","type":"ut-assert-failure","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","x":666,"y":500.5,"wires":[]},{"id":"68c4b79eb9859c82","type":"ut-assert-debug","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","scope":["e1619782ce85c87e"],"nodeid":"e1619782ce85c87e","msgtype":"warning","inverse":false,"x":426,"y":681,"wires":[["6364919d0c880add"]]},{"id":"6364919d0c880add","type":"ut-assert-values","z":"b1501de32c769cf2","g":"b179a3729bc7c881","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"e1619782ce85c87e","tot":"str"},{"t":"eql","p":"data.type","pt":"msg","to":"switch","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"30","tot":"num"},{"t":"mth","p":"data.format","pt":"msg","to":"string","tot":"str"}],"x":676,"y":681,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"069552b2eb6bce48","type":"tab","label":"[tcp] Bad value on output port (3425)","disabled":false,"info":"## gen_tcp:send(...) and numbers\n\nThere is a spot in the [connector code](https://github.com/gorenje/erlang-red/blob/dba90f15888503b4606cb41ac675878d16684841/src/ered_tcp_connector.erl#L39-L50) that highlights a minor issue with `gen_tcp:send/2` and numbers.\n\nThis test uses the connector code but the problem applies equally to the [listener code](https://github.com/gorenje/erlang-red/blob/dba90f15888503b4606cb41ac675878d16684841/src/ered_tcp_listener.erl#L52-L63).\n\nThe problem arises - for me - when using numbers, a single number. In particular it seems to be negative integer values that cause the issue:\n\n```\n08:47:02.788 [error] Bad value on output port 'tcp_inet'\n```\n\n[Stackoverflow](https://stackoverflow.com/questions/38750444/bad-value-on-output-port-tcp-inet) has many suggestions:\n\n> In my phoenix api that I had deployed to heroku. In my case, I was setting response headers with an atom. Once I changed the atom to a binary everything started working fine again.\n\nBut for me it was single numbers that caused the issues, not http headers.\n\nThis flow test demonstrates this. The value -12 will generates the error and the value 12 will not - both are numbers NOT strings.\n\n## What does this test do?\n\nFirst a <a class=\"ahl-node-only\" data-ids=\"7bec330797c929e4\">server on port 3425</a> is started, waiting for connections. Then a <a class=\"ahl-node-only\" data-ids=\"9d73ad81e2ed993c\">tcp request</a> node connects to the server.\n\nWhen it does, it will send the messages that have been sent to it, in this case we have three messages consisting of the value 12 and -12.\n\nThe <a class=\"ahl-node-only\" data-ids=\"6d6da201565de404,46385dd6aa371f45,6b30b8d45824c2ea\">delay nodes</a> ensure that the messages are sent in the order 12, -12 and 12.\n\nThe test is triggered by the <a class=\"ahl-node-only\" data-ids=\"146eaf26868b802c\">inject node</a> which in turn triggers the three messages.\n\nThe <a class=\"ahl-node-only\" data-ids=\"f0e3314691d12a74,046d9545fe9ab505\">join nodes</a> show that only two messages go through, with the third (-12) being lost on the way. This demonstrates that the tcp connection isn't actually closed and continues to function.\n\n## Why is this an issue?\n\nRandom errors are annoying and tracking this one down took a while. However there is nothing that can really be done. Since the value is set by the payload and the payload on a message can be anything, this can happen at any time - day or night.\n\nThe context of the message would be important to know - what is the meaning of a negative integer value being sent over a tcp connection?\n\nSince there isn't a general answer to that question, there isn't much that can be done - generally.\n\nPerhaps raising a debug message in the panel would be the best thing to do at this stage.\n\nAnnoyingly the error generated isn't an exception and cannot be captured, it seems more to be a warning than an error. As pointed out, the tcp connection isn't closed.\n\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_PENDING","value":"false","type":"bool"}]},{"id":"7bec330797c929e4","type":"tcp request","z":"069552b2eb6bce48","name":"","server":"localhost","port":"3425","out":"time","ret":"string","splitc":"200000","newline":"","trim":false,"tls":"","x":839,"y":507,"wires":[[]]},{"id":"6d6da201565de404","type":"delay","z":"069552b2eb6bce48","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":599,"y":433,"wires":[["7bec330797c929e4"]]},{"id":"46385dd6aa371f45","type":"delay","z":"069552b2eb6bce48","name":"","pauseType":"delay","timeout":"300","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":599,"y":507,"wires":[["7bec330797c929e4"]]},{"id":"6b30b8d45824c2ea","type":"delay","z":"069552b2eb6bce48","name":"","pauseType":"delay","timeout":"600","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":599,"y":590,"wires":[["7bec330797c929e4"]]},{"id":"df1995777960982d","type":"switch","z":"069552b2eb6bce48","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"neq","v":"connected","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":1077,"y":565,"wires":[["dd3a799aef6166c9"]]},{"id":"508ebb98927e404f","type":"change","z":"069552b2eb6bce48","name":"payload = 12","rules":[{"p":"payload","pt":"msg","t":"set","to":"12","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":398,"y":433,"wires":[["6d6da201565de404"]]},{"id":"53749a8b6ce5c205","type":"change","z":"069552b2eb6bce48","name":"payload = 12","rules":[{"p":"payload","pt":"msg","t":"set","to":"12","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":398,"y":590,"wires":[["6b30b8d45824c2ea"]]},{"id":"25d8b0221cd42ca2","type":"change","z":"069552b2eb6bce48","name":"payload = -12","rules":[{"p":"payload","pt":"msg","t":"set","to":"-12","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":388,"y":507,"wires":[["46385dd6aa371f45"]]},{"id":"146eaf26868b802c","type":"inject","z":"069552b2eb6bce48","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":128,"y":507,"wires":[["508ebb98927e404f","25d8b0221cd42ca2","53749a8b6ce5c205"]]},{"id":"dd3a799aef6166c9","type":"ut-assert-success","z":"069552b2eb6bce48","name":"","count":"2","x":1341,"y":565,"wires":[]},{"id":"9d73ad81e2ed993c","type":"tcp in","z":"069552b2eb6bce48","name":"","server":"server","host":"","port":"3425","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":false,"base64":false,"tls":"","x":843,"y":607,"wires":[["df1995777960982d"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"c381b5135cc947cd","type":"tab","label":"[tcp] multiple tcp in connectors (1194)","disabled":false,"info":"## Tcp in connect-to nodes\n\nStarting a tcp service, for example, using netcat `(while date ; do sleep 1 ; done) | nc -lk -p 9393` will cause all three connect to tcp in nodes to receive data.\n\nEach tcp in node will receive the *same* data from the from the host. That is because there is only one connection being maintained. \n\nErlang Red maintains single connections for multiple tcp nodes. Even when multiple tcp in nodes access the same connection, each will receive the same data instead of one connecting to the service and the other nodes not being able to connect.\n\nThis differs to original Node-RED behaviour that will connect a random tcp in node to the service and have it uniquely receive all the data. \n\nNode-RED [forum question](https://discourse.nodered.org/t/tcp-in-nodes-connecting-to-same-host/97975).\n\n\n\n","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"NRED_PENDING","value":"true","type":"bool"}]},{"id":"564114edd5ba0caf","type":"group","z":"c381b5135cc947cd","style":{"color":"#a4a4a4","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","stroke":"#999999","stroke-opacity":"1"},"nodes":["91ea2827b42734f8","51db6f4e4fabe23e","79a3014b85623de5","8197f5db17d5faa6","6a9c6712d23a8ad9","19b359dc5d9c62d5","29a165c172dd6099","4d2e899d7a424d69","af91f00ddcc05b87"],"x":239,"y":186.875,"w":1295,"h":313.625},{"id":"91ea2827b42734f8","type":"tcp in","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"","server":"server","host":"","port":"1194","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":true,"base64":false,"tls":"","x":504,"y":343.6875,"wires":[["29a165c172dd6099"]]},{"id":"51db6f4e4fabe23e","type":"tcp in","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"","server":"server","host":"","port":"1194","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":true,"base64":false,"tls":"","x":685,"y":459.5,"wires":[["19b359dc5d9c62d5"]]},{"id":"eae4f7026d63b109","type":"tcp request","z":"c381b5135cc947cd","name":"","server":"localhost","port":"1194","out":"time","ret":"string","splitc":"3000","newline":"","trim":false,"tls":"","x":1290,"y":579.75,"wires":[[]]},{"id":"dc60341617690980","type":"inject","z":"c381b5135cc947cd","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"\" & $millis()","payloadType":"jsonata","x":919,"y":725,"wires":[["eae4f7026d63b109"]]},{"id":"f85b44b70643d362","type":"inject","z":"c381b5135cc947cd","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"\" & $millis()","payloadType":"jsonata","x":785,"y":688.6875,"wires":[["eae4f7026d63b109"]]},{"id":"a74eb5d8b2fc9c56","type":"inject","z":"c381b5135cc947cd","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"\" & $millis()","payloadType":"jsonata","x":651,"y":652.375,"wires":[["eae4f7026d63b109"]]},{"id":"97e3ad43a22731af","type":"inject","z":"c381b5135cc947cd","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"\" & $millis()","payloadType":"jsonata","x":517,"y":616.0625,"wires":[["eae4f7026d63b109"]]},{"id":"c741b86b0ddfdf7d","type":"inject","z":"c381b5135cc947cd","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"\" & $millis()","payloadType":"jsonata","x":383,"y":579.75,"wires":[["eae4f7026d63b109"]]},{"id":"79a3014b85623de5","type":"ut-assert-success","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"","count":"5","x":1039,"y":227.875,"wires":[]},{"id":"8197f5db17d5faa6","type":"ut-assert-success","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"","count":"5","x":1232,"y":266,"wires":[]},{"id":"6a9c6712d23a8ad9","type":"ut-assert-success","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"","count":"5","x":1418,"y":304,"wires":[]},{"id":"19b359dc5d9c62d5","type":"switch","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"neq","v":"connected","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":911,"y":304,"wires":[["6a9c6712d23a8ad9"]]},{"id":"29a165c172dd6099","type":"switch","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"neq","v":"connected","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":842,"y":266,"wires":[["8197f5db17d5faa6"]]},{"id":"4d2e899d7a424d69","type":"switch","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"neq","v":"connected","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":797,"y":227.875,"wires":[["79a3014b85623de5"]]},{"id":"af91f00ddcc05b87","type":"tcp in","z":"c381b5135cc947cd","g":"564114edd5ba0caf","name":"","server":"server","host":"","port":"1194","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":true,"base64":false,"tls":"","x":325,"y":229,"wires":[["4d2e899d7a424d69"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"1c1d2cb981cf9f01","type":"tab","label":"[tcp] request node - disconnect immediately (1001)","disabled":false,"info":"## Disconnect immediately\n\nSame as [#84a5a362cafe703f](https://flows.red-erik.org/f/84a5a362cafe703f) but Tcp request is disconnected immediately.\n\n","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"1e2a217f2ba03c2f","type":"tcp request","z":"1c1d2cb981cf9f01","name":"","server":"localhost","port":"1001","out":"immed","ret":"string","splitc":" ","newline":"","trim":false,"tls":"","x":818.3333740234375,"y":681.9166870117188,"wires":[["18383a17a3db3322"]]},{"id":"02a834710462de5e","type":"inject","z":"1c1d2cb981cf9f01","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"this is the payload","payloadType":"str","x":423.666748046875,"y":681.9166870117188,"wires":[["1e2a217f2ba03c2f"]]},{"id":"18383a17a3db3322","type":"ut-assert-failure","z":"1c1d2cb981cf9f01","name":"","x":1193,"y":681.9166870117188,"wires":[]},{"id":"a7c1f51a70e092c4","type":"tcp in","z":"1c1d2cb981cf9f01","name":"","server":"server","host":"","port":"1001","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":false,"base64":false,"tls":"","x":455,"y":558.4765691757202,"wires":[["414db13bda6806fd"]]},{"id":"b6fb29edd3528a17","type":"ut-assert-values","z":"1c1d2cb981cf9f01","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"this is the payload","tot":"str"}],"x":1070,"y":558.4765691757202,"wires":[[]]},{"id":"414db13bda6806fd","type":"switch","z":"1c1d2cb981cf9f01","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"eq","v":"connected","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":777.5,"y":558.4765691757202,"wires":[["b6fb29edd3528a17"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"cfa8595b2e2b8269","type":"tab","label":"[tcp] tcp-out node in reply mode (1202)","disabled":false,"info":"## Multiple tcp in nodes\n\nTest checks for handling of `_session` value on the message.\n\n## Setup\n\nNode <a class=\"ahl-node-only\" data-ids=\"cdf9310b209c1838\">tcp:1234</a> is a tcp listener, listening on port 1234 for incoming connections.\n\nNode <a class=\"ahl-node-only\" data-ids=\"dd0e889f20803d72\">tcp:localhost:1234</a> is a tcp-in node that *connects* to a server on *localhost* on port 1234, that is, it connects to <a class=\"ahl-node-only\" data-ids=\"cdf9310b209c1838\">tcp:1234</a>.\n\nSince both nodes are tcp-in nodes, they *produce* messages but do not receive messages.\n\nA tcp-out node <a class=\"ahl-node-only\" data-ids=\"efcdb65d343c28d5\">tcp:</a> is used to create a message. This is tcp-out node set to **reply** mode meaning it needs a `_session` attribute on the message to know where to send messages it receives to.\n\n## Test\n\nThe <a class=\"ahl-node-only\" data-ids=\"b19e4f202ce8e9f9\">inject node</a> sends a \"hello world\" message to the <a class=\"ahl-node-only\" data-ids=\"efcdb65d343c28d5\">tcp out</a> node without a `_session` attribute on the message.\n\n\n## Discussion\n\nIf the <a class=\"ahl-node-only\" data-ids=\"dd0e889f20803d72\">tcp:localhost:1234</a> node is set to \"single string\" instead if \"stream of strings\", then it receives nothing.\n\nSo it receives a message from the tcp-out node, sends it to the listener and the response with a \"ok\" and that is sent back to it.\n\n**NOTE**: the difference between single string and stream of strings is that the string is only sent once the [connection is dropped](https://github.com/node-red/node-red/blob/01815b995e1bf2c87a82afe1a51d563a2d83fe31/packages/node_modules/%40node-red/nodes/core/network/31-tcpin.js#L158-L168).\n\n","env":[{"name":"ERED_PENDING","type":"bool","value":"false"},{"name":"ERED_NOT_EUNIT","type":"bool","value":"true"},{"name":"ERED_TIMEOUT","type":"num","value":"8"}]},{"id":"cdf9310b209c1838","type":"tcp in","z":"cfa8595b2e2b8269","name":"","server":"server","host":"","port":"1202","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":false,"base64":false,"tls":"","x":609,"y":444,"wires":[["922894e195cfced3","05791bcf224aaa46"]]},{"id":"1a2c994da573bbdf","type":"ut-assert-values","z":"cfa8595b2e2b8269","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"hello world","tot":"str"}],"x":1200,"y":444,"wires":[[]]},{"id":"efcdb65d343c28d5","type":"tcp out","z":"cfa8595b2e2b8269","name":"","host":"","port":"","beserver":"reply","base64":false,"end":false,"tls":"","x":1000,"y":318.5,"wires":[]},{"id":"b19e4f202ce8e9f9","type":"inject","z":"cfa8595b2e2b8269","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":611,"y":311.5,"wires":[["7d6bf09f58c27260"]]},{"id":"922894e195cfced3","type":"change","z":"cfa8595b2e2b8269","name":"set payload to 'ok'","rules":[{"p":"payload","pt":"msg","t":"set","to":"ok","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":809,"y":379.5,"wires":[["efcdb65d343c28d5"]]},{"id":"dd0e889f20803d72","type":"tcp in","z":"cfa8595b2e2b8269","name":"","server":"client","host":"localhost","port":"1202","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":true,"base64":false,"tls":"","x":579,"y":558.25,"wires":[["7f8b02809692770c","dd5711710944c175"]]},{"id":"b39f939d9714e413","type":"ut-assert-values","z":"cfa8595b2e2b8269","name":"","ignore_failure_if_succeed":true,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"hello world","tot":"str"}],"x":1225,"y":539.25,"wires":[[]]},{"id":"e8a72df7e2694bc4","type":"ut-assert-values","z":"cfa8595b2e2b8269","name":"","ignore_failure_if_succeed":true,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"ok","tot":"str"}],"x":1256,"y":636,"wires":[[]]},{"id":"dc0c5ddff9da36b6","type":"tcp out","z":"cfa8595b2e2b8269","name":"","host":"","port":"","beserver":"reply","base64":false,"end":false,"tls":"","x":1004,"y":203,"wires":[]},{"id":"7d6bf09f58c27260","type":"delay","z":"cfa8595b2e2b8269","name":"","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":822,"y":250,"wires":[["dc0c5ddff9da36b6"]]},{"id":"05791bcf224aaa46","type":"switch","z":"cfa8595b2e2b8269","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"eq","v":"connected","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":860,"y":444,"wires":[["1a2c994da573bbdf"]]},{"id":"7f8b02809692770c","type":"switch","z":"cfa8595b2e2b8269","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"eq","v":"connected","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":847,"y":595,"wires":[["e8a72df7e2694bc4","b39f939d9714e413"]]},{"id":"dd5711710944c175","type":"ut-assert-success","z":"cfa8595b2e2b8269","name":"","count":"0","x":830,"y":513,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"96f6f83dcab507e5","type":"tab","label":"[tcp] transfer string between nodes (1201)","disabled":false,"info":"## Tcp Nodes\n\nSingle connection and transmit a single string.\n\n## Setup\n\nA <a class=\"ahl-node-only\" data-ids=\"ae4e5598c44f091d\">tcp in node</a> listening on port 1201 is connected to by an <a class=\"ahl-node-only\" data-ids=\"df08721af57ca915\">tcp out node</a>.\n\n## Test\n\nAn <a class=\"ahl-node-only\" data-ids=\"d0f149c3e8e35067\">inject</a> node generates a message that is transmitted by the tcp-out node to the tcp-in node and checked by the <a class=\"ahl-node-only\" data-ids=\"588192fa298107ad\">assert values</a> node.","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"}]},{"id":"df08721af57ca915","type":"tcp out","z":"96f6f83dcab507e5","name":"","host":"localhost","port":"1201","beserver":"client","base64":false,"end":false,"tls":"","x":862,"y":403.5,"wires":[]},{"id":"d0f149c3e8e35067","type":"inject","z":"96f6f83dcab507e5","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"hello world\"","payloadType":"jsonata","x":477,"y":403.5,"wires":[["df08721af57ca915"]]},{"id":"588192fa298107ad","type":"ut-assert-values","z":"96f6f83dcab507e5","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"hello world","tot":"str"}],"x":1021,"y":287.5,"wires":[[]]},{"id":"ae4e5598c44f091d","type":"tcp in","z":"96f6f83dcab507e5","name":"","server":"server","host":"","port":"1201","datamode":"stream","datatype":"utf8","newline":"","topic":"","trim":false,"base64":false,"tls":"","x":467,"y":287.5,"wires":[["4336796c78fa68f9"]]},{"id":"4336796c78fa68f9","type":"switch","z":"96f6f83dcab507e5","name":"only data packets","property":"_session.status","propertyType":"msg","rules":[{"t":"eq","v":"connected","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":729,"y":287.5,"wires":[["588192fa298107ad"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"73c6ec3469166a53","type":"tab","label":"[template] handle base64 encoded data","disabled":false,"info":"## Decode Base64 data\n\nDecodes base64 data via mustache templates and normal, plain data.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"df68812bfa2f304b","type":"group","z":"73c6ec3469166a53","name":"plain decode","style":{"label":true},"nodes":["1af1d1a78872f81d","7a75228eea42100f","cca1ac0ad6a81e89","c7d4796fb4347db9"],"x":179,"y":185,"w":841,"h":242},{"id":"b7e8dc9834de4ca6","type":"group","z":"73c6ec3469166a53","name":"mustache decode","style":{"label":true},"nodes":["232d3753066e291f","6ef046f234135b59","78e3e203c0238ef9","23c64f6baf497f7b","303c877eaab2c084"],"x":153,"y":487,"w":934,"h":223},{"id":"1af1d1a78872f81d","type":"template","z":"73c6ec3469166a53","g":"df68812bfa2f304b","name":"test png image","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"iVBORw0KGgoAAAANSUhEUgAAANwAAAALCAYAAAAUYeMWAAABR2lDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8nAwcDIIMQgw8CQmFxc4BgQ4ANUwgCjUcG3a0C1QHBZF2RWerziqj87zu2u0bx5S3Oh6xRM9SiAKyW1OBlI/wHitOSCohIGBsYUIFu5vKQAxO4AskWKgI4CsueA2OkQ9gYQOwnCPgJWExLkDGTfALIFkjMSgWYwvgCydZKQxNOR2FB7QYDHxdXHRyHUyNzQ0oWAc0kHJakVJSDaOb+gsigzPaNEwREYSqkKnnnJejoKRgZGpgwMoDCHqP4cBA5LRrF9CLH8JQwMFt8YGJgnIsSSgOG6vY2BQeIWQkxlHgMDfwsDw7ZDBYlFiXAHMH5jKU4zNoKweewZGFjv/v//WYOBgX0iA8Pfif///178///fxUDzbzMwHKgEAP/gYWGPEFrdAAAAVmVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAADkoYABwAAABIAAABEoAIABAAAAAEAAADcoAMABAAAAAEAAAALAAAAAEFTQ0lJAAAAU2NyZWVuc2hvdPQhYecAAAHVaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjExPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjIyMDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlVzZXJDb21tZW50PlNjcmVlbnNob3Q8L2V4aWY6VXNlckNvbW1lbnQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgqz9P99AAAFMUlEQVRoBeWZW4iVVRTHzzE1uqllWYjUZOFYECVGkCEEhWZCVi8F5UvXh7CHIioVupFCEBJpUNqDZRfoZnZxympeMshIKkuyKKGw0RItSotup99/Zi9md/j22t/55hycbMNv9v72Xmvtdflu55t6rVZrwPBuR+JeHX4e3m4O2btRWPhjyFYObgOHEN5fHQ6xg3UY0WHX22P+Kcw83R5Tw9bKidxTdEOZUNLDWcjNLSlbVqwTNsvuXVZuG4LzygpXkGu1Di1uMbJF+QMjvpRt9YQ7mJvd+qzPxToHAT35X8sJtrDeCZstbF9KVE840alm+be+A/volbIcG5Drge2wE+4B053N+Dnogy1wLdjaNMabYRn8AJ/B8aD1blgLu0C694LpXcn408DiaF7r8mUNbAXpLQLTO4fxW7AHNsEOuAZsPdV78XViv3n49CXsht5ao/4b/Qkg/2ZDKp+rWJOO4lN+HgKLydPrRi6Va8+mV78p2FSuf4R1MBNyvlyOzEfwOag+z4JqdB6YbqrXuad9iupexRft49XBs+nlJeV/NsBYUcG+A1Ph9nCCTGIsmelwAeiEWQp9MAq0RhH6T6Yexkrq3DCvtRfgdZgAEwO25xEcT4bnYTnYvHr58h4o6JtBBT8MtKYT4DGQb9+CbgyjIdYvGnvxdWK/r/DpSTgNHm664Lx8KlerQRek8nMsWDyenpdrz6ZXv2fY+1U4Ax6EbZDz5TpkfoEbQ8y6YWyEJWC6qd6rQxVftI9XB8+ml5eU/9kAY0UFq7uT5uqgp9z14XgE/UVwJ/Dk6b/ATgprOFbbB3ZBxDYXMr8f1sMCOBridY1XQdEFZ76wz7/260VeJ9cs+B4ugWabRcdefPFaO/Y7O/h8avCtKxzbE87Lp3zX28LKgrg8vVyuUzZT9RvD/j+BcqMb8eYQw7mM5WPKF11wyNZGBnlyUXscHoGiusRzqTpU9cWrQ85mKi+xv03j1t9U7beUNDX+HdRWwqOg+fdBTemz9jeDX+0g6pcwngZvw03QC602+7Jn+z2Ba/qgcBc8AK+0YDAVX2yiHftZ3szn5krk8hn7E489vaHkuqh+h5PnQ9l8DSyA+ZR8Ov3HoOb5onXZtKax5cLmcn1ch6q+eHXI2ZR/RXlx/G4usyMalm6jPx0Wkuwx9D1hXol+F9bB+aA2eqBz/05hVRfiCngJxsFQfxTjW2NjsKcT4mogeaVaKj5Pucp+n+BjH0YXwWS4r2mDXD73IX8W6KvmDLCceXq5XKdsYr6w7SSGLazo5jYedoBqvh/UPF8GJNr3t6ovXh1yNnPe66PW3XDKoGDrF9xxXGgfAidKYzmGdgVjy+gvZn7ToPH+i0eH+r9J6n8nt6LDp976XmQug1sKZIv04zm7U9oeusOeCRfCTFgBN0CZloqvE/vdj0NXEPtW+qnBOYvFy6dE18IkdL+hXw0TQc3Ty+U6ZTOOfWCXwb9XMfwTP94ETtDai6CbnFrKF7PHE62heO1Yfa6ZrOQsV6ZXxRfZ8erg2Yx9kZ3m1kVO7mBSN/yo6UFeDnt/Hof8+AIdvfMeUzCfs6+PI/bxJSebWx+LLf1enBP80PF3sDgce/q5+Ip0h7Kf7B0F+mBRZDuXT32Ust98sb6nl8t1ymZsv2isGIri8HwpstOOuSq+eHWQTymbnr9d6O2FGRDk9ItFB+XadsS4S/bfxcppHBipDWx7MshfPem+hvlwKaTayyy8AVXiq7rfFyln/qfzY4nbexNRjf5LOdNPrm74AEL7B4JsMAYZJUd2AAAAAElFTkSuQmCC","output":"base64","x":462,"y":326,"wires":[["7a75228eea42100f"]]},{"id":"7a75228eea42100f","type":"change","z":"73c6ec3469166a53","g":"df68812bfa2f304b","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$length($$.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":666,"y":386,"wires":[["cca1ac0ad6a81e89"]]},{"id":"cca1ac0ad6a81e89","type":"ut-assert-values","z":"73c6ec3469166a53","g":"df68812bfa2f304b","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2304","tot":"num"}],"x":904,"y":281,"wires":[[]]},{"id":"c7d4796fb4347db9","type":"inject","z":"73c6ec3469166a53","g":"df68812bfa2f304b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":285,"y":226,"wires":[["1af1d1a78872f81d"]]},{"id":"232d3753066e291f","type":"template","z":"73c6ec3469166a53","g":"b7e8dc9834de4ca6","name":"base64 content","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"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","output":"str","x":447,"y":613,"wires":[["23c64f6baf497f7b"]]},{"id":"6ef046f234135b59","type":"change","z":"73c6ec3469166a53","g":"b7e8dc9834de4ca6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$length($$.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":791,"y":669,"wires":[["78e3e203c0238ef9"]]},{"id":"78e3e203c0238ef9","type":"ut-assert-values","z":"73c6ec3469166a53","g":"b7e8dc9834de4ca6","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2304","tot":"num"}],"x":971,"y":528,"wires":[[]]},{"id":"23c64f6baf497f7b","type":"template","z":"73c6ec3469166a53","g":"b7e8dc9834de4ca6","name":"mustache tempalte + base64","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{{ payload }}}","output":"base64","x":491,"y":669,"wires":[["6ef046f234135b59"]]},{"id":"303c877eaab2c084","type":"inject","z":"73c6ec3469166a53","g":"b7e8dc9834de4ca6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":259,"y":632,"wires":[["232d3753066e291f"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"08183069b5f8ef9c","type":"tab","label":"[template] support mustache template","disabled":false,"info":"Basic support mustache templating using [bbmustache](https://github.com/soranoba/bbmustache).","env":[]},{"id":"bc81e6748b3aeb9c","type":"inject","z":"08183069b5f8ef9c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"<b>hello world</b>","payloadType":"str","x":608,"y":882,"wires":[["44c609fe82ebf669","8e84e08b55c84671","f1d52f3c187a674e"]]},{"id":"44c609fe82ebf669","type":"template","z":"08183069b5f8ef9c","name":"double {{ .. }}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{payload}} !","output":"str","x":866,"y":882,"wires":[["781a45ccaa1bf83f"]]},{"id":"781a45ccaa1bf83f","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"This is the payload: &lt;b&gt;hello world&lt;&#x2F;b&gt; !","tot":"str"}],"x":1102,"y":882,"wires":[[]]},{"id":"8e84e08b55c84671","type":"template","z":"08183069b5f8ef9c","name":"triple {{{ .. }}}","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {{{payload}}} !","output":"str","x":866,"y":958,"wires":[["74f729fd37514cd4"]]},{"id":"74f729fd37514cd4","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"This is the payload: <b>hello world</b> !","tot":"str"}],"x":1102,"y":1017,"wires":[[]]},{"id":"f1d52f3c187a674e","type":"template","z":"08183069b5f8ef9c","name":"single { .. }","field":"payload","fieldType":"msg","format":"text","syntax":"mustache","template":"This is the payload: {payload} !","output":"str","x":866,"y":813,"wires":[["cc3819b467390aab"]]},{"id":"cc3819b467390aab","type":"ut-assert-values","z":"08183069b5f8ef9c","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"This is the payload: {payload} !","tot":"str"}],"x":1102,"y":773,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"d17fb2553fe8013a","type":"tab","label":"[trigger] initial example","disabled":false,"info":"Trigger node is triggered by an initial message and then triggers a second message.\n\n","env":[{"name":"ERED_TIMEOUT","value":"5","type":"num"}]},{"id":"469703f8c105f0e3","type":"trigger","z":"d17fb2553fe8013a","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"250","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":540.5,"y":556,"wires":[["653a627dfd6a4008","cd24ab10540f47fb"]]},{"id":"9fbaee16b9177eab","type":"trigger","z":"d17fb2553fe8013a","name":"","op1":"1","op2":"reset","op1type":"str","op2type":"str","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"reset","bytopic":"all","topic":"topic","outputs":1,"x":343.5,"y":429,"wires":[["469703f8c105f0e3","e3130083fc4393a7"]]},{"id":"145960ef1fd08774","type":"inject","z":"d17fb2553fe8013a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":151,"y":321,"wires":[["9fbaee16b9177eab"]]},{"id":"653a627dfd6a4008","type":"trigger","z":"d17fb2553fe8013a","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"250","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":749,"y":694,"wires":[["46f16af544a8b248"]]},{"id":"46f16af544a8b248","type":"ut-assert-success","z":"d17fb2553fe8013a","name":"","count":"8","x":1120,"y":694,"wires":[]},{"id":"cd24ab10540f47fb","type":"ut-assert-success","z":"d17fb2553fe8013a","name":"","count":"4","x":983,"y":556,"wires":[]},{"id":"e3130083fc4393a7","type":"ut-assert-success","z":"d17fb2553fe8013a","name":"","count":"2","x":818,"y":429,"wires":[]}]