@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":"9f7351d7a7304584","type":"tab","label":"[file in] warning if no file name is defined","disabled":false,"info":"","env":[]},{"id":"cdbabcb6b51061f9","type":"inject","z":"9f7351d7a7304584","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":174,"y":320,"wires":[["6fbffd6301651ed1"]]},{"id":"6fbffd6301651ed1","type":"file in","z":"9f7351d7a7304584","name":"","filename":"","filenameType":"str","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":383,"y":510.5,"wires":[[]]},{"id":"28e29547e7ce42ff","type":"ut-assert-debug","z":"9f7351d7a7304584","name":"","scope":["6fbffd6301651ed1"],"nodeid":"6fbffd6301651ed1","msgtype":"warning","inverse":false,"x":581,"y":406.5,"wires":[["975c78138d7a4e7e"]]},{"id":"975c78138d7a4e7e","type":"ut-assert-values","z":"9f7351d7a7304584","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"6fbffd6301651ed1","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"30","tot":"num"},{"t":"eql","p":"data.msg","pt":"msg","to":"No filename specified","tot":"str"},{"t":"eql","p":"data.type","pt":"msg","to":"file in","tot":"str"}],"x":854,"y":333,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"9e7ccc97f80d9afb","type":"tab","label":"[file in] will accept file name from msg obj","disabled":false,"info":"A file name can also be dynamic and be taken from the msg object passed to the file in node.","env":[{"name":"ERED_ONLY","value":"false","type":"bool"}]},{"id":"3de9bd2926669640","type":"inject","z":"9e7ccc97f80d9afb","name":"","props":[{"p":"filename","v":"${priv}/testdata/helloworld.txt","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":145.1428985595703,"y":147.14284896850586,"wires":[["e89d0c894d08b485"]]},{"id":"e89d0c894d08b485","type":"file in","z":"9e7ccc97f80d9afb","name":"","filename":"filename","filenameType":"msg","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":342.1428985595703,"y":245.64284896850586,"wires":[["e0f13216032f1fe6","05c8dee92f3f6768"]]},{"id":"e0f13216032f1fe6","type":"ut-assert-values","z":"9e7ccc97f80d9afb","name":"","rules":[{"p":"payload","pt":"msg","t":"mth","to":"hello world","tot":"str"}],"x":594.1428985595703,"y":143.14284896850586,"wires":[[]]},{"id":"2b511c22a8ddb371","type":"ut-assert-debug","z":"9e7ccc97f80d9afb","name":"","scope":["e89d0c894d08b485"],"nodeid":"e89d0c894d08b485","msgtype":"normal","inverse":true,"x":274.1428985595703,"y":299.64284896850586,"wires":[["2fefb063b9b40a19"]]},{"id":"05c8dee92f3f6768","type":"ut-assert-success","z":"9e7ccc97f80d9afb","name":"","count":1,"x":636,"y":245.64284896850586,"wires":[]},{"id":"2fefb063b9b40a19","type":"ut-assert-failure","z":"9e7ccc97f80d9afb","name":"","x":636,"y":299.64284896850586,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"545871d31c3f5f3f","type":"tab","label":"[filter] ignore initial value per topic","disabled":false,"info":"## Filter - ignore initial value per topic\n\nmode `rbei` on a per-topic basis\n\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"3c4e67584d19c012","type":"group","z":"545871d31c3f5f3f","name":"per topic don't send the initial value","style":{"label":true},"nodes":["ff44d76ddb8618c5","a4519d9ec264bb3a","9d63a911e312a048","a5527e6132c646e9","f215556409247811","9ded603d948ed650","c2af3753cbf5e774","60ad92906796867b","e0f5a70eea23ab99","262dcc8e95664099","6b0e88f98ae54a28"],"x":72.28570556640625,"y":93.85714721679688,"w":1408,"h":384.57144927978516},{"id":"6b0e88f98ae54a28","type":"group","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"repeat ten times to send the same payload/topic combination","style":{"label":true},"nodes":["1f14a5b8101a4912","9693c86b1d2a8820","b4a72eed516bcca8","149c09ce5a468b50","1c32306789fcfa66"],"x":236.85712432861328,"y":296.3571472167969,"w":661.428581237793,"h":156.07144927978516},{"id":"ff44d76ddb8618c5","type":"rbe","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","func":"rbei","gap":"","start":"","inout":"out","septopics":true,"property":"payload","topi":"topic","x":1091.2857055664062,"y":247.71429697672522,"wires":[["a5527e6132c646e9","f215556409247811","9ded603d948ed650","262dcc8e95664099"]]},{"id":"a4519d9ec264bb3a","type":"inject","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"payload = 1 / topic = one","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"one","payload":"1","payloadType":"num","x":228.28570556640625,"y":247.71429697672522,"wires":[["ff44d76ddb8618c5","1f14a5b8101a4912"]]},{"id":"9d63a911e312a048","type":"inject","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"payload = 1 / topic = two","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"two","payload":"1","payloadType":"num","x":245.28570556640625,"y":191.28572209676105,"wires":[["ff44d76ddb8618c5","1f14a5b8101a4912"]]},{"id":"1f14a5b8101a4912","type":"change","z":"545871d31c3f5f3f","g":"6b0e88f98ae54a28","name":"payload = 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":579.2857055664062,"y":337.3571472167969,"wires":[["9693c86b1d2a8820"]]},{"id":"9693c86b1d2a8820","type":"delay","z":"545871d31c3f5f3f","g":"6b0e88f98ae54a28","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":802.2857055664062,"y":337.3571472167969,"wires":[["ff44d76ddb8618c5","c2af3753cbf5e774","e0f5a70eea23ab99","b4a72eed516bcca8"]]},{"id":"a5527e6132c646e9","type":"ut-assert-success","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","count":"3","x":1364.2857055664062,"y":165.85714721679688,"wires":[]},{"id":"f215556409247811","type":"ut-assert-values","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"},{"t":"eql","p":"topic","pt":"msg","to":"one","tot":"str"}],"x":1364.2857055664062,"y":247.71429697672522,"wires":[[]]},{"id":"9ded603d948ed650","type":"ut-assert-values","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"},{"t":"eql","p":"topic","pt":"msg","to":"two","tot":"str"}],"x":1364.2857055664062,"y":329.5714467366536,"wires":[[]]},{"id":"c2af3753cbf5e774","type":"ut-assert-success","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","count":"12","x":1091.2857055664062,"y":337.3571472167969,"wires":[]},{"id":"60ad92906796867b","type":"inject","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"payload = 1 / topic = undefined","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":282.28570556640625,"y":134.85714721679688,"wires":[["ff44d76ddb8618c5","1f14a5b8101a4912"]]},{"id":"e0f5a70eea23ab99","type":"ut-assert-values","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1091.2857055664062,"y":411.42859649658203,"wires":[[]]},{"id":"262dcc8e95664099","type":"ut-assert-values","z":"545871d31c3f5f3f","g":"3c4e67584d19c012","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"},{"t":"notset","p":"topic","pt":"msg"}],"x":1364.2857055664062,"y":411.42859649658203,"wires":[[]]},{"id":"b4a72eed516bcca8","type":"function","z":"545871d31c3f5f3f","g":"6b0e88f98ae54a28","name":"set message counter","func":"%% _mc_incoming is an internal counter of messages received \n%% by any node during its lifetime. this counter is for this\n%% function node and defacto counts the number of times the\n%% message looped passed this function node.\n\n#{ '_mc_incoming' := Incoming } = NodeDef,\nMsg#{ <<\"msg_count\">> => Incoming }\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":767.1428375244141,"y":411.42859649658203,"wires":[["149c09ce5a468b50"]]},{"id":"149c09ce5a468b50","type":"switch","z":"545871d31c3f5f3f","g":"6b0e88f98ae54a28","name":"","property":"msg_count","propertyType":"msg","rules":[{"t":"lt","v":"10","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":312.8571243286133,"y":411.42859649658203,"wires":[["1f14a5b8101a4912","1c32306789fcfa66"]]},{"id":"1c32306789fcfa66","type":"ut-assert-success","z":"545871d31c3f5f3f","g":"6b0e88f98ae54a28","name":"","count":"9","x":540,"y":411.42859649658203,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"51bfa9456b1745c0","type":"tab","label":"[filter] ignore initial value","disabled":false,"info":"## Filter Node - ignore initial value\n\nmode `rbei` with **no** topic grouping\n\nIgnore initial value seems to be mean that the initial value is **always** ignored and only if something changes does the msg get through.","env":[{"name":"NRED_TIMEOUT","value":"6","type":"num"},{"name":"ERED_PENDING","value":"true","type":"bool"}]},{"id":"026f7ba779774f8a","type":"group","z":"51bfa9456b1745c0","name":"initial value of one isn't passed through","style":{"label":true},"nodes":["1c31ccbdd0ca019d","a0ada11602a931be","89545c20cbf6910e","73d7b68a95c8127a","2dbebf5ddc750166","1bf2654f308ef5f8","8b789d2849f4a32c","7ff8c7d31547b09e","26561d0daa7b0eb1","b941869cd2230edd","9c3d3e831642e3f5","9cfe1e03363b727d"],"x":58,"y":83,"w":1130,"h":249.5},{"id":"cb54627a53643afa","type":"group","z":"51bfa9456b1745c0","name":"respect the reset message and allow no data through","style":{"label":true},"nodes":["bef98832a0508b3c","af0b0f776d9b0416","225c36a12a0fb30a","1b4a2f47a4aba8c0","2add4ae8bea26031","d3e04b85690fed3b","4c5dfdad9d41f265","be5ff44248ee6058","60300f7772c61018","0c75c5447a6e5902","d249e025b57df26d","957ab635377f6174","9257037c4b368cff"],"x":73,"y":380.5,"w":1109.6666259765625,"h":301.5},{"id":"2e6137a4e2f31ba0","type":"group","z":"51bfa9456b1745c0","name":"ignore the reset message and allow no data through - the value of '1' is ignored because it was the initial value, even after reset","style":{"label":true},"nodes":["32b1bb40a32514b1","beac50ab3955f6c8","9a05a4ca94dcd297","ab32a19a909a9bc0","252d32a6e67bb44a","d7d4c61325feae50","130ad6d9116381ee","67adbc0593538aac","ec18bec9f68a5d3f","91dda99edcd99dd7","022d4a59935a280e","33939e5957bdc92b","c694eec195ace9fe","d1e3066f6adcfe6a","f465647ffd51e2cc","e1092baceb73ea67","3b6150c538be14dd","44a8e218872d9fc1","35311ac3d01a8d7a","39c2baaccaf04f23","4b194b18b3b00640"],"x":69.4444580078125,"y":752.8888120651245,"w":1508.5554962158203,"h":607.0001764297485},{"id":"1c31ccbdd0ca019d","type":"rbe","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","func":"rbei","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":748,"y":124,"wires":[["1bf2654f308ef5f8","8b789d2849f4a32c","7ff8c7d31547b09e","26561d0daa7b0eb1"]]},{"id":"a0ada11602a931be","type":"inject","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":154,"y":124,"wires":[["1c31ccbdd0ca019d","b941869cd2230edd","9c3d3e831642e3f5","9cfe1e03363b727d"]]},{"id":"89545c20cbf6910e","type":"delay","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":547,"y":180.5,"wires":[["1c31ccbdd0ca019d"]]},{"id":"73d7b68a95c8127a","type":"delay","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":567,"y":236,"wires":[["1c31ccbdd0ca019d"]]},{"id":"2dbebf5ddc750166","type":"delay","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","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":587,"y":291.5,"wires":[["1c31ccbdd0ca019d"]]},{"id":"1bf2654f308ef5f8","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1052,"y":188,"wires":[[]]},{"id":"8b789d2849f4a32c","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"3","tot":"num"}],"x":1052,"y":239.5,"wires":[[]]},{"id":"7ff8c7d31547b09e","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"4","tot":"num"}],"x":1052,"y":291,"wires":[[]]},{"id":"26561d0daa7b0eb1","type":"ut-assert-success","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","msglimit":"==","count":"3","x":1043,"y":124,"wires":[]},{"id":"b941869cd2230edd","type":"change","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":366,"y":180.5,"wires":[["89545c20cbf6910e"]]},{"id":"9c3d3e831642e3f5","type":"change","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"3","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":354,"y":236,"wires":[["73d7b68a95c8127a"]]},{"id":"9cfe1e03363b727d","type":"change","z":"51bfa9456b1745c0","g":"026f7ba779774f8a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"4","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":342,"y":291.5,"wires":[["2dbebf5ddc750166"]]},{"id":"bef98832a0508b3c","type":"rbe","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","func":"rbei","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":763,"y":421.5,"wires":[["0c75c5447a6e5902","d249e025b57df26d","957ab635377f6174"]]},{"id":"af0b0f776d9b0416","type":"inject","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":169,"y":421.5,"wires":[["bef98832a0508b3c","d3e04b85690fed3b","4c5dfdad9d41f265","60300f7772c61018","1b4a2f47a4aba8c0"]]},{"id":"225c36a12a0fb30a","type":"delay","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":562,"y":477.5,"wires":[["bef98832a0508b3c"]]},{"id":"1b4a2f47a4aba8c0","type":"delay","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","pauseType":"delay","timeout":"400","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":351.77770233154297,"y":528.2222318649292,"wires":[["9257037c4b368cff"]]},{"id":"2add4ae8bea26031","type":"delay","z":"51bfa9456b1745c0","g":"cb54627a53643afa","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":619.333333333333,"y":586.5,"wires":[["bef98832a0508b3c"]]},{"id":"d3e04b85690fed3b","type":"change","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":381,"y":477.5,"wires":[["225c36a12a0fb30a"]]},{"id":"4c5dfdad9d41f265","type":"change","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":331.66666666666663,"y":586.5,"wires":[["2add4ae8bea26031"]]},{"id":"be5ff44248ee6058","type":"delay","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","pauseType":"delay","timeout":"800","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":648,"y":641,"wires":[["bef98832a0508b3c"]]},{"id":"60300f7772c61018","type":"change","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"payload = 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":297,"y":641,"wires":[["be5ff44248ee6058"]]},{"id":"0c75c5447a6e5902","type":"ut-assert-success","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","msglimit":"==","count":"1","x":1038,"y":421.5,"wires":[]},{"id":"d249e025b57df26d","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1011,"y":485,"wires":[[]]},{"id":"957ab635377f6174","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"noteql","p":"reset","pt":"msg","to":"true","tot":"bool"}],"x":1036.6666259765625,"y":593.8888244628906,"wires":[[]]},{"id":"9257037c4b368cff","type":"change","z":"51bfa9456b1745c0","g":"cb54627a53643afa","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":584.4444580078125,"y":528.2222318649292,"wires":[["bef98832a0508b3c"]]},{"id":"32b1bb40a32514b1","type":"rbe","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","func":"rbei","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":1158.3333282470703,"y":793.8888120651245,"wires":[["91dda99edcd99dd7","022d4a59935a280e","33939e5957bdc92b"]]},{"id":"beac50ab3955f6c8","type":"inject","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":165.4444580078125,"y":793.8888120651245,"wires":[["32b1bb40a32514b1","d7d4c61325feae50","130ad6d9116381ee","ec18bec9f68a5d3f","ab32a19a909a9bc0","f465647ffd51e2cc","3b6150c538be14dd","44a8e218872d9fc1","4b194b18b3b00640"]]},{"id":"9a05a4ca94dcd297","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":760.6667251586914,"y":850.4444046020508,"wires":[["32b1bb40a32514b1"]]},{"id":"ab32a19a909a9bc0","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"400","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":550.4444274902344,"y":909.6888711929321,"wires":[["c694eec195ace9fe"]]},{"id":"252d32a6e67bb44a","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","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":818.0000584920244,"y":967.1555591583251,"wires":[["32b1bb40a32514b1"]]},{"id":"d7d4c61325feae50","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":579.6667251586914,"y":850.4444046020508,"wires":[["9a05a4ca94dcd297"]]},{"id":"130ad6d9116381ee","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":530.333391825358,"y":968.9333377838134,"wires":[["252d32a6e67bb44a"]]},{"id":"67adbc0593538aac","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"800","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":846.6667251586914,"y":1025.5111364364623,"wires":[["32b1bb40a32514b1"]]},{"id":"ec18bec9f68a5d3f","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"payload = 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":495.6667251586914,"y":1028.1778043746947,"wires":[["67adbc0593538aac"]]},{"id":"91dda99edcd99dd7","type":"ut-assert-success","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","msglimit":"==","count":"4","x":1433.3333282470703,"y":793.8888120651245,"wires":[]},{"id":"022d4a59935a280e","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1406.3333282470703,"y":854.6109981536865,"wires":[[]]},{"id":"33939e5957bdc92b","type":"ut-assert-values","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"noteql","p":"reset","pt":"msg","to":"true","tot":"bool"}],"x":1431.9999542236328,"y":963.4998226165771,"wires":[[]]},{"id":"c694eec195ace9fe","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":783.1111831665039,"y":908.7999818801879,"wires":[["32b1bb40a32514b1"]]},{"id":"d1e3066f6adcfe6a","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":921.1111679077148,"y":1083.8667137145994,"wires":[["32b1bb40a32514b1"]]},{"id":"f465647ffd51e2cc","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"payload = 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":457.88880920410156,"y":1087.422270965576,"wires":[["d1e3066f6adcfe6a"]]},{"id":"e1092baceb73ea67","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"1111","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":978.8889083862305,"y":1142.2222909927368,"wires":[["32b1bb40a32514b1"]]},{"id":"3b6150c538be14dd","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"payload = 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":424.5554885864258,"y":1146.6667375564575,"wires":[["e1092baceb73ea67"]]},{"id":"44a8e218872d9fc1","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"1400","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":568.8888931274414,"y":1208.888991355896,"wires":[["35311ac3d01a8d7a"]]},{"id":"35311ac3d01a8d7a","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":791.5556488037109,"y":1208.888991355896,"wires":[["32b1bb40a32514b1"]]},{"id":"39c2baaccaf04f23","type":"delay","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"","pauseType":"delay","timeout":"1600","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":997.7778015136719,"y":1314.4445419311523,"wires":[["32b1bb40a32514b1"]]},{"id":"4b194b18b3b00640","type":"change","z":"51bfa9456b1745c0","g":"2e6137a4e2f31ba0","name":"payload = 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":383.4443817138672,"y":1318.888988494873,"wires":[["39c2baaccaf04f23"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"f19fdae0c02b4f03","type":"tab","label":"[filter] post if value changed","disabled":false,"info":"## Filter Node - block unless value changes\n\n`rbe` mode with no topic\n\nrbe = Report by Exception \n\n## More test cases\n\nThere are more tests to be had:\n\n- initial message is a reset message\n - with payload\n - without payload\n\n","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"NRED_TIMEOUT","value":"10","type":"num"}]},{"id":"1fad26711775a40e","type":"group","z":"f19fdae0c02b4f03","name":"property name is payload","style":{"label":true},"nodes":["ba56e9576baa4861","9d20155046acc31d","8543499ae5fd3576","6bebc590dadbb889","91dc380dc998eb73","4a2e2509bb56578c","de9e7db23aa445d4","4ad5428bb1c2b43b","3a69a6eab42aa620"],"x":74.71431732177734,"y":169.25000762939453,"w":1501,"h":388.82148456573486},{"id":"bcbd77613b58fd14","type":"group","z":"f19fdae0c02b4f03","name":"property name is 'fubar'","style":{"label":true},"nodes":["93d6c55ad6d1226d","6a895b8bf87276db","59dce407eef8cca0","1d0568738eeca121","1b6070bfb3872cb0","48147307210ff02d","e55e7353f2bac7d8","0ca2a03e246542f6","5104a3873348939b"],"x":83.2857666015625,"y":617.9464721679688,"w":1501,"h":370.2500686645508},{"id":"fd7e9b5411af529a","type":"group","z":"f19fdae0c02b4f03","name":"initial value of one is passed through","style":{"label":true},"nodes":["efe7ba3be4543696","67ab18c23e6c587b","0b44e89a334f0d8a","db5d759eb00cc309","cf9d3c1218efdb76","bc46ed8ef3228081","ac89fbae93406c6b","0766942615326863","562c17db94814a4d","a97de0b6702f0df0","477a74766db49b18","fa0885e500e36329","70cbcae5d6ecbd90"],"x":82,"y":1100,"w":1130,"h":281},{"id":"5a6888198548f8a1","type":"group","z":"f19fdae0c02b4f03","name":"reset message carries no payload value, payload is 1 twice as subsequent message after reset is sent through","style":{"label":true},"nodes":["7f05cc05bd28ba55","077dab67f1b3e189","7f756373695c6370","01f9ade51488b89b","932d64cad9078ef8","96d8d76f33ea1497","d153932e2569b829","81db7508d0f3aeb5","4fbd1b0bdd4d239b","3c2936242e3e2197","623142d62c346a6d"],"x":312,"y":1434,"w":1130,"h":249.5,"info":"Note: The delay node also accepts the `msg.reset` flag so the setting of that flag has to happen after the delay - which wasn't the case before.\n"},{"id":"092da56d4fc7ede2","type":"group","z":"f19fdae0c02b4f03","name":"reset message also has a payload with the same value as the initial value, only the reset message and the initial message go through","style":{"label":true},"nodes":["02fc55a36c40a947","86a313fe6909822f","16c6e5df668cfaa5","2cdadb27c4b1ac57","59b58ece613dd2ae","fae6e45348541c43","93c1e98a446de545","5ea3dfd575e08333","38ac3f21aadabc47","bc564a8cfb91a4c3","edc50f0873a61a11"],"x":309,"y":1707,"w":1130,"h":249.5,"info":"Note: The delay node also accepts the `msg.reset` flag so the setting of that flag has to happen after the delay - which wasn't the case before.\n"},{"id":"a3a026c062320c8a","type":"group","z":"f19fdae0c02b4f03","name":"reset message also has a payload with a value different to the initial value, reset message goes through and the subsequent message as it has a different value","style":{"label":true},"nodes":["1a3197b267034b2c","b3bce9bfa78aa434","4297bf467c2011a9","12684a01439a597e","18f44fa2be405d8e","e5aaf1cd293ba857","c6d120f72ee51aa6","4f28a47062a337c9","1c9e26aa6c0955f4","9366e15d3d4a8c5f","7a7ef9f42a37146f","0fc9d9b4a1ab06e3"],"x":307,"y":1982,"w":1128,"h":249.5,"info":"Note: The delay node also accepts the `msg.reset` flag so the setting of that flag has to happen after the delay - which wasn't the case before.\n"},{"id":"1ddf8af78834dbe6","type":"group","z":"f19fdae0c02b4f03","name":"reset message has payload of 2 and the subsequent message also, so it's not passed through","style":{"label":true},"nodes":["2fffbe7ec823c205","f733c08f2aa8412f","5eb1373d510ad013","c9c02cf85d9686e6","66576bba148d46d8","42554d60d038523a","e9fc94a94594fe0a","0f198067e9b65697","9526163eeb8f0fca","7a2086b973140eb2","18d95c0b2ebf07b5","c75b73c5d9862969"],"x":296,"y":2299,"w":1128,"h":253,"info":"Note: The delay node also accepts the `msg.reset` flag so the setting of that flag has to happen after the delay - which wasn't the case before.\n"},{"id":"d60898375c22ed1b","type":"group","z":"f19fdae0c02b4f03","name":"subsequent message after reset has different value and goes through","style":{"label":true},"nodes":["8f60e7d8adf7d125","ea4608cab97ce1d1","72dc1879f1f4d898","3bdd95af7f84d9fd","04f37c8f3dea1457","1390a5bb66913d7f","287496ac14c32e27","82dff00f04f07d69","d2a5d53a1912825c","5d46132c6cb2c629","5aad16a5af063f9a","9f80bcadd23308cf"],"x":1512,"y":1706,"w":1130,"h":252,"info":"Note: The delay node also accepts the `msg.reset` flag so the setting of that flag has to happen after the delay - which wasn't the case before.\n"},{"id":"ba56e9576baa4861","type":"rbe","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","func":"rbe","gap":"10%","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":1035.7143173217773,"y":429.87500762939453,"wires":[["91dc380dc998eb73","de9e7db23aa445d4","4ad5428bb1c2b43b"]]},{"id":"9d20155046acc31d","type":"inject","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","props":[{"p":"counter","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":170.71431732177734,"y":429.87500762939453,"wires":[["8543499ae5fd3576"]]},{"id":"8543499ae5fd3576","type":"change","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"10","tot":"num"},{"t":"set","p":"counter","pt":"msg","to":"$$.counter + 1","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":616.7143173217773,"y":429.87500762939453,"wires":[["6bebc590dadbb889","ba56e9576baa4861","3a69a6eab42aa620"]]},{"id":"6bebc590dadbb889","type":"switch","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"limit to 1000 messages","property":"counter","propertyType":"msg","rules":[{"t":"lt","v":"1000","vt":"num"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":616.7143173217773,"y":210.25000762939453,"wires":[["8543499ae5fd3576"],["4a2e2509bb56578c"]]},{"id":"91dc380dc998eb73","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","count":"2","x":1459.7143173217773,"y":429.87500762939453,"wires":[]},{"id":"4a2e2509bb56578c","type":"change","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"11","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":855.7143249511719,"y":316.8572082519531,"wires":[["ba56e9576baa4861"]]},{"id":"de9e7db23aa445d4","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"10","tot":"num"}],"x":1266.7143173217773,"y":316.8572082519531,"wires":[[]]},{"id":"4ad5428bb1c2b43b","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"11","tot":"num"}],"x":1368.2143173217773,"y":373.3661079406738,"wires":[[]]},{"id":"3a69a6eab42aa620","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"1fad26711775a40e","name":"","count":"1000","x":953.5714263916016,"y":517.0714921951294,"wires":[]},{"id":"93d6c55ad6d1226d","type":"rbe","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","func":"rbe","gap":"10%","start":"","inout":"out","septopics":false,"property":"fubar","topi":"topic","x":1044.2857666015625,"y":878.5714721679688,"wires":[["1b6070bfb3872cb0","e55e7353f2bac7d8","0ca2a03e246542f6"]]},{"id":"6a895b8bf87276db","type":"inject","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","props":[{"p":"counter","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":179.2857666015625,"y":878.5714721679688,"wires":[["59dce407eef8cca0"]]},{"id":"59dce407eef8cca0","type":"change","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","rules":[{"t":"set","p":"fubar","pt":"msg","to":"10","tot":"num"},{"t":"set","p":"counter","pt":"msg","to":"$$.counter + 1","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":625.2857666015625,"y":878.5714721679688,"wires":[["1d0568738eeca121","93d6c55ad6d1226d","5104a3873348939b"]]},{"id":"1d0568738eeca121","type":"switch","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"limit to 1000 messages","property":"counter","propertyType":"msg","rules":[{"t":"lt","v":"1000","vt":"num"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":625.2857666015625,"y":658.9464721679688,"wires":[["59dce407eef8cca0"],["48147307210ff02d"]]},{"id":"1b6070bfb3872cb0","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","count":"2","x":1468.2857666015625,"y":878.5714721679688,"wires":[]},{"id":"48147307210ff02d","type":"change","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","rules":[{"t":"set","p":"fubar","pt":"msg","to":"11","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":864.285774230957,"y":765.5536727905273,"wires":[["93d6c55ad6d1226d"]]},{"id":"e55e7353f2bac7d8","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"fubar","pt":"msg","to":"10","tot":"num"}],"x":1265.2857666015625,"y":765.5536727905273,"wires":[[]]},{"id":"0ca2a03e246542f6","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"fubar","pt":"msg","to":"11","tot":"num"}],"x":1366.7857666015625,"y":822.062572479248,"wires":[[]]},{"id":"5104a3873348939b","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"bcbd77613b58fd14","name":"","count":"1000","x":939.2857437133789,"y":947.1965408325195,"wires":[]},{"id":"efe7ba3be4543696","type":"rbe","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":772,"y":1141,"wires":[["bc46ed8ef3228081","ac89fbae93406c6b","0766942615326863","562c17db94814a4d","70cbcae5d6ecbd90"]]},{"id":"67ab18c23e6c587b","type":"inject","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":178,"y":1141,"wires":[["efe7ba3be4543696","a97de0b6702f0df0","477a74766db49b18","fa0885e500e36329"]]},{"id":"0b44e89a334f0d8a","type":"delay","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":571,"y":1197.5,"wires":[["efe7ba3be4543696"]]},{"id":"db5d759eb00cc309","type":"delay","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":576,"y":1249.5,"wires":[["efe7ba3be4543696"]]},{"id":"cf9d3c1218efdb76","type":"delay","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","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":611,"y":1308.5,"wires":[["efe7ba3be4543696"]]},{"id":"bc46ed8ef3228081","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1076,"y":1240.5,"wires":[[]]},{"id":"ac89fbae93406c6b","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"3","tot":"num"}],"x":1076,"y":1290.25,"wires":[[]]},{"id":"0766942615326863","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"4","tot":"num"}],"x":1076,"y":1340,"wires":[[]]},{"id":"562c17db94814a4d","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","count":"4","x":1056,"y":1141,"wires":[]},{"id":"a97de0b6702f0df0","type":"change","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"payload = 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":1197.5,"wires":[["0b44e89a334f0d8a"]]},{"id":"477a74766db49b18","type":"change","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"payload = 3 ","rules":[{"t":"set","p":"payload","pt":"msg","to":"3","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":374,"y":1249.5,"wires":[["db5d759eb00cc309"]]},{"id":"fa0885e500e36329","type":"change","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"payload = 4","rules":[{"t":"set","p":"payload","pt":"msg","to":"4","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":356,"y":1308.5,"wires":[["cf9d3c1218efdb76"]]},{"id":"70cbcae5d6ecbd90","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"fd7e9b5411af529a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"1","tot":"num"}],"x":1076,"y":1190.75,"wires":[[]]},{"id":"7f05cc05bd28ba55","type":"rbe","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":1002,"y":1475,"wires":[["96d8d76f33ea1497","4fbd1b0bdd4d239b","623142d62c346a6d"]]},{"id":"077dab67f1b3e189","type":"inject","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":408,"y":1475,"wires":[["7f05cc05bd28ba55","d153932e2569b829","81db7508d0f3aeb5","01f9ade51488b89b"]]},{"id":"7f756373695c6370","type":"delay","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":801,"y":1531.5,"wires":[["7f05cc05bd28ba55"]]},{"id":"01f9ade51488b89b","type":"delay","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":599.8888626098633,"y":1587.4444618225098,"wires":[["3c2936242e3e2197"]]},{"id":"932d64cad9078ef8","type":"delay","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","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":841,"y":1642.5,"wires":[["7f05cc05bd28ba55"]]},{"id":"96d8d76f33ea1497","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","msglimit":"==","count":"2","x":1286,"y":1475,"wires":[]},{"id":"d153932e2569b829","type":"change","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":1531.5,"wires":[["7f756373695c6370"]]},{"id":"81db7508d0f3aeb5","type":"change","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":596,"y":1642.5,"wires":[["932d64cad9078ef8"]]},{"id":"4fbd1b0bdd4d239b","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"1","tot":"num"}],"x":1306,"y":1526.5,"wires":[[]]},{"id":"3c2936242e3e2197","type":"change","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"reset and no payload value","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":851.4443435668945,"y":1587.4444618225098,"wires":[["7f05cc05bd28ba55"]]},{"id":"02fc55a36c40a947","type":"rbe","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":999,"y":1748,"wires":[["fae6e45348541c43","38ac3f21aadabc47","edc50f0873a61a11"]]},{"id":"86a313fe6909822f","type":"inject","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":405,"y":1748,"wires":[["02fc55a36c40a947","93c1e98a446de545","5ea3dfd575e08333","2cdadb27c4b1ac57"]]},{"id":"16c6e5df668cfaa5","type":"delay","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":798,"y":1804.5,"wires":[["02fc55a36c40a947"]]},{"id":"2cdadb27c4b1ac57","type":"delay","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":596.8888626098633,"y":1860.4444618225098,"wires":[["bc564a8cfb91a4c3"]]},{"id":"59b58ece613dd2ae","type":"delay","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","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":838,"y":1915.5,"wires":[["02fc55a36c40a947"]]},{"id":"fae6e45348541c43","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","msglimit":"==","count":"2","x":1283,"y":1748,"wires":[]},{"id":"93c1e98a446de545","type":"change","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":617,"y":1804.5,"wires":[["16c6e5df668cfaa5"]]},{"id":"5ea3dfd575e08333","type":"change","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":593,"y":1915.5,"wires":[["59b58ece613dd2ae"]]},{"id":"38ac3f21aadabc47","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"1","tot":"num"}],"x":1303,"y":1802,"wires":[[]]},{"id":"bc564a8cfb91a4c3","type":"change","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"reset and set payload = 1","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":838.4443435668945,"y":1860.4444618225098,"wires":[["02fc55a36c40a947"]]},{"id":"1a3197b267034b2c","type":"rbe","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":997,"y":2023,"wires":[["e5aaf1cd293ba857","1c9e26aa6c0955f4","7a7ef9f42a37146f","0fc9d9b4a1ab06e3"]]},{"id":"b3bce9bfa78aa434","type":"inject","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":403,"y":2023,"wires":[["1a3197b267034b2c","c6d120f72ee51aa6","4f28a47062a337c9","12684a01439a597e"]]},{"id":"4297bf467c2011a9","type":"delay","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":796,"y":2079.5,"wires":[["1a3197b267034b2c"]]},{"id":"12684a01439a597e","type":"delay","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":594.8888626098633,"y":2135.4444618225098,"wires":[["9366e15d3d4a8c5f"]]},{"id":"18f44fa2be405d8e","type":"delay","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","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":836,"y":2190.5,"wires":[["1a3197b267034b2c"]]},{"id":"e5aaf1cd293ba857","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","msglimit":"==","count":"3","x":1279,"y":2023,"wires":[]},{"id":"c6d120f72ee51aa6","type":"change","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":615,"y":2079.5,"wires":[["4297bf467c2011a9"]]},{"id":"4f28a47062a337c9","type":"change","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":591,"y":2190.5,"wires":[["18f44fa2be405d8e"]]},{"id":"1c9e26aa6c0955f4","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"1","tot":"num"}],"x":1299,"y":2075.6666666666665,"wires":[[]]},{"id":"9366e15d3d4a8c5f","type":"change","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"reset and set payload = 2","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":836.4443435668945,"y":2135.4444618225098,"wires":[["1a3197b267034b2c"]]},{"id":"edc50f0873a61a11","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"092da56d4fc7ede2","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"set","p":"reset","pt":"msg"}],"x":1273,"y":1856,"wires":[[]]},{"id":"623142d62c346a6d","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"5a6888198548f8a1","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"notset","p":"reset","pt":"msg"}],"x":1286,"y":1578,"wires":[[]]},{"id":"7a7ef9f42a37146f","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"set","p":"reset","pt":"msg"}],"x":1269,"y":2128.333333333333,"wires":[[]]},{"id":"2fffbe7ec823c205","type":"rbe","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":986,"y":2340,"wires":[["42554d60d038523a","9526163eeb8f0fca","18d95c0b2ebf07b5","c75b73c5d9862969"]]},{"id":"f733c08f2aa8412f","type":"inject","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":392,"y":2340,"wires":[["2fffbe7ec823c205","e9fc94a94594fe0a","0f198067e9b65697","c9c02cf85d9686e6"]]},{"id":"5eb1373d510ad013","type":"delay","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":785,"y":2396.5,"wires":[["2fffbe7ec823c205"]]},{"id":"c9c02cf85d9686e6","type":"delay","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","pauseType":"delay","timeout":"400","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":583.8888626098633,"y":2452.4444618225098,"wires":[["7a2086b973140eb2"]]},{"id":"66576bba148d46d8","type":"delay","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","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":825,"y":2507.5,"wires":[["2fffbe7ec823c205"]]},{"id":"42554d60d038523a","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","msglimit":"==","count":"2","x":1268,"y":2340,"wires":[]},{"id":"e9fc94a94594fe0a","type":"change","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":604,"y":2396.5,"wires":[["5eb1373d510ad013"]]},{"id":"0f198067e9b65697","type":"change","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"payload = 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":2507.5,"wires":[["66576bba148d46d8"]]},{"id":"9526163eeb8f0fca","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"1","tot":"num"}],"x":1288,"y":2397,"wires":[[]]},{"id":"7a2086b973140eb2","type":"change","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"reset and set payload = 2","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":825.4443435668945,"y":2452.4444618225098,"wires":[["2fffbe7ec823c205"]]},{"id":"18d95c0b2ebf07b5","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"set","p":"reset","pt":"msg"}],"x":1258,"y":2454,"wires":[[]]},{"id":"c75b73c5d9862969","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"1ddf8af78834dbe6","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1288,"y":2511,"wires":[[]]},{"id":"0fc9d9b4a1ab06e3","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"a3a026c062320c8a","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":1299,"y":2181,"wires":[[]]},{"id":"8f60e7d8adf7d125","type":"rbe","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":false,"property":"payload","topi":"topic","x":2202,"y":1747,"wires":[["1390a5bb66913d7f","d2a5d53a1912825c","5aad16a5af063f9a","9f80bcadd23308cf"]]},{"id":"ea4608cab97ce1d1","type":"inject","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":1608,"y":1747,"wires":[["8f60e7d8adf7d125","287496ac14c32e27","82dff00f04f07d69","3bdd95af7f84d9fd"]]},{"id":"72dc1879f1f4d898","type":"delay","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":2001,"y":1803.5,"wires":[["8f60e7d8adf7d125"]]},{"id":"3bdd95af7f84d9fd","type":"delay","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","pauseType":"delay","timeout":"200","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1799.8888626098633,"y":1859.4444618225098,"wires":[["5d46132c6cb2c629"]]},{"id":"04f37c8f3dea1457","type":"delay","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","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":2041,"y":1914.5,"wires":[["8f60e7d8adf7d125"]]},{"id":"1390a5bb66913d7f","type":"ut-assert-success","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","msglimit":"==","count":"3","x":2486,"y":1747,"wires":[]},{"id":"287496ac14c32e27","type":"change","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","rules":[],"action":"","property":"","from":"","to":"","reg":false,"x":1820,"y":1803.5,"wires":[["72dc1879f1f4d898"]]},{"id":"82dff00f04f07d69","type":"change","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"payload = 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"2","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1786,"y":1914.5,"wires":[["04f37c8f3dea1457"]]},{"id":"d2a5d53a1912825c","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"1","tot":"num"}],"x":2506,"y":1803.6666666666667,"wires":[[]]},{"id":"5d46132c6cb2c629","type":"change","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"reset and set payload = 1","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":2041.4443435668945,"y":1859.4444618225098,"wires":[["8f60e7d8adf7d125"]]},{"id":"5aad16a5af063f9a","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"set","p":"reset","pt":"msg"}],"x":2476,"y":1860.3333333333335,"wires":[[]]},{"id":"9f80bcadd23308cf","type":"ut-assert-values","z":"f19fdae0c02b4f03","g":"d60898375c22ed1b","name":"","ignore_failure_if_succeed":true,"rules":[{"t":"eql","p":"payload","pt":"msg","to":"2","tot":"num"}],"x":2506,"y":1917,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"70fb2a061a2b073d","type":"tab","label":"[flowhubpull] retrieve flow id","disabled":false,"info":"","env":[{"name":"ERED_ONLY","value":"true","type":"bool"},{"name":"ERED_PENDING","value":"true","type":"bool"}]},{"id":"25d0e57a7ef7d421","type":"group","z":"70fb2a061a2b073d","name":"flowid configured on node","style":{"label":true},"nodes":["4b46f1f2d5dc1263","a1dd14b5caad6cf0","dee10be3d9b662cd","2e58215af0d68b56","c2531fb627dbde3c","9de928a80f1a12fc","6436dc3078d96255","26796c184a940ef3","52cc643057d9e8b2"],"x":71,"y":76.77778100967407,"w":1110,"h":273.7222189903259},{"id":"b860f91f45ac9b1f","type":"group","z":"70fb2a061a2b073d","name":"flowid configured on msg","style":{"label":true},"nodes":["09a84c10ed4b3472","be03413177e0343e","80a8f5ec6e79f428","08051f4ce4b83c7c","87c27449f687518d","07dafc2b90dd1d07","a59661a14483d5a5","cdfaf380723de514","a1e701f0670d2837"],"x":112.4444580078125,"y":397.888916015625,"w":1066.6666564941406,"h":277.3333282470703},{"id":"5889b06b0bf92818","type":"group","z":"70fb2a061a2b073d","name":"no flowid set","style":{"label":true},"nodes":["05eb40ca93899f2a","250906ad1f0ece4d","d1a6c480c67cc4a0","7689c63c4de8ac44","dd292701c7ad5efe","e071e164dc3e31b0"],"x":231.77777099609375,"y":769.0000610351562,"w":777.5555534362793,"h":203.72218704223633},{"id":"4b46f1f2d5dc1263","type":"FlowHubPull","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","notab":false,"flowid":"70fb2a061a2b073d","flowname":"[flowhubpull] retrieve flow id","flowrevision":"","x":453,"y":304.5,"wires":[["2e58215af0d68b56","c2531fb627dbde3c"],["dee10be3d9b662cd"]]},{"id":"a1dd14b5caad6cf0","type":"inject","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":167,"y":240,"wires":[["4b46f1f2d5dc1263"]]},{"id":"dee10be3d9b662cd","type":"ut-assert-failure","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","x":772.2222366333008,"y":309.5,"wires":[]},{"id":"2e58215af0d68b56","type":"ut-assert-success","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","count":1,"x":772.2222366333008,"y":163.5,"wires":[]},{"id":"c2531fb627dbde3c","type":"json","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","property":"payload","action":"","pretty":false,"x":752.2222366333008,"y":239.5,"wires":[["6436dc3078d96255"]]},{"id":"9de928a80f1a12fc","type":"ut-assert-values","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"28","tot":"num"}],"x":1045,"y":309.5,"wires":[[]]},{"id":"6436dc3078d96255","type":"change","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"$count($$.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1055,"y":239.5,"wires":[["9de928a80f1a12fc"]]},{"id":"09a84c10ed4b3472","type":"inject","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"set flowid","props":[{"p":"flowid","v":"70fb2a061a2b073d","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":218.4444580078125,"y":512.500057220459,"wires":[["a59661a14483d5a5"]]},{"id":"be03413177e0343e","type":"ut-assert-failure","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","x":773.1111145019531,"y":634.2222442626953,"wires":[]},{"id":"80a8f5ec6e79f428","type":"ut-assert-success","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","count":1,"x":773.1111145019531,"y":488.2222442626953,"wires":[]},{"id":"08051f4ce4b83c7c","type":"json","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","property":"payload","action":"","pretty":false,"x":753.1111145019531,"y":564.2222442626953,"wires":[["07dafc2b90dd1d07"]]},{"id":"87c27449f687518d","type":"ut-assert-values","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","ignore_failure_if_succeed":false,"rules":[{"p":"payload","pt":"msg","t":"eql","to":"28","tot":"num"}],"x":1043.1111145019531,"y":634.2222442626953,"wires":[[]]},{"id":"07dafc2b90dd1d07","type":"change","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","rules":[{"p":"payload","pt":"msg","t":"set","to":"$count($$.payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1053.1111145019531,"y":564.2222442626953,"wires":[["87c27449f687518d"]]},{"id":"a59661a14483d5a5","type":"FlowHubPull","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","notab":false,"flowid":"","flowname":"","flowrevision":"","x":458.8888702392578,"y":627.2222652435303,"wires":[["80a8f5ec6e79f428","08051f4ce4b83c7c"],["be03413177e0343e"]]},{"id":"05eb40ca93899f2a","type":"inject","z":"70fb2a061a2b073d","g":"5889b06b0bf92818","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":327.77777099609375,"y":810.0000610351562,"wires":[["d1a6c480c67cc4a0"]]},{"id":"250906ad1f0ece4d","type":"ut-assert-failure","z":"70fb2a061a2b073d","g":"5889b06b0bf92818","name":"","x":893.333324432373,"y":931.7222480773926,"wires":[]},{"id":"d1a6c480c67cc4a0","type":"FlowHubPull","z":"70fb2a061a2b073d","g":"5889b06b0bf92818","name":"","notab":false,"flowid":"","flowname":"","flowrevision":"","x":578.2221832275391,"y":924.7222690582275,"wires":[["7689c63c4de8ac44"],["250906ad1f0ece4d"]]},{"id":"7689c63c4de8ac44","type":"ut-assert-failure","z":"70fb2a061a2b073d","g":"5889b06b0bf92818","name":"","x":893.333324432373,"y":886.6667289733887,"wires":[]},{"id":"dd292701c7ad5efe","type":"catch","z":"70fb2a061a2b073d","g":"5889b06b0bf92818","name":"","scope":["d1a6c480c67cc4a0"],"uncaught":false,"x":569.9999796549479,"y":816.6666937934027,"wires":[["e071e164dc3e31b0"]]},{"id":"e071e164dc3e31b0","type":"ut-assert-success","z":"70fb2a061a2b073d","g":"5889b06b0bf92818","name":"","count":1,"x":893.333324432373,"y":816.6666889190674,"wires":[]},{"id":"cdfaf380723de514","type":"catch","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","scope":["a59661a14483d5a5"],"uncaught":false,"x":470.00001525878906,"y":438.888916015625,"wires":[["a1e701f0670d2837"]]},{"id":"a1e701f0670d2837","type":"ut-assert-failure","z":"70fb2a061a2b073d","g":"b860f91f45ac9b1f","name":"","x":773.1111145019531,"y":438.888916015625,"wires":[]},{"id":"26796c184a940ef3","type":"catch","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","scope":["4b46f1f2d5dc1263"],"uncaught":false,"x":467.77779388427734,"y":117.77778100967407,"wires":[["52cc643057d9e8b2"]]},{"id":"52cc643057d9e8b2","type":"ut-assert-failure","z":"70fb2a061a2b073d","g":"25d0e57a7ef7d421","name":"","x":772.2222366333008,"y":117.77778100967407,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"678153b1daa0529a","type":"tab","label":"[function] divide by zero throws kills node","disabled":false,"info":"## Function node and exceptions\n\nWhat happens if the function node raises an exception?\n\nThere are three cases to be considered:\n\n- <a class=\"ahl-group-only\" data-ids=\"b7e1e4d9d98ef1bb\">function node is under supervision</a>,\n- <a class=\"ahl-group-only\" data-ids=\"7ed7a1dc7f44409a\">function node is being caught</a> and\n- <a class=\"ahl-group-only\" data-ids=\"5bd563066938c2f3\">function node is neither</a>.\n\nThis is also the case for a <a class=\"ahl-group-only\" data-ids=\"e49cae74aca6e4aa\">time out exception</a> - if the function takes too long and there is a timeout set, then an exception is raised.\n","env":[{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_TIMEOUT","value":"8","type":"num"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"e49cae74aca6e4aa","type":"group","z":"678153b1daa0529a","name":"time out exception","style":{"label":true},"nodes":["b2f1aafe54bf14d6","ae831a2255a48b68","3e2cbb65dff9baec"],"x":167.66665649414062,"y":1010,"w":1113.3333435058594,"h":759},{"id":"7d829222d2ef7ab2","type":"group","z":"678153b1daa0529a","name":"divide by zero exception","style":{"label":true},"nodes":["b7e1e4d9d98ef1bb","5bd563066938c2f3","7ed7a1dc7f44409a"],"x":168,"y":164,"w":1140,"h":797},{"id":"b7e1e4d9d98ef1bb","type":"group","z":"678153b1daa0529a","g":"7d829222d2ef7ab2","name":"no exception is raised if function is being supervised","style":{"label":true},"nodes":["e1926e702f82036d","0b270a75f19fe296","a7e6e47b5451fe98","f70d171602a22ea0","056c5807789fdd9f","a3c2a780a47683fa","25f64d67311491f0","c5616edc3d68cf06"],"x":199,"y":190,"w":1047,"h":217.125},{"id":"5bd563066938c2f3","type":"group","z":"678153b1daa0529a","g":"7d829222d2ef7ab2","name":"exception posted to the debug panel if exception not caught and function node not being supervised","style":{"label":true},"nodes":["2acfd9b89aa5a4f0","c2dc81f0f379b496","0610dfd55a620cd5","d36a8aa22bce4662","eb33aab579f867c1"],"x":194,"y":731,"w":1054,"h":204},{"id":"7ed7a1dc7f44409a","type":"group","z":"678153b1daa0529a","g":"7d829222d2ef7ab2","name":"if exception is caught, no debug message and the catch node handles it","style":{"label":true},"nodes":["1064a20a70a4d159","cbbdca5f81537d51","94f0dace67bcab25","714c969b3b036080","a7747cea4a1b7ac5","c35fef31f0dec2c7","6a4bfef352350b72"],"x":196,"y":452.5,"w":1086,"h":235.5},{"id":"b2f1aafe54bf14d6","type":"group","z":"678153b1daa0529a","g":"e49cae74aca6e4aa","name":"no exception is raised if function is being supervised","style":{"label":true},"nodes":["8c0d2959be4c8449","7c60e8efbf36cfb2","2bad596c31c9614c","478f54839df11249","5210bb11cbfd8184","637da1e5ea2fa8d2","8e15d37d50603cbe","0804f9de5cbb31b7"],"x":193.66665649414062,"y":1036,"w":1048.3333435058594,"h":217.125},{"id":"ae831a2255a48b68","type":"group","z":"678153b1daa0529a","g":"e49cae74aca6e4aa","name":"exception posted to the debug panel if exception not caught and function node not being supervised","style":{"label":true},"nodes":["e6bad32c2babea2d","43921beebe749863","247105e3e1174886","576520af1b49706d","e56ffd82b2beaec5"],"x":197.66665649414062,"y":1539,"w":1039.3333435058594,"h":204},{"id":"3e2cbb65dff9baec","type":"group","z":"678153b1daa0529a","g":"e49cae74aca6e4aa","name":"if exception is caught, no debug message and the catch node handles it","style":{"label":true},"nodes":["98af67622beba548","96a1bf65b0361c8d","6fd4f21bd30c0756","798d290779817374","0e5f5779ab066e4c","b20ed504160e56a2","ef0862b998bd51e6"],"x":195.66665649414062,"y":1281.5,"w":1059.3333435058594,"h":235.5},{"id":"e1926e702f82036d","type":"inject","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":305,"y":366.125,"wires":[["0b270a75f19fe296"]]},{"id":"0b270a75f19fe296","type":"function","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"divide by zero causes an exception","func":"\n1 / 0","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":566,"y":366.125,"wires":[["f70d171602a22ea0"]]},{"id":"a7e6e47b5451fe98","type":"catch","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","scope":["0b270a75f19fe296"],"uncaught":false,"x":518,"y":239,"wires":[["a3c2a780a47683fa"]]},{"id":"f70d171602a22ea0","type":"ut-assert-failure","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","x":990,"y":366.125,"wires":[]},{"id":"056c5807789fdd9f","type":"erlsupervisor","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","scope":["0b270a75f19fe296"],"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":327,"y":241.5,"wires":[[]]},{"id":"2acfd9b89aa5a4f0","type":"inject","z":"678153b1daa0529a","g":"5bd563066938c2f3","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":300,"y":772,"wires":[["c2dc81f0f379b496"]]},{"id":"c2dc81f0f379b496","type":"function","z":"678153b1daa0529a","g":"5bd563066938c2f3","name":"divide by zero causes an exception","func":"1 / 0","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":598,"y":829.75,"wires":[["0610dfd55a620cd5"]]},{"id":"0610dfd55a620cd5","type":"ut-assert-failure","z":"678153b1daa0529a","g":"5bd563066938c2f3","name":"","x":978,"y":829.75,"wires":[]},{"id":"d36a8aa22bce4662","type":"ut-assert-debug","z":"678153b1daa0529a","g":"5bd563066938c2f3","name":"","scope":["c2dc81f0f379b496"],"nodeid":"c2dc81f0f379b496","msgtype":"error","inverse":false,"x":664,"y":894,"wires":[["eb33aab579f867c1"]]},{"id":"a3c2a780a47683fa","type":"ut-assert-failure","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","x":827,"y":307,"wires":[]},{"id":"1064a20a70a4d159","type":"inject","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":302,"y":569.625,"wires":[["cbbdca5f81537d51"]]},{"id":"cbbdca5f81537d51","type":"function","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"divide by zero causes an exception","func":"1 / 0","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":562,"y":569.625,"wires":[["94f0dace67bcab25"]]},{"id":"94f0dace67bcab25","type":"ut-assert-failure","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"","x":890,"y":569.625,"wires":[]},{"id":"714c969b3b036080","type":"ut-assert-debug","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"","scope":["cbbdca5f81537d51"],"nodeid":"cbbdca5f81537d51","msgtype":"error","inverse":true,"x":819,"y":647,"wires":[["6a4bfef352350b72"]]},{"id":"a7747cea4a1b7ac5","type":"catch","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"","scope":["cbbdca5f81537d51"],"uncaught":false,"x":515,"y":493.5,"wires":[["c35fef31f0dec2c7"]]},{"id":"c35fef31f0dec2c7","type":"ut-assert-success","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"","count":1,"x":940,"y":493.5,"wires":[]},{"id":"25f64d67311491f0","type":"ut-assert-debug","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","scope":["0b270a75f19fe296"],"nodeid":"0b270a75f19fe296","msgtype":"error","inverse":true,"x":882,"y":231,"wires":[["c5616edc3d68cf06"]]},{"id":"8c0d2959be4c8449","type":"inject","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":299.6666564941406,"y":1212.125,"wires":[["7c60e8efbf36cfb2"]]},{"id":"7c60e8efbf36cfb2","type":"function","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"divide by zero causes an exception","func":"\ntimer:sleep(5_000)","outputs":1,"timeout":"1","noerr":0,"initialize":"","finalize":"","libs":[],"x":560.6666564941406,"y":1212.125,"wires":[["478f54839df11249"]]},{"id":"2bad596c31c9614c","type":"catch","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","scope":["7c60e8efbf36cfb2"],"uncaught":false,"x":512.6666564941406,"y":1085,"wires":[["637da1e5ea2fa8d2"]]},{"id":"478f54839df11249","type":"ut-assert-failure","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","x":984.6666564941406,"y":1212.125,"wires":[]},{"id":"5210bb11cbfd8184","type":"erlsupervisor","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","scope":["7c60e8efbf36cfb2"],"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":321.6666564941406,"y":1087.5,"wires":[[]]},{"id":"637da1e5ea2fa8d2","type":"ut-assert-failure","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","x":821.6666564941406,"y":1153,"wires":[]},{"id":"8e15d37d50603cbe","type":"ut-assert-debug","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","scope":["7c60e8efbf36cfb2"],"nodeid":"7c60e8efbf36cfb2","msgtype":"error","inverse":true,"x":876.6666564941406,"y":1077,"wires":[["0804f9de5cbb31b7"]]},{"id":"e6bad32c2babea2d","type":"inject","z":"678153b1daa0529a","g":"ae831a2255a48b68","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":303.6666564941406,"y":1580,"wires":[["43921beebe749863"]]},{"id":"43921beebe749863","type":"function","z":"678153b1daa0529a","g":"ae831a2255a48b68","name":"divide by zero causes an exception","func":"timer:sleep(5_000)","outputs":1,"timeout":"1","noerr":0,"initialize":"","finalize":"","libs":[],"x":601.6666564941406,"y":1637.75,"wires":[["247105e3e1174886"]]},{"id":"247105e3e1174886","type":"ut-assert-failure","z":"678153b1daa0529a","g":"ae831a2255a48b68","name":"","x":981.6666564941406,"y":1637.75,"wires":[]},{"id":"576520af1b49706d","type":"ut-assert-debug","z":"678153b1daa0529a","g":"ae831a2255a48b68","name":"","scope":["43921beebe749863"],"nodeid":"43921beebe749863","msgtype":"error","inverse":false,"x":667.6666564941406,"y":1702,"wires":[["e56ffd82b2beaec5"]]},{"id":"98af67622beba548","type":"inject","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":301.6666564941406,"y":1397.8125,"wires":[["96a1bf65b0361c8d"]]},{"id":"96a1bf65b0361c8d","type":"function","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"divide by zero causes an exception","func":"timer:sleep(5_000)","outputs":1,"timeout":"1","noerr":0,"initialize":"","finalize":"","libs":[],"x":561.6666564941406,"y":1397.8125,"wires":[["6fd4f21bd30c0756"]]},{"id":"6fd4f21bd30c0756","type":"ut-assert-failure","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"","x":889.6666564941406,"y":1397.8125,"wires":[]},{"id":"798d290779817374","type":"ut-assert-debug","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"","scope":["96a1bf65b0361c8d"],"nodeid":"96a1bf65b0361c8d","msgtype":"error","inverse":true,"x":818.6666564941406,"y":1476,"wires":[["ef0862b998bd51e6"]]},{"id":"0e5f5779ab066e4c","type":"catch","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"","scope":["96a1bf65b0361c8d"],"uncaught":false,"x":514.6666564941406,"y":1322.5,"wires":[["b20ed504160e56a2"]]},{"id":"b20ed504160e56a2","type":"ut-assert-success","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"","count":1,"x":939.6666564941406,"y":1322.5,"wires":[]},{"id":"0804f9de5cbb31b7","type":"ut-assert-failure","z":"678153b1daa0529a","g":"b2f1aafe54bf14d6","name":"","x":1146,"y":1153,"wires":[]},{"id":"ef0862b998bd51e6","type":"ut-assert-failure","z":"678153b1daa0529a","g":"3e2cbb65dff9baec","name":"","x":1159,"y":1397.8125,"wires":[]},{"id":"c5616edc3d68cf06","type":"ut-assert-failure","z":"678153b1daa0529a","g":"b7e1e4d9d98ef1bb","name":"","x":1150,"y":308,"wires":[]},{"id":"6a4bfef352350b72","type":"ut-assert-failure","z":"678153b1daa0529a","g":"7ed7a1dc7f44409a","name":"","x":1186,"y":569.625,"wires":[]},{"id":"e56ffd82b2beaec5","type":"ut-assert-values","z":"678153b1daa0529a","g":"ae831a2255a48b68","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"43921beebe749863","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.msg.error_msg","pt":"msg","to":"unexpected exit","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"divide by zero causes an exception","tot":"str"}],"x":1131,"y":1702,"wires":[[]]},{"id":"eb33aab579f867c1","type":"ut-assert-values","z":"678153b1daa0529a","g":"5bd563066938c2f3","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.id","pt":"msg","to":"c2dc81f0f379b496","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.msg.error_msg","pt":"msg","to":"unexpected exit","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"divide by zero causes an exception","tot":"str"}],"x":1142,"y":894,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"dbc618ad5f0210bb","type":"tab","label":"[function] ensure \"on stop\" code is executed","disabled":false,"info":"## Function nodes can be stopped often\n\nEnsure that the on stop code is executed each time.\n\nThis is particular the case if the node is being supervised by a supervisor node.","env":[{"name":"ERED_PENDING","value":"true","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"eb66387c50c14a04","type":"inject","z":"dbc618ad5f0210bb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":241,"y":625,"wires":[[]]},{"id":"81b2e5465a3b39d5","type":"function","z":"dbc618ad5f0210bb","name":"function 5","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":362,"y":862,"wires":[[]]},{"id":"6abf10a6ebdc0518","type":"erlsupervisor","z":"dbc618ad5f0210bb","name":"","scope":["81b2e5465a3b39d5"],"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":443,"y":702.5,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"442b3bf0d630e21d","type":"tab","label":"[function] function and module work together","disabled":false,"info":"## Function & Module = Working\n\nEnsure that a module can be defined in a module and then be used in a function node.\n\n## Module node\n\nA module node can be used to defined a complete Erlang module, i.e., something like \n\n```erlang\n-module(ered_http_nodered_inject_node_button_handler).\n\n-behaviour(cowboy_rest).\n\n-export([\n init/2,\n allowed_methods/2,\n content_types_accepted/2,\n handle_json_body/2,\n format_error/2\n]).\n\n-import(ered_nodes, [\n nodeid_to_pid/2\n]).\n-import(ered_nodered_comm, [\n websocket_name_from_request/1\n]).\n-import(ered_messages, [\n create_outgoing_msg/1\n]).\n\ninit(Req, State) ->\n {cowboy_rest, Req, State}.\n\nallowed_methods(Req, State) ->\n {[<<\"POST\">>], Req, State}.\n\ncontent_types_accepted(Req, State) ->\n {\n [\n {<<\"application/json\">>, handle_json_body},\n {<<\"application/json; charset=utf-8\">>, handle_json_body}\n ],\n Req,\n State\n }.\n\nhandle_json_body(Req, State) ->\n Resp = cowboy_req:set_resp_body(<<\"OK\">>, Req),\n WsName = websocket_name_from_request(Req),\n\n case cowboy_req:binding(nodeid, Req) of\n undefined ->\n ok;\n IdStr ->\n case nodeid_to_pid(WsName, IdStr) of\n {ok, Pid} ->\n gen_server:cast(Pid, create_outgoing_msg(WsName));\n {error, _} ->\n ignore\n end\n end,\n\n {true, Resp, State}.\n\nformat_error(Reason, Req) ->\n {\n [\n {<<\"error\">>, <<\"bad_request\">>},\n {<<\"reason\">>, Reason}\n ],\n Req\n }.\n```\n\ncan be defined in the module node and used in the functon node.\n\n## Code updates\n\nModule code is reload each time the flow is deployed to the server, thus updates to the module are immediately available on the server.\n\nThe advantage is that all code related to the application can be stored in the flow data and organised as a flow.","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"c4efa06c8868a6ac","type":"erlmodule","z":"442b3bf0d630e21d","name":"","module_name":"erlang_red_test_module_add","code":"-module(erlang_red_test_module_add).\n\n-export([add/2]).\n\nadd(V1,V2) when is_number(V1), is_number(V2) ->\n V1 + V2;\nadd(_,_) ->\n infinity.\n\n","x":218,"y":98,"wires":[]},{"id":"f11048ace112cc59","type":"erlmodule","z":"442b3bf0d630e21d","name":"","module_name":"erlang_red_test_module_subtract","code":"-module(erlang_red_test_module_subtract).\n\n-export([subtract/2]).\n\nsubtract(V1,V2) when is_number(V1), is_number(V2) ->\n V1 - V2;\nsubtract(_,_) ->\n infinity.\n\n","x":232,"y":152,"wires":[]},{"id":"bcee04fb6846c14a","type":"function","z":"442b3bf0d630e21d","name":"function 1","func":"Msg#{ <<\"payload\">> => erlang_red_test_module_add:add(maps:get(<<\"payload\">>,Msg), maps:get(<<\"value2\">>,Msg)) }\n\n","outputs":1,"timeout":0,"noerr":23,"initialize":"","finalize":"","libs":[],"x":297,"y":531,"wires":[["9a932875c4eed899","beb2768ba33c85f3"]]},{"id":"aeedbfdc6212b89d","type":"inject","z":"442b3bf0d630e21d","name":"","props":[{"p":"payload"},{"p":"value2","v":"231","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"111","payloadType":"num","x":132,"y":427,"wires":[["bcee04fb6846c14a","0d5e040ea5a93d79"]]},{"id":"ac8cac1caf6a3507","type":"ut-assert-values","z":"442b3bf0d630e21d","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"-2033","tot":"num"}],"x":899,"y":657.5,"wires":[[]]},{"id":"9a932875c4eed899","type":"function","z":"442b3bf0d630e21d","name":"function 2","func":"Msg#{ <<\"payload\">> => erlang_red_test_module_subtract:subtract(maps:get(<<\"payload\">>,Msg), 1243) }\n\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":635,"wires":[["8d5da91051689370","b3e32834498fdc02"]]},{"id":"8d5da91051689370","type":"function","z":"442b3bf0d630e21d","name":"function 3","func":"Msg#{ <<\"payload\">> => erlang_red_test_module_add:add(\n erlang_red_test_module_subtract:subtract(\n maps:get(<<\"payload\">>, Msg), \n 1243\n ), \n 111) \n}\n\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":665,"y":744,"wires":[["ac8cac1caf6a3507"]]},{"id":"b3e32834498fdc02","type":"ut-assert-values","z":"442b3bf0d630e21d","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"-901","tot":"num"}],"x":759,"y":541,"wires":[[]]},{"id":"beb2768ba33c85f3","type":"ut-assert-values","z":"442b3bf0d630e21d","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"342","tot":"num"}],"x":592,"y":428,"wires":[[]]},{"id":"0d5e040ea5a93d79","type":"ut-assert-values","z":"442b3bf0d630e21d","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"111","tot":"num"}],"x":429,"y":295,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"13e6f82c8b9d1ff9","type":"tab","label":"[function] handle corrupt code","disabled":false,"info":"## Incorrect code handling\n\nEither the \"On Start\", \"On Stop\" or \"On Message\" tab code could be incorrect - handle that.\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"d91de7d1dc574185","type":"function","z":"13e6f82c8b9d1ff9","name":"On start function is broken","func":"%% Code here is wrapped in a fun (Msg) call\n%% fun (Msg) ->\n Msg\n%% end.\n","outputs":1,"timeout":0,"noerr":22,"initialize":"this code is broken","finalize":"","libs":[],"x":975.9999999999998,"y":903.9999999999998,"wires":[[]]},{"id":"ad590754b9e5860b","type":"inject","z":"13e6f82c8b9d1ff9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":743,"y":853,"wires":[["d91de7d1dc574185"]]},{"id":"745cdff42a7f4a94","type":"ut-assert-debug","z":"13e6f82c8b9d1ff9","name":"","scope":["d91de7d1dc574185"],"nodeid":"d91de7d1dc574185","msgtype":"error","inverse":false,"x":929,"y":981.5,"wires":[["a5c4071c894817c8"]]},{"id":"499082d6c1e813a5","type":"function","z":"13e6f82c8b9d1ff9","name":"On message code is broken","func":"this code is broken","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":954,"y":1162,"wires":[[]]},{"id":"4e5d7ec31ac4fc81","type":"inject","z":"13e6f82c8b9d1ff9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":725.0000000000002,"y":1111.0000000000002,"wires":[["499082d6c1e813a5"]]},{"id":"9a322bb94698aba1","type":"ut-assert-debug","z":"13e6f82c8b9d1ff9","name":"","scope":["499082d6c1e813a5"],"nodeid":"499082d6c1e813a5","msgtype":"error","inverse":false,"x":898.0000000000002,"y":1227.5000000000002,"wires":[["8010146b02a11c7a"]]},{"id":"bfdf612d581c6537","type":"function","z":"13e6f82c8b9d1ff9","name":"On stop code is broken","func":"%% non empty code","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"this code is broken","libs":[],"x":966,"y":1457,"wires":[[]]},{"id":"d2cdf70515beea42","type":"inject","z":"13e6f82c8b9d1ff9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":747.0000000000002,"y":1406.0000000000002,"wires":[["bfdf612d581c6537"]]},{"id":"87d341bd9941f17b","type":"ut-assert-debug","z":"13e6f82c8b9d1ff9","name":"","scope":["bfdf612d581c6537"],"nodeid":"499082d6c1e813a5","msgtype":"error","inverse":false,"x":900.0000000000002,"y":1522.5000000000002,"wires":[["16a684a6a6a4c1b9"]]},{"id":"64af25711170b21d","type":"function","z":"13e6f82c8b9d1ff9","name":"On message code is empty","func":"","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1524,"y":1165,"wires":[[]]},{"id":"b840d4345d9cf807","type":"inject","z":"13e6f82c8b9d1ff9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1295.0000000000002,"y":1114.0000000000002,"wires":[["64af25711170b21d"]]},{"id":"95ddd111838b531f","type":"ut-assert-debug","z":"13e6f82c8b9d1ff9","name":"","scope":["64af25711170b21d"],"nodeid":"499082d6c1e813a5","msgtype":"error","inverse":false,"x":1458.0000000000002,"y":1230.5000000000002,"wires":[["41f3b0a796fb5791","da11bba1cc74cd57"]]},{"id":"41f3b0a796fb5791","type":"ClientCode","z":"13e6f82c8b9d1ff9","name":"","clientcode":"console.log(msg)\nlet ary = Object.keys(msg).map( d => {\n return [d, msg[d]]\n})\n\nconsole.log(ary)\n\nnode.send(msg)","format":"javascript","x":1852,"y":1304,"wires":[[]]},{"id":"a5c4071c894817c8","type":"ut-assert-values","z":"13e6f82c8b9d1ff9","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.id","pt":"msg","to":"d91de7d1dc574185","tot":"str"},{"t":"eql","p":"data.format","pt":"msg","to":"error","tot":"str"}],"x":1296,"y":940,"wires":[[]]},{"id":"8010146b02a11c7a","type":"ut-assert-values","z":"13e6f82c8b9d1ff9","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.id","pt":"msg","to":"499082d6c1e813a5","tot":"str"},{"t":"eql","p":"data.format","pt":"msg","to":"error","tot":"str"}],"x":1221,"y":1187,"wires":[[]]},{"id":"da11bba1cc74cd57","type":"ut-assert-values","z":"13e6f82c8b9d1ff9","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.id","pt":"msg","to":"64af25711170b21d","tot":"str"},{"t":"eql","p":"data.format","pt":"msg","to":"error","tot":"str"}],"x":1845,"y":1212,"wires":[[]]},{"id":"16a684a6a6a4c1b9","type":"ut-assert-values","z":"13e6f82c8b9d1ff9","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.id","pt":"msg","to":"bfdf612d581c6537","tot":"str"},{"t":"eql","p":"data.format","pt":"msg","to":"error","tot":"str"}],"x":1331,"y":1456,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"49c0a3ed69d61f56","type":"tab","label":"[function] return values are important","disabled":false,"info":"## Function nodes return values\n\nFunction nodes **must** return a Msg object or an array of message objects. Or an `undefined` token to indicate that a particular output port does not receive any message.\n\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"12ac51f64b58dfc0","type":"inject","z":"49c0a3ed69d61f56","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":206.5,"y":210.25,"wires":[["c7daf1deafbe05ce"]]},{"id":"c7daf1deafbe05ce","type":"function","z":"49c0a3ed69d61f56","name":"return a tuple","func":"{return, a, tuple}","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":438.75,"y":210.25,"wires":[["19eeb5692e6ca30b"]]},{"id":"19eeb5692e6ca30b","type":"ut-assert-failure","z":"49c0a3ed69d61f56","name":"","x":682,"y":210.25,"wires":[]},{"id":"aa218d7c915b496e","type":"catch","z":"49c0a3ed69d61f56","name":"","scope":["c7daf1deafbe05ce"],"uncaught":false,"x":438.75,"y":152.75,"wires":[["8b4ba4957e656594"]]},{"id":"8b4ba4957e656594","type":"ut-assert-success","z":"49c0a3ed69d61f56","name":"","count":1,"x":682,"y":152.75,"wires":[]},{"id":"a26838b467b5028a","type":"inject","z":"49c0a3ed69d61f56","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":206.5,"y":381.25,"wires":[["490e9a54ac06c84f"]]},{"id":"490e9a54ac06c84f","type":"function","z":"49c0a3ed69d61f56","name":"return a number","func":"1234","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":438.75,"y":381.25,"wires":[["5f22f9fe9317ee5d"]]},{"id":"5f22f9fe9317ee5d","type":"ut-assert-failure","z":"49c0a3ed69d61f56","name":"","x":682,"y":381.25,"wires":[]},{"id":"bbfcc0d1721e47cb","type":"catch","z":"49c0a3ed69d61f56","name":"","scope":["490e9a54ac06c84f"],"uncaught":false,"x":438.75,"y":314,"wires":[["bfceb15c851e4328"]]},{"id":"bfceb15c851e4328","type":"ut-assert-success","z":"49c0a3ed69d61f56","name":"","count":1,"x":682,"y":314,"wires":[]},{"id":"8918037f671145ac","type":"inject","z":"49c0a3ed69d61f56","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":206.5,"y":563.25,"wires":[["a47ef32a51d8bf82"]]},{"id":"a47ef32a51d8bf82","type":"function","z":"49c0a3ed69d61f56","name":"return a string","func":"\"a string\"","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":438.75,"y":563.25,"wires":[["5dfa4a56e733f5ba"]]},{"id":"5dfa4a56e733f5ba","type":"ut-assert-failure","z":"49c0a3ed69d61f56","name":"","x":682,"y":563.25,"wires":[]},{"id":"b0ef2b90f4a6b1c3","type":"catch","z":"49c0a3ed69d61f56","name":"","scope":["a47ef32a51d8bf82"],"uncaught":false,"x":438.75,"y":492,"wires":[["b8a6187dcb76bdf7"]]},{"id":"b8a6187dcb76bdf7","type":"ut-assert-success","z":"49c0a3ed69d61f56","name":"","count":1,"x":682,"y":492,"wires":[]},{"id":"10a49c20a6ab2aaa","type":"inject","z":"49c0a3ed69d61f56","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":206.5,"y":756.25,"wires":[["7e159d8f8bc7bd14"]]},{"id":"7e159d8f8bc7bd14","type":"function","z":"49c0a3ed69d61f56","name":"return a binary","func":"<<\"a binary\">>\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":438.75,"y":756.25,"wires":[["35011055e6d9f4ed"]]},{"id":"35011055e6d9f4ed","type":"ut-assert-failure","z":"49c0a3ed69d61f56","name":"","x":682,"y":756.25,"wires":[]},{"id":"e63faf6763878e3d","type":"catch","z":"49c0a3ed69d61f56","name":"","scope":["7e159d8f8bc7bd14"],"uncaught":false,"x":438.75,"y":687,"wires":[["8725edd697fb3efe"]]},{"id":"8725edd697fb3efe","type":"ut-assert-success","z":"49c0a3ed69d61f56","name":"","count":1,"x":682,"y":687,"wires":[]},{"id":"247d5be402ea2964","type":"inject","z":"49c0a3ed69d61f56","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":206.5,"y":930.25,"wires":[["675f2d9d34e1f52a"]]},{"id":"675f2d9d34e1f52a","type":"function","z":"49c0a3ed69d61f56","name":"return a empty tuple","func":"{}","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":438.75,"y":930.25,"wires":[["adb406494cd4a683"]]},{"id":"adb406494cd4a683","type":"ut-assert-failure","z":"49c0a3ed69d61f56","name":"","x":682,"y":930.25,"wires":[]},{"id":"01b540eded3c9aa3","type":"catch","z":"49c0a3ed69d61f56","name":"","scope":["675f2d9d34e1f52a"],"uncaught":false,"x":438.75,"y":864,"wires":[["b82a91361036f798"]]},{"id":"b82a91361036f798","type":"ut-assert-success","z":"49c0a3ed69d61f56","name":"","count":1,"x":682,"y":864,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"6dd3a5754f83dc2e","type":"tab","label":"[function] set node context ","disabled":false,"info":"## Function Node Context\n\nBe able to set context between calls to the function node using the NodeDef parameter.\n\nThis does not work since the underlying implementation is async - meaning the function is triggered by a message and the results is sent as another message to the function node.\n\nIn the meantime, another message is received that uses an older context becase the updated context as not yet been sent back to the function node - from a previous message.\n\nHence this is a pending test that should be done down the road.\n\nMy preference would be to have a \"synchronised execution\" option on the function node so that it can be deactivated to speed up the function node.\n\nIf the function node only acts on the message, then there needs to be no serialisation of the execution.","env":[{"name":"ERED_PENDING","value":"true","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"bc538fc8417872a7","type":"inject","z":"6dd3a5754f83dc2e","name":"","props":[{"p":"counter","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":257,"y":600.8392333984375,"wires":[["f243244784e79961"]]},{"id":"f243244784e79961","type":"change","z":"6dd3a5754f83dc2e","name":"update counter","rules":[{"t":"set","p":"payload","pt":"msg","to":"counter","tot":"msg"},{"t":"set","p":"counter","pt":"msg","to":"$$.counter + 1","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":501.5714111328125,"y":742.8392333984375,"wires":[["2c8c10171634cee5","e1e7f366de17a26c"]]},{"id":"2c8c10171634cee5","type":"switch","z":"6dd3a5754f83dc2e","name":"limit to 10_000 messages","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"10000","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":512.5714111328125,"y":511.9999542236328,"wires":[["f243244784e79961"]]},{"id":"e1e7f366de17a26c","type":"function","z":"6dd3a5754f83dc2e","name":"update context of Node","func":"#{ '_counter' := C } = NodeDef,\n{ \n NodeDef#{ '_counter' => C + 1}, \n Msg#{ <<\"payload\">> => C } \n}\n","outputs":1,"timeout":0,"noerr":0,"initialize":"%% Code added here will be run once\n%% whenever the node is started.\nNodeDef#{ '_counter' => 0 }","finalize":"","libs":[],"x":844,"y":600,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"3bba732ae17b01a9","type":"tab","label":"[function] speaks Erlang","disabled":false,"info":"# Funtion node speaks Erlang \n\nI guess this would be an Erlang-Red only test. It's the function node now styled in Erlang code and only Erlang Code.\n\n## On Start and On Stop tabs\n\nImportant to note are the \"On Start\" and \"On Stop\" tabs in the function node. These can alter the definition of the node by returning a `NodeDef` map. In fact, they have to return the NodeDef map else bad things will happen.\n\nIf this is confusing then best not to use the start and stop tabs in the function definition.\n\nThe code found in the \"On Start\" and \"On Stop\" tabs is wrapped inside the following function definition:\n\n```erlang\nfun(NodeDef, Msg) -> \n %% code here\nend.\n```\n\nThat function is **required** to return the NodeDef argument (it's just a map) as it was passed in or altered. The Msg maps only contains a reference to the websocket - usefully for updating status information of the node.\n\n## On Message tab\n\nThe code in the \"On Message\" tab is also wrapped in a funtion with the following signature:\n\n```erlang\nfun(NodeDef, Msg) -> \n %% code here\nend.\n```\n\nThe \"On Message\" code is **required** to return one of:\n\n- `Msg` - a single message object which is sent to its first output port\n- `undefined` - single atom value of undefined indicates that the function node has no message to be passed on\n- `[Msg,undefined,...]` - a list of either maps or undefined atom. The list is used to define outputs for multiple output ports. See this [test](https://flows.red-erik.org/f/c5f513bc380bc30a) for more details.\n\nAny other return value will lead to bad things happening, what these things are remains unclear. See this [test](https://flows.red-erik.org/f/49c0a3ed69d61f56) for more details.\n\n","env":[{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"6080018c8cb9548a","type":"group","z":"3bba732ae17b01a9","name":"handle functions with no output ports","style":{"label":true},"nodes":["ddf62e1870de423c","08b00673ab69fa2a"],"x":70,"y":340,"w":311,"h":232},{"id":"77d7ebb1b0dbc1f2","type":"group","z":"3bba732ae17b01a9","name":"single output port","style":{"label":true},"nodes":["8635e881fe0a171d","f9fb40d63b894db4","91c695565075cf5b"],"x":470,"y":258,"w":343,"h":436.5},{"id":"8635e881fe0a171d","type":"inject","z":"3bba732ae17b01a9","g":"77d7ebb1b0dbc1f2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":576,"y":299,"wires":[["f9fb40d63b894db4"]]},{"id":"f9fb40d63b894db4","type":"function","z":"3bba732ae17b01a9","g":"77d7ebb1b0dbc1f2","name":"function 2","func":"%% Code is called in a function wrapper:\n%% fun (NodeDef, Msg) -> .... end.\n%% and must return a Msg map.\n\nMsg2 = maps:put(<<\"payload\">>, \"hello world\", Msg),\nmaps:put(<<\"start_value\">>, maps:get('_start_was_called', NodeDef), Msg2)\n\n","outputs":1,"timeout":0,"noerr":0,"initialize":"%% Code added here will be run once\n%% whenever the node is started.\n%% This gets wrapped in a function definition:\n%% fun (NodeDef,Msg) -> ... end\n%% and must return a NodeDef map.\n\n%% ered_nodered_comm:send_out_debug_msg(NodeDef, Msg, <<\"function started\">>, normal),\n\nmaps:put('_start_was_called', 10, NodeDef)\n","finalize":"%% Code added here will be run once\n%% whenever the node is started.\n%% This gets wrapped in a function definition:\n%% fun (NodeDef,Msg) -> ... end\n%% and must return a NodeDef map.\n\nered_nodered_comm:send_out_debug_msg(NodeDef, Msg, <<\"function stopped\">>, warning),\n\nNodeDef\n","libs":[],"x":633,"y":486,"wires":[["91c695565075cf5b"]]},{"id":"91c695565075cf5b","type":"ut-assert-values","z":"3bba732ae17b01a9","g":"77d7ebb1b0dbc1f2","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"hello world","tot":"str"},{"p":"start_value","pt":"msg","t":"eql","to":"10","tot":"num"}],"x":707,"y":653.5,"wires":[[]]},{"id":"ddf62e1870de423c","type":"function","z":"3bba732ae17b01a9","g":"6080018c8cb9548a","name":"function 1","func":"%% Code is called in a function wrapper:\n%% fun (NodeDef, Msg) -> .... end.\n%% and must return a Msg map.\n\nMsg2 = maps:put(<<\"payload\">>, \"hello world\", Msg),\nmaps:put(<<\"start_value\">>, maps:get('_start_was_called', NodeDef), Msg2)\n\n","outputs":0,"timeout":0,"noerr":0,"initialize":"%% Code added here will be run once\n%% whenever the node is started.\n%% This gets wrapped in a function definition:\n%% fun (NodeDef,Msg) -> ... end\n%% and must return a NodeDef map.\n\n%% ered_nodered_comm:send_out_debug_msg(NodeDef, Msg, <<\"function started\">>, normal),\n\nmaps:put('_start_was_called', 10, NodeDef)\n","finalize":"%% Code added here will be run once\n%% whenever the node is started.\n%% This gets wrapped in a function definition:\n%% fun (NodeDef,Msg) -> ... end\n%% and must return a NodeDef map.\n\nered_nodered_comm:send_out_debug_msg(NodeDef, Msg, <<\"function stopped\">>, warning),\n\nNodeDef\n","libs":[],"x":295,"y":531,"wires":[]},{"id":"08b00673ab69fa2a","type":"inject","z":"3bba732ae17b01a9","g":"6080018c8cb9548a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":176,"y":381,"wires":[["ddf62e1870de423c"]]}]
@@ -0,0 +1 @@
1
+ [{"id":"d97b4eeb4ce93f0b","type":"tab","label":"[function] supervisor interaction","disabled":false,"info":"## Function versus Supervisor Node - the battle of the Titans.\n\nHow to combine function nodes and supervisor nodes?\n\nBoth of these nodes create so many sub-processes, that it really is an Herculean effort to handle all possible uses cases. Just to think of a few:\n\n- Supervisor supervises two function nodes, one goes down and has \"one for all\" restart policy. The function nodes have spun up many processes because they generate a process per message. How to stop all these subprocesses of the function nodes?\n\n- Function node has timeout sent and times out. Does that mean the entire node fails and the supervisor should restart it? If there is no supervisor to restart the function node, what does it do then?\n\n## Scenarios\n\n- Without supervisor\n\n - Function node timeouts out\n - kill all subprocesses?\n - does the node die?\n - kill only the single function execution?","env":[{"name":"ERED_TIMEOUT","value":"10","type":"num"},{"name":"ERED_NOT_EUNIT","value":"true","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"6adce2d9100dbbc8","type":"group","z":"d97b4eeb4ce93f0b","name":"no supervisor","style":{"label":true},"nodes":["bc95ad55c8bf71e5","ecdb879db06be5b4","d0a2af3f953cd151","f4c1557ae869cd5d","69d38978303d7e16"],"x":299,"y":218.5,"w":697,"h":160.75},{"id":"04586e23cbceab99","type":"group","z":"d97b4eeb4ce93f0b","name":"restart one-for-one","style":{"label":true},"nodes":["aa4740bbcd60b01c","c8709d14b8a4779f","df8d703ede1b70d8","43d70610c6d0c6a3","e7ecae2332e26508","64bb065a9a7c72db"],"x":171,"y":632,"w":1047,"h":361.75},{"id":"bc95ad55c8bf71e5","type":"function","z":"d97b4eeb4ce93f0b","g":"6adce2d9100dbbc8","name":"function 1","func":"io:format( \"I was started with ~p~n\",[self()]),\ntimer:sleep(5_000),\nexit(self(), absolute_filaure)\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":647,"y":338.25,"wires":[["f4c1557ae869cd5d"]]},{"id":"ecdb879db06be5b4","type":"inject","z":"d97b4eeb4ce93f0b","g":"6adce2d9100dbbc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":405,"y":259.5,"wires":[["bc95ad55c8bf71e5","d0a2af3f953cd151"]]},{"id":"d0a2af3f953cd151","type":"function","z":"d97b4eeb4ce93f0b","g":"6adce2d9100dbbc8","name":"function 3","func":"io:format( \"I was started with timeout ~p~n\",[self()]),\ntimer:sleep(10_000),\nexit(self(), absolute_filaure)\n","outputs":1,"timeout":"5","noerr":0,"initialize":"","finalize":"","libs":[],"x":646,"y":259.5,"wires":[["69d38978303d7e16"]]},{"id":"aa4740bbcd60b01c","type":"inject","z":"d97b4eeb4ce93f0b","g":"04586e23cbceab99","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":277,"y":868,"wires":[["c8709d14b8a4779f","df8d703ede1b70d8"]]},{"id":"c8709d14b8a4779f","type":"function","z":"d97b4eeb4ce93f0b","g":"04586e23cbceab99","name":"function with long running process - 5 second sleep and no node timeout","func":"io:format( \"I was started with as ~p with 5s sleep~n\",[self()]),\ntimer:sleep(5_000),\nio:format( \"Good morning, completed my sleep ~p ~n\",[self()]),\nMsg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":696,"y":952.75,"wires":[["e7ecae2332e26508"]]},{"id":"df8d703ede1b70d8","type":"function","z":"d97b4eeb4ce93f0b","g":"04586e23cbceab99","name":"function with timeout after two seconds","func":"io:format( \"I was started with timeout ~p~n\",[self()]),\ntimer:sleep(10_000),\nio:format( \"slept ten secons, now exiting~n\",[]),\nexit(self(), absolute_filaure)\n","outputs":1,"timeout":"2","noerr":0,"initialize":"","finalize":"","libs":[],"x":596,"y":782.75,"wires":[["64bb065a9a7c72db"]]},{"id":"43d70610c6d0c6a3","type":"erlsupervisor","z":"d97b4eeb4ce93f0b","g":"04586e23cbceab99","name":"","scope":["c8709d14b8a4779f","df8d703ede1b70d8"],"supervisor_type":"static","strategy":"one_for_one","auto_shutdown":"never","intensity":"5","period":"15","child_type":"worker","child_restart":"permanent","child_shutdown":"brutal_kill","child_shutdown_timeout":"0","x":549,"y":673,"wires":[[]]},{"id":"f4c1557ae869cd5d","type":"ut-assert-failure","z":"d97b4eeb4ce93f0b","g":"6adce2d9100dbbc8","name":"","x":900,"y":338.25,"wires":[]},{"id":"69d38978303d7e16","type":"ut-assert-failure","z":"d97b4eeb4ce93f0b","g":"6adce2d9100dbbc8","name":"","x":900,"y":259.5,"wires":[]},{"id":"e7ecae2332e26508","type":"ut-assert-success","z":"d97b4eeb4ce93f0b","g":"04586e23cbceab99","name":"","count":1,"x":1102,"y":952.75,"wires":[]},{"id":"64bb065a9a7c72db","type":"ut-assert-failure","z":"d97b4eeb4ce93f0b","g":"04586e23cbceab99","name":"","x":1102,"y":782.75,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"c5f513bc380bc30a","type":"tab","label":"[function] support multiple outputs","disabled":false,"info":"## Function node support multiple outputs\n\nMultiple output ports are addressed using a list as return value of the function. The list can be longer or shorter than the actual output port count.\n\nAlso respect `undefined` as an indicator that there is no data to be sent on a specific port.\n\nUsing `undefiend` because that is also the same key word for Node-RED when specifying an array (aka list) as return value and some slots shouldn't get data.","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"9cb3675ec715d003","type":"group","z":"c5f513bc380bc30a","name":"function generated a single message","style":{"label":true},"nodes":["99a0baa1793f0dd1","76e2bf5583bbede4","8ece321b5ccae3eb","fb27204856172c17","2f9fa1c08b03cd73","027dd925bdff5dc0","6678a62c7bfef1af"],"x":102,"y":199.5,"w":736,"h":310},{"id":"8420fb2b03bc6ff2","type":"group","z":"c5f513bc380bc30a","name":"function with undefined","style":{"label":true},"nodes":["5e6f29f5f19f96d6","ca42f1a951e6799e","93e980ac0c9d328e","3b291d3f3533dab8","7e0cb601b0dc0f85","a3d4e24eeee55b2b","5e435bc74890ae75"],"x":105,"y":571,"w":717,"h":294},{"id":"edd4648fd0386343","type":"group","z":"c5f513bc380bc30a","name":"partial list with undefined","style":{"label":true},"nodes":["a9d333f12acd1a90","c688af41c73aa885","12c34fb23c932829","3a08597abbd4dc70","8a7abbb925382332","7b8718e4e0deb3bf","ab1e12ba4c8cd598"],"x":93,"y":902.5,"w":741,"h":303},{"id":"5f95a730b6989c4b","type":"group","z":"c5f513bc380bc30a","name":"empty list as return value","style":{"label":true},"nodes":["7248b8732d320b86","aa664acff39d96cd","0d6981d5c41136e5","3fb8684626f059fc","f2fb17909c4e4d32","09a7c06a06f39140","8842302217d78ddc"],"x":99,"y":1244,"w":717,"h":301.5},{"id":"7416c3f55c2eba9f","type":"group","z":"c5f513bc380bc30a","name":"longer list than output ports","style":{"label":true},"nodes":["8966584e057f8e96","4b0717c879ceac59","abb3971f2e95389d","9ce84c1407cf616c","3eabd552265daab6","5ea401991e1b6dad","94660f4d95978c45"],"x":109,"y":1586,"w":728,"h":303},{"id":"99a0baa1793f0dd1","type":"function","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"function 1","func":"%% multiple outpus but only a single message\nMsg\n","outputs":5,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":436,"y":265.75,"wires":[["fb27204856172c17"],["6678a62c7bfef1af"],["027dd925bdff5dc0"],["2f9fa1c08b03cd73"],["8ece321b5ccae3eb"]]},{"id":"76e2bf5583bbede4","type":"inject","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":208,"y":265.75,"wires":[["99a0baa1793f0dd1"]]},{"id":"8ece321b5ccae3eb","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"","x":722,"y":468.5,"wires":[]},{"id":"fb27204856172c17","type":"ut-assert-success","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"","count":1,"x":722,"y":240.5,"wires":[]},{"id":"2f9fa1c08b03cd73","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"","x":722,"y":411.5,"wires":[]},{"id":"027dd925bdff5dc0","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"","x":722,"y":354.5,"wires":[]},{"id":"6678a62c7bfef1af","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"9cb3675ec715d003","name":"","x":722,"y":297.5,"wires":[]},{"id":"5e6f29f5f19f96d6","type":"function","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"function 2","func":"undefined","outputs":5,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":424,"y":676.5,"wires":[["5e435bc74890ae75"],["a3d4e24eeee55b2b"],["7e0cb601b0dc0f85"],["3b291d3f3533dab8"],["93e980ac0c9d328e"]]},{"id":"ca42f1a951e6799e","type":"inject","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":211,"y":676.5,"wires":[["5e6f29f5f19f96d6"]]},{"id":"93e980ac0c9d328e","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"","x":726,"y":824,"wires":[]},{"id":"3b291d3f3533dab8","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"","x":726,"y":771,"wires":[]},{"id":"7e0cb601b0dc0f85","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"","x":726,"y":718,"wires":[]},{"id":"a3d4e24eeee55b2b","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"","x":726,"y":665,"wires":[]},{"id":"5e435bc74890ae75","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"8420fb2b03bc6ff2","name":"","x":726,"y":612,"wires":[]},{"id":"a9d333f12acd1a90","type":"function","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"function 4","func":"[Msg, undefined, Msg, undefined]","outputs":5,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":429,"y":1054.75,"wires":[["7b8718e4e0deb3bf"],["8a7abbb925382332"],["ab1e12ba4c8cd598"],["3a08597abbd4dc70"],["12c34fb23c932829"]]},{"id":"c688af41c73aa885","type":"inject","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":199,"y":1054.75,"wires":[["a9d333f12acd1a90"]]},{"id":"12c34fb23c932829","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"","x":718,"y":1164.5,"wires":[]},{"id":"3a08597abbd4dc70","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"","x":718,"y":1109.25,"wires":[]},{"id":"8a7abbb925382332","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"","x":718,"y":998.75,"wires":[]},{"id":"7b8718e4e0deb3bf","type":"ut-assert-success","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"","count":1,"x":718,"y":943.5,"wires":[]},{"id":"ab1e12ba4c8cd598","type":"ut-assert-success","z":"c5f513bc380bc30a","g":"edd4648fd0386343","name":"","count":1,"x":718,"y":1054,"wires":[]},{"id":"7248b8732d320b86","type":"function","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"function 5","func":"[]","outputs":5,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":433,"y":1436.75,"wires":[["8842302217d78ddc"],["f2fb17909c4e4d32"],["09a7c06a06f39140"],["3fb8684626f059fc"],["0d6981d5c41136e5"]]},{"id":"aa664acff39d96cd","type":"inject","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":205,"y":1436.75,"wires":[["7248b8732d320b86"]]},{"id":"0d6981d5c41136e5","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"","x":720,"y":1504.5,"wires":[]},{"id":"3fb8684626f059fc","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"","x":720,"y":1449.625,"wires":[]},{"id":"f2fb17909c4e4d32","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"","x":720,"y":1339.875,"wires":[]},{"id":"09a7c06a06f39140","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"","x":720,"y":1394.75,"wires":[]},{"id":"8842302217d78ddc","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"5f95a730b6989c4b","name":"","x":720,"y":1285,"wires":[]},{"id":"8966584e057f8e96","type":"function","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"function 6","func":"[undefined, undefined, undefined, Msg, Msg, Msg, Msg, Msg, undefined]\n","outputs":5,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":447,"y":1822,"wires":[["3eabd552265daab6"],["abb3971f2e95389d"],["9ce84c1407cf616c"],["5ea401991e1b6dad"],["94660f4d95978c45"]]},{"id":"4b0717c879ceac59","type":"inject","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":215,"y":1822,"wires":[["8966584e057f8e96"]]},{"id":"abb3971f2e95389d","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"","x":721,"y":1682.25,"wires":[]},{"id":"9ce84c1407cf616c","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"","x":721,"y":1737.5,"wires":[]},{"id":"3eabd552265daab6","type":"ut-assert-failure","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"","x":721,"y":1627,"wires":[]},{"id":"5ea401991e1b6dad","type":"ut-assert-success","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"","count":1,"x":721,"y":1792.75,"wires":[]},{"id":"94660f4d95978c45","type":"ut-assert-success","z":"c5f513bc380bc30a","g":"7416c3f55c2eba9f","name":"","count":1,"x":721,"y":1848,"wires":[]}]
@@ -0,0 +1 @@
1
+ [{"id":"bdbe94d065f3b3a6","type":"tab","label":"[function] support not returning a message","disabled":false,"info":"## Function no return\n\nFunction nodes can return a message object or not, there is no requirement to return a valid message object.\n\nIn Node-RED this is done by leaving off the \"return msg\" in the function definition.\n\nErlang-Red has made the assumption that the function always returns a value.\n\nTherefore there should be a `undefined` token for doing just that.\n\nWe use undefined as token because that is the same as Javascript and Node-RED - using undefined in an array will result in no message being sent on the corresponding output port.\n\n","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"b737c6397ee47bf0","type":"function","z":"bdbe94d065f3b3a6","name":"function 1","func":"Msg, undefined","outputs":1,"timeout":0,"noerr":2,"initialize":"","finalize":"","libs":[],"x":565,"y":320.5,"wires":[["a56ad2920885ace0"]]},{"id":"ba81fe83307f83c1","type":"inject","z":"bdbe94d065f3b3a6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":387,"y":208,"wires":[["b737c6397ee47bf0"]]},{"id":"a56ad2920885ace0","type":"ut-assert-failure","z":"bdbe94d065f3b3a6","name":"","x":783,"y":319,"wires":[]},{"id":"5d65809aaf8ec259","type":"function","z":"bdbe94d065f3b3a6","name":"function 2","func":"Msg#{ <<\"payload\">> => hello }","outputs":1,"timeout":0,"noerr":8,"initialize":"","finalize":"","libs":[],"x":432,"y":563,"wires":[["e5432e698e4b402f"]]},{"id":"0f593e2bf460815c","type":"inject","z":"bdbe94d065f3b3a6","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":254,"y":450.5,"wires":[["5d65809aaf8ec259"]]},{"id":"e5432e698e4b402f","type":"ut-assert-values","z":"bdbe94d065f3b3a6","name":"","rules":[{"p":"payload","pt":"msg","t":"eql","to":"hello","tot":"str"}],"x":671,"y":631.5,"wires":[[]]}]
@@ -0,0 +1 @@
1
+ [{"id":"f2f61ec9fc46a468","type":"tab","label":"[function] support timeout setting","disabled":false,"info":"## Function timeout support\n\nNon-negative timeout values in seconds.\n\nNegative and zero are intrepreted as being Infinite timeout.\n","env":[{"name":"ERED_PENDING","value":"false","type":"bool"},{"name":"ERED_TIMEOUT","value":"7","type":"num"},{"name":"ERED_ONLY","value":"true","type":"bool"}]},{"id":"a2c9f90d9ea31a1f","type":"group","z":"f2f61ec9fc46a468","name":"disabled Node-RED Javascript code","style":{"label":true},"nodes":["1eee0e64c24bc099","2a05ee46ab296dc9"],"x":165,"y":1523,"w":494,"h":540},{"id":"e25627231644112e","type":"group","z":"f2f61ec9fc46a468","name":"timeout goes to debug panel if no catch caught the time out exception","style":{"label":true},"nodes":["5b347e54a92d9ff9","3e76245fbd5691b3","1fcfe383f4385b02","0e89114541b7fb2b","b5a8d6dddb17942c"],"x":161,"y":136.5,"w":960.5,"h":145},{"id":"0b1ae6a07c7f9ee1","type":"group","z":"f2f61ec9fc46a468","name":"all good, function completed before timeout - no exception, no debug","style":{"label":true},"nodes":["fd67b21de5786024","33112fdcb207fc20","9a58db73e33a0769","76a7f5738f160266","3695a84826fa554c","f2ea106b01f1a4c9","8fe028012828193d"],"x":155.5,"y":601.5,"w":969.5,"h":213},{"id":"28cbea3ee31a6c2a","type":"group","z":"f2f61ec9fc46a468","name":"timeout hits and catch handles exception","style":{"label":true},"nodes":["5186223e03d9b353","087e548f098823b0","c900bbc76f771c57","5bf64f22a8da1e1b","c589fe0cad265fb6","b4c5d5333e7fc298","0b8d34c24428d83e"],"x":161.5,"y":333,"w":960,"h":209.5},{"id":"fb9fdb40b651e3d8","type":"group","z":"f2f61ec9fc46a468","name":"all good, function completed before timeout - no exception, no debug","style":{"label":true},"nodes":["616ceb4757f22365","58d552991d0fc84b","d712e40a4c9c9ebf","9fabb5b3c93de925","0bae6e41684e87d5","375eb051e1d7e54c","e931271741768ce8"],"x":151,"y":868.5,"w":969.5,"h":213},{"id":"1eee0e64c24bc099","type":"group","z":"f2f61ec9fc46a468","g":"a2c9f90d9ea31a1f","name":"timeout of zero is infinity timeout","style":{"label":true},"nodes":["a2cf94ef446d743d","3363a0e7454b99ef","5504c9690eeecdc5"],"x":200,"y":1549,"w":433,"h":202},{"id":"2a05ee46ab296dc9","type":"group","z":"f2f61ec9fc46a468","g":"a2c9f90d9ea31a1f","name":"timeout of one","style":{"label":true},"nodes":["ee68ff84422283b9","71b45ad7258db27d","25a223e8463ca4fb"],"x":191,"y":1835,"w":422,"h":202},{"id":"5b347e54a92d9ff9","type":"function","z":"f2f61ec9fc46a468","g":"e25627231644112e","name":"one second timeout, 3 second sleep","func":"timer:sleep(3000), \nMsg\n","outputs":1,"timeout":"1","noerr":3,"initialize":"","finalize":"","libs":[],"x":577,"y":177.5,"wires":[["0e89114541b7fb2b"]]},{"id":"3e76245fbd5691b3","type":"inject","z":"f2f61ec9fc46a468","g":"e25627231644112e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":267,"y":177.5,"wires":[["5b347e54a92d9ff9"]]},{"id":"a2cf94ef446d743d","type":"function","z":"f2f61ec9fc46a468","g":"1eee0e64c24bc099","name":"function 39","func":"var idx = 0\nwhile ( idx < 10_000_000_000 ) {\n idx++\n}\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":526,"y":1590,"wires":[[]]},{"id":"3363a0e7454b99ef","type":"inject","z":"f2f61ec9fc46a468","d":true,"g":"1eee0e64c24bc099","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":306,"y":1710,"wires":[["a2cf94ef446d743d"]]},{"id":"5504c9690eeecdc5","type":"catch","z":"f2f61ec9fc46a468","g":"1eee0e64c24bc099","name":"","scope":["a2cf94ef446d743d"],"uncaught":false,"x":557,"y":1661,"wires":[[]]},{"id":"ee68ff84422283b9","type":"function","z":"f2f61ec9fc46a468","g":"2a05ee46ab296dc9","name":"function 40","func":"while(1==1){};\n\nreturn msg;\n","outputs":1,"timeout":"1","noerr":0,"initialize":"","finalize":"","libs":[],"x":517,"y":1876,"wires":[[]]},{"id":"71b45ad7258db27d","type":"inject","z":"f2f61ec9fc46a468","d":true,"g":"2a05ee46ab296dc9","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":297,"y":1996,"wires":[["ee68ff84422283b9"]]},{"id":"25a223e8463ca4fb","type":"catch","z":"f2f61ec9fc46a468","g":"2a05ee46ab296dc9","name":"","scope":["ee68ff84422283b9"],"uncaught":false,"x":534,"y":1927,"wires":[[]]},{"id":"1fcfe383f4385b02","type":"ut-assert-debug","z":"f2f61ec9fc46a468","g":"e25627231644112e","name":"","scope":["5b347e54a92d9ff9"],"nodeid":"5b347e54a92d9ff9","msgtype":"error","inverse":false,"x":642,"y":240.5,"wires":[["b5a8d6dddb17942c"]]},{"id":"0e89114541b7fb2b","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"e25627231644112e","name":"","x":905,"y":177.5,"wires":[]},{"id":"fd67b21de5786024","type":"function","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"three second timeout, one second sleep","func":"timer:sleep(1000), \nMsg\n","outputs":1,"timeout":"3","noerr":0,"initialize":"","finalize":"","libs":[],"x":568.5,"y":710.5,"wires":[["76a7f5738f160266"]]},{"id":"33112fdcb207fc20","type":"inject","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":261.5,"y":710.5,"wires":[["fd67b21de5786024"]]},{"id":"9a58db73e33a0769","type":"ut-assert-debug","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"","scope":["fd67b21de5786024"],"nodeid":"fd67b21de5786024","msgtype":"error","inverse":true,"x":633.5,"y":773.5,"wires":[["8fe028012828193d"]]},{"id":"76a7f5738f160266","type":"ut-assert-success","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"","count":1,"x":1009,"y":710.5,"wires":[]},{"id":"5186223e03d9b353","type":"function","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"one second timeout, 3 second sleep","func":"timer:sleep(3000), \nMsg\n","outputs":1,"timeout":"1","noerr":0,"initialize":"","finalize":"","libs":[],"x":577.5,"y":439,"wires":[["5bf64f22a8da1e1b"]]},{"id":"087e548f098823b0","type":"inject","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":267.5,"y":439,"wires":[["5186223e03d9b353"]]},{"id":"c900bbc76f771c57","type":"ut-assert-debug","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"","scope":["5186223e03d9b353"],"nodeid":"5186223e03d9b353","msgtype":"error","inverse":true,"x":642.5,"y":501.5,"wires":[["0b8d34c24428d83e"]]},{"id":"5bf64f22a8da1e1b","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"","x":1005.5,"y":439,"wires":[]},{"id":"3695a84826fa554c","type":"catch","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"","scope":["fd67b21de5786024"],"uncaught":false,"x":461,"y":643,"wires":[["f2ea106b01f1a4c9"]]},{"id":"f2ea106b01f1a4c9","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"","x":1009,"y":642.5,"wires":[]},{"id":"c589fe0cad265fb6","type":"catch","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"","scope":["5186223e03d9b353"],"uncaught":false,"x":480,"y":374,"wires":[["b4c5d5333e7fc298"]]},{"id":"b4c5d5333e7fc298","type":"ut-assert-success","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"","count":1,"x":1005.5,"y":375,"wires":[]},{"id":"616ceb4757f22365","type":"function","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"zero second timeout, three second sleep","func":"timer:sleep(3000), \nMsg\n","outputs":1,"timeout":"0","noerr":0,"initialize":"","finalize":"","libs":[],"x":564,"y":977.5,"wires":[["9fabb5b3c93de925"]]},{"id":"58d552991d0fc84b","type":"inject","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":257,"y":977.5,"wires":[["616ceb4757f22365"]]},{"id":"d712e40a4c9c9ebf","type":"ut-assert-debug","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"","scope":["fd67b21de5786024"],"nodeid":"fd67b21de5786024","msgtype":"error","inverse":true,"x":629,"y":1040.5,"wires":[["e931271741768ce8"]]},{"id":"9fabb5b3c93de925","type":"ut-assert-success","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"","count":1,"x":1004.5,"y":977.5,"wires":[]},{"id":"0bae6e41684e87d5","type":"catch","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"","scope":["616ceb4757f22365"],"uncaught":false,"x":456.5,"y":910,"wires":[["375eb051e1d7e54c"]]},{"id":"375eb051e1d7e54c","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"","x":1004.5,"y":909.5,"wires":[]},{"id":"0b8d34c24428d83e","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"28cbea3ee31a6c2a","name":"","x":1005.5,"y":501.5,"wires":[]},{"id":"8fe028012828193d","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"0b1ae6a07c7f9ee1","name":"","x":1009,"y":773.5,"wires":[]},{"id":"e931271741768ce8","type":"ut-assert-failure","z":"f2f61ec9fc46a468","g":"fb9fdb40b651e3d8","name":"","x":1004.5,"y":1040.5,"wires":[]},{"id":"b5a8d6dddb17942c","type":"ut-assert-values","z":"f2f61ec9fc46a468","g":"e25627231644112e","name":"","ignore_failure_if_succeed":false,"rules":[{"t":"eql","p":"data.type","pt":"msg","to":"function","tot":"str"},{"t":"eql","p":"data['level']","pt":"msg","to":"20","tot":"num"},{"t":"eql","p":"data.format","pt":"msg","to":"error","tot":"str"},{"t":"eql","p":"data.id","pt":"msg","to":"5b347e54a92d9ff9","tot":"str"},{"t":"eql","p":"data.name","pt":"msg","to":"one second timeout, 3 second sleep","tot":"str"},{"t":"eql","p":"data.msg.error_msg","pt":"msg","to":"unexpected exit","tot":"str"}],"x":1015.5,"y":240.5,"wires":[[]]}]