From dbc8f5ec2d52866acdefb6d6a9801f9c1d771bb6 Mon Sep 17 00:00:00 2001 From: liboz Date: Tue, 30 Jul 2019 13:49:44 -0400 Subject: [PATCH] Fix reuse InstanceName when re-creating a service Add instance id instead of NULL to context_id when creating entry in GENERIC_RESOURCE_NAME table, Delete entry directly if no prefix and name_index involved when rolling back instance name Issue-ID: SDNC-798 Change-Id: I4c6391bf85e289894fd3019eafe76357b9b1c86c Signed-off-by: liboz Former-commit-id: ae2694d30df3a7f62324ec7e617d23f187debcbb --- .../GENERIC-RESOURCE-API_generate-unique-name.json | 3696 +++++++++++++++++++- ...ERIC-RESOURCE-API_rollback-generated-names.json | 1647 ++++++++- ...URCE-API_service-topology-operation-assign.json | 1158 +++++- .../GENERIC-RESOURCE-API_generate-unique-name.xml | 2 +- ...NERIC-RESOURCE-API_rollback-generated-names.xml | 13 +- ...OURCE-API_service-topology-operation-assign.xml | 1 + 6 files changed, 6509 insertions(+), 8 deletions(-) diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-unique-name.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-unique-name.json index 546f0ef6..ee76ebce 100755 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-unique-name.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_generate-unique-name.json @@ -1 +1,3695 @@ -[{"id":"5b6ea5fe.a10cec","type":"comment","name":"Validation of required data","info":"","comments":"","x":1040,"y":442.2946882247925,"z":"f1e12e88.dbd29","wires":[]},{"id":"93fd3d5a.38a48","type":"dgstart","name":"DGSTART","outputs":1,"x":110.75010299682617,"y":47.699371337890625,"z":"f1e12e88.dbd29","wires":[["aac966e5.94dc28"]]},{"id":"dc433da4.fccac","type":"method","name":"method generate-unique-name","xml":"\n","comments":"","outputs":1,"x":243.66683197021484,"y":120.04460334777832,"z":"f1e12e88.dbd29","wires":[["60a7ef67.eff89"]]},{"id":"b889af43.15dcd","type":"comment","name":"generate-unique-name","info":"Input arguments:\ngenerate-unique-name-input.index-table-name - name of INDEX table\ngenerate-unique-name-input.index-table-prefix-column - name of prefix column in above table\ngenerate-unique-name-input.name-table-name - name of table holding all generated names\ngenerate-unique-name-input.index-length - non-null digit if index should be fixed length\n\nOutput arguments:\ngenerate-unique-name-output.generated-name - generated name (null if error)\ngenerate-unique-name-output.error-message - error message (non-null if error)\n","comments":"","x":798.3092651367188,"y":41.000000953674316,"z":"f1e12e88.dbd29","wires":[]},{"id":"a425a788.03f3d8","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":527.7739067077637,"y":1433.4405617032733,"z":"f1e12e88.dbd29","wires":[["2a6cb077.ef737","f0dd32ba.66fbf","a9866d98.169d3","eed1508e.a01b2","5e02ffba.3acbd","84b01c6c.b12d8","ef001b85.7a6e68","6e4c2e50.7dca3","39fa9d31.ea2ad2","beeebf14.93926","7217aa55.91f204","706a513d.637ee"]]},{"id":"2a6cb077.ef737","type":"switchNode","name":"switch generate-unique-name-input.index-table-name","xml":"\n","comments":"","outputs":1,"x":976.5833892822266,"y":487.9048261642456,"z":"f1e12e88.dbd29","wires":[["421c8ec.5e66a7"]]},{"id":"421c8ec.5e66a7","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1306.583309173584,"y":487.9048156738281,"z":"f1e12e88.dbd29","wires":[["92b6be8f.41af"]]},{"id":"92b6be8f.41af","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1479.9166297912598,"y":487.9048070907593,"z":"f1e12e88.dbd29","wires":[]},{"id":"f0dd32ba.66fbf","type":"switchNode","name":"switch generate-unique-name-input.index-table-prefix-column","xml":"\n","comments":"","outputs":1,"x":1001.5833587646484,"y":531.2381620407104,"z":"f1e12e88.dbd29","wires":[["666567a9.3407d8"]]},{"id":"666567a9.3407d8","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1304.9166221618652,"y":531.2381410598755,"z":"f1e12e88.dbd29","wires":[["43b6f623.865d98"]]},{"id":"43b6f623.865d98","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1478.2499389648438,"y":531.5714845657349,"z":"f1e12e88.dbd29","wires":[]},{"id":"a9866d98.169d3","type":"switchNode","name":"switch generate-unique-name-input.name-table-type","xml":"\n","comments":"","outputs":1,"x":972.583366394043,"y":576.2381544113159,"z":"f1e12e88.dbd29","wires":[["2ae7c50f.d2fd9a"]]},{"id":"2ae7c50f.d2fd9a","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1304.9165630340576,"y":576.2381639480591,"z":"f1e12e88.dbd29","wires":[["591f7d2b.9bf0f4"]]},{"id":"591f7d2b.9bf0f4","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1476.583339691162,"y":576.5714673995972,"z":"f1e12e88.dbd29","wires":[]},{"id":"ef001b85.7a6e68","type":"get-resource","name":"get-resource current name index","xml":"\n\n","comments":"","outputs":1,"x":894.6072196960449,"y":1135.0355415344238,"z":"f1e12e88.dbd29","wires":[["4eecf394.fb658c","f0e796cc.5e5b28","5ca0dae8.3c52d4"]]},{"id":"4eecf394.fb658c","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1122.2976512908936,"y":1221.0594511032104,"z":"f1e12e88.dbd29","wires":[["6d1e421b.6740ec"]]},{"id":"6d1e421b.6740ec","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":1284.9167728424072,"y":1222.4881792068481,"z":"f1e12e88.dbd29","wires":[]},{"id":"957cb7c6.3113b8","type":"for","name":"for idx from current index to list-end","xml":"\n","comments":"","outputs":1,"x":1049.4405784606934,"y":1463.8571519851685,"z":"f1e12e88.dbd29","wires":[["4f159cba.6ab794"]]},{"id":"eed1508e.a01b2","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":812.0595741271973,"y":1463.8571171079363,"z":"f1e12e88.dbd29","wires":[["957cb7c6.3113b8","6ea70a13.c40744","ebfd433a.e0d77"]]},{"id":"6ea70a13.c40744","type":"returnSuccess","name":"CATCH BREAK","xml":"\n\n","comments":"","x":1005.2500746590749,"y":2488.2858543395996,"z":"f1e12e88.dbd29","wires":[]},{"id":"5e02ffba.3acbd","type":"switchNode","name":"switch generate-unique-name-input.prefix","xml":"\n","comments":"","outputs":1,"x":938.2500076293945,"y":621.238133430481,"z":"f1e12e88.dbd29","wires":[["98c00727.25f188"]]},{"id":"98c00727.25f188","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1305.5831966400146,"y":621.2381582260132,"z":"f1e12e88.dbd29","wires":[["f5507926.67dac8"]]},{"id":"f5507926.67dac8","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1478.2499732971191,"y":621.5714616775513,"z":"f1e12e88.dbd29","wires":[]},{"id":"84b01c6c.b12d8","type":"switchNode","name":"switch generate-unique-name-input.index-length","xml":"\n","comments":"","outputs":1,"x":961.5833740234375,"y":756.2380752563477,"z":"f1e12e88.dbd29","wires":[["b01197c1.9f5b68","1668f0f4.b7049f","5c4f6407.833d3c","2511d7bc.5d4d38","bbae7527.125758","c6f1af5a.468da","6bb9091e.5be0b8"]]},{"id":"b01197c1.9f5b68","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1304.9166870117188,"y":664.5714616775513,"z":"f1e12e88.dbd29","wires":[["39b018b7.123508"]]},{"id":"bbae7527.125758","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1303.6785926818848,"y":939.8095893859863,"z":"f1e12e88.dbd29","wires":[["d11f9831.a4b3e8"]]},{"id":"1668f0f4.b7049f","type":"outcome","name":"1","xml":"\n","comments":"","outputs":1,"x":1301.8214950561523,"y":755.2858009338379,"z":"f1e12e88.dbd29","wires":[["e8815a38.ebcec8"]]},{"id":"5c4f6407.833d3c","type":"outcome","name":"2","xml":"\n","comments":"","outputs":1,"x":1301.8214797973633,"y":800.2857913970947,"z":"f1e12e88.dbd29","wires":[["b9e1aba2.d09518"]]},{"id":"2511d7bc.5d4d38","type":"outcome","name":"3","xml":"\n","comments":"","outputs":1,"x":1300.1548156738281,"y":843.6191272735596,"z":"f1e12e88.dbd29","wires":[["e264801f.5501d"]]},{"id":"e8815a38.ebcec8","type":"set","name":"set list-end = 10","xml":"\n\n","comments":"","x":1484.4882316589355,"y":755.2857894897461,"z":"f1e12e88.dbd29","wires":[]},{"id":"b9e1aba2.d09518","type":"set","name":"set list-end = 100","xml":"\n\n","comments":"","x":1487.821460723877,"y":800.2857913970947,"z":"f1e12e88.dbd29","wires":[]},{"id":"e264801f.5501d","type":"set","name":"set list-end = 1000","xml":"\n\n","comments":"","x":1489.821460723877,"y":843.619104385376,"z":"f1e12e88.dbd29","wires":[]},{"id":"d11f9831.a4b3e8","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1474.6785163879395,"y":939.1429595947266,"z":"f1e12e88.dbd29","wires":[]},{"id":"a70d8048.c5db1","type":"set","name":"set new index number to 1","xml":"\n\n","comments":"","x":1988.7860374450684,"y":1184.428880929947,"z":"f1e12e88.dbd29","wires":[]},{"id":"39b018b7.123508","type":"set","name":"set list-end = 100000 (infinity basically)","xml":"\n\n","comments":"","x":1553.9166259765625,"y":664.9048051834106,"z":"f1e12e88.dbd29","wires":[]},{"id":"2842a52b.c3092a","type":"switchNode","name":"switch generate-unique-name-input.index-length","xml":"\n","comments":"","outputs":1,"x":1611.1071586608887,"y":1390.5237907682147,"z":"f1e12e88.dbd29","wires":[["c819156a.3ce748","6f44c357.91b7ec","c092243f.d97f98","41dfeb65.32e554","f7fa28a8.8b0758"]]},{"id":"c819156a.3ce748","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1895.3929023742676,"y":1241.952398300171,"z":"f1e12e88.dbd29","wires":[["e2fc126.78e32f"]]},{"id":"6f44c357.91b7ec","type":"outcome","name":"1","xml":"\n","comments":"","outputs":1,"x":1893.7262496948242,"y":1286.9524383544922,"z":"f1e12e88.dbd29","wires":[["e2fc126.78e32f"]]},{"id":"c092243f.d97f98","type":"outcome","name":"2","xml":"\n","comments":"","outputs":1,"x":1893.7262344360352,"y":1336.0000648498535,"z":"f1e12e88.dbd29","wires":[["b78d385e.819818"]]},{"id":"41dfeb65.32e554","type":"outcome","name":"3","xml":"\n","comments":"","outputs":1,"x":1895.1549072265625,"y":1438.3811464309692,"z":"f1e12e88.dbd29","wires":[["864ddb73.e1c088"]]},{"id":"e2fc126.78e32f","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":2080.393051147461,"y":1260.2857418060303,"z":"f1e12e88.dbd29","wires":[]},{"id":"b78d385e.819818","type":"switchNode","name":"switch idx < 10","xml":"\n","comments":"","outputs":1,"x":2060.392864227295,"y":1335.9999628067017,"z":"f1e12e88.dbd29","wires":[["58eb6760.799338","4c2137d1.5285d8"]]},{"id":"58eb6760.799338","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2222.059497833252,"y":1309.3333358764648,"z":"f1e12e88.dbd29","wires":[["7c64d513.d4933c"]]},{"id":"4c2137d1.5285d8","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2222.059455871582,"y":1357.6666717529297,"z":"f1e12e88.dbd29","wires":[["664eaffa.40e23"]]},{"id":"7c64d513.d4933c","type":"set","name":"set index-string to '0' + idx","xml":"\n\n","comments":"","x":2413.7262573242188,"y":1308.6665630340576,"z":"f1e12e88.dbd29","wires":[]},{"id":"664eaffa.40e23","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":2397.0595092773438,"y":1357.3332786560059,"z":"f1e12e88.dbd29","wires":[]},{"id":"864ddb73.e1c088","type":"switchNode","name":"switch idx < 10","xml":"\n","comments":"","outputs":1,"x":2063.4882431030273,"y":1436.714274406433,"z":"f1e12e88.dbd29","wires":[["9dacf730.7b2f88","52fac67f.9cafa8"]]},{"id":"9dacf730.7b2f88","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2223.4882202148438,"y":1410.0476522445679,"z":"f1e12e88.dbd29","wires":[["57d20365.2c02cc"]]},{"id":"52fac67f.9cafa8","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2228.0118408203125,"y":1486.4762344360352,"z":"f1e12e88.dbd29","wires":[["c6f950ba.72e2f"]]},{"id":"57d20365.2c02cc","type":"set","name":"set index-string to '00' + idx","xml":"\n\n","comments":"","x":2418.488311767578,"y":1410.0475431169782,"z":"f1e12e88.dbd29","wires":[]},{"id":"c6f950ba.72e2f","type":"switchNode","name":"switch idx < 100","xml":"\n","comments":"","outputs":1,"x":2384.3452224731445,"y":1484.8095951080322,"z":"f1e12e88.dbd29","wires":[["768ee20e.0df19c","ee684381.ae72b"]]},{"id":"768ee20e.0df19c","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2541.345199584961,"y":1458.142972946167,"z":"f1e12e88.dbd29","wires":[["dd903531.c82708"]]},{"id":"ee684381.ae72b","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2541.345157623291,"y":1506.4763088226318,"z":"f1e12e88.dbd29","wires":[["738812f4.25f07c"]]},{"id":"dd903531.c82708","type":"set","name":"set index-string to '0' + idx","xml":"\n\n","comments":"","x":2734.0119857788086,"y":1457.809627532959,"z":"f1e12e88.dbd29","wires":[]},{"id":"738812f4.25f07c","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":2718.0119705200195,"y":1506.142930984497,"z":"f1e12e88.dbd29","wires":[]},{"id":"e0bb12a5.d5624","type":"set","name":"set generated-name to prefix + index-string","xml":"\n\n","comments":"","x":1595.107250213623,"y":1667.1904396329608,"z":"f1e12e88.dbd29","wires":[]},{"id":"9d1b9e26.d3c45","type":"comment","name":"First check from the current index to the max index","info":"","comments":"","x":1012.7739219665527,"y":1402.1905206952777,"z":"f1e12e88.dbd29","wires":[]},{"id":"bbf1440c.7b6b08","type":"comment","name":"check if we've used this name before","info":"","comments":"","x":1591.8217735290527,"y":1751.4765853881836,"z":"f1e12e88.dbd29","wires":[]},{"id":"b6303af3.dbe008","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1699.440574645996,"y":1828.8573679242816,"z":"f1e12e88.dbd29","wires":[["9e644b97.adba68"]]},{"id":"f763d5fa.3726b8","type":"set","name":"set generate-unique-name-output.error-message","xml":"\n\n","comments":"","x":2145.3928260803223,"y":1802.4287008558001,"z":"f1e12e88.dbd29","wires":[]},{"id":"ac21b4cf.7fce08","type":"returnFailure","name":"BREAK","xml":"\n","comments":"","x":2010.6310729980469,"y":1847.4287885938372,"z":"f1e12e88.dbd29","wires":[]},{"id":"d6d443c8.ce2b6","type":"returnFailure","name":"BREAK","xml":"\n","comments":"","x":2013.488094329834,"y":1942.33347933633,"z":"f1e12e88.dbd29","wires":[]},{"id":"2c035417.669d2c","type":"comment","name":"found one we can use","info":"","comments":"","x":1831.3455505371094,"y":1873.3814014707293,"z":"f1e12e88.dbd29","wires":[]},{"id":"6e4c2e50.7dca3","type":"switchNode","name":"switch generate-unique-name-output.error-message","xml":"\n","comments":"","outputs":1,"x":887.3215468270437,"y":2700.2858333587646,"z":"f1e12e88.dbd29","wires":[["6d67de69.d407b","640c5685.806a28"]]},{"id":"6d67de69.d407b","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1160.6549551827566,"y":2673.6190853118896,"z":"f1e12e88.dbd29","wires":[["1274de2b.bc9e42"]]},{"id":"1274de2b.bc9e42","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1295.6549551827566,"y":2673.6190853118896,"z":"f1e12e88.dbd29","wires":[[]]},{"id":"640c5685.806a28","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1160.6549208504812,"y":2723.6191062927246,"z":"f1e12e88.dbd29","wires":[["39b9ac92.ad6b44"]]},{"id":"39b9ac92.ad6b44","type":"returnFailure","name":"return failure","xml":"\n","comments":"","x":1310.6549208504812,"y":2723.6191062927246,"z":"f1e12e88.dbd29","wires":[]},{"id":"39fa9d31.ea2ad2","type":"switchNode","name":"switch found-flag","xml":"\n","comments":"","outputs":1,"x":779.3215926034109,"y":3054.5714559555054,"z":"f1e12e88.dbd29","wires":[["f6bec616.a81998","e00e3d85.de173"]]},{"id":"f6bec616.a81998","type":"outcome","name":"true","xml":"","comments":"","outputs":1,"x":953.654932294573,"y":3054.5714569091797,"z":"f1e12e88.dbd29","wires":[["9254d2ea.79ae4"]]},{"id":"29e6035d.31b61c","type":"set","name":"set generate-unique-name-output.generated-name","xml":"\n\n","comments":"","x":1424.3215468270437,"y":2899.5717430114746,"z":"f1e12e88.dbd29","wires":[]},{"id":"33cdeff6.998bf","type":"returnSuccess","name":"return success","xml":"\n","comments":"","x":1306.369116101946,"y":3236.952537536621,"z":"f1e12e88.dbd29","wires":[]},{"id":"9254d2ea.79ae4","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1105.3215620858327,"y":3053.9048709869385,"z":"f1e12e88.dbd29","wires":[["29e6035d.31b61c","f475b8d6.5aa468","9dac70dd.b9c4","33cdeff6.998bf","14acf8c4.4ea607"]]},{"id":"f1c7051f.090048","type":"set","name":"set index-exists flag to false","xml":"\n\n","comments":"","x":1456.5834312438965,"y":1101.8929462432861,"z":"f1e12e88.dbd29","wires":[]},{"id":"ac64bfb2.ceaee","type":"set","name":"set index-exists flag to true","xml":"\n\n","comments":"","x":1455.226375579834,"y":1005.8214721679688,"z":"f1e12e88.dbd29","wires":[]},{"id":"31a7d4ee.e0d5ec","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1261.9406471252441,"y":1027.250078201294,"z":"f1e12e88.dbd29","wires":[["ac64bfb2.ceaee","57b67a51.276aa4"]]},{"id":"f475b8d6.5aa468","type":"switchNode","name":"switch index-exists","xml":"\n","comments":"","outputs":1,"x":1320.0835554940359,"y":3031.714744567871,"z":"f1e12e88.dbd29","wires":[["30ff52d9.46315e","803c3e83.57863"]]},{"id":"30ff52d9.46315e","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":1498.6549208504812,"y":3007.429012298584,"z":"f1e12e88.dbd29","wires":[["2442b85b.370aa8"]]},{"id":"803c3e83.57863","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":1498.6549361092702,"y":3054.571937561035,"z":"f1e12e88.dbd29","wires":[["6736e8b8.35f518"]]},{"id":"c73c710f.201a4","type":"save","name":"save (update) name index","xml":"\n","comments":"","outputs":1,"x":1894.369245801653,"y":3008.85742855072,"z":"f1e12e88.dbd29","wires":[["ef34220f.bc074"]]},{"id":"c9a768e8.3720e8","type":"save","name":"save (insert) name index","xml":"\n","comments":"","outputs":1,"x":1887.2262251717702,"y":3103.1428966522217,"z":"f1e12e88.dbd29","wires":[["176ae97.d993b17"]]},{"id":"ef34220f.bc074","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2087.2264464242116,"y":3008.8574476242065,"z":"f1e12e88.dbd29","wires":[["1b9917f.36c93e8"]]},{"id":"176ae97.d993b17","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2084.369016919817,"y":3101.714412689209,"z":"f1e12e88.dbd29","wires":[["24410c66.8ac314"]]},{"id":"9dac70dd.b9c4","type":"save","name":"save (insert) generated name","xml":"\n","comments":"","outputs":1,"x":1354.512151990618,"y":3190.2857189178467,"z":"f1e12e88.dbd29","wires":[["c5598bb0.7e6e78"]]},{"id":"c5598bb0.7e6e78","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1564.512083326067,"y":3190.2857704162598,"z":"f1e12e88.dbd29","wires":[["dd091dc.0be3be"]]},{"id":"dd091dc.0be3be","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":1718.797899518694,"y":3190.285789489746,"z":"f1e12e88.dbd29","wires":[]},{"id":"beeebf14.93926","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":850.5120506286621,"y":985.8215715885162,"z":"f1e12e88.dbd29","wires":[]},{"id":"4f159cba.6ab794","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1291.583438873291,"y":1463.428631237575,"z":"f1e12e88.dbd29","wires":[["2842a52b.c3092a","e0bb12a5.d5624","d9d55bdd.8116a8","8992b5cf.163d88"]]},{"id":"9e644b97.adba68","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1851.8215713500977,"y":1828.3812870298113,"z":"f1e12e88.dbd29","wires":[["f763d5fa.3726b8","ac21b4cf.7fce08"]]},{"id":"2442b85b.370aa8","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1675.9407332284109,"y":2984.5715408325195,"z":"f1e12e88.dbd29","wires":[["fcf6ad85.d78d3","c73c710f.201a4"]]},{"id":"6736e8b8.35f518","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1673.083586011614,"y":3080.285859107971,"z":"f1e12e88.dbd29","wires":[["c9a768e8.3720e8","eeade568.838b38"]]},{"id":"fcf6ad85.d78d3","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":1864.5120146615163,"y":2960.285512447357,"z":"f1e12e88.dbd29","wires":[]},{"id":"eeade568.838b38","type":"set","name":"set sql statement","xml":"\n\n\n","comments":"","x":1863.0835631234304,"y":3054.5713291168213,"z":"f1e12e88.dbd29","wires":[]},{"id":"ddebf1f4.503c3","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1706.1073112487793,"y":1919.8097633634295,"z":"f1e12e88.dbd29","wires":[["aa402dd4.177b"]]},{"id":"b1f05088.d4abe","type":"for","name":"for idx from 1 to current index","xml":"\n","comments":"","outputs":1,"x":1505.8931334359304,"y":3726.523895263672,"z":"f1e12e88.dbd29","wires":[["3bf64b64.93b004"]]},{"id":"a42cc5a7.7e7d28","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1292.2263799394877,"y":3726.523873874119,"z":"f1e12e88.dbd29","wires":[["b1f05088.d4abe","2e340f8e.08d25"]]},{"id":"2e340f8e.08d25","type":"returnSuccess","name":"CATCH BREAK","xml":"\n\n","comments":"","x":1456.8455260140554,"y":4301.524025917053,"z":"f1e12e88.dbd29","wires":[]},{"id":"ea903bbb.dad038","type":"switchNode","name":"switch generate-unique-name-input.index-length","xml":"\n","comments":"","outputs":1,"x":2053.559706006731,"y":3681.1906394958496,"z":"f1e12e88.dbd29","wires":[["d39dfe33.e52ee","15377217.566a0e","6fb57a2b.791e34","88754865.1e3488"]]},{"id":"d39dfe33.e52ee","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":2333.559706006731,"y":3611.190700531006,"z":"f1e12e88.dbd29","wires":[["e0fc2653.b5a9d8"]]},{"id":"15377217.566a0e","type":"outcome","name":"1","xml":"\n","comments":"","outputs":1,"x":2331.893053327288,"y":3656.190740585327,"z":"f1e12e88.dbd29","wires":[["e0fc2653.b5a9d8"]]},{"id":"6fb57a2b.791e34","type":"outcome","name":"2","xml":"\n","comments":"","outputs":1,"x":2331.893141065325,"y":3709.524087905884,"z":"f1e12e88.dbd29","wires":[["22683870.b1ed58"]]},{"id":"88754865.1e3488","type":"outcome","name":"3","xml":"\n","comments":"","outputs":1,"x":2331.8930189950124,"y":3806.1908206939697,"z":"f1e12e88.dbd29","wires":[["9964319c.015b6"]]},{"id":"e0fc2653.b5a9d8","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":2518.5598547799245,"y":3629.5240440368652,"z":"f1e12e88.dbd29","wires":[]},{"id":"22683870.b1ed58","type":"switchNode","name":"switch idx < 10","xml":"\n","comments":"","outputs":1,"x":2498.5597708565847,"y":3709.523985862732,"z":"f1e12e88.dbd29","wires":[["fd63838f.e7e9c","949bf879.77d3c8"]]},{"id":"fd63838f.e7e9c","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2660.2264044625417,"y":3682.857358932495,"z":"f1e12e88.dbd29","wires":[["be0b2546.58c728"]]},{"id":"949bf879.77d3c8","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2660.226362500872,"y":3731.19069480896,"z":"f1e12e88.dbd29","wires":[["a160f12b.73d5"]]},{"id":"be0b2546.58c728","type":"set","name":"set index-string to '0' + idx","xml":"\n\n","comments":"","x":2851.8931639535085,"y":3682.190586090088,"z":"f1e12e88.dbd29","wires":[]},{"id":"a160f12b.73d5","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":2835.2264159066335,"y":3730.857301712036,"z":"f1e12e88.dbd29","wires":[]},{"id":"9964319c.015b6","type":"switchNode","name":"switch idx < 10","xml":"\n","comments":"","outputs":1,"x":2500.2263548714773,"y":3804.5239486694336,"z":"f1e12e88.dbd29","wires":[["4c2de49a.6d4a3c","3d1cf51.768400a"]]},{"id":"4c2de49a.6d4a3c","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2660.2263319832937,"y":3777.8573265075684,"z":"f1e12e88.dbd29","wires":[["605de097.16c15"]]},{"id":"3d1cf51.768400a","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2661.8929884774343,"y":3852.8572845458984,"z":"f1e12e88.dbd29","wires":[["338224b6.d4dd2c"]]},{"id":"605de097.16c15","type":"set","name":"set index-string to '00' + idx","xml":"\n\n","comments":"","x":2855.2264159066335,"y":3777.857301712036,"z":"f1e12e88.dbd29","wires":[]},{"id":"338224b6.d4dd2c","type":"switchNode","name":"switch idx < 100","xml":"\n","comments":"","outputs":1,"x":2818.2263701302663,"y":3851.1906452178955,"z":"f1e12e88.dbd29","wires":[["71f60fbd.93b51","8bf344e.ac152b8"]]},{"id":"71f60fbd.93b51","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2975.2263472420827,"y":3824.5240230560303,"z":"f1e12e88.dbd29","wires":[["2681091f.7b64f6"]]},{"id":"8bf344e.ac152b8","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2975.226305280413,"y":3872.857358932495,"z":"f1e12e88.dbd29","wires":[["ab9cdd55.a692d"]]},{"id":"2681091f.7b64f6","type":"set","name":"set index-string to '0' + idx","xml":"\n\n","comments":"","x":3167.8931334359304,"y":3824.1906776428223,"z":"f1e12e88.dbd29","wires":[]},{"id":"ab9cdd55.a692d","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":3151.8931181771413,"y":3872.5239810943604,"z":"f1e12e88.dbd29","wires":[]},{"id":"865573f6.c807c","type":"set","name":"set generated-name to prefix + index-string","xml":"\n\n","comments":"","x":2051.559789930071,"y":3929.8572177886963,"z":"f1e12e88.dbd29","wires":[]},{"id":"e52e080b.7ba108","type":"comment","name":"Wrapping around - now check from 1 to the original index","info":"","comments":"","x":1483.2264540536062,"y":3656.0002098083496,"z":"f1e12e88.dbd29","wires":[]},{"id":"6fdc8a5e.f15724","type":"comment","name":"check if we've used this name before","info":"","comments":"","x":2038.2742369515554,"y":4044.857491493225,"z":"f1e12e88.dbd29","wires":[]},{"id":"443092d4.e835dc","type":"get-resource","name":"get-resource name","xml":"\n\n","comments":"","outputs":1,"x":1975.8930533272878,"y":4185.571561404637,"z":"f1e12e88.dbd29","wires":[["16301a88.7ccc65","83a2d6cc.4538d8"]]},{"id":"16301a88.7ccc65","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2154.2264464242116,"y":4139.857398033142,"z":"f1e12e88.dbd29","wires":[["4bb524f1.7a834c"]]},{"id":"a294c827.4f7908","type":"set","name":"set generate-unique-name-output.error-message","xml":"\n\n","comments":"","x":2600.178697858538,"y":4113.428730964661,"z":"f1e12e88.dbd29","wires":[]},{"id":"8324bda6.96f7f","type":"returnFailure","name":"BREAK","xml":"\n","comments":"","x":2465.4169447762624,"y":4158.428818702698,"z":"f1e12e88.dbd29","wires":[]},{"id":"9d5efe94.83a7e","type":"switchNode","name":"switch generate-unique-name-output.error-message","xml":"\n","comments":"","outputs":1,"x":1438.2740233285085,"y":4409.381101608276,"z":"f1e12e88.dbd29","wires":[["735742ed.b743cc","c5f4c315.ae27c"]]},{"id":"735742ed.b743cc","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1711.6074316842214,"y":4382.714353561401,"z":"f1e12e88.dbd29","wires":[["c08d106b.f3041"]]},{"id":"c08d106b.f3041","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1846.6074316842214,"y":4382.714353561401,"z":"f1e12e88.dbd29","wires":[[]]},{"id":"c5f4c315.ae27c","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1711.607397351946,"y":4432.714374542236,"z":"f1e12e88.dbd29","wires":[["784fd2e4.d424fc"]]},{"id":"784fd2e4.d424fc","type":"returnFailure","name":"return failure","xml":"\n","comments":"","x":1861.607397351946,"y":4432.714374542236,"z":"f1e12e88.dbd29","wires":[]},{"id":"22053b23.007ca4","type":"switchNode","name":"switch found-flag","xml":"\n","comments":"","outputs":1,"x":1319.9883025033132,"y":4588.905010223389,"z":"f1e12e88.dbd29","wires":[["64dd1e57.0cf4b"]]},{"id":"58ee3c1e.25b284","type":"comment","name":"if db name is null we found an index we can use","info":"","comments":"","x":1486.7026427132741,"y":4538.428785324097,"z":"f1e12e88.dbd29","wires":[]},{"id":"64dd1e57.0cf4b","type":"outcome","name":"true","xml":"","comments":"","outputs":1,"x":1479.321623120989,"y":4588.904967308044,"z":"f1e12e88.dbd29","wires":[["1e08c131.416c3f"]]},{"id":"e19c0e72.390b3","type":"set","name":"set generate-unique-name-output.generated-name","xml":"\n\n","comments":"","x":1954.9882872445241,"y":4537.238508224487,"z":"f1e12e88.dbd29","wires":[]},{"id":"da7a4cc6.7a4b7","type":"returnSuccess","name":"return success","xml":"\n\n","comments":"","x":1838.4643385750906,"y":4876.047979354858,"z":"f1e12e88.dbd29","wires":[]},{"id":"1e08c131.416c3f","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1645.9883177621023,"y":4587.238185882568,"z":"f1e12e88.dbd29","wires":[["e19c0e72.390b3","530f53e4.b4631c","4a33679f.e661d8","da7a4cc6.7a4b7","ac52d5a5.4eeac8"]]},{"id":"530f53e4.b4631c","type":"switchNode","name":"switch index-exists","xml":"\n","comments":"","outputs":1,"x":1850.7502959115163,"y":4669.381509780884,"z":"f1e12e88.dbd29","wires":[["894e0555.9183d8","f6d39e88.57e67"]]},{"id":"894e0555.9183d8","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2029.3216612679616,"y":4645.095777511597,"z":"f1e12e88.dbd29","wires":[["84dd83e3.603cb"]]},{"id":"f6d39e88.57e67","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2029.3216765267507,"y":4692.238702774048,"z":"f1e12e88.dbd29","wires":[["1881d83b.6c3b98"]]},{"id":"2701fa7a.652186","type":"save","name":"save (update) name index","xml":"\n","comments":"","outputs":1,"x":2425.0359862191335,"y":4646.524193763733,"z":"f1e12e88.dbd29","wires":[["1772ebad.0bb7b4"]]},{"id":"25fb41f1.5f6a4e","type":"save","name":"save (insert) name index","xml":"\n","comments":"","outputs":1,"x":2417.8929655892507,"y":4740.809661865234,"z":"f1e12e88.dbd29","wires":[["a9beb64.74fc348"]]},{"id":"1772ebad.0bb7b4","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2617.893186841692,"y":4646.524212837219,"z":"f1e12e88.dbd29","wires":[["73a12b01.342b54"]]},{"id":"73a12b01.342b54","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":2772.179003034319,"y":4646.524231910706,"z":"f1e12e88.dbd29","wires":[]},{"id":"a9beb64.74fc348","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2615.0357573372976,"y":4739.381177902222,"z":"f1e12e88.dbd29","wires":[["e117c34b.1acb3"]]},{"id":"e117c34b.1acb3","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":2769.3215735299245,"y":4739.381196975708,"z":"f1e12e88.dbd29","wires":[]},{"id":"4a33679f.e661d8","type":"save","name":"save (insert) generated name","xml":"\n","comments":"","outputs":1,"x":1885.1788924080984,"y":4827.952484130859,"z":"f1e12e88.dbd29","wires":[["e9db4101.94534"]]},{"id":"e9db4101.94534","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2095.1788237435476,"y":4827.9525356292725,"z":"f1e12e88.dbd29","wires":[["6bf99d85.c468e4"]]},{"id":"6bf99d85.c468e4","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":2249.4646399361745,"y":4827.952554702759,"z":"f1e12e88.dbd29","wires":[]},{"id":"3bf64b64.93b004","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1748.035978589739,"y":3725.0954093933105,"z":"f1e12e88.dbd29","wires":[["ea903bbb.dad038","865573f6.c807c","443092d4.e835dc","1ee0add9.d02322","f046eae1.13e1a8"]]},{"id":"4bb524f1.7a834c","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":2306.607443128313,"y":4139.381317138672,"z":"f1e12e88.dbd29","wires":[["a294c827.4f7908","8324bda6.96f7f"]]},{"id":"84dd83e3.603cb","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":2206.6074736458913,"y":4622.238306045532,"z":"f1e12e88.dbd29","wires":[["a04f698c.bf35d8","2701fa7a.652186"]]},{"id":"1881d83b.6c3b98","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":2203.7503264290945,"y":4717.952624320984,"z":"f1e12e88.dbd29","wires":[["25fb41f1.5f6a4e","7a06259f.cb1dac"]]},{"id":"a04f698c.bf35d8","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":2395.178755078997,"y":4597.95227766037,"z":"f1e12e88.dbd29","wires":[]},{"id":"7a06259f.cb1dac","type":"set","name":"set sql statement","xml":"\n\n\n","comments":"","x":2393.750303540911,"y":4692.238094329834,"z":"f1e12e88.dbd29","wires":[]},{"id":"83a2d6cc.4538d8","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":2160.893183026995,"y":4230.80979347229,"z":"f1e12e88.dbd29","wires":[["9212938c.255c4"]]},{"id":"1ee0add9.d02322","type":"set","name":"clear namedb.name","xml":"\n\n","comments":"","x":1976.607366834368,"y":3980.809726715088,"z":"f1e12e88.dbd29","wires":[]},{"id":"832af1c7.3004c","type":"switchNode","name":"switch generate-unique-name-input.index-length","xml":"\n","comments":"","outputs":1,"x":1420.8930800301687,"y":3559.1906394958496,"z":"f1e12e88.dbd29","wires":[["c7e25132.ae6"]]},{"id":"c7e25132.ae6","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1676.607412610735,"y":3560.0955486297607,"z":"f1e12e88.dbd29","wires":[["203d7826.0538c8"]]},{"id":"203d7826.0538c8","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":1833.7502959115163,"y":3560.0955486297607,"z":"f1e12e88.dbd29","wires":[]},{"id":"9ed8f268.5a5d6","type":"comment","name":"if we get here when there is no index length, then we have used up all 1000","info":"","comments":"","x":1552.3216765267507,"y":3515.809863090515,"z":"f1e12e88.dbd29","wires":[]},{"id":"41c5c579.61921c","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":1314.321710859026,"y":4989.095460891724,"z":"f1e12e88.dbd29","wires":[]},{"id":"7217aa55.91f204","type":"set","name":"set found-flag=false","xml":"\n\n","comments":"","x":856.2262992858887,"y":1279.0357704162598,"z":"f1e12e88.dbd29","wires":[]},{"id":"29714e04.6f3a92","type":"set","name":"set found-flag=true","xml":"\n\n","comments":"","x":2050.3930130004883,"y":1894.0953316007342,"z":"f1e12e88.dbd29","wires":[]},{"id":"aa402dd4.177b","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1857.5358352661133,"y":1920.2382759366717,"z":"f1e12e88.dbd29","wires":[["29714e04.6f3a92","d6d443c8.ce2b6"]]},{"id":"8d8bde9e.c8652","type":"returnFailure","name":"BREAK","xml":"\n","comments":"","x":2465.750162397112,"y":4251.952508926392,"z":"f1e12e88.dbd29","wires":[]},{"id":"ccf0e3fc.549a1","type":"comment","name":"found one we can use","info":"","comments":"","x":2283.6076186043874,"y":4183.000431060791,"z":"f1e12e88.dbd29","wires":[]},{"id":"970b46d4.d93098","type":"set","name":"set found-flag=true","xml":"\n\n","comments":"","x":2502.6550810677663,"y":4203.714361190796,"z":"f1e12e88.dbd29","wires":[]},{"id":"9212938c.255c4","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":2309.7979033333913,"y":4229.857305526733,"z":"f1e12e88.dbd29","wires":[["970b46d4.d93098","8d8bde9e.c8652"]]},{"id":"f61bdd4.52b982","type":"switchNode","name":"switch generate-unique-name-input.supplied-name","xml":"\n","comments":"","outputs":1,"x":410.5119285583496,"y":311.7143215451922,"z":"f1e12e88.dbd29","wires":[["c49ad7b9.5d3278","1aeafc45.343a74"]]},{"id":"c49ad7b9.5d3278","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":669.0834274291992,"y":338.85711710793635,"z":"f1e12e88.dbd29","wires":[["a425a788.03f3d8"]]},{"id":"1aeafc45.343a74","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":669.0834045410156,"y":280.7142872129168,"z":"f1e12e88.dbd29","wires":[["8624fc7e.b9621"]]},{"id":"9759df7c.13a96","type":"switchNode","name":"switch generate-unique-name-input.name-table-type","xml":"\n","comments":"","outputs":1,"x":1138.3690757751465,"y":217.42856829507014,"z":"f1e12e88.dbd29","wires":[["23752f6f.cacc9"]]},{"id":"23752f6f.cacc9","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1471.7022724151611,"y":217.4285778318133,"z":"f1e12e88.dbd29","wires":[["2eec993e.ef0966"]]},{"id":"2eec993e.ef0966","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1643.3690490722656,"y":217.76188128335139,"z":"f1e12e88.dbd29","wires":[]},{"id":"8624fc7e.b9621","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":823.3691291809082,"y":280.28571741921564,"z":"f1e12e88.dbd29","wires":[["9759df7c.13a96","b91aa1fb.934b4","8acc2f04.bfefa"]]},{"id":"8acc2f04.bfefa","type":"get-resource","name":"get-resource name","xml":"\n\n","comments":"","outputs":1,"x":1031.9405403137207,"y":310.2857326780047,"z":"f1e12e88.dbd29","wires":[["43898a84.7f7954","a18341a.51fc7c","ccbd4481.14d7b8"]]},{"id":"43898a84.7f7954","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1214.5595893859863,"y":297.42862837655207,"z":"f1e12e88.dbd29","wires":[["96fb3176.fb5ed"]]},{"id":"b91aa1fb.934b4","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":1025.512092590332,"y":262.66675036294123,"z":"f1e12e88.dbd29","wires":[]},{"id":"a18341a.51fc7c","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1222.6549453735352,"y":342.66673891884943,"z":"f1e12e88.dbd29","wires":[["be7be542.3e0818"]]},{"id":"96fb3176.fb5ed","type":"returnFailure","name":"return failure","xml":"\n\n\n","comments":"","x":1370.5120124816895,"y":297.00003378731867,"z":"f1e12e88.dbd29","wires":[]},{"id":"ccbd4481.14d7b8","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1214.7977142333984,"y":384.57143252236506,"z":"f1e12e88.dbd29","wires":[["e95ba061.e1905"]]},{"id":"e95ba061.e1905","type":"returnFailure","name":"return failure","xml":"\n\n\n","comments":"","x":1370.5119514465332,"y":383.99999659402033,"z":"f1e12e88.dbd29","wires":[]},{"id":"86bd22cb.352e7","type":"comment","name":"Caller supplied name - make sure it's not already used","info":"","comments":"","x":1065.5477447509766,"y":175.14285850524902,"z":"f1e12e88.dbd29","wires":[]},{"id":"be7be542.3e0818","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1371.9406394958496,"y":343.1428455625262,"z":"f1e12e88.dbd29","wires":[["d1938292.094a8","4ad7b9e3.bb3628"]]},{"id":"4ad7b9e3.bb3628","type":"save","name":"save (insert) generated name","xml":"\n","comments":"","outputs":1,"x":1611.9406394958496,"y":367.42858164651057,"z":"f1e12e88.dbd29","wires":[["d2df8a47.916c58"]]},{"id":"d2df8a47.916c58","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1821.9405708312988,"y":367.42863314492365,"z":"f1e12e88.dbd29","wires":[["590cc59c.108cec"]]},{"id":"590cc59c.108cec","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","x":1976.2263870239258,"y":367.42865221841,"z":"f1e12e88.dbd29","wires":[]},{"id":"d1938292.094a8","type":"set","name":"set sql statement","xml":"\n\n\n","comments":"","x":1571.9405708312988,"y":317.4287590299334,"z":"f1e12e88.dbd29","wires":[]},{"id":"14acf8c4.4ea607","type":"set","name":"set sql statement","xml":"\n\n\n","comments":"","x":1315.9406111580984,"y":3143.8570795059204,"z":"f1e12e88.dbd29","wires":[]},{"id":"f046eae1.13e1a8","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":1970.0359404427663,"y":4096.238283157349,"z":"f1e12e88.dbd29","wires":[]},{"id":"ac52d5a5.4eeac8","type":"set","name":"set sql statement","xml":"\n\n\n","comments":"","x":1845.7501356942312,"y":4780.523811340332,"z":"f1e12e88.dbd29","wires":[]},{"id":"1b9917f.36c93e8","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":2238.797796521868,"y":3008.1427965164185,"z":"f1e12e88.dbd29","wires":[]},{"id":"24410c66.8ac314","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":2235.9404089791433,"y":3101.4285774230957,"z":"f1e12e88.dbd29","wires":[]},{"id":"e00e3d85.de173","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":957.8929388863698,"y":3418.857152938843,"z":"f1e12e88.dbd29","wires":[["ce5f3d64.bd4d6"]]},{"id":"ce5f3d64.bd4d6","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1108.7263472420827,"y":4030.5236768722534,"z":"f1e12e88.dbd29","wires":[["832af1c7.3004c","a42cc5a7.7e7d28","9d5efe94.83a7e","22053b23.007ca4","41c5c579.61921c","6a9c7774.522518"]]},{"id":"5ca0dae8.3c52d4","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":1122.8692016601562,"y":1026.5357439517975,"z":"f1e12e88.dbd29","wires":[["31a7d4ee.e0d5ec"]]},{"id":"f0e796cc.5e5b28","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1129.4407196044922,"y":1133.1785907745361,"z":"f1e12e88.dbd29","wires":[["9bfd8f34.2ebbf"]]},{"id":"9bfd8f34.2ebbf","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1260.869270324707,"y":1132.6071968078613,"z":"f1e12e88.dbd29","wires":[["f1c7051f.090048","9d744b1.e34eeb8"]]},{"id":"8992b5cf.163d88","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":1515.7144088745117,"y":1792.4285945892334,"z":"f1e12e88.dbd29","wires":[]},{"id":"d9d55bdd.8116a8","type":"get-resource","name":"get-resource name","xml":"\n\n","comments":"","outputs":1,"x":1517.1430168151855,"y":1879.571517944336,"z":"f1e12e88.dbd29","wires":[["b6303af3.dbe008","ddebf1f4.503c3"]]},{"id":"60a7ef67.eff89","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":109.46438217163086,"y":286.0000047683716,"z":"f1e12e88.dbd29","wires":[["f61bdd4.52b982","b759fda7.dbd08"]]},{"id":"b759fda7.dbd08","type":"set","name":"clear variables","xml":"\n\n\n","comments":"","x":296.7858123779297,"y":263.8571434020996,"z":"f1e12e88.dbd29","wires":[]},{"id":"c6f1af5a.468da","type":"outcome","name":"0","xml":"\n","comments":"","outputs":1,"x":1301.8927192687988,"y":711.3571701049805,"z":"f1e12e88.dbd29","wires":[["cfd9fd80.ec344"]]},{"id":"cfd9fd80.ec344","type":"set","name":"set list-end = 0","xml":"\n\n","comments":"","x":1491.5593643188477,"y":711.3571472167969,"z":"f1e12e88.dbd29","wires":[]},{"id":"ebfd433a.e0d77","type":"switchNode","name":"switch tmp.gun.noindex-flag","xml":"\n","comments":"","outputs":1,"x":1066.3928358895437,"y":2075.000087738037,"z":"f1e12e88.dbd29","wires":[["498f27f9.e120c8"]]},{"id":"57b67a51.276aa4","type":"switchNode","name":"switch generate-unique-name-input.index-length","xml":"\n","comments":"","outputs":1,"x":1522.6786460876465,"y":1051.4285888671875,"z":"f1e12e88.dbd29","wires":[["2cbac97b.4aa416","80e4c28.5603a4"]]},{"id":"2cbac97b.4aa416","type":"outcome","name":"0","xml":"\n","comments":"","outputs":1,"x":1788.9286460876465,"y":1079.6785907745361,"z":"f1e12e88.dbd29","wires":[["173615cc.d05fca"]]},{"id":"80e4c28.5603a4","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1790.4286422729492,"y":1019.6785888671875,"z":"f1e12e88.dbd29","wires":[["38120565.948afa"]]},{"id":"38120565.948afa","type":"set","name":"increment index number","xml":"\n\n","comments":"","x":1982.9286422729492,"y":1019.4285888671875,"z":"f1e12e88.dbd29","wires":[]},{"id":"e01c4063.09502","type":"set","name":"set index number to 0","xml":"\n\n","comments":"","x":2126.9288902282715,"y":1081.4285888671875,"z":"f1e12e88.dbd29","wires":[]},{"id":"9d744b1.e34eeb8","type":"switchNode","name":"switch generate-unique-name-input.index-length","xml":"\n","comments":"","outputs":1,"x":1520.1786460876465,"y":1162.4285907745361,"z":"f1e12e88.dbd29","wires":[["5d9c7805.26da48","6787684c.f60838"]]},{"id":"6787684c.f60838","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1790.1786422729492,"y":1184.4285907745361,"z":"f1e12e88.dbd29","wires":[["a70d8048.c5db1"]]},{"id":"5d9c7805.26da48","type":"outcome","name":"0","xml":"\n","comments":"","outputs":1,"x":1790.1786651611328,"y":1128.178546667099,"z":"f1e12e88.dbd29","wires":[["173615cc.d05fca"]]},{"id":"173615cc.d05fca","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1938.928638458252,"y":1106.9285888671875,"z":"f1e12e88.dbd29","wires":[["e01c4063.09502","5a7b56b9.1a2218"]]},{"id":"5a7b56b9.1a2218","type":"set","name":"set noindex-flag=true","xml":"\n\n","comments":"","x":2126.428607940674,"y":1130.4285736083984,"z":"f1e12e88.dbd29","wires":[]},{"id":"a6319eb9.a478a","type":"set","name":"set generated-name to prefix","xml":"\n\n","comments":"","x":1669.428686414446,"y":2126.4286251068115,"z":"f1e12e88.dbd29","wires":[]},{"id":"498f27f9.e120c8","type":"outcome","name":"true","xml":"","comments":"","outputs":1,"x":1263.714372907366,"y":2075.0000705718994,"z":"f1e12e88.dbd29","wires":[["84f25abb.9b33c8"]]},{"id":"84f25abb.9b33c8","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1415.1427290780202,"y":2075.000192642212,"z":"f1e12e88.dbd29","wires":[["eeece4af.c0a578","46e6bbe6.b96de4","a6319eb9.a478a","895039d.ab466c8"]]},{"id":"46e6bbe6.b96de4","type":"set","name":"set sql statement","xml":"\n\n","comments":"","x":1636.4167921883718,"y":2169.2860288619995,"z":"f1e12e88.dbd29","wires":[]},{"id":"eeece4af.c0a578","type":"get-resource","name":"get-resource name","xml":"\n\n","comments":"","outputs":1,"x":1643.1311858040945,"y":2213.4287099838257,"z":"f1e12e88.dbd29","wires":[["6b264088.c0c0f","f6389af4.2322a8","d39377b1.8101a8"]]},{"id":"6b264088.c0c0f","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1835.4287970406667,"y":2212.7145666394917,"z":"f1e12e88.dbd29","wires":[["b37543f9.81217"]]},{"id":"f6389af4.2322a8","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1842.09553364345,"y":2303.6669620786397,"z":"f1e12e88.dbd29","wires":[["a344bbb4.7d2768"]]},{"id":"a344bbb4.7d2768","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":2024.9524617876323,"y":2303.095464706421,"z":"f1e12e88.dbd29","wires":[["4df3f5e0.14d1ec","c46e5537.98d148"]]},{"id":"c46e5537.98d148","type":"returnFailure","name":"BREAK","xml":"\n","comments":"","x":2180.904720851353,"y":2325.190668106079,"z":"f1e12e88.dbd29","wires":[]},{"id":"4df3f5e0.14d1ec","type":"set","name":"set found-flag=true","xml":"\n\n","comments":"","x":2217.8096395220073,"y":2276.9525203704834,"z":"f1e12e88.dbd29","wires":[]},{"id":"df613651.9951c8","type":"returnFailure","name":"BREAK","xml":"\n","comments":"","x":2146.6192953927175,"y":2231.2859873090474,"z":"f1e12e88.dbd29","wires":[]},{"id":"98632bf4.b7ffc8","type":"set","name":"set generate-unique-name-output.error-message","xml":"\n\n","comments":"","x":2281.381048474993,"y":2186.2858995710103,"z":"f1e12e88.dbd29","wires":[]},{"id":"b37543f9.81217","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1987.8097937447683,"y":2212.2384857450215,"z":"f1e12e88.dbd29","wires":[["98632bf4.b7ffc8","df613651.9951c8"]]},{"id":"e550dd50.78cb9","type":"comment","name":"found one we can use","info":"","comments":"","x":1998.7621770586284,"y":2256.2385902404785,"z":"f1e12e88.dbd29","wires":[]},{"id":"8564972f.d7ac28","type":"comment","name":"NEW","info":"","comments":"","x":1195.7141478402273,"y":718.1428843906947,"z":"f1e12e88.dbd29","wires":[]},{"id":"1e004cfc.176c53","type":"comment","name":"NEW","info":"","comments":"","x":1065.1429557800293,"y":2040.7142515182495,"z":"f1e12e88.dbd29","wires":[]},{"id":"3ee36ab0.29b546","type":"comment","name":"NEW","info":"","comments":"","x":1665.7143363952637,"y":1018.142822265625,"z":"f1e12e88.dbd29","wires":[]},{"id":"d4074d8c.bfb16","type":"comment","name":"NEW","info":"","comments":"","x":1658.5715599060059,"y":1132.4285736083984,"z":"f1e12e88.dbd29","wires":[]},{"id":"895039d.ab466c8","type":"set","name":"set index-string to 0","xml":"\n\n","comments":"","x":1653.7142393929616,"y":2075.285786628723,"z":"f1e12e88.dbd29","wires":[]},{"id":"6a9c7774.522518","type":"switchNode","name":"switch tmp.gun.noindex-flag","xml":"\n","comments":"","outputs":1,"x":1357.1429579598562,"y":3442.2859592437744,"z":"f1e12e88.dbd29","wires":[["11834167.ca210f"]]},{"id":"11834167.ca210f","type":"outcome","name":"true","xml":"","comments":"","outputs":1,"x":1562.8572371346609,"y":3442.2858657836914,"z":"f1e12e88.dbd29","wires":[["d2b73835.0ea468"]]},{"id":"d2b73835.0ea468","type":"returnFailure","name":"return failure","xml":"\n \n","comments":"","x":1727.1430800301687,"y":3440.8571434020996,"z":"f1e12e88.dbd29","wires":[]},{"id":"d39377b1.8101a8","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":1837.6072202410014,"y":2359.1427116394043,"z":"f1e12e88.dbd29","wires":[["a344bbb4.7d2768"]]},{"id":"6bb9091e.5be0b8","type":"outcome","name":"4","xml":"\n","comments":"","outputs":1,"x":1301.428611755371,"y":892.4285907745361,"z":"f1e12e88.dbd29","wires":[["17a0d309.719f1d"]]},{"id":"17a0d309.719f1d","type":"set","name":"set list-end = 10000","xml":"\n\n","comments":"","x":1491.09525680542,"y":892.4285678863525,"z":"f1e12e88.dbd29","wires":[]},{"id":"f7fa28a8.8b0758","type":"outcome","name":"4","xml":"\n","comments":"","outputs":1,"x":1885.7142295837402,"y":1605.28568649292,"z":"f1e12e88.dbd29","wires":[["d1b531f0.8a652"]]},{"id":"d1b531f0.8a652","type":"switchNode","name":"switch idx < 10","xml":"\n","comments":"","outputs":1,"x":2054.047565460205,"y":1603.6188144683838,"z":"f1e12e88.dbd29","wires":[["af04c09f.28afb","c2c9d02e.99182"]]},{"id":"af04c09f.28afb","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2222.6188926696777,"y":1556.5236530303955,"z":"f1e12e88.dbd29","wires":[["8bcb9864.611948"]]},{"id":"c2c9d02e.99182","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2235.714199066162,"y":1681.9521503448486,"z":"f1e12e88.dbd29","wires":[["e3787088.01e29"]]},{"id":"706a513d.637ee","type":"set","name":"set noindex-flag=false","xml":"\n\n","comments":"","x":868.5714378356934,"y":895.2857322692871,"z":"f1e12e88.dbd29","wires":[]},{"id":"5ed13069.e993c","type":"set","name":"set index-string to '00' + idx","xml":"\n\n","comments":"","x":2778.571449279785,"y":1637.4285531725202,"z":"f1e12e88.dbd29","wires":[]},{"id":"967f183e.788928","type":"switchNode","name":"switch idx < 1000","xml":"\n","comments":"","outputs":1,"x":2741.5713958740234,"y":1716.761981010437,"z":"f1e12e88.dbd29","wires":[["655f0a60.0c9ae4","22ea7aed.7a52d6"]]},{"id":"655f0a60.0c9ae4","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2898.57137298584,"y":1690.0953588485718,"z":"f1e12e88.dbd29","wires":[["90b513ea.13f85"]]},{"id":"22ea7aed.7a52d6","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2898.57133102417,"y":1738.4286947250366,"z":"f1e12e88.dbd29","wires":[["549cf9ae.d15f78"]]},{"id":"90b513ea.13f85","type":"set","name":"set index-string to '0' + idx","xml":"\n\n","comments":"","x":3091.2381591796875,"y":1689.7620134353638,"z":"f1e12e88.dbd29","wires":[]},{"id":"549cf9ae.d15f78","type":"set","name":"set index-string to idx","xml":"\n\n","comments":"","x":3075.2381439208984,"y":1738.0953168869019,"z":"f1e12e88.dbd29","wires":[]},{"id":"8bcb9864.611948","type":"set","name":"set index-string to '000' + idx","xml":"\n\n","comments":"","x":2429.9999389648438,"y":1556.1429405212402,"z":"f1e12e88.dbd29","wires":[]},{"id":"e3787088.01e29","type":"switchNode","name":"switch idx < 100","xml":"\n","comments":"","outputs":1,"x":2404.428535461426,"y":1681.90490763528,"z":"f1e12e88.dbd29","wires":[["f37b934d.d7ebd","9d6030ea.5eef2"]]},{"id":"f37b934d.d7ebd","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":2561.428512573242,"y":1637.2382854734149,"z":"f1e12e88.dbd29","wires":[["5ed13069.e993c"]]},{"id":"9d6030ea.5eef2","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":2561.4284706115723,"y":1717.5716213498797,"z":"f1e12e88.dbd29","wires":[["967f183e.788928"]]},{"id":"f51a568e.900f58","type":"comment","name":"Change History","info":"iTrack 10767\n- insert new column (index, prefix, info)\niTrack 11252\n- use tmp.gun.index-string as opposed to tmp.gun.idx as prefix for GENERIC_RESOURCE_NAME insert","comments":"","x":141.42860412597656,"y":422.42858505249023,"z":"f1e12e88.dbd29","wires":[]},{"id":"a3dd9b78.e64078","type":"comment","name":"iTrack 10767","info":"","comments":"","x":1444.285831451416,"y":3126.7143383026123,"z":"f1e12e88.dbd29","wires":[]},{"id":"54436640.a3b2b8","type":"set","name":"set tmp.gun.transient","xml":"\n\n","comments":"","x":789.9999694824219,"y":2800.9999918937683,"z":"f1e12e88.dbd29","wires":[]},{"id":"aac966e5.94dc28","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"","outputs":1,"x":398.66668701171875,"y":47.666669845581055,"z":"f1e12e88.dbd29","wires":[["dc433da4.fccac"]]}] \ No newline at end of file +[ + { + "id": "15040625.d5f40a", + "type": "comment", + "name": "Validation of required data", + "info": "", + "comments": "", + "x": 1362.22216796875, + "y": 421.29468727111816, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "11c017ed.c4cc98", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 432.9722709655762, + "y": 26.69937038421631, + "z": "f2af2445.16fe78", + "wires": [ + [ + "9f71976e.e5c5f8" + ] + ] + }, + { + "id": "4eedc095.04b8b", + "type": "method", + "name": "method generate-unique-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 565.8889999389648, + "y": 99.044602394104, + "z": "f2af2445.16fe78", + "wires": [ + [ + "360fc793.866bf8" + ] + ] + }, + { + "id": "23286af8.e7fb96", + "type": "comment", + "name": "generate-unique-name", + "info": "Input arguments:\ngenerate-unique-name-input.index-table-name - name of INDEX table\ngenerate-unique-name-input.index-table-prefix-column - name of prefix column in above table\ngenerate-unique-name-input.name-table-name - name of table holding all generated names\ngenerate-unique-name-input.index-length - non-null digit if index should be fixed length\n\nOutput arguments:\ngenerate-unique-name-output.generated-name - generated name (null if error)\ngenerate-unique-name-output.error-message - error message (non-null if error)\n", + "comments": "", + "x": 1120.5314331054688, + "y": 20, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "d51fb171.df3c3", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 849.9960746765137, + "y": 1412.440560749599, + "z": "f2af2445.16fe78", + "wires": [ + [ + "aeb040b1.610fe", + "d5c2022c.eb55c", + "6937019b.7d45d", + "bcb4efa7.8fb4d", + "4d3aaea2.1682c", + "6c67d02f.17bf4", + "c51e026f.e6689", + "2d26f683.ab135a", + "f849cb78.2321f8", + "59510b56.12c9f4", + "3e63e2e.8d66c1e", + "c2125c33.cdb9e" + ] + ] + }, + { + "id": "aeb040b1.610fe", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-table-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1298.8055572509766, + "y": 466.9048252105713, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1286f8.7a830909" + ] + ] + }, + { + "id": "1286f8.7a830909", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1628.805477142334, + "y": 466.9048147201538, + "z": "f2af2445.16fe78", + "wires": [ + [ + "c3b06eda.624f2" + ] + ] + }, + { + "id": "c3b06eda.624f2", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 1802.1387977600098, + "y": 466.90480613708496, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "d5c2022c.eb55c", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-table-prefix-column", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1323.8055267333984, + "y": 510.23816108703613, + "z": "f2af2445.16fe78", + "wires": [ + [ + "8b8a2d3c.650b5" + ] + ] + }, + { + "id": "8b8a2d3c.650b5", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1627.1387901306152, + "y": 510.2381401062012, + "z": "f2af2445.16fe78", + "wires": [ + [ + "2fce40e3.dcb3a" + ] + ] + }, + { + "id": "2fce40e3.dcb3a", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 1800.4721069335938, + "y": 510.57148361206055, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "6937019b.7d45d", + "type": "switchNode", + "name": "switch generate-unique-name-input.name-table-type", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1294.805534362793, + "y": 555.2381534576416, + "z": "f2af2445.16fe78", + "wires": [ + [ + "fe8ebb70.f12418" + ] + ] + }, + { + "id": "fe8ebb70.f12418", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1627.1387310028076, + "y": 555.2381629943848, + "z": "f2af2445.16fe78", + "wires": [ + [ + "c450338.ed9f6d" + ] + ] + }, + { + "id": "c450338.ed9f6d", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 1798.805507659912, + "y": 555.5714664459229, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c51e026f.e6689", + "type": "get-resource", + "name": "get-resource current name index", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 1216.829387664795, + "y": 1114.0355405807495, + "z": "f2af2445.16fe78", + "wires": [ + [ + "2161e5d1.539e3a", + "b88e0290.6b67d", + "a98b0c69.c8ff5" + ] + ] + }, + { + "id": "2161e5d1.539e3a", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1444.5198192596436, + "y": 1200.0594501495361, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d996887b.f8a558" + ] + ] + }, + { + "id": "d996887b.f8a558", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 1607.1389408111572, + "y": 1201.4881782531738, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "b684649d.306688", + "type": "for", + "name": "for idx from current index to list-end", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1371.6627464294434, + "y": 1442.8571510314941, + "z": "f2af2445.16fe78", + "wires": [ + [ + "c4de9305.e3b5f" + ] + ] + }, + { + "id": "bcb4efa7.8fb4d", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1134.2817420959473, + "y": 1442.857116154262, + "z": "f2af2445.16fe78", + "wires": [ + [ + "b684649d.306688", + "a13f9156.7cff2", + "187251ba.f9a6ce" + ] + ] + }, + { + "id": "a13f9156.7cff2", + "type": "returnSuccess", + "name": "CATCH BREAK", + "xml": "\n\n", + "comments": "", + "x": 1327.472242627825, + "y": 2467.2858533859253, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "4d3aaea2.1682c", + "type": "switchNode", + "name": "switch generate-unique-name-input.prefix", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1260.4721755981445, + "y": 600.2381324768066, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d42fa470.81ab78" + ] + ] + }, + { + "id": "d42fa470.81ab78", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1627.8053646087646, + "y": 600.2381572723389, + "z": "f2af2445.16fe78", + "wires": [ + [ + "af0a5a6c.8f2da8" + ] + ] + }, + { + "id": "af0a5a6c.8f2da8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 1800.4721412658691, + "y": 600.571460723877, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "6c67d02f.17bf4", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1283.8055419921875, + "y": 735.2380743026733, + "z": "f2af2445.16fe78", + "wires": [ + [ + "185b25b7.55418a", + "208a685c.353108", + "d9e7f7d8.523f68", + "7ee1530f.9a7ebc", + "157b96c3.7936e9", + "26eda43b.2c3b5c", + "59274ef2.cf994" + ] + ] + }, + { + "id": "185b25b7.55418a", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1627.1388549804688, + "y": 643.571460723877, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d94c4d3c.5f17d" + ] + ] + }, + { + "id": "157b96c3.7936e9", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1625.9007606506348, + "y": 918.809588432312, + "z": "f2af2445.16fe78", + "wires": [ + [ + "c70900c9.1665f" + ] + ] + }, + { + "id": "208a685c.353108", + "type": "outcome", + "name": "1", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1624.0436630249023, + "y": 734.2857999801636, + "z": "f2af2445.16fe78", + "wires": [ + [ + "923d6c6a.e4f8d" + ] + ] + }, + { + "id": "d9e7f7d8.523f68", + "type": "outcome", + "name": "2", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1624.0436477661133, + "y": 779.2857904434204, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d39e047e.b0fc98" + ] + ] + }, + { + "id": "7ee1530f.9a7ebc", + "type": "outcome", + "name": "3", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1622.3769836425781, + "y": 822.6191263198853, + "z": "f2af2445.16fe78", + "wires": [ + [ + "70f9e263.445b3c" + ] + ] + }, + { + "id": "923d6c6a.e4f8d", + "type": "set", + "name": "set list-end = 10", + "xml": "\n\n", + "comments": "", + "x": 1806.7103996276855, + "y": 734.2857885360718, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "d39e047e.b0fc98", + "type": "set", + "name": "set list-end = 100", + "xml": "\n\n", + "comments": "", + "x": 1810.043628692627, + "y": 779.2857904434204, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "70f9e263.445b3c", + "type": "set", + "name": "set list-end = 1000", + "xml": "\n\n", + "comments": "", + "x": 1812.043628692627, + "y": 822.6191034317017, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c70900c9.1665f", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 1796.9006843566895, + "y": 918.1429586410522, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "80595c6f.d370b", + "type": "set", + "name": "set new index number to 1", + "xml": "\n\n", + "comments": "", + "x": 2311.0082054138184, + "y": 1163.4288799762726, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "d94c4d3c.5f17d", + "type": "set", + "name": "set list-end = 100000 (infinity basically)", + "xml": "\n\n", + "comments": "", + "x": 1876.1387939453125, + "y": 643.9048042297363, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "651d8bf.8378c74", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1933.3293266296387, + "y": 1369.5237898145404, + "z": "f2af2445.16fe78", + "wires": [ + [ + "485a952f.4683ac", + "929353b9.9ddf2", + "fdae624e.d1e4d", + "f1fa6f3d.9cd86", + "c12d0b68.b45788" + ] + ] + }, + { + "id": "485a952f.4683ac", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2217.6150703430176, + "y": 1220.9523973464966, + "z": "f2af2445.16fe78", + "wires": [ + [ + "93103f3e.f5587" + ] + ] + }, + { + "id": "929353b9.9ddf2", + "type": "outcome", + "name": "1", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2215.948417663574, + "y": 1265.9524374008179, + "z": "f2af2445.16fe78", + "wires": [ + [ + "93103f3e.f5587" + ] + ] + }, + { + "id": "fdae624e.d1e4d", + "type": "outcome", + "name": "2", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2215.948402404785, + "y": 1315.0000638961792, + "z": "f2af2445.16fe78", + "wires": [ + [ + "fe2daf39.916f2" + ] + ] + }, + { + "id": "f1fa6f3d.9cd86", + "type": "outcome", + "name": "3", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2217.3770751953125, + "y": 1417.381145477295, + "z": "f2af2445.16fe78", + "wires": [ + [ + "9b7d9fc5.77d19" + ] + ] + }, + { + "id": "93103f3e.f5587", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 2402.615219116211, + "y": 1239.285740852356, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "fe2daf39.916f2", + "type": "switchNode", + "name": "switch idx < 10", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2382.615032196045, + "y": 1314.9999618530273, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1e14c0e7.34b7bf", + "837fdec7.0a022" + ] + ] + }, + { + "id": "1e14c0e7.34b7bf", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2544.281665802002, + "y": 1288.3333349227905, + "z": "f2af2445.16fe78", + "wires": [ + [ + "3fe02145.d703be" + ] + ] + }, + { + "id": "837fdec7.0a022", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2544.281623840332, + "y": 1336.6666707992554, + "z": "f2af2445.16fe78", + "wires": [ + [ + "461425f5.d0f43c" + ] + ] + }, + { + "id": "3fe02145.d703be", + "type": "set", + "name": "set index-string to '0' + idx", + "xml": "\n\n", + "comments": "", + "x": 2735.9484252929688, + "y": 1287.6665620803833, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "461425f5.d0f43c", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 2719.2816772460938, + "y": 1336.3332777023315, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "9b7d9fc5.77d19", + "type": "switchNode", + "name": "switch idx < 10", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2385.7104110717773, + "y": 1415.7142734527588, + "z": "f2af2445.16fe78", + "wires": [ + [ + "e219ec7e.fe57c", + "ad55e1a8.b6075" + ] + ] + }, + { + "id": "e219ec7e.fe57c", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2545.7103881835938, + "y": 1389.0476512908936, + "z": "f2af2445.16fe78", + "wires": [ + [ + "22b4d6dc.cf442a" + ] + ] + }, + { + "id": "ad55e1a8.b6075", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2550.2340087890625, + "y": 1465.4762334823608, + "z": "f2af2445.16fe78", + "wires": [ + [ + "dbe69aa8.33eda8" + ] + ] + }, + { + "id": "22b4d6dc.cf442a", + "type": "set", + "name": "set index-string to '00' + idx", + "xml": "\n\n", + "comments": "", + "x": 2740.710479736328, + "y": 1389.047542163304, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "dbe69aa8.33eda8", + "type": "switchNode", + "name": "switch idx < 100", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2706.5673904418945, + "y": 1463.809594154358, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f7ffce1d.63fe1", + "67fc8e98.639b9" + ] + ] + }, + { + "id": "f7ffce1d.63fe1", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2863.567367553711, + "y": 1437.1429719924927, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1c294f19.3865c1" + ] + ] + }, + { + "id": "67fc8e98.639b9", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2863.567325592041, + "y": 1485.4763078689575, + "z": "f2af2445.16fe78", + "wires": [ + [ + "3ab4c683.87c0fa" + ] + ] + }, + { + "id": "1c294f19.3865c1", + "type": "set", + "name": "set index-string to '0' + idx", + "xml": "\n\n", + "comments": "", + "x": 3056.2341537475586, + "y": 1436.8096265792847, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "3ab4c683.87c0fa", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 3040.2341384887695, + "y": 1485.1429300308228, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c81549dd.4990b8", + "type": "set", + "name": "set generated-name to prefix + index-string", + "xml": "\n\n", + "comments": "", + "x": 1917.329418182373, + "y": 1646.1904386792864, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "27f2f9ab.7e2c26", + "type": "comment", + "name": "First check from the current index to the max index", + "info": "", + "comments": "", + "x": 1334.9960899353027, + "y": 1381.1905197416033, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "4eb7a743.5209e8", + "type": "comment", + "name": "check if we've used this name before", + "info": "", + "comments": "", + "x": 1914.0439414978027, + "y": 1730.4765844345093, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "be62e7ae.90b8f8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2021.662742614746, + "y": 1807.8573669706072, + "z": "f2af2445.16fe78", + "wires": [ + [ + "dfb2aa84.9b4598" + ] + ] + }, + { + "id": "1d6bb1a2.44855e", + "type": "set", + "name": "set generate-unique-name-output.error-message", + "xml": "\n\n", + "comments": "", + "x": 2467.6149940490723, + "y": 1781.4286999021258, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "a5f867db.9d9558", + "type": "returnFailure", + "name": "BREAK", + "xml": "\n", + "comments": "", + "x": 2332.853240966797, + "y": 1826.428787640163, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "ad173e2b.5c512", + "type": "returnFailure", + "name": "BREAK", + "xml": "\n", + "comments": "", + "x": 2335.710262298584, + "y": 1921.3334783826556, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c15de393.a41e9", + "type": "comment", + "name": "found one we can use", + "info": "", + "comments": "", + "x": 2153.5677185058594, + "y": 1852.381400517055, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "2d26f683.ab135a", + "type": "switchNode", + "name": "switch generate-unique-name-output.error-message", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1209.5437147957937, + "y": 2679.2858324050903, + "z": "f2af2445.16fe78", + "wires": [ + [ + "77705736.9ef7c8", + "68085745.a74d48" + ] + ] + }, + { + "id": "77705736.9ef7c8", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1482.8771231515066, + "y": 2652.6190843582153, + "z": "f2af2445.16fe78", + "wires": [ + [ + "bdffcfcf.9486c" + ] + ] + }, + { + "id": "bdffcfcf.9486c", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1617.8771231515066, + "y": 2652.6190843582153, + "z": "f2af2445.16fe78", + "wires": [ + [] + ] + }, + { + "id": "68085745.a74d48", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1482.8770888192312, + "y": 2702.6191053390503, + "z": "f2af2445.16fe78", + "wires": [ + [ + "2c4c0bf4.4ba724" + ] + ] + }, + { + "id": "2c4c0bf4.4ba724", + "type": "returnFailure", + "name": "return failure", + "xml": "\n", + "comments": "", + "x": 1632.8770888192312, + "y": 2702.6191053390503, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "f849cb78.2321f8", + "type": "switchNode", + "name": "switch found-flag", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1101.5437605721609, + "y": 3033.571455001831, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f2e8b24d.e7494", + "c4268ba7.916128" + ] + ] + }, + { + "id": "f2e8b24d.e7494", + "type": "outcome", + "name": "true", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1275.877100263323, + "y": 3033.5714559555054, + "z": "f2af2445.16fe78", + "wires": [ + [ + "db1278f8.147038" + ] + ] + }, + { + "id": "b4aa117c.62303", + "type": "set", + "name": "set generate-unique-name-output.generated-name", + "xml": "\n\n", + "comments": "", + "x": 1746.5437147957937, + "y": 2878.5717420578003, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "144ff8a5.06a137", + "type": "returnSuccess", + "name": "return success", + "xml": "\n", + "comments": "", + "x": 1628.591284070696, + "y": 3215.952536582947, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "db1278f8.147038", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1427.5437300545827, + "y": 3032.904870033264, + "z": "f2af2445.16fe78", + "wires": [ + [ + "b4aa117c.62303", + "58767fb5.799f", + "7332878a.b6d298", + "144ff8a5.06a137", + "b3a55875.754e68" + ] + ] + }, + { + "id": "3d4b23e4.f03d2c", + "type": "set", + "name": "set index-exists flag to false", + "xml": "\n\n", + "comments": "", + "x": 1778.8055992126465, + "y": 1080.8929452896118, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "7b63453a.f976cc", + "type": "set", + "name": "set index-exists flag to true", + "xml": "\n\n", + "comments": "", + "x": 1777.448543548584, + "y": 984.8214712142944, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "f97c717e.aeece", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1584.1628150939941, + "y": 1006.2500772476196, + "z": "f2af2445.16fe78", + "wires": [ + [ + "7b63453a.f976cc", + "dc9a064f.20c918" + ] + ] + }, + { + "id": "58767fb5.799f", + "type": "switchNode", + "name": "switch index-exists", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1642.3057234627859, + "y": 3010.714743614197, + "z": "f2af2445.16fe78", + "wires": [ + [ + "6a0af996.974498", + "6c8e2cbe.78d944" + ] + ] + }, + { + "id": "6a0af996.974498", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1820.8770888192312, + "y": 2986.4290113449097, + "z": "f2af2445.16fe78", + "wires": [ + [ + "87bbd73a.280a98" + ] + ] + }, + { + "id": "6c8e2cbe.78d944", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1820.8771040780202, + "y": 3033.571936607361, + "z": "f2af2445.16fe78", + "wires": [ + [ + "784e1241.16399c" + ] + ] + }, + { + "id": "9bc6db3a.e853b8", + "type": "save", + "name": "save (update) name index", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2216.591413770403, + "y": 2987.857427597046, + "z": "f2af2445.16fe78", + "wires": [ + [ + "3aaf9849.6999f8" + ] + ] + }, + { + "id": "853b68e5.628e58", + "type": "save", + "name": "save (insert) name index", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2209.4483931405202, + "y": 3082.1428956985474, + "z": "f2af2445.16fe78", + "wires": [ + [ + "8c884666.ad49c8" + ] + ] + }, + { + "id": "3aaf9849.6999f8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2409.4486143929616, + "y": 2987.857446670532, + "z": "f2af2445.16fe78", + "wires": [ + [ + "b2adf596.b14dc8" + ] + ] + }, + { + "id": "8c884666.ad49c8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2406.591184888567, + "y": 3080.7144117355347, + "z": "f2af2445.16fe78", + "wires": [ + [ + "a521b607.e28cf8" + ] + ] + }, + { + "id": "7332878a.b6d298", + "type": "save", + "name": "save (insert) generated name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1676.734319959368, + "y": 3169.2857179641724, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ecbc8e26.1fa38" + ] + ] + }, + { + "id": "ecbc8e26.1fa38", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1886.734251294817, + "y": 3169.2857694625854, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1f5bf102.8c12af" + ] + ] + }, + { + "id": "1f5bf102.8c12af", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 2041.020067487444, + "y": 3169.285788536072, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "59510b56.12c9f4", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 1172.734218597412, + "y": 964.8215706348419, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c4de9305.e3b5f", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1613.805606842041, + "y": 1442.4286302839007, + "z": "f2af2445.16fe78", + "wires": [ + [ + "651d8bf.8378c74", + "c81549dd.4990b8", + "5cfa637b.4338bc", + "a3abe6b2.a53fb8" + ] + ] + }, + { + "id": "dfb2aa84.9b4598", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2174.0437393188477, + "y": 1807.381286076137, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1d6bb1a2.44855e", + "a5f867db.9d9558" + ] + ] + }, + { + "id": "87bbd73a.280a98", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1998.1629011971609, + "y": 2963.571539878845, + "z": "f2af2445.16fe78", + "wires": [ + [ + "5830bf50.31dae", + "9bc6db3a.e853b8" + ] + ] + }, + { + "id": "784e1241.16399c", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1995.305753980364, + "y": 3059.285858154297, + "z": "f2af2445.16fe78", + "wires": [ + [ + "853b68e5.628e58", + "88572550.cad9b8" + ] + ] + }, + { + "id": "5830bf50.31dae", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 2186.7341826302663, + "y": 2939.285511493683, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "88572550.cad9b8", + "type": "set", + "name": "set sql statement", + "xml": "\n\n\n", + "comments": "", + "x": 2185.3057310921804, + "y": 3033.571328163147, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "96f6c88d.8b7e38", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2028.3294792175293, + "y": 1898.8097624097552, + "z": "f2af2445.16fe78", + "wires": [ + [ + "41d904c1.515ddc" + ] + ] + }, + { + "id": "bf503344.2453a", + "type": "for", + "name": "for idx from 1 to current index", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1828.1153014046804, + "y": 3705.5238943099976, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d892995.bb30f68" + ] + ] + }, + { + "id": "7c854eaa.cabde", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1614.4485479082377, + "y": 3705.523872920445, + "z": "f2af2445.16fe78", + "wires": [ + [ + "bf503344.2453a", + "9ffe82b8.b73ec" + ] + ] + }, + { + "id": "9ffe82b8.b73ec", + "type": "returnSuccess", + "name": "CATCH BREAK", + "xml": "\n\n", + "comments": "", + "x": 1779.0676939828054, + "y": 4280.524024963379, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "94f9f0ef.6fa0d", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2375.781873975481, + "y": 3660.1906385421753, + "z": "f2af2445.16fe78", + "wires": [ + [ + "266ce65b.b0b66a", + "97bab24a.c840c", + "3d984119.5f033e", + "3e3c8d28.fe1a32" + ] + ] + }, + { + "id": "266ce65b.b0b66a", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2655.781873975481, + "y": 3590.1906995773315, + "z": "f2af2445.16fe78", + "wires": [ + [ + "dfbbc1b8.5e5ce" + ] + ] + }, + { + "id": "97bab24a.c840c", + "type": "outcome", + "name": "1", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2654.115221296038, + "y": 3635.190739631653, + "z": "f2af2445.16fe78", + "wires": [ + [ + "dfbbc1b8.5e5ce" + ] + ] + }, + { + "id": "3d984119.5f033e", + "type": "outcome", + "name": "2", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2654.115309034075, + "y": 3688.5240869522095, + "z": "f2af2445.16fe78", + "wires": [ + [ + "deb2ba7e.8c5978" + ] + ] + }, + { + "id": "3e3c8d28.fe1a32", + "type": "outcome", + "name": "3", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2654.1151869637624, + "y": 3785.1908197402954, + "z": "f2af2445.16fe78", + "wires": [ + [ + "eb7b9bc3.3d21f8" + ] + ] + }, + { + "id": "dfbbc1b8.5e5ce", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 2840.7820227486745, + "y": 3608.524043083191, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "deb2ba7e.8c5978", + "type": "switchNode", + "name": "switch idx < 10", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2820.7819388253347, + "y": 3688.5239849090576, + "z": "f2af2445.16fe78", + "wires": [ + [ + "937abb25.5405e8", + "5f465025.bda92" + ] + ] + }, + { + "id": "937abb25.5405e8", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2982.4485724312917, + "y": 3661.857357978821, + "z": "f2af2445.16fe78", + "wires": [ + [ + "b0abf2f9.7e53f" + ] + ] + }, + { + "id": "5f465025.bda92", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2982.448530469622, + "y": 3710.1906938552856, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ba4422ab.99ab3" + ] + ] + }, + { + "id": "b0abf2f9.7e53f", + "type": "set", + "name": "set index-string to '0' + idx", + "xml": "\n\n", + "comments": "", + "x": 3174.1153319222585, + "y": 3661.1905851364136, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "ba4422ab.99ab3", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 3157.4485838753835, + "y": 3709.857300758362, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "eb7b9bc3.3d21f8", + "type": "switchNode", + "name": "switch idx < 10", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2822.4485228402273, + "y": 3783.5239477157593, + "z": "f2af2445.16fe78", + "wires": [ + [ + "14d2288c.c6a057", + "d8edd84e.af3bc8" + ] + ] + }, + { + "id": "14d2288c.c6a057", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2982.4484999520437, + "y": 3756.857325553894, + "z": "f2af2445.16fe78", + "wires": [ + [ + "62627b5d.5978e4" + ] + ] + }, + { + "id": "d8edd84e.af3bc8", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2984.1151564461843, + "y": 3831.857283592224, + "z": "f2af2445.16fe78", + "wires": [ + [ + "30bfdb15.2f8ad4" + ] + ] + }, + { + "id": "62627b5d.5978e4", + "type": "set", + "name": "set index-string to '00' + idx", + "xml": "\n\n", + "comments": "", + "x": 3177.4485838753835, + "y": 3756.857300758362, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "30bfdb15.2f8ad4", + "type": "switchNode", + "name": "switch idx < 100", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3140.4485380990163, + "y": 3830.190644264221, + "z": "f2af2445.16fe78", + "wires": [ + [ + "440bf02e.68e61", + "b8862f98.abf7a" + ] + ] + }, + { + "id": "440bf02e.68e61", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3297.4485152108327, + "y": 3803.524022102356, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ba35148d.b73588" + ] + ] + }, + { + "id": "b8862f98.abf7a", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3297.448473249163, + "y": 3851.857357978821, + "z": "f2af2445.16fe78", + "wires": [ + [ + "e6bfcbc8.332388" + ] + ] + }, + { + "id": "ba35148d.b73588", + "type": "set", + "name": "set index-string to '0' + idx", + "xml": "\n\n", + "comments": "", + "x": 3490.1153014046804, + "y": 3803.190676689148, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "e6bfcbc8.332388", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 3474.1152861458913, + "y": 3851.523980140686, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "360242d5.db658e", + "type": "set", + "name": "set generated-name to prefix + index-string", + "xml": "\n\n", + "comments": "", + "x": 2373.781957898821, + "y": 3908.857216835022, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "b69ff8cc.8d9308", + "type": "comment", + "name": "Wrapping around - now check from 1 to the original index", + "info": "", + "comments": "", + "x": 1805.4486220223562, + "y": 3635.0002088546753, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "47e5b18f.a8b23", + "type": "comment", + "name": "check if we've used this name before", + "info": "", + "comments": "", + "x": 2360.4964049203054, + "y": 4023.857490539551, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "ef79ae3c.17c5f", + "type": "get-resource", + "name": "get-resource name", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 2298.115221296038, + "y": 4164.571560450962, + "z": "f2af2445.16fe78", + "wires": [ + [ + "5a089be5.cf97a4", + "66a1cd31.360d64" + ] + ] + }, + { + "id": "5a089be5.cf97a4", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2476.4486143929616, + "y": 4118.857397079468, + "z": "f2af2445.16fe78", + "wires": [ + [ + "c2df42b8.3c5f6" + ] + ] + }, + { + "id": "abf5ee3d.5d0ca", + "type": "set", + "name": "set generate-unique-name-output.error-message", + "xml": "\n\n", + "comments": "", + "x": 2922.400865827288, + "y": 4092.4287300109863, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "ee79f6f.5d57b08", + "type": "returnFailure", + "name": "BREAK", + "xml": "\n", + "comments": "", + "x": 2787.6391127450124, + "y": 4137.428817749023, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "cbbbd754.515278", + "type": "switchNode", + "name": "switch generate-unique-name-output.error-message", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1760.4961912972585, + "y": 4388.381100654602, + "z": "f2af2445.16fe78", + "wires": [ + [ + "73a8a16e.756ef", + "4bea28c3.456028" + ] + ] + }, + { + "id": "73a8a16e.756ef", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2033.8295996529714, + "y": 4361.714352607727, + "z": "f2af2445.16fe78", + "wires": [ + [ + "590a39c2.d91d98" + ] + ] + }, + { + "id": "590a39c2.d91d98", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2168.8295996529714, + "y": 4361.714352607727, + "z": "f2af2445.16fe78", + "wires": [ + [] + ] + }, + { + "id": "4bea28c3.456028", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2033.829565320696, + "y": 4411.714373588562, + "z": "f2af2445.16fe78", + "wires": [ + [ + "8722b32b.fe33e" + ] + ] + }, + { + "id": "8722b32b.fe33e", + "type": "returnFailure", + "name": "return failure", + "xml": "\n", + "comments": "", + "x": 2183.829565320696, + "y": 4411.714373588562, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "8da20e83.48444", + "type": "switchNode", + "name": "switch found-flag", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1642.2104704720632, + "y": 4567.905009269714, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f9025718.d4df88" + ] + ] + }, + { + "id": "f8c693e4.938fc", + "type": "comment", + "name": "if db name is null we found an index we can use", + "info": "", + "comments": "", + "x": 1808.9248106820241, + "y": 4517.428784370422, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "f9025718.d4df88", + "type": "outcome", + "name": "true", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1801.543791089739, + "y": 4567.90496635437, + "z": "f2af2445.16fe78", + "wires": [ + [ + "9c3c38a7.e59808" + ] + ] + }, + { + "id": "8210dd08.26216", + "type": "set", + "name": "set generate-unique-name-output.generated-name", + "xml": "\n\n", + "comments": "", + "x": 2277.210455213274, + "y": 4516.238507270813, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "4dec686e.afd348", + "type": "returnSuccess", + "name": "return success", + "xml": "\n\n", + "comments": "", + "x": 2160.6865065438406, + "y": 4855.047978401184, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "9c3c38a7.e59808", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1968.2104857308523, + "y": 4566.238184928894, + "z": "f2af2445.16fe78", + "wires": [ + [ + "8210dd08.26216", + "9338bb2.be33d48", + "b455fb93.d28c68", + "4dec686e.afd348", + "144fc795.5db808" + ] + ] + }, + { + "id": "9338bb2.be33d48", + "type": "switchNode", + "name": "switch index-exists", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2172.9724638802663, + "y": 4648.3815088272095, + "z": "f2af2445.16fe78", + "wires": [ + [ + "530cf58c.b30b3c", + "997dbf86.ec5ba" + ] + ] + }, + { + "id": "530cf58c.b30b3c", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2351.5438292367116, + "y": 4624.095776557922, + "z": "f2af2445.16fe78", + "wires": [ + [ + "88dfc88f.8aa898" + ] + ] + }, + { + "id": "997dbf86.ec5ba", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2351.5438444955007, + "y": 4671.2387018203735, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ae410bc8.d50898" + ] + ] + }, + { + "id": "66b73d5a.256d54", + "type": "save", + "name": "save (update) name index", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2747.2581541878835, + "y": 4625.524192810059, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d51a3ac.e56a6c8" + ] + ] + }, + { + "id": "be1fac83.ec839", + "type": "save", + "name": "save (insert) name index", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2740.1151335580007, + "y": 4719.80966091156, + "z": "f2af2445.16fe78", + "wires": [ + [ + "414271a5.32692" + ] + ] + }, + { + "id": "d51a3ac.e56a6c8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2940.115354810442, + "y": 4625.524211883545, + "z": "f2af2445.16fe78", + "wires": [ + [ + "9e2a4e5b.2a075" + ] + ] + }, + { + "id": "9e2a4e5b.2a075", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 3094.401171003069, + "y": 4625.524230957031, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "414271a5.32692", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2937.2579253060476, + "y": 4718.381176948547, + "z": "f2af2445.16fe78", + "wires": [ + [ + "3cd4c5c8.3c566a" + ] + ] + }, + { + "id": "3cd4c5c8.3c566a", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 3091.5437414986745, + "y": 4718.381196022034, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "b455fb93.d28c68", + "type": "save", + "name": "save (insert) generated name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2207.4010603768484, + "y": 4806.952483177185, + "z": "f2af2445.16fe78", + "wires": [ + [ + "5344afb8.38666" + ] + ] + }, + { + "id": "5344afb8.38666", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2417.4009917122976, + "y": 4806.952534675598, + "z": "f2af2445.16fe78", + "wires": [ + [ + "94a9b8e7.dc94f8" + ] + ] + }, + { + "id": "94a9b8e7.dc94f8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 2571.6868079049245, + "y": 4806.9525537490845, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "d892995.bb30f68", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2070.258146558489, + "y": 3704.0954084396362, + "z": "f2af2445.16fe78", + "wires": [ + [ + "94f9f0ef.6fa0d", + "360242d5.db658e", + "ef79ae3c.17c5f", + "72aa4efd.c0c88", + "6dd3f32a.b9635c" + ] + ] + }, + { + "id": "c2df42b8.3c5f6", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2628.829611097063, + "y": 4118.381316184998, + "z": "f2af2445.16fe78", + "wires": [ + [ + "abf5ee3d.5d0ca", + "ee79f6f.5d57b08" + ] + ] + }, + { + "id": "88dfc88f.8aa898", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2528.8296416146413, + "y": 4601.238305091858, + "z": "f2af2445.16fe78", + "wires": [ + [ + "947dd966.3194a8", + "66b73d5a.256d54" + ] + ] + }, + { + "id": "ae410bc8.d50898", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2525.9724943978445, + "y": 4696.95262336731, + "z": "f2af2445.16fe78", + "wires": [ + [ + "be1fac83.ec839", + "6a923ca1.f35424" + ] + ] + }, + { + "id": "947dd966.3194a8", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 2717.400923047747, + "y": 4576.952276706696, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "6a923ca1.f35424", + "type": "set", + "name": "set sql statement", + "xml": "\n\n\n", + "comments": "", + "x": 2715.972471509661, + "y": 4671.23809337616, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "66a1cd31.360d64", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2483.115350995745, + "y": 4209.809792518616, + "z": "f2af2445.16fe78", + "wires": [ + [ + "8688c71d.6f6348" + ] + ] + }, + { + "id": "72aa4efd.c0c88", + "type": "set", + "name": "clear namedb.name", + "xml": "\n\n", + "comments": "", + "x": 2298.829534803118, + "y": 3959.8097257614136, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "f36b5bce.ce38d8", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1743.1152479989187, + "y": 3538.1906385421753, + "z": "f2af2445.16fe78", + "wires": [ + [ + "81e22e00.c515a" + ] + ] + }, + { + "id": "81e22e00.c515a", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1998.829580579485, + "y": 3539.0955476760864, + "z": "f2af2445.16fe78", + "wires": [ + [ + "76724a0a.7f9af4" + ] + ] + }, + { + "id": "76724a0a.7f9af4", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 2155.9724638802663, + "y": 3539.0955476760864, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "9b5b9cd9.fbaa6", + "type": "comment", + "name": "if we get here when there is no index length, then we have used up all 1000", + "info": "", + "comments": "", + "x": 1874.5438444955007, + "y": 3494.809862136841, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "8e750ec7.2ae83", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 1636.543878827776, + "y": 4968.095459938049, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "3e63e2e.8d66c1e", + "type": "set", + "name": "set found-flag=false", + "xml": "\n\n", + "comments": "", + "x": 1178.4484672546387, + "y": 1258.0357694625854, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "2276b160.a9183e", + "type": "set", + "name": "set found-flag=true", + "xml": "\n\n", + "comments": "", + "x": 2372.6151809692383, + "y": 1873.0953306470599, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "41d904c1.515ddc", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2179.7580032348633, + "y": 1899.2382749829974, + "z": "f2af2445.16fe78", + "wires": [ + [ + "2276b160.a9183e", + "ad173e2b.5c512" + ] + ] + }, + { + "id": "19972ef5.57be21", + "type": "returnFailure", + "name": "BREAK", + "xml": "\n", + "comments": "", + "x": 2787.972330365862, + "y": 4230.952507972717, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "e21c1774.c206a8", + "type": "comment", + "name": "found one we can use", + "info": "", + "comments": "", + "x": 2605.8297865731374, + "y": 4162.000430107117, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "eaee2222.dfde9", + "type": "set", + "name": "set found-flag=true", + "xml": "\n\n", + "comments": "", + "x": 2824.8772490365163, + "y": 4182.714360237122, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "8688c71d.6f6348", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2632.0200713021413, + "y": 4208.857304573059, + "z": "f2af2445.16fe78", + "wires": [ + [ + "eaee2222.dfde9", + "19972ef5.57be21" + ] + ] + }, + { + "id": "3e4250a5.0ac4c", + "type": "switchNode", + "name": "switch generate-unique-name-input.supplied-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 732.7340965270996, + "y": 290.7143205915179, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d25a80d5.4e3b8", + "b7f46cb8.21a18" + ] + ] + }, + { + "id": "d25a80d5.4e3b8", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 991.3055953979492, + "y": 317.85711615426203, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d51fb171.df3c3" + ] + ] + }, + { + "id": "b7f46cb8.21a18", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 991.3055725097656, + "y": 259.7142862592425, + "z": "f2af2445.16fe78", + "wires": [ + [ + "12ab5681.ce04d9" + ] + ] + }, + { + "id": "130234ee.46d2ab", + "type": "switchNode", + "name": "switch generate-unique-name-input.name-table-type", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1460.5912437438965, + "y": 196.42856734139582, + "z": "f2af2445.16fe78", + "wires": [ + [ + "15992563.c8c55b" + ] + ] + }, + { + "id": "15992563.c8c55b", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1793.9244403839111, + "y": 196.42857687813898, + "z": "f2af2445.16fe78", + "wires": [ + [ + "47420284.6ade7c" + ] + ] + }, + { + "id": "47420284.6ade7c", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 1965.5912170410156, + "y": 196.76188032967707, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "12ab5681.ce04d9", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1145.5912971496582, + "y": 259.2857164655413, + "z": "f2af2445.16fe78", + "wires": [ + [ + "130234ee.46d2ab", + "aabd4d90.16dd8", + "23a0ac.95990f54" + ] + ] + }, + { + "id": "23a0ac.95990f54", + "type": "get-resource", + "name": "get-resource name", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 1354.1627082824707, + "y": 289.2857317243304, + "z": "f2af2445.16fe78", + "wires": [ + [ + "6d7e1700.805508", + "5e3c9b34.a10a74", + "65ca162d.6df4c8" + ] + ] + }, + { + "id": "6d7e1700.805508", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1536.7817573547363, + "y": 276.42862742287775, + "z": "f2af2445.16fe78", + "wires": [ + [ + "2d9f6bb3.0fef44" + ] + ] + }, + { + "id": "aabd4d90.16dd8", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 1347.734260559082, + "y": 241.6667494092669, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "5e3c9b34.a10a74", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1544.8771133422852, + "y": 321.6667379651751, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ef3f7999.12f238" + ] + ] + }, + { + "id": "2d9f6bb3.0fef44", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n\n", + "comments": "", + "x": 1692.7341804504395, + "y": 276.00003283364435, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "65ca162d.6df4c8", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1537.0198822021484, + "y": 363.57143156869074, + "z": "f2af2445.16fe78", + "wires": [ + [ + "4d68280b.2d7b18" + ] + ] + }, + { + "id": "4d68280b.2d7b18", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n\n", + "comments": "", + "x": 1692.7341194152832, + "y": 362.999995640346, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "6ed6588d.7a0f78", + "type": "comment", + "name": "Caller supplied name - make sure it's not already used", + "info": "", + "comments": "", + "x": 1387.7699127197266, + "y": 154.1428575515747, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "ef3f7999.12f238", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1694.1628074645996, + "y": 322.1428446088519, + "z": "f2af2445.16fe78", + "wires": [ + [ + "553234b3.8d5a7c", + "be029280.19e4b" + ] + ] + }, + { + "id": "be029280.19e4b", + "type": "save", + "name": "save (insert) generated name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1934.1628074645996, + "y": 346.42858069283625, + "z": "f2af2445.16fe78", + "wires": [ + [ + "94aa6f8b.9aaf4" + ] + ] + }, + { + "id": "94aa6f8b.9aaf4", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2144.162738800049, + "y": 346.42863219124933, + "z": "f2af2445.16fe78", + "wires": [ + [ + "98e91b64.eafea8" + ] + ] + }, + { + "id": "98e91b64.eafea8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "x": 2298.448554992676, + "y": 346.42865126473566, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "553234b3.8d5a7c", + "type": "set", + "name": "set sql statement", + "xml": "\n\n\n", + "comments": "", + "x": 1894.1627388000488, + "y": 296.4287580762591, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "b3a55875.754e68", + "type": "set", + "name": "set sql statement", + "xml": "\n\n\n", + "comments": "", + "x": 1638.1627791268484, + "y": 3122.857078552246, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "6dd3f32a.b9635c", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 2292.2581084115163, + "y": 4075.2382822036743, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "144fc795.5db808", + "type": "set", + "name": "set sql statement", + "xml": "\n\n\n", + "comments": "", + "x": 2167.972303662981, + "y": 4759.523810386658, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "b2adf596.b14dc8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 2561.019964490618, + "y": 2987.142795562744, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "a521b607.e28cf8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 2558.1625769478933, + "y": 3080.4285764694214, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c4268ba7.916128", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1280.1151068551198, + "y": 3397.8571519851685, + "z": "f2af2445.16fe78", + "wires": [ + [ + "59148c70.cdee34" + ] + ] + }, + { + "id": "59148c70.cdee34", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1430.9485152108327, + "y": 4009.523675918579, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f36b5bce.ce38d8", + "7c854eaa.cabde", + "cbbbd754.515278", + "8da20e83.48444", + "8e750ec7.2ae83", + "974e3eea.a57fc" + ] + ] + }, + { + "id": "a98b0c69.c8ff5", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1445.0913696289062, + "y": 1005.5357429981232, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f97c717e.aeece" + ] + ] + }, + { + "id": "b88e0290.6b67d", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1451.6628875732422, + "y": 1112.1785898208618, + "z": "f2af2445.16fe78", + "wires": [ + [ + "4201eca6.c7d3f4" + ] + ] + }, + { + "id": "4201eca6.c7d3f4", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1583.091438293457, + "y": 1111.607195854187, + "z": "f2af2445.16fe78", + "wires": [ + [ + "3d4b23e4.f03d2c", + "e19f8c74.cb7de" + ] + ] + }, + { + "id": "a3abe6b2.a53fb8", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 1837.9365768432617, + "y": 1771.428593635559, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "5cfa637b.4338bc", + "type": "get-resource", + "name": "get-resource name", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 1839.3651847839355, + "y": 1858.5715169906616, + "z": "f2af2445.16fe78", + "wires": [ + [ + "be62e7ae.90b8f8", + "96f6c88d.8b7e38" + ] + ] + }, + { + "id": "360fc793.866bf8", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 431.68655014038086, + "y": 265.00000381469727, + "z": "f2af2445.16fe78", + "wires": [ + [ + "3e4250a5.0ac4c", + "dcbeacf.6f2ab5" + ] + ] + }, + { + "id": "dcbeacf.6f2ab5", + "type": "set", + "name": "clear variables", + "xml": "\n\n\n", + "comments": "", + "x": 619.0079803466797, + "y": 242.8571424484253, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "26eda43b.2c3b5c", + "type": "outcome", + "name": "0", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1624.1148872375488, + "y": 690.3571691513062, + "z": "f2af2445.16fe78", + "wires": [ + [ + "e3969b91.7deb58" + ] + ] + }, + { + "id": "e3969b91.7deb58", + "type": "set", + "name": "set list-end = 0", + "xml": "\n\n", + "comments": "", + "x": 1813.7815322875977, + "y": 690.3571462631226, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "187251ba.f9a6ce", + "type": "switchNode", + "name": "switch tmp.gun.noindex-flag", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1388.6150038582937, + "y": 2054.000086784363, + "z": "f2af2445.16fe78", + "wires": [ + [ + "47d30b82.5fa434" + ] + ] + }, + { + "id": "dc9a064f.20c918", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1844.9008140563965, + "y": 1030.4285879135132, + "z": "f2af2445.16fe78", + "wires": [ + [ + "35b6590.63450a8", + "7a0d894c.1efd48" + ] + ] + }, + { + "id": "35b6590.63450a8", + "type": "outcome", + "name": "0", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2111.1508140563965, + "y": 1058.6785898208618, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ca199039.4ea94" + ] + ] + }, + { + "id": "7a0d894c.1efd48", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2112.650810241699, + "y": 998.6785879135132, + "z": "f2af2445.16fe78", + "wires": [ + [ + "5e88e850.5de788" + ] + ] + }, + { + "id": "5e88e850.5de788", + "type": "set", + "name": "increment index number", + "xml": "\n\n", + "comments": "", + "x": 2305.150810241699, + "y": 998.4285879135132, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "85418744.04a698", + "type": "set", + "name": "set index number to 0", + "xml": "\n\n", + "comments": "", + "x": 2449.1510581970215, + "y": 1060.4285879135132, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "e19f8c74.cb7de", + "type": "switchNode", + "name": "switch generate-unique-name-input.index-length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1842.4008140563965, + "y": 1141.4285898208618, + "z": "f2af2445.16fe78", + "wires": [ + [ + "9925306e.7b5d6", + "4fb0aa57.8d75b4" + ] + ] + }, + { + "id": "4fb0aa57.8d75b4", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2112.400810241699, + "y": 1163.4285898208618, + "z": "f2af2445.16fe78", + "wires": [ + [ + "80595c6f.d370b" + ] + ] + }, + { + "id": "9925306e.7b5d6", + "type": "outcome", + "name": "0", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2112.400833129883, + "y": 1107.1785457134247, + "z": "f2af2445.16fe78", + "wires": [ + [ + "ca199039.4ea94" + ] + ] + }, + { + "id": "ca199039.4ea94", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2261.150806427002, + "y": 1085.9285879135132, + "z": "f2af2445.16fe78", + "wires": [ + [ + "85418744.04a698", + "c639252a.452078" + ] + ] + }, + { + "id": "c639252a.452078", + "type": "set", + "name": "set noindex-flag=true", + "xml": "\n\n", + "comments": "", + "x": 2448.650775909424, + "y": 1109.4285726547241, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "4139d69a.f19178", + "type": "set", + "name": "set generated-name to prefix", + "xml": "\n\n", + "comments": "", + "x": 1991.650854383196, + "y": 2105.428624153137, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "47d30b82.5fa434", + "type": "outcome", + "name": "true", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1585.936540876116, + "y": 2054.000069618225, + "z": "f2af2445.16fe78", + "wires": [ + [ + "6400bec6.70c0b" + ] + ] + }, + { + "id": "6400bec6.70c0b", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1737.3648970467702, + "y": 2054.0001916885376, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1d2241eb.be7a9e", + "8c4f455f.ad7488", + "4139d69a.f19178", + "e298800b.28418" + ] + ] + }, + { + "id": "8c4f455f.ad7488", + "type": "set", + "name": "set sql statement", + "xml": "\n\n", + "comments": "", + "x": 1958.6389601571218, + "y": 2148.286027908325, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "1d2241eb.be7a9e", + "type": "get-resource", + "name": "get-resource name", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 1965.3533537728445, + "y": 2192.4287090301514, + "z": "f2af2445.16fe78", + "wires": [ + [ + "c3e26aa5.5a6ad8", + "f20ea659.abb5d8", + "ddda4cb5.69a3c" + ] + ] + }, + { + "id": "c3e26aa5.5a6ad8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2157.6509650094167, + "y": 2191.7145656858174, + "z": "f2af2445.16fe78", + "wires": [ + [ + "e6b7e26f.94d48" + ] + ] + }, + { + "id": "f20ea659.abb5d8", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2164.3177016122, + "y": 2282.6669611249654, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f1cf4980.556c18" + ] + ] + }, + { + "id": "f1cf4980.556c18", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2347.1746297563823, + "y": 2282.0954637527466, + "z": "f2af2445.16fe78", + "wires": [ + [ + "825e78.6ae53188", + "caf8b992.a7b668" + ] + ] + }, + { + "id": "caf8b992.a7b668", + "type": "returnFailure", + "name": "BREAK", + "xml": "\n", + "comments": "", + "x": 2503.126888820103, + "y": 2304.190667152405, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "825e78.6ae53188", + "type": "set", + "name": "set found-flag=true", + "xml": "\n\n", + "comments": "", + "x": 2540.0318074907573, + "y": 2255.952519416809, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "63ab1b54.3f87f4", + "type": "returnFailure", + "name": "BREAK", + "xml": "\n", + "comments": "", + "x": 2468.8414633614675, + "y": 2210.285986355373, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "b2a157a3.5da4b8", + "type": "set", + "name": "set generate-unique-name-output.error-message", + "xml": "\n\n", + "comments": "", + "x": 2603.603216443743, + "y": 2165.285898617336, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "e6b7e26f.94d48", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2310.0319617135183, + "y": 2191.238484791347, + "z": "f2af2445.16fe78", + "wires": [ + [ + "b2a157a3.5da4b8", + "63ab1b54.3f87f4" + ] + ] + }, + { + "id": "c261792d.2d6c28", + "type": "comment", + "name": "found one we can use", + "info": "", + "comments": "", + "x": 2320.9843450273784, + "y": 2235.238589286804, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "412400cc.a3efa", + "type": "comment", + "name": "NEW", + "info": "", + "comments": "", + "x": 1517.9363158089773, + "y": 697.1428834370204, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "9e0fc23a.f7e51", + "type": "comment", + "name": "NEW", + "info": "", + "comments": "", + "x": 1387.3651237487793, + "y": 2019.7142505645752, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "e7d53672.156128", + "type": "comment", + "name": "NEW", + "info": "", + "comments": "", + "x": 1987.9365043640137, + "y": 997.1428213119507, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c8a8f3.23f8271", + "type": "comment", + "name": "NEW", + "info": "", + "comments": "", + "x": 1980.7937278747559, + "y": 1111.4285726547241, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "e298800b.28418", + "type": "set", + "name": "set index-string to 0", + "xml": "\n\n", + "comments": "", + "x": 1975.9364073617116, + "y": 2054.285785675049, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "974e3eea.a57fc", + "type": "switchNode", + "name": "switch tmp.gun.noindex-flag", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1679.3651259286062, + "y": 3421.2859582901, + "z": "f2af2445.16fe78", + "wires": [ + [ + "7a90c21f.11fb9c" + ] + ] + }, + { + "id": "7a90c21f.11fb9c", + "type": "outcome", + "name": "true", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1885.0794051034109, + "y": 3421.285864830017, + "z": "f2af2445.16fe78", + "wires": [ + [ + "fde97220.7206d" + ] + ] + }, + { + "id": "fde97220.7206d", + "type": "returnFailure", + "name": "return failure", + "xml": "\n \n", + "comments": "", + "x": 2049.3652479989187, + "y": 3419.8571424484253, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "ddda4cb5.69a3c", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2159.8293882097514, + "y": 2338.14271068573, + "z": "f2af2445.16fe78", + "wires": [ + [ + "f1cf4980.556c18" + ] + ] + }, + { + "id": "59274ef2.cf994", + "type": "outcome", + "name": "4", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1623.650779724121, + "y": 871.4285898208618, + "z": "f2af2445.16fe78", + "wires": [ + [ + "2c30bd52.6fca32" + ] + ] + }, + { + "id": "2c30bd52.6fca32", + "type": "set", + "name": "set list-end = 10000", + "xml": "\n\n", + "comments": "", + "x": 1813.31742477417, + "y": 871.4285669326782, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "c12d0b68.b45788", + "type": "outcome", + "name": "4", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2207.9363975524902, + "y": 1584.2856855392456, + "z": "f2af2445.16fe78", + "wires": [ + [ + "6a0e3f0e.bdf0d" + ] + ] + }, + { + "id": "6a0e3f0e.bdf0d", + "type": "switchNode", + "name": "switch idx < 10", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2376.269733428955, + "y": 1582.6188135147095, + "z": "f2af2445.16fe78", + "wires": [ + [ + "e077a096.c90b5", + "3ba27764.7bb978" + ] + ] + }, + { + "id": "e077a096.c90b5", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2544.8410606384277, + "y": 1535.5236520767212, + "z": "f2af2445.16fe78", + "wires": [ + [ + "6f52ffca.5f968" + ] + ] + }, + { + "id": "3ba27764.7bb978", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2557.936367034912, + "y": 1660.9521493911743, + "z": "f2af2445.16fe78", + "wires": [ + [ + "532853bc.fe84cc" + ] + ] + }, + { + "id": "c2125c33.cdb9e", + "type": "set", + "name": "set noindex-flag=false", + "xml": "\n\n", + "comments": "", + "x": 1190.7936058044434, + "y": 874.2857313156128, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "1a8e79c7.61ce76", + "type": "set", + "name": "set index-string to '00' + idx", + "xml": "\n\n", + "comments": "", + "x": 3100.793617248535, + "y": 1616.4285522188459, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "1afc6185.a5540e", + "type": "switchNode", + "name": "switch idx < 1000", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3063.7935638427734, + "y": 1695.7619800567627, + "z": "f2af2445.16fe78", + "wires": [ + [ + "a4f34d49.5db71", + "751b1f96.b3bdc" + ] + ] + }, + { + "id": "a4f34d49.5db71", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3220.79354095459, + "y": 1669.0953578948975, + "z": "f2af2445.16fe78", + "wires": [ + [ + "5d36ed1a.607764" + ] + ] + }, + { + "id": "751b1f96.b3bdc", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3220.79349899292, + "y": 1717.4286937713623, + "z": "f2af2445.16fe78", + "wires": [ + [ + "d68323fd.8707c" + ] + ] + }, + { + "id": "5d36ed1a.607764", + "type": "set", + "name": "set index-string to '0' + idx", + "xml": "\n\n", + "comments": "", + "x": 3413.4603271484375, + "y": 1668.7620124816895, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "d68323fd.8707c", + "type": "set", + "name": "set index-string to idx", + "xml": "\n\n", + "comments": "", + "x": 3397.4603118896484, + "y": 1717.0953159332275, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "6f52ffca.5f968", + "type": "set", + "name": "set index-string to '000' + idx", + "xml": "\n\n", + "comments": "", + "x": 2752.2221069335938, + "y": 1535.142939567566, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "532853bc.fe84cc", + "type": "switchNode", + "name": "switch idx < 100", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2726.650703430176, + "y": 1660.9049066816058, + "z": "f2af2445.16fe78", + "wires": [ + [ + "26118820.193aa8", + "e9a76d39.5370a" + ] + ] + }, + { + "id": "26118820.193aa8", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2883.650680541992, + "y": 1616.2382845197405, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1a8e79c7.61ce76" + ] + ] + }, + { + "id": "e9a76d39.5370a", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2883.6506385803223, + "y": 1696.5716203962054, + "z": "f2af2445.16fe78", + "wires": [ + [ + "1afc6185.a5540e" + ] + ] + }, + { + "id": "909034be.bcdcb8", + "type": "comment", + "name": "Change History", + "info": "iTrack 10767\n- insert new column (index, prefix, info)\niTrack 11252\n- use tmp.gun.index-string as opposed to tmp.gun.idx as prefix for GENERIC_RESOURCE_NAME insert", + "comments": "", + "x": 463.65077209472656, + "y": 401.4285840988159, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "895c17e1.4d8998", + "type": "comment", + "name": "iTrack 10767", + "info": "", + "comments": "", + "x": 1766.507999420166, + "y": 3105.714337348938, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "a16f0f71.a4d2c", + "type": "set", + "name": "set tmp.gun.transient", + "xml": "\n\n", + "comments": "", + "x": 1112.2221374511719, + "y": 2779.999990940094, + "z": "f2af2445.16fe78", + "wires": [] + }, + { + "id": "9f71976e.e5c5f8", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "comments": "", + "xml": "", + "outputs": 1, + "x": 720.8888549804688, + "y": 26.66666889190674, + "z": "f2af2445.16fe78", + "wires": [ + [ + "4eedc095.04b8b" + ] + ] + } +] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_rollback-generated-names.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_rollback-generated-names.json index dacb3379..756b5a06 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_rollback-generated-names.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_rollback-generated-names.json @@ -1 +1,1646 @@ -[{"id":"367177f7.563698","type":"dgstart","name":"DGSTART","outputs":1,"x":163.75,"y":68.75,"z":"d0c367b0.d55ca8","wires":[["60ca91f4.f6268"]]},{"id":"468f67a9.c0fe68","type":"method","name":"method rollback-generated-names","xml":"\n","comments":"","outputs":1,"x":288.82142639160156,"y":140.1785717010498,"z":"d0c367b0.d55ca8","wires":[["d2988a7c.2fd408"]]},{"id":"d2988a7c.2fd408","type":"block","name":"block : atomic","xml":"","atomic":"true","comments":"","outputs":1,"x":288.0357208251953,"y":221.60715103149414,"z":"d0c367b0.d55ca8","wires":[["d1a57281.50136","ceb3fba9.761848","dbce21dd.bda28","7ce1313f.711c4","796e66f5.e5b048"]]},{"id":"d1a57281.50136","type":"switchNode","name":"switch rollback-generated-names-input.context-id","xml":"\n","comments":"","outputs":1,"x":609.5833129882812,"y":220.6666603088379,"z":"d0c367b0.d55ca8","wires":[["dbafe83a.757ed8"]]},{"id":"ceb3fba9.761848","type":"switchNode","name":"switch rollback-generated-names-input.naming-type","xml":"\n","comments":"","outputs":1,"x":616.7500152587891,"y":280.50000381469727,"z":"d0c367b0.d55ca8","wires":[["23bb964b.7a2caa","b0705a0b.157f48","34b9c028.357d9","70f01569.bbfe5c","1710e5d3.77dcfa","170cdd4d.2b21a3","de873242.c7b5f","fc133415.70f288"]]},{"id":"dbafe83a.757ed8","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":888.0000152587891,"y":221.25000381469727,"z":"d0c367b0.d55ca8","wires":[["5d590d62.dfd0a4"]]},{"id":"5d590d62.dfd0a4","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1054.6543159484863,"y":220.64523601531982,"z":"d0c367b0.d55ca8","wires":[]},{"id":"23bb964b.7a2caa","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":931.5,"y":280.25,"z":"d0c367b0.d55ca8","wires":[["a0afb9b9.38f3f8"]]},{"id":"a0afb9b9.38f3f8","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1097.7500190734863,"y":280.25000381469727,"z":"d0c367b0.d55ca8","wires":[]},{"id":"b0705a0b.157f48","type":"outcome","name":"VM_INSTANCE","xml":"","comments":"","outputs":1,"x":959.5000381469727,"y":327.8571434020996,"z":"d0c367b0.d55ca8","wires":[["bdd8786c.e5b358"]]},{"id":"34b9c028.357d9","type":"outcome","name":"VNFC_INSTANCE","xml":"","comments":"","outputs":1,"x":969.7500305175781,"y":375.35714530944824,"z":"d0c367b0.d55ca8","wires":[["5edf9755.0901f8"]]},{"id":"bdd8786c.e5b358","type":"set","name":"set tmp.rb.naming-index-table-name and prefix column, grn.type","xml":"\n\n\n","comments":"","x":1381.000015258789,"y":328.0000057220459,"z":"d0c367b0.d55ca8","wires":[]},{"id":"5edf9755.0901f8","type":"set","name":"set tmp.rb.naming-index-table-name and prefix column, grn.type","xml":"\n\n\n\n","comments":"","x":1383.250015258789,"y":375.25000762939453,"z":"d0c367b0.d55ca8","wires":[]},{"id":"70f01569.bbfe5c","type":"outcome","name":"Other","xml":"","comments":"","outputs":1,"x":937,"y":619.5,"z":"d0c367b0.d55ca8","wires":[["3136ec47.d68c14"]]},{"id":"3136ec47.d68c14","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1103.2500190734863,"y":619.5000038146973,"z":"d0c367b0.d55ca8","wires":[]},{"id":"77bdf758.54df88","type":"set","name":"set tmp.rb.sql","xml":"\n","comments":"","x":1130.416660308838,"y":1156.5833010673523,"z":"d0c367b0.d55ca8","wires":[]},{"id":"c12778f6.0a1338","type":"get-resource","name":"GET INDEX TABLE.index_number","xml":"\n\n","comments":"","outputs":1,"x":1199.0951309204102,"y":1204.4523363113403,"z":"d0c367b0.d55ca8","wires":[["4ba02bfe.2fafb4","6a6129db.ee97d8"]]},{"id":"23b3074b.857058","type":"block","name":"block : atomic","xml":"","atomic":"true","comments":"","outputs":1,"x":939.4166564941406,"y":1157.0833015441895,"z":"d0c367b0.d55ca8","wires":[["77bdf758.54df88","c12778f6.0a1338"]]},{"id":"8e098c23.2f40a","type":"returnFailure","name":"return failure","xml":"\n\n\n","comments":"","x":1615.6666641235352,"y":1205.3334102630615,"z":"d0c367b0.d55ca8","wires":[]},{"id":"d5340d0c.48452","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","outputs":1,"x":1442.6666641235352,"y":1204.8334102630615,"z":"d0c367b0.d55ca8","wires":[["8e098c23.2f40a"]]},{"id":"6a6129db.ee97d8","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1449.5120658874512,"y":1251.3215522766113,"z":"d0c367b0.d55ca8","wires":[["d5340d0c.48452"]]},{"id":"7ce1313f.711c4","type":"get-resource","name":"GET GENERIC_RESOURCE_NAME distinct prefix","xml":"","comments":"","outputs":1,"x":607.4166259765625,"y":741.333324432373,"z":"d0c367b0.d55ca8","wires":[["4ad7538e.f3d82c","65bbc13b.28e13"]]},{"id":"4ad7538e.f3d82c","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":887.1666259765625,"y":741.3333168029785,"z":"d0c367b0.d55ca8","wires":[["173e772a.cd4d19"]]},{"id":"173e772a.cd4d19","type":"returnFailure","name":"return failure","xml":"\n\t\n\t","comments":"","x":1056.6666259765625,"y":741.3333168029785,"z":"d0c367b0.d55ca8","wires":[]},{"id":"65bbc13b.28e13","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":895.1666030883789,"y":787.8333101272583,"z":"d0c367b0.d55ca8","wires":[["7e2b366.e1ab2c8"]]},{"id":"611ed5aa.78878c","type":"comment","name":"pfx = db.grn.distinct-prefix[]","info":"","comments":"","x":599.6666717529297,"y":778.833324432373,"z":"d0c367b0.d55ca8","wires":[]},{"id":"796e66f5.e5b048","type":"for","name":"for each distinct prefix","xml":"\n","comments":"","outputs":1,"x":511.9166564941406,"y":903.8333072662354,"z":"d0c367b0.d55ca8","wires":[["863a787.4a89d88"]]},{"id":"10bc4004.cfe86","type":"get-resource","name":"GET GENERIC_RESOURCE_NAME (name_index)","xml":"","comments":"","outputs":1,"x":1056.9166526794434,"y":1043.5832977294922,"z":"d0c367b0.d55ca8","wires":[["5207f077.d162b","57b22cdd.a0b3b4"]]},{"id":"5207f077.d162b","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1374.6666526794434,"y":1043.5832901000977,"z":"d0c367b0.d55ca8","wires":[["37f91f4f.dc317"]]},{"id":"37f91f4f.dc317","type":"returnFailure","name":"return failure","xml":"\n\t\n\t","comments":"","x":1544.1666526794434,"y":1043.5832901000977,"z":"d0c367b0.d55ca8","wires":[]},{"id":"57b22cdd.a0b3b4","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1382.6666297912598,"y":1090.0832834243774,"z":"d0c367b0.d55ca8","wires":[["e0189d81.4cff1"]]},{"id":"e0189d81.4cff1","type":"returnFailure","name":"return failure","xml":"\n\t\n\t","atomic":"true","comments":"","outputs":1,"x":722.1666488647461,"y":903.5832977294922,"z":"d0c367b0.d55ca8","wires":[["10bc4004.cfe86","f27ef71e.c804b8","23b3074b.857058","a6b9f4f4.6ad9c8","9b466971.d86f98","92644ca8.ceecd","d045a533.059c38","5592a6f6.a24438","14f7ce44.68bc82","18dcbbfc.8a54f4","37760911.be5b06"]]},{"id":"f27ef71e.c804b8","type":"set","name":"set tmp.rb.grn.prefix","xml":"\n\n","comments":"","x":959.4166374206543,"y":994.3333034515381,"z":"d0c367b0.d55ca8","wires":[]},{"id":"e83d55fd.8d2e08","type":"switchNode","name":"switch: tmp.rb.net-index == 0","xml":"","comments":"","outputs":1,"x":1418.3334503173828,"y":1454.4166259765625,"z":"d0c367b0.d55ca8","wires":[["e05f58d7.4e07f8","f48212b5.20b62"]]},{"id":"676ed71d.e6ce68","type":"comment","name":"pfx = db.grn.index-table","info":"","comments":"","x":1235.1666412353516,"y":1241.0832901000977,"z":"d0c367b0.d55ca8","wires":[]},{"id":"9b466971.d86f98","type":"set","name":"set tmp.rb.grn.max-index","xml":"\n\n","comments":"","x":967.9166564941406,"y":1311.0833044052124,"z":"d0c367b0.d55ca8","wires":[]},{"id":"a6b9f4f4.6ad9c8","type":"set","name":"clear tmp.rb.","xml":"\n\n","comments":"","x":934.4166221618652,"y":947.583288192749,"z":"d0c367b0.d55ca8","wires":[]},{"id":"dbce21dd.bda28","type":"set","name":"clear db.grn.","xml":"\n\n","comments":"","x":490.55554962158203,"y":687.7777805328369,"z":"d0c367b0.d55ca8","wires":[]},{"id":"92644ca8.ceecd","type":"set","name":"clear db.grn.subset.","xml":"\n\n","comments":"","x":955.4166564941406,"y":903.8332967758179,"z":"d0c367b0.d55ca8","wires":[]},{"id":"dd5310c5.e7bc1","type":"set","name":"set tmp.rb.sql for delete","xml":"\n\n\t\t\n\t\t\t\t","comments":"","x":2031.0832824707031,"y":1454.4166088104248,"z":"d0c367b0.d55ca8","wires":[]},{"id":"985fa2e8.98689","type":"get-resource","name":"DELETE from INDEX TABLE","xml":"\n\n","comments":"","outputs":1,"x":2047.2618103027344,"y":1500.0356426239014,"z":"d0c367b0.d55ca8","wires":[["3c1ebfe4.59e22","4c9bbe94.157e"]]},{"id":"27f4d519.bb790a","type":"returnFailure","name":"return failure","xml":"\n\n\n","comments":"","x":2455.8333435058594,"y":1499.9167165756226,"z":"d0c367b0.d55ca8","wires":[]},{"id":"3c1ebfe4.59e22","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2282.8333435058594,"y":1500.4167165756226,"z":"d0c367b0.d55ca8","wires":[["27f4d519.bb790a"]]},{"id":"4c9bbe94.157e","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":2289.6787452697754,"y":1546.9048585891724,"z":"d0c367b0.d55ca8","wires":[["9e5f981.150f268"]]},{"id":"85575d12.d5857","type":"block","name":"block : atomic","xml":"","atomic":"true","comments":"","outputs":1,"x":1798.5833358764648,"y":1454.1666259765625,"z":"d0c367b0.d55ca8","wires":[["dd5310c5.e7bc1","985fa2e8.98689"]]},{"id":"d045a533.059c38","type":"set","name":"set tmp.rb.delta-index = index-number - max-index","xml":"\n\n","comments":"","x":1045.9166564941406,"y":1356.333303451538,"z":"d0c367b0.d55ca8","wires":[]},{"id":"e05f58d7.4e07f8","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":1632.0833129882812,"y":1454.4166069030762,"z":"d0c367b0.d55ca8","wires":[["85575d12.d5857"]]},{"id":"18dcbbfc.8a54f4","type":"get-resource","name":"DELETE from GENERIC_RESOURCE_NAME","xml":"\n","comments":"","outputs":1,"x":1028.7618713378906,"y":1792.2856998443604,"z":"d0c367b0.d55ca8","wires":[["62bd7357.1b6afc","e9732f88.feaff"]]},{"id":"b81d8b08.9ca378","type":"returnFailure","name":"return failure","xml":"\n\n\n","comments":"","x":1480.3334045410156,"y":1793.1667737960815,"z":"d0c367b0.d55ca8","wires":[]},{"id":"62bd7357.1b6afc","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1307.3334045410156,"y":1792.6667737960815,"z":"d0c367b0.d55ca8","wires":[["b81d8b08.9ca378"]]},{"id":"e9732f88.feaff","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1314.1787490844727,"y":1839.1549606323242,"z":"d0c367b0.d55ca8","wires":[["ae5976af.669a08"]]},{"id":"24f6c0c3.95f7f","type":"comment","name":"Delete prefix from INDEX TABLE","info":"","comments":"","x":2301.3334197998047,"y":1456.4166803359985,"z":"d0c367b0.d55ca8","wires":[]},{"id":"ee44b770.263dc8","type":"comment","name":"Silence SUCCESS","info":"","comments":"","x":2546.333351135254,"y":1558.4166240692139,"z":"d0c367b0.d55ca8","wires":[]},{"id":"9e5f981.150f268","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":2438.5833473205566,"y":1546.6666259765625,"z":"d0c367b0.d55ca8","wires":[[]]},{"id":"f48212b5.20b62","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":1631.083396911621,"y":1639.666648864746,"z":"d0c367b0.d55ca8","wires":[["2679c184.7566ce"]]},{"id":"ce016bf1.726fe8","type":"comment","name":"index_number > $db.grn.subset_length; i.e hole in the middle. DO NOTHING","info":"","comments":"","x":1221.8334197998047,"y":1578.4166812896729,"z":"d0c367b0.d55ca8","wires":[]},{"id":"d0ffe154.2017d","type":"comment","name":"Silence SUCCESS","info":"","comments":"","x":1570.333251953125,"y":1850.6666584014893,"z":"d0c367b0.d55ca8","wires":[]},{"id":"ae5976af.669a08","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1462.5832481384277,"y":1838.916660308838,"z":"d0c367b0.d55ca8","wires":[[]]},{"id":"5592a6f6.a24438","type":"switchNode","name":"switch: tmp.rb.delta-index == 0","xml":"","comments":"","outputs":1,"x":984.3333282470703,"y":1454.6666240692139,"z":"d0c367b0.d55ca8","wires":[["54669b2b.1c7664","5cd2e8b2.3aabf8"]]},{"id":"54669b2b.1c7664","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":1211.5833129882812,"y":1454.6666069030762,"z":"d0c367b0.d55ca8","wires":[["e83d55fd.8d2e08"]]},{"id":"13ee581e.78bb98","type":"set","name":"set tmp.rb.sql for update","xml":"\n","comments":"","x":2037.833351135254,"y":1639.666633605957,"z":"d0c367b0.d55ca8","wires":[]},{"id":"d1d5de27.6d65f","type":"get-resource","name":"Update INDEX TABLE","xml":"\n\n","comments":"","outputs":1,"x":2034.0118789672852,"y":1685.2856674194336,"z":"d0c367b0.d55ca8","wires":[["af5b63b8.507a5","961b37ec.64dc98"]]},{"id":"21898cbf.33f884","type":"returnFailure","name":"return failure","xml":"\n\n\n","comments":"","x":2439.58341217041,"y":1685.1667413711548,"z":"d0c367b0.d55ca8","wires":[]},{"id":"af5b63b8.507a5","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2247.58341217041,"y":1685.6667413711548,"z":"d0c367b0.d55ca8","wires":[["21898cbf.33f884"]]},{"id":"961b37ec.64dc98","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":2254.428813934326,"y":1732.1548833847046,"z":"d0c367b0.d55ca8","wires":[["21898cbf.33f884"]]},{"id":"2679c184.7566ce","type":"block","name":"block : atomic","xml":"","atomic":"true","comments":"","outputs":1,"x":1798.3334045410156,"y":1639.4166507720947,"z":"d0c367b0.d55ca8","wires":[["13ee581e.78bb98","d1d5de27.6d65f"]]},{"id":"14c2ad0d.ae7c33","type":"comment","name":"Update prefix from INDEX TABLE","info":"","comments":"","x":1989.8334121704102,"y":1717.9166464805603,"z":"d0c367b0.d55ca8","wires":[]},{"id":"14f7ce44.68bc82","type":"set","name":"set tmp.rb.net-index = index-number - $db.grn.subset_length","xml":"\n\n","comments":"","x":1076.6666412353516,"y":1403.833288192749,"z":"d0c367b0.d55ca8","wires":[]},{"id":"2a3dc862.500858","type":"comment","name":"index_number == max index","info":"","comments":"","x":862.1666564941406,"y":1497.5833053588867,"z":"d0c367b0.d55ca8","wires":[]},{"id":"54f2328a.63d03c","type":"comment","name":"index_number == $db.grn.subset_length","info":"","comments":"","x":1489.6666564941406,"y":1415.0833053588867,"z":"d0c367b0.d55ca8","wires":[]},{"id":"5cd2e8b2.3aabf8","type":"outcomeFalse","name":"false","xml":"\n","comments":"","outputs":1,"x":1219.6666564941406,"y":1623.8333044052124,"z":"d0c367b0.d55ca8","wires":[["f7ec1a24.211fe8"]]},{"id":"f7ec1a24.211fe8","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1363.4166641235352,"y":1624.0833072662354,"z":"d0c367b0.d55ca8","wires":[[]]},{"id":"3dffc8c6.351eb8","type":"comment","name":"Change History","info":"iTrack SDNGC-10767\n- new DG to rollback generated-names","comments":"","x":642.5000076293945,"y":113.75000190734863,"z":"d0c367b0.d55ca8","wires":[]},{"id":"6b1751d3.9aae8","type":"set","name":"set tmp.rb.naming-index-table-name, index-table.prefix column, grn.type","xml":"\n\n\n","comments":"","x":1408.75,"y":425.75,"z":"d0c367b0.d55ca8","wires":[]},{"id":"1710e5d3.77dcfa","type":"outcome","name":"CLIENT_KEY","xml":"","comments":"","outputs":1,"x":956.5000152587891,"y":425.35713958740234,"z":"d0c367b0.d55ca8","wires":[["6b1751d3.9aae8"]]},{"id":"170cdd4d.2b21a3","type":"outcome","name":"NETWORK_INSTANCE","xml":"","comments":"","outputs":1,"x":988.2777633666992,"y":475.61110496520996,"z":"d0c367b0.d55ca8","wires":[["5fa679c.78e5088"]]},{"id":"de873242.c7b5f","type":"outcome","name":"SERVICE_INSTANCE","xml":"","comments":"","outputs":1,"x":986.3889007568359,"y":524.6111211776733,"z":"d0c367b0.d55ca8","wires":[["82455610.85dad8"]]},{"id":"fc133415.70f288","type":"outcome","name":"VNF_INSTANCE","xml":"","comments":"","outputs":1,"x":970.2777633666992,"y":570.611120223999,"z":"d0c367b0.d55ca8","wires":[["8ec44038.4f2ac"]]},{"id":"5a4d6d80.b5bda4","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1310.7856979370117,"y":1936.4285354614258,"z":"d0c367b0.d55ca8","wires":[["d0e2990c.3467d8"]]},{"id":"d0e2990c.3467d8","type":"returnFailure","name":"return failure","xml":"\n\t\n\t","comments":"","x":1480.2856979370117,"y":1936.4285354614258,"z":"d0c367b0.d55ca8","wires":[]},{"id":"3d2d0a92.8fb326","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1318.7856750488281,"y":1982.9285287857056,"z":"d0c367b0.d55ca8","wires":[["a9dae2af.d2f53"]]},{"id":"31297cf.fcd1684","type":"comment","name":"pfx = db.grn.prefix[]","info":"","comments":"","x":1044.0357131958008,"y":1973.9285526275635,"z":"d0c367b0.d55ca8","wires":[]},{"id":"37760911.be5b06","type":"get-resource","name":"GET GENERIC_RESOURCE_NAME (prefix)","xml":"","comments":"","outputs":1,"x":1023.0356903076172,"y":1936.1785564422607,"z":"d0c367b0.d55ca8","wires":[["5a4d6d80.b5bda4","3d2d0a92.8fb326","430381ee.4fc6b"]]},{"id":"430381ee.4fc6b","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":1312.321434020996,"y":2125.892852783203,"z":"d0c367b0.d55ca8","wires":[["3f64846a.c8c06c"]]},{"id":"3f64846a.c8c06c","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1461.9643783569336,"y":2126.0356769561768,"z":"d0c367b0.d55ca8","wires":[["5b56358f.06720c","c6c2e25e.9582a"]]},{"id":"eb05862b.646188","type":"comment","name":"Clean up holes in INDEX TABLE","info":"","comments":"","x":781.0000152587891,"y":1880.0000286102295,"z":"d0c367b0.d55ca8","wires":[]},{"id":"761a02e4.28318c","type":"set","name":"set tmp.rb.sql for delete","xml":"\n\n\t\t\n\t\t\t\t","comments":"","x":1719.7857360839844,"y":1982.9286041259766,"z":"d0c367b0.d55ca8","wires":[]},{"id":"e3b8fba6.d6a5d8","type":"get-resource","name":"DELETE from INDEX TABLE","xml":"\n\n","comments":"","outputs":1,"x":1735.9642639160156,"y":2028.5476379394531,"z":"d0c367b0.d55ca8","wires":[["8a19c44d.2f7a68","83735701.520468"]]},{"id":"87b45267.a3082","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","outputs":1,"x":1953.5357971191406,"y":2028.9287118911743,"z":"d0c367b0.d55ca8","wires":[["87b45267.a3082"]]},{"id":"83735701.520468","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":1960.3811988830566,"y":2075.416853904724,"z":"d0c367b0.d55ca8","wires":[["8dd77dea.9bf17"]]},{"id":"f0c8fc09.c807b","type":"comment","name":"Delete prefix from INDEX TABLE","info":"","comments":"","x":1990.035873413086,"y":1984.9286756515503,"z":"d0c367b0.d55ca8","wires":[]},{"id":"8771620a.4a45","type":"comment","name":"Silence SUCCESS","info":"","comments":"","x":2217.035804748535,"y":2086.9286193847656,"z":"d0c367b0.d55ca8","wires":[]},{"id":"8dd77dea.9bf17","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":2109.285800933838,"y":2075.1786212921143,"z":"d0c367b0.d55ca8","wires":[[]]},{"id":"a9dae2af.d2f53","type":"block","name":"block","xml":"","atomic":"false","comments":"","outputs":1,"x":1466.5000228881836,"y":1983.2500286102295,"z":"d0c367b0.d55ca8","wires":[["761a02e4.28318c","e3b8fba6.d6a5d8"]]},{"id":"5b56358f.06720c","type":"set","name":"set tmp.rb.grn.last-max-index","xml":"\n\n","comments":"","x":1685.0000228881836,"y":2126.2500324249268,"z":"d0c367b0.d55ca8","wires":[]},{"id":"c6c2e25e.9582a","type":"switchNode","name":"switch: index_number > last-max-index","xml":" $tmp.rb.grn.last-max-index`\">","comments":"","outputs":1,"x":1714.2500305175781,"y":2170.2500324249268,"z":"d0c367b0.d55ca8","wires":[["2a0f937.5be026c"]]},{"id":"2a0f937.5be026c","type":"outcomeTrue","name":"true","xml":"\n","comments":"","outputs":1,"x":1954.25,"y":2169.75,"z":"d0c367b0.d55ca8","wires":[["6bcac8c3.2d4898"]]},{"id":"f6ae0895.c117f8","type":"set","name":"set tmp.rb.sql for update","xml":"\n","comments":"","x":2302.500030517578,"y":2169.7500324249268,"z":"d0c367b0.d55ca8","wires":[]},{"id":"877a352a.7a0348","type":"get-resource","name":"Update INDEX TABLE","xml":"\n\n","comments":"","outputs":1,"x":2298.6785583496094,"y":2214.3690662384033,"z":"d0c367b0.d55ca8","wires":[["5993fe93.97069","ba617526.0c8828"]]},{"id":"35689d99.980fa2","type":"returnFailure","name":"return failure","xml":"\n\n","comments":"","outputs":1,"x":2508.2500915527344,"y":2214.7501401901245,"z":"d0c367b0.d55ca8","wires":[["35689d99.980fa2"]]},{"id":"ba617526.0c8828","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":2515.0954933166504,"y":2261.2382822036743,"z":"d0c367b0.d55ca8","wires":[["35689d99.980fa2"]]},{"id":"ab893117.4bf84","type":"comment","name":"Update prefix from INDEX TABLE","info":"","comments":"","x":2254.5000915527344,"y":2247.00004529953,"z":"d0c367b0.d55ca8","wires":[]},{"id":"6bcac8c3.2d4898","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":2103.75,"y":2170,"z":"d0c367b0.d55ca8","wires":[["f6ae0895.c117f8","877a352a.7a0348"]]},{"id":"7e2b366.e1ab2c8","type":"set","name":"set db.grn.distinct-prefix_length = 0","xml":"\n\n","comments":"","x":1127.500015258789,"y":788.0000133514404,"z":"d0c367b0.d55ca8","wires":[]},{"id":"60ca91f4.f6268","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"","outputs":1,"x":438.3333740234375,"y":68.33333587646484,"z":"d0c367b0.d55ca8","wires":[["468f67a9.c0fe68"]]},{"id":"8ec44038.4f2ac","type":"set","name":"set tmp.rb.naming-index-table-name and prefix column, grn.type","xml":"\n\n\n\n","comments":"","x":1390,"y":570.3333129882812,"z":"d0c367b0.d55ca8","wires":[]},{"id":"5fa679c.78e5088","type":"set","name":"set tmp.rb.naming-index-table-name and prefix column, grn.type","xml":"\n\n\n\n","comments":"","x":1387,"y":475,"z":"d0c367b0.d55ca8","wires":[]},{"id":"82455610.85dad8","type":"set","name":"set tmp.rb.naming-index-table-name and prefix column, grn.type","xml":"\n\n\n\n","comments":"","x":1387,"y":525,"z":"d0c367b0.d55ca8","wires":[]}] \ No newline at end of file +[ + { + "id": "29cb883a.884228", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 1334.4443359375, + "y": 20.416664123535156, + "z": "aa630329.50a53", + "wires": [ + [ + "888a84ae.33c888" + ] + ] + }, + { + "id": "ed968adc.8ee998", + "type": "method", + "name": "method rollback-generated-names", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1459.5157623291016, + "y": 91.84523582458496, + "z": "aa630329.50a53", + "wires": [ + [ + "75650b62.fb7214" + ] + ] + }, + { + "id": "75650b62.fb7214", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1458.7300567626953, + "y": 173.2738151550293, + "z": "aa630329.50a53", + "wires": [ + [ + "5556f19b.f5219", + "19ce5e74.e19aa2", + "d35c0a8.e055af8", + "37f63bc9.9d3f04", + "b6ebcdec.0165b" + ] + ] + }, + { + "id": "5556f19b.f5219", + "type": "switchNode", + "name": "switch rollback-generated-names-input.context-id", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1780.2776489257812, + "y": 172.33332443237305, + "z": "aa630329.50a53", + "wires": [ + [ + "49e2a20b.aa74ac" + ] + ] + }, + { + "id": "19ce5e74.e19aa2", + "type": "switchNode", + "name": "switch rollback-generated-names-input.naming-type", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1787.444351196289, + "y": 232.16666793823242, + "z": "aa630329.50a53", + "wires": [ + [ + "19ba8656.ba40ea", + "fbafb911.c1a228", + "aaaeba77.eb1d38", + "c6b37ac7.e80618", + "1516480b.27b978", + "943b3579.515908", + "ffdb86fd.ed9ae8", + "f9d65524.73d078" + ] + ] + }, + { + "id": "49e2a20b.aa74ac", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2058.694351196289, + "y": 172.91666793823242, + "z": "aa630329.50a53", + "wires": [ + [ + "7ab1c055.bf769" + ] + ] + }, + { + "id": "7ab1c055.bf769", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2225.3486518859863, + "y": 172.31190013885498, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "19ba8656.ba40ea", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2102.1943359375, + "y": 231.91666412353516, + "z": "aa630329.50a53", + "wires": [ + [ + "6acbae14.16e77" + ] + ] + }, + { + "id": "6acbae14.16e77", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2268.4443550109863, + "y": 231.91666793823242, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "fbafb911.c1a228", + "type": "outcome", + "name": "VM_INSTANCE", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2130.1943740844727, + "y": 279.52380752563477, + "z": "aa630329.50a53", + "wires": [ + [ + "14f5428c.d3dd3d" + ] + ] + }, + { + "id": "aaaeba77.eb1d38", + "type": "outcome", + "name": "VNFC_INSTANCE", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2140.444366455078, + "y": 327.0238094329834, + "z": "aa630329.50a53", + "wires": [ + [ + "b191361f.e39258" + ] + ] + }, + { + "id": "14f5428c.d3dd3d", + "type": "set", + "name": "set tmp.rb.naming-index-table-name and prefix column, grn.type", + "xml": "\n\n\n", + "comments": "", + "x": 2551.694351196289, + "y": 279.66666984558105, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "b191361f.e39258", + "type": "set", + "name": "set tmp.rb.naming-index-table-name and prefix column, grn.type", + "xml": "\n\n\n\n", + "comments": "", + "x": 2553.944351196289, + "y": 326.9166717529297, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "c6b37ac7.e80618", + "type": "outcome", + "name": "Other", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2107.6943359375, + "y": 571.1666641235352, + "z": "aa630329.50a53", + "wires": [ + [ + "f1c08b0d.d43858" + ] + ] + }, + { + "id": "f1c08b0d.d43858", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2273.9443550109863, + "y": 571.1666679382324, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "1f6886e.08cdb79", + "type": "set", + "name": "set tmp.rb.sql", + "xml": "\n", + "comments": "", + "x": 2301.110996246338, + "y": 1108.2499651908875, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "9103eac2.da1f88", + "type": "get-resource", + "name": "GET INDEX TABLE.index_number", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 2369.78946685791, + "y": 1156.1190004348755, + "z": "aa630329.50a53", + "wires": [ + [ + "4bac1a75.3bf994", + "9830d2f4.14e32" + ] + ] + }, + { + "id": "bf055860.21dff8", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2110.1109924316406, + "y": 1108.7499656677246, + "z": "aa630329.50a53", + "wires": [ + [ + "1f6886e.08cdb79", + "9103eac2.da1f88" + ] + ] + }, + { + "id": "dba5c1eb.6b22f", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n\n", + "comments": "", + "x": 2786.361000061035, + "y": 1157.0000743865967, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "aa4a319e.2aea6", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 2613.361000061035, + "y": 1156.5000743865967, + "z": "aa630329.50a53", + "wires": [ + [ + "dba5c1eb.6b22f" + ] + ] + }, + { + "id": "9830d2f4.14e32", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2620.206401824951, + "y": 1202.9882164001465, + "z": "aa630329.50a53", + "wires": [ + [ + "aa4a319e.2aea6" + ] + ] + }, + { + "id": "37f63bc9.9d3f04", + "type": "get-resource", + "name": "GET GENERIC_RESOURCE_NAME distinct prefix", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1778.1109619140625, + "y": 692.9999885559082, + "z": "aa630329.50a53", + "wires": [ + [ + "6cb3df87.7e0ec", + "727c9c85.dfe244" + ] + ] + }, + { + "id": "6cb3df87.7e0ec", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2057.8609619140625, + "y": 692.9999809265137, + "z": "aa630329.50a53", + "wires": [ + [ + "5c66740e.eb157c" + ] + ] + }, + { + "id": "5c66740e.eb157c", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t", + "comments": "", + "x": 2227.3609619140625, + "y": 692.9999809265137, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "727c9c85.dfe244", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2065.860939025879, + "y": 739.4999742507935, + "z": "aa630329.50a53", + "wires": [ + [ + "1fa487d3.8ad6e8" + ] + ] + }, + { + "id": "314b583f.7203e8", + "type": "comment", + "name": "pfx = db.grn.distinct-prefix[]", + "info": "", + "comments": "", + "x": 1770.3610076904297, + "y": 730.4999885559082, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "b6ebcdec.0165b", + "type": "for", + "name": "for each distinct prefix", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1682.6109924316406, + "y": 855.4999713897705, + "z": "aa630329.50a53", + "wires": [ + [ + "615652ba.fc923c" + ] + ] + }, + { + "id": "e5feeac4.d67ae8", + "type": "get-resource", + "name": "GET GENERIC_RESOURCE_NAME (name_index)", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2227.6109886169434, + "y": 995.2499618530273, + "z": "aa630329.50a53", + "wires": [ + [ + "3b74e0d1.8867b", + "cd385c50.732c1" + ] + ] + }, + { + "id": "3b74e0d1.8867b", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2545.3609886169434, + "y": 995.2499542236328, + "z": "aa630329.50a53", + "wires": [ + [ + "de6cfc01.eec5b" + ] + ] + }, + { + "id": "de6cfc01.eec5b", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t", + "comments": "", + "x": 2714.8609886169434, + "y": 995.2499542236328, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "cd385c50.732c1", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2553.3609657287598, + "y": 1041.7499475479126, + "z": "aa630329.50a53", + "wires": [ + [ + "92b03b04.367558" + ] + ] + }, + { + "id": "92b03b04.367558", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 1892.860984802246, + "y": 855.2499618530273, + "z": "aa630329.50a53", + "wires": [ + [ + "e5feeac4.d67ae8", + "d73de031.6f6f9", + "bf055860.21dff8", + "5b7f4beb.293b54", + "5bc6188.f631ce8", + "71d6da4f.c71d64", + "1bd95123.da921f", + "300df04b.286a1", + "c3fa064.1eee4f8", + "6647f1a8.2eba5", + "5693c8f8.d296b8" + ] + ] + }, + { + "id": "d73de031.6f6f9", + "type": "set", + "name": "set tmp.rb.grn.prefix", + "xml": "\n\n", + "comments": "", + "x": 2130.1109733581543, + "y": 945.9999675750732, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "6dc0d5b7.e8b79c", + "type": "switchNode", + "name": "switch: tmp.rb.net-index == 0", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2589.027786254883, + "y": 1406.0832901000977, + "z": "aa630329.50a53", + "wires": [ + [ + "ae547b4c.5ee188", + "de514521.1f6668" + ] + ] + }, + { + "id": "ab812023.4d106", + "type": "comment", + "name": "pfx = db.grn.index-table", + "info": "", + "comments": "", + "x": 2405.8609771728516, + "y": 1192.7499542236328, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "5bc6188.f631ce8", + "type": "set", + "name": "set tmp.rb.grn.max-index", + "xml": "\n\n", + "comments": "", + "x": 2138.6109924316406, + "y": 1262.7499685287476, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "5b7f4beb.293b54", + "type": "set", + "name": "clear tmp.rb.", + "xml": "\n\n", + "comments": "", + "x": 2105.1109580993652, + "y": 899.2499523162842, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "d35c0a8.e055af8", + "type": "set", + "name": "clear db.grn.", + "xml": "\n\n", + "comments": "", + "x": 1661.249885559082, + "y": 639.4444446563721, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "71d6da4f.c71d64", + "type": "set", + "name": "clear db.grn.subset.", + "xml": "\n\n", + "comments": "", + "x": 2126.1109924316406, + "y": 855.499960899353, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "f019211a.03f21", + "type": "set", + "name": "set tmp.rb.sql for delete", + "xml": "\n\n\t\t\n\t\t\t\t", + "comments": "", + "x": 3201.777618408203, + "y": 1406.08327293396, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "28704354.57816c", + "type": "get-resource", + "name": "DELETE from INDEX TABLE", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 3217.9561462402344, + "y": 1451.7023067474365, + "z": "aa630329.50a53", + "wires": [ + [ + "2a3eafed.800b2", + "9929948e.80baa8" + ] + ] + }, + { + "id": "f41ba658.f134a8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n\n", + "comments": "", + "x": 3626.5276794433594, + "y": 1451.5833806991577, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "2a3eafed.800b2", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3453.5276794433594, + "y": 1452.0833806991577, + "z": "aa630329.50a53", + "wires": [ + [ + "f41ba658.f134a8" + ] + ] + }, + { + "id": "9929948e.80baa8", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3460.3730812072754, + "y": 1498.5715227127075, + "z": "aa630329.50a53", + "wires": [ + [ + "ce9cb4be.d8f5e8" + ] + ] + }, + { + "id": "138bb542.26235b", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2969.277671813965, + "y": 1405.8332901000977, + "z": "aa630329.50a53", + "wires": [ + [ + "f019211a.03f21", + "28704354.57816c" + ] + ] + }, + { + "id": "1bd95123.da921f", + "type": "set", + "name": "set tmp.rb.delta-index = index-number - max-index", + "xml": "\n\n", + "comments": "", + "x": 2216.6109924316406, + "y": 1307.9999675750732, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "ae547b4c.5ee188", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2802.7776489257812, + "y": 1406.0832710266113, + "z": "aa630329.50a53", + "wires": [ + [ + "138bb542.26235b" + ] + ] + }, + { + "id": "6647f1a8.2eba5", + "type": "get-resource", + "name": "DELETE from GENERIC_RESOURCE_NAME", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2199.4562072753906, + "y": 1743.9523639678955, + "z": "aa630329.50a53", + "wires": [ + [ + "c5dfbac3.eb7ac8", + "d5e547a5.1eafc8" + ] + ] + }, + { + "id": "c240b414.e47518", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n\n", + "comments": "", + "x": 2651.0277404785156, + "y": 1744.8334379196167, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "c5dfbac3.eb7ac8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2478.0277404785156, + "y": 1744.3334379196167, + "z": "aa630329.50a53", + "wires": [ + [ + "c240b414.e47518" + ] + ] + }, + { + "id": "d5e547a5.1eafc8", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2484.8730850219727, + "y": 1790.8216247558594, + "z": "aa630329.50a53", + "wires": [ + [ + "a4121e26.ea489" + ] + ] + }, + { + "id": "c25429a5.1b65a8", + "type": "comment", + "name": "Delete prefix from INDEX TABLE", + "info": "", + "comments": "", + "x": 3472.0277557373047, + "y": 1408.0833444595337, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "4b654cba.5ced54", + "type": "comment", + "name": "Silence SUCCESS", + "info": "", + "comments": "", + "x": 3717.027687072754, + "y": 1510.083288192749, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "ce9cb4be.d8f5e8", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3609.2776832580566, + "y": 1498.3332901000977, + "z": "aa630329.50a53", + "wires": [ + [] + ] + }, + { + "id": "de514521.1f6668", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2801.777732849121, + "y": 1591.3333129882812, + "z": "aa630329.50a53", + "wires": [ + [ + "e961bcf0.f03cb" + ] + ] + }, + { + "id": "666b02e.502d0fc", + "type": "comment", + "name": "index_number > $db.grn.subset_length; i.e hole in the middle. DO NOTHING", + "info": "", + "comments": "", + "x": 2392.5277557373047, + "y": 1530.083345413208, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "b133d8d2.574fa8", + "type": "comment", + "name": "Silence SUCCESS", + "info": "", + "comments": "", + "x": 2741.027587890625, + "y": 1802.3333225250244, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "a4121e26.ea489", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2633.2775840759277, + "y": 1790.583324432373, + "z": "aa630329.50a53", + "wires": [ + [] + ] + }, + { + "id": "300df04b.286a1", + "type": "switchNode", + "name": "switch: tmp.rb.delta-index == 0", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2155.0276641845703, + "y": 1406.333288192749, + "z": "aa630329.50a53", + "wires": [ + [ + "ebc810ff.c3a11", + "cc537a09.f92948" + ] + ] + }, + { + "id": "ebc810ff.c3a11", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2382.2776489257812, + "y": 1406.3332710266113, + "z": "aa630329.50a53", + "wires": [ + [ + "6dc0d5b7.e8b79c" + ] + ] + }, + { + "id": "9160dc95.b9431", + "type": "set", + "name": "set tmp.rb.sql for update", + "xml": "\n", + "comments": "", + "x": 3208.527687072754, + "y": 1591.3332977294922, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "d2204951.3f5048", + "type": "get-resource", + "name": "Update INDEX TABLE", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 3204.706214904785, + "y": 1636.9523315429688, + "z": "aa630329.50a53", + "wires": [ + [ + "e86d1619.af6ed8", + "79602d4f.9dc9b4" + ] + ] + }, + { + "id": "3686c0ec.5662b", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n\n", + "comments": "", + "x": 3610.27774810791, + "y": 1636.83340549469, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "e86d1619.af6ed8", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3418.27774810791, + "y": 1637.33340549469, + "z": "aa630329.50a53", + "wires": [ + [ + "3686c0ec.5662b" + ] + ] + }, + { + "id": "79602d4f.9dc9b4", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3425.123149871826, + "y": 1683.8215475082397, + "z": "aa630329.50a53", + "wires": [ + [ + "3686c0ec.5662b" + ] + ] + }, + { + "id": "e961bcf0.f03cb", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "comments": "", + "outputs": 1, + "x": 2969.0277404785156, + "y": 1591.0833148956299, + "z": "aa630329.50a53", + "wires": [ + [ + "9160dc95.b9431", + "d2204951.3f5048" + ] + ] + }, + { + "id": "d4cb9489.bfce78", + "type": "comment", + "name": "Update prefix from INDEX TABLE", + "info": "", + "comments": "", + "x": 3160.52774810791, + "y": 1669.5833106040955, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "c3fa064.1eee4f8", + "type": "set", + "name": "set tmp.rb.net-index = index-number - $db.grn.subset_length", + "xml": "\n\n", + "comments": "", + "x": 2247.3609771728516, + "y": 1355.4999523162842, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "1fda938f.3dbb9c", + "type": "comment", + "name": "index_number == max index", + "info": "", + "comments": "", + "x": 2032.8609924316406, + "y": 1449.2499694824219, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "d76b3389.44a7f", + "type": "comment", + "name": "index_number == $db.grn.subset_length", + "info": "", + "comments": "", + "x": 2660.3609924316406, + "y": 1366.7499694824219, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "cc537a09.f92948", + "type": "outcomeFalse", + "name": "false", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2390.3609924316406, + "y": 1575.4999685287476, + "z": "aa630329.50a53", + "wires": [ + [ + "a8f99767.daacf8" + ] + ] + }, + { + "id": "a8f99767.daacf8", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2534.111000061035, + "y": 1575.7499713897705, + "z": "aa630329.50a53", + "wires": [ + [] + ] + }, + { + "id": "2d578494.cd5f7c", + "type": "comment", + "name": "Change History", + "info": "iTrack SDNGC-10767\n- new DG to rollback generated-names", + "comments": "", + "x": 1813.1943435668945, + "y": 65.41666603088379, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "3d5fa372.a6850c", + "type": "set", + "name": "set tmp.rb.naming-index-table-name, index-table.prefix column, grn.type", + "xml": "\n\n\n", + "comments": "", + "x": 2579.4443359375, + "y": 377.41666412353516, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "1516480b.27b978", + "type": "outcome", + "name": "CLIENT_KEY", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2127.194351196289, + "y": 377.0238037109375, + "z": "aa630329.50a53", + "wires": [ + [ + "3d5fa372.a6850c" + ] + ] + }, + { + "id": "943b3579.515908", + "type": "outcome", + "name": "NETWORK_INSTANCE", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2158.972099304199, + "y": 427.2777690887451, + "z": "aa630329.50a53", + "wires": [ + [ + "83af09d2.c65ec8" + ] + ] + }, + { + "id": "ffdb86fd.ed9ae8", + "type": "outcome", + "name": "SERVICE_INSTANCE", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2157.083236694336, + "y": 476.2777853012085, + "z": "aa630329.50a53", + "wires": [ + [ + "1c77760e.ecb7ea" + ] + ] + }, + { + "id": "f9d65524.73d078", + "type": "outcome", + "name": "VNF_INSTANCE", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2140.972099304199, + "y": 522.2777843475342, + "z": "aa630329.50a53", + "wires": [ + [ + "e200beea.7beb8" + ] + ] + }, + { + "id": "2e594a51.7adc16", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2481.4800338745117, + "y": 1888.095199584961, + "z": "aa630329.50a53", + "wires": [ + [ + "dc507a17.e1ccd8" + ] + ] + }, + { + "id": "dc507a17.e1ccd8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t", + "comments": "", + "x": 2650.9800338745117, + "y": 1888.095199584961, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "72a18f01.deeb5", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2489.480010986328, + "y": 1934.5951929092407, + "z": "aa630329.50a53", + "wires": [ + [ + "43bd72cf.d1989c" + ] + ] + }, + { + "id": "5826c7ee.56a468", + "type": "comment", + "name": "pfx = db.grn.prefix[]", + "info": "", + "comments": "", + "x": 2214.730049133301, + "y": 1925.5952167510986, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "5693c8f8.d296b8", + "type": "get-resource", + "name": "GET GENERIC_RESOURCE_NAME (prefix)", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2193.730026245117, + "y": 1887.845220565796, + "z": "aa630329.50a53", + "wires": [ + [ + "2e594a51.7adc16", + "72a18f01.deeb5", + "97a75732.8d1778" + ] + ] + }, + { + "id": "97a75732.8d1778", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2483.015769958496, + "y": 2077.5595169067383, + "z": "aa630329.50a53", + "wires": [ + [ + "af5d42dd.241e1" + ] + ] + }, + { + "id": "af5d42dd.241e1", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2632.6587142944336, + "y": 2077.702341079712, + "z": "aa630329.50a53", + "wires": [ + [ + "255e4edf.8d20f2", + "46080842.900648" + ] + ] + }, + { + "id": "ad49ad2b.b9ff7", + "type": "comment", + "name": "Clean up holes in INDEX TABLE", + "info": "", + "comments": "", + "x": 1951.694351196289, + "y": 1831.6666927337646, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "f4c9b7ed.c5e8b8", + "type": "set", + "name": "set tmp.rb.sql for delete", + "xml": "\n\n\t\t\n\t\t\t\t", + "comments": "", + "x": 2890.4800720214844, + "y": 1934.5952682495117, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "9004f393.79866", + "type": "get-resource", + "name": "DELETE from INDEX TABLE", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 2906.6585998535156, + "y": 1980.2143020629883, + "z": "aa630329.50a53", + "wires": [ + [ + "e6d51ffb.da5ef", + "e74e9d15.6e515" + ] + ] + }, + { + "id": "8b317be0.6cea48", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 3124.2301330566406, + "y": 1980.5953760147095, + "z": "aa630329.50a53", + "wires": [ + [ + "8b317be0.6cea48" + ] + ] + }, + { + "id": "e74e9d15.6e515", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3131.0755348205566, + "y": 2027.0835180282593, + "z": "aa630329.50a53", + "wires": [ + [ + "9ba26a8.310e298" + ] + ] + }, + { + "id": "77aa82ec.ea575c", + "type": "comment", + "name": "Delete prefix from INDEX TABLE", + "info": "", + "comments": "", + "x": 3160.730209350586, + "y": 1936.5953397750854, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "2d8ded7b.a5e7e2", + "type": "comment", + "name": "Silence SUCCESS", + "info": "", + "comments": "", + "x": 3387.730140686035, + "y": 2038.5952835083008, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "9ba26a8.310e298", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3279.980136871338, + "y": 2026.8452854156494, + "z": "aa630329.50a53", + "wires": [ + [] + ] + }, + { + "id": "43bd72cf.d1989c", + "type": "block", + "name": "block", + "xml": "", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2637.1943588256836, + "y": 1934.9166927337646, + "z": "aa630329.50a53", + "wires": [ + [ + "f4c9b7ed.c5e8b8", + "9004f393.79866" + ] + ] + }, + { + "id": "255e4edf.8d20f2", + "type": "set", + "name": "set tmp.rb.grn.last-max-index", + "xml": "\n\n", + "comments": "", + "x": 2855.6943588256836, + "y": 2077.916696548462, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "46080842.900648", + "type": "switchNode", + "name": "switch: index_number > last-max-index", + "xml": " $tmp.rb.grn.last-max-index`\">", + "comments": "", + "outputs": 1, + "x": 2884.944366455078, + "y": 2121.916696548462, + "z": "aa630329.50a53", + "wires": [ + [ + "88ac47d8.6bb598" + ] + ] + }, + { + "id": "88ac47d8.6bb598", + "type": "outcomeTrue", + "name": "true", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3124.9443359375, + "y": 2121.416664123535, + "z": "aa630329.50a53", + "wires": [ + [ + "c1f045de.3e28c8" + ] + ] + }, + { + "id": "ee302e41.39dd1", + "type": "set", + "name": "set tmp.rb.sql for update", + "xml": "\n", + "comments": "", + "x": 3473.194366455078, + "y": 2121.416696548462, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "b61cd1a1.4af9b", + "type": "get-resource", + "name": "Update INDEX TABLE", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 3469.3728942871094, + "y": 2166.0357303619385, + "z": "aa630329.50a53", + "wires": [ + [ + "5241d984.6b2458", + "19f1dadd.4da2c5" + ] + ] + }, + { + "id": "2583f2fc.38be4e", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 3678.9444274902344, + "y": 2166.4168043136597, + "z": "aa630329.50a53", + "wires": [ + [ + "2583f2fc.38be4e" + ] + ] + }, + { + "id": "19f1dadd.4da2c5", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3685.7898292541504, + "y": 2212.9049463272095, + "z": "aa630329.50a53", + "wires": [ + [ + "2583f2fc.38be4e" + ] + ] + }, + { + "id": "370184fa.2c436c", + "type": "comment", + "name": "Update prefix from INDEX TABLE", + "info": "", + "comments": "", + "x": 3425.1944274902344, + "y": 2198.666709423065, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "c1f045de.3e28c8", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 3274.4443359375, + "y": 2121.666664123535, + "z": "aa630329.50a53", + "wires": [ + [ + "ee302e41.39dd1", + "b61cd1a1.4af9b" + ] + ] + }, + { + "id": "1fa487d3.8ad6e8", + "type": "set", + "name": "set db.grn.distinct-prefix_length = 0", + "xml": "\n\n", + "comments": "", + "x": 2298.194351196289, + "y": 739.6666774749756, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "888a84ae.33c888", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "comments": "", + "xml": "", + "outputs": 1, + "x": 1609.0277099609375, + "y": 20, + "z": "aa630329.50a53", + "wires": [ + [ + "ed968adc.8ee998" + ] + ] + }, + { + "id": "e200beea.7beb8", + "type": "set", + "name": "set tmp.rb.naming-index-table-name and prefix column, grn.type", + "xml": "\n\n\n\n", + "comments": "", + "x": 2671.805435180664, + "y": 555.3333234786987, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "83af09d2.c65ec8", + "type": "set", + "name": "set tmp.rb.naming-index-table-name and prefix column, grn.type", + "xml": "\n\n\n\n", + "comments": "", + "x": 2557.6943359375, + "y": 426.66666412353516, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "98dce5f3.4de788", + "type": "set", + "name": "set tmp.rb.naming-index-table-name and prefix column, grn.type", + "xml": "\n\n\n\n", + "comments": "", + "x": 2741.027633666992, + "y": 474.4444389343262, + "z": "aa630329.50a53", + "wires": [] + }, + { + "id": "1c77760e.ecb7ea", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2356.6666666666665, + "y": 474.44444444444446, + "z": "aa630329.50a53", + "wires": [ + [ + "98dce5f3.4de788", + "3647a166.a299ee" + ] + ] + }, + { + "id": "3647a166.a299ee", + "type": "get-resource", + "name": "DELETE service instance name", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2582.2221870422363, + "y": 512.222222328186, + "z": "aa630329.50a53", + "wires": [ + [] + ] + }, + { + "id": "7a0ecea1.020ae", + "type": "comment", + "name": "quick path to delete instance name", + "info": "If no prefix and name_index involved, it can be deleted now", + "comments": "", + "x": 2838.888832092285, + "y": 518.8889126777649, + "z": "aa630329.50a53", + "wires": [] + } +] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json index 95c97aa5..15639e10 100644 --- a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json @@ -1 +1,1157 @@ -[{"id":"48d7038a.89fa6c","type":"dgstart","name":"DGSTART","outputs":1,"x":98.33332824707031,"y":81.66666412353516,"z":"ebe2868a.85eee8","wires":[["821f927a.f956f"]]},{"id":"821f927a.f956f","type":"service-logic","name":"GENERIC-RESOURCE-API ${project.version}","module":"GENERIC-RESOURCE-API","version":"${project.version}","comments":"","xml":"","outputs":1,"x":210.7618865966797,"y":121.90477466583252,"z":"ebe2868a.85eee8","wires":[["f54d568d.4df778"]]},{"id":"f54d568d.4df778","type":"method","name":"method service-topology-operation-assign","xml":"\n","comments":"","outputs":1,"x":198.47623443603516,"y":161.66666221618652,"z":"ebe2868a.85eee8","wires":[["b4c70111.26fd7"]]},{"id":"30d39e8f.d388b2","type":"comment","name":"service-topology-operation-assign","info":"","comments":"","x":492.67818450927734,"y":29.253007888793945,"z":"ebe2868a.85eee8","wires":[]},{"id":"b4c70111.26fd7","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":215.1904525756836,"y":752.4286098480225,"z":"ebe2868a.85eee8","wires":[["1bbbcd4e.edbd53","4178d17e.f80d1","82451742.a65738","cf9e49d9.5b29e8","3c979684.03ab2a","5e16b29c.f2ec6c","15eab240.68e6de","3b07b638.c82b0a","efb95a00.74c4b8","9d88bb51.187fd8"]]},{"id":"1bbbcd4e.edbd53","type":"switchNode","name":"switch request-action","xml":"\n","comments":"","outputs":1,"x":497.5714416503906,"y":263.38095569610596,"z":"ebe2868a.85eee8","wires":[["af594697.953af8","4dbe5995.686188"]]},{"id":"af594697.953af8","type":"outcome","name":"CreateServiceInstance","xml":"\n","comments":"","outputs":1,"x":734.7142562866211,"y":237.66666412353516,"z":"ebe2868a.85eee8","wires":[["9a984e80.8224d"]]},{"id":"4dbe5995.686188","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":684.7142791748047,"y":281.7143030166626,"z":"ebe2868a.85eee8","wires":[["2127913d.c931de"]]},{"id":"9a984e80.8224d","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":913.2857131958008,"y":237.66669940948486,"z":"ebe2868a.85eee8","wires":[[]]},{"id":"2127913d.c931de","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":892.0952262878418,"y":281.7143144607544,"z":"ebe2868a.85eee8","wires":[]},{"id":"4178d17e.f80d1","type":"get-resource","name":"get-resource SERVICE_MODEL","xml":"\n\n","comments":"","outputs":1,"x":534.1189575195312,"y":486.4762439727783,"z":"ebe2868a.85eee8","wires":[["d2d99a22.cad358","4f6a3bf6.18eea4"]]},{"id":"a476bcf3.f840c","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":924.1189079284668,"y":509.9047431945801,"z":"ebe2868a.85eee8","wires":[]},{"id":"82451742.a65738","type":"switchNode","name":"switch input service-instance-name","xml":"\n","comments":"","outputs":1,"x":530.0951309204102,"y":885.6428337097168,"z":"ebe2868a.85eee8","wires":[["3af1c941.ecd6e6","f722dda8.bee11"]]},{"id":"3af1c941.ecd6e6","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":764.1187896728516,"y":698.1428155899048,"z":"ebe2868a.85eee8","wires":[["71a4277c.6ca058"]]},{"id":"8c034d58.afc52","type":"switchNode","name":"switch ecomp-naming","xml":"\n","comments":"","outputs":1,"x":1141.9763107299805,"y":600.5239019393921,"z":"ebe2868a.85eee8","wires":[["31db353b.a6c6aa","2702477f.8a86c8","d9c0071c.74ef28"]]},{"id":"71a4277c.6ca058","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":909.8332901000977,"y":698.1429328918457,"z":"ebe2868a.85eee8","wires":[["8c034d58.afc52","d1369b1.c587768"]]},{"id":"2702477f.8a86c8","type":"outcome","name":"N","xml":"","comments":"","outputs":1,"x":1328.404697418213,"y":601.0000286102295,"z":"ebe2868a.85eee8","wires":[["d34de23f.273bd"]]},{"id":"d34de23f.273bd","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1482.6904830932617,"y":619.5714731216431,"z":"ebe2868a.85eee8","wires":[]},{"id":"31db353b.a6c6aa","type":"outcome","name":"Y","xml":"","comments":"","outputs":1,"x":1328.4046897888184,"y":559.5714826583862,"z":"ebe2868a.85eee8","wires":[["b85f4be3.a655f8"]]},{"id":"d9c0071c.74ef28","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1328.4046363830566,"y":643.8571605682373,"z":"ebe2868a.85eee8","wires":[["d34de23f.273bd"]]},{"id":"b85f4be3.a655f8","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":1465.547607421875,"y":559.7143497467041,"z":"ebe2868a.85eee8","wires":[[]]},{"id":"f722dda8.bee11","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":746.6904945373535,"y":1094.4285430908203,"z":"ebe2868a.85eee8","wires":[["34ba3c40.2762b4"]]},{"id":"b5f5bce5.efe6f","type":"set","name":"set tmp.service-instance-name","xml":"\n\n","comments":"","x":1699.833351135254,"y":1143.2857637405396,"z":"ebe2868a.85eee8","wires":[]},{"id":"cf9e49d9.5b29e8","type":"update","name":"update AAI service instance","xml":"\n\t\n\t\n","comments":"","outputs":1,"x":508.6429138183594,"y":1350.6190338134766,"z":"ebe2868a.85eee8","wires":[["d0222796.822478","947675a0.058ae8"]]},{"id":"d0222796.822478","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":720.4047813415527,"y":1325.8571882247925,"z":"ebe2868a.85eee8","wires":[["f540264c.07c8a8"]]},{"id":"bbe08f80.8031","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1067.5475769042969,"y":1324.428689956665,"z":"ebe2868a.85eee8","wires":[]},{"id":"efb95a00.74c4b8","type":"set","name":"set service-level-oper-status to Created","xml":"\n\n\n\n","comments":"","x":542.5000076293945,"y":1632.166540145874,"z":"ebe2868a.85eee8","wires":[]},{"id":"3b07b638.c82b0a","type":"set","name":"set service-object-path","xml":"\n\n","comments":"","x":494.5950698852539,"y":1186.571291923523,"z":"ebe2868a.85eee8","wires":[]},{"id":"a0e38671.0ee498","type":"switchNode","name":"switch order-status","xml":"\n","comments":"","outputs":1,"x":490.71423721313477,"y":374.3334274291992,"z":"ebe2868a.85eee8","wires":[["5f238609.cb2698","b1e821c3.fff61","8b68e1fe.49372"]]},{"id":"5f238609.cb2698","type":"outcome","name":"Created","xml":"\n","comments":"","outputs":1,"x":686.6666870117188,"y":374.0000238418579,"z":"ebe2868a.85eee8","wires":[["592e7d47.60d174"]]},{"id":"592e7d47.60d174","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":888.8095169067383,"y":373.5715579986572,"z":"ebe2868a.85eee8","wires":[]},{"id":"3c979684.03ab2a","type":"set","name":"set service-topology identifiers","xml":"\n\n\n\n\n","comments":"","x":515.6191291809082,"y":1443.2379140853882,"z":"ebe2868a.85eee8","wires":[]},{"id":"2677ae59.acd1b2","type":"for","name":"for each service-input-parameters","xml":"\n","comments":"","outputs":1,"x":948.2856636047363,"y":1589.9049215316772,"z":"ebe2868a.85eee8","wires":[["12ccc853.423468"]]},{"id":"12ccc853.423468","type":"set","name":"set parameter name/value","xml":"\n\n\n","comments":"","x":1229.714126586914,"y":1589.9048681259155,"z":"ebe2868a.85eee8","wires":[]},{"id":"5e16b29c.f2ec6c","type":"switchNode","name":"switch input parameter length","xml":"\n","comments":"","outputs":1,"x":513.0952377319336,"y":1562.285641670227,"z":"ebe2868a.85eee8","wires":[["b9b15c97.16bb5","57702727.6373f8"]]},{"id":"b9b15c97.16bb5","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":725.9998168945312,"y":1538.4762754440308,"z":"ebe2868a.85eee8","wires":[["e514c906.f7d1e8"]]},{"id":"e514c906.f7d1e8","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":864.5712089538574,"y":1538.476258277893,"z":"ebe2868a.85eee8","wires":[[]]},{"id":"57702727.6373f8","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":724.5712280273438,"y":1589.9048643112183,"z":"ebe2868a.85eee8","wires":[["2677ae59.acd1b2"]]},{"id":"15eab240.68e6de","type":"set","name":"set service-topology onap-model-information","xml":"\n\n","comments":"","x":558.4762496948242,"y":1491.8093242645264,"z":"ebe2868a.85eee8","wires":[]},{"id":"947675a0.058ae8","type":"failure","name":"not-found","xml":"\n","comments":"","outputs":1,"x":726.7142105102539,"y":1374.4286060333252,"z":"ebe2868a.85eee8","wires":[["4a03445e.27b53c"]]},{"id":"3da7d74d.b454f8","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1065.7617378234863,"y":1372.904920578003,"z":"ebe2868a.85eee8","wires":[]},{"id":"1d844ee1.34f781","type":"call","name":"call GENERIC-RESOURCE-API:generate-unique-name","xml":"\n","comments":"","outputs":1,"x":1800.3808898925781,"y":749.5714020729065,"z":"ebe2868a.85eee8","wires":[["cd3579c9.2e2df8","7e0fe584.530c6c"]]},{"id":"cd3579c9.2e2df8","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2077.523693084717,"y":723.1429352760315,"z":"ebe2868a.85eee8","wires":[["7cfc5fa4.12d2c"]]},{"id":"7e0fe584.530c6c","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":2082.2854385375977,"y":768.5238461494446,"z":"ebe2868a.85eee8","wires":[["210c1a12.0179d6"]]},{"id":"972ca6c6.f6a738","type":"set","name":"set variables for generating unique name","xml":"\n\n\n\n\n\n\n","comments":"","x":1755.3811416625977,"y":700.6667218208313,"z":"ebe2868a.85eee8","wires":[]},{"id":"210c1a12.0179d6","type":"set","name":"set tmp.service-instance-name to generated name","xml":"\n\n","comments":"","x":2349.1898345947266,"y":768.9999213218689,"z":"ebe2868a.85eee8","wires":[]},{"id":"7cfc5fa4.12d2c","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":2231.0951538085938,"y":722.5714449882507,"z":"ebe2868a.85eee8","wires":[]},{"id":"34ba3c40.2762b4","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":894.6190223693848,"y":1093.095230102539,"z":"ebe2868a.85eee8","wires":[["9765eea9.7d266","aa6ace31.cbe73"]]},{"id":"aa6ace31.cbe73","type":"call","name":"call GENERIC-RESOURCE-API:generate-unique-name","xml":"\n","comments":"","outputs":1,"x":1194.6191101074219,"y":1117.7618789672852,"z":"ebe2868a.85eee8","wires":[["b7fb4481.878e28","9f7950b2.7e5e5"]]},{"id":"b7fb4481.878e28","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":1476.0475807189941,"y":1092.5238637924194,"z":"ebe2868a.85eee8","wires":[["7fc1e719.7af628"]]},{"id":"9f7950b2.7e5e5","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":1479.09521484375,"y":1144.190673828125,"z":"ebe2868a.85eee8","wires":[["b5f5bce5.efe6f"]]},{"id":"9765eea9.7d266","type":"set","name":"set variables for generating unique name","xml":"\n\n\n","comments":"","x":1152.9524841308594,"y":1069.4285850524902,"z":"ebe2868a.85eee8","wires":[]},{"id":"7fc1e719.7af628","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":1643.9046936035156,"y":1091.9523754119873,"z":"ebe2868a.85eee8","wires":[]},{"id":"d2d99a22.cad358","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":750.6189422607422,"y":466.4285583496094,"z":"ebe2868a.85eee8","wires":[["250281ba.ad450e"]]},{"id":"4f6a3bf6.18eea4","type":"not-found","name":"not-found","xml":"\n","comments":"","outputs":1,"x":759.190372467041,"y":509.71427154541016,"z":"ebe2868a.85eee8","wires":[["a476bcf3.f840c"]]},{"id":"250281ba.ad450e","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":923.4761085510254,"y":465.00000190734863,"z":"ebe2868a.85eee8","wires":[]},{"id":"b1e821c3.fff61","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":684.6666107177734,"y":329.333345413208,"z":"ebe2868a.85eee8","wires":[["241a1eaf.f84722"]]},{"id":"8b68e1fe.49372","type":"other","name":"PendingDelete","xml":"\n","comments":"","outputs":1,"x":707.3333396911621,"y":418.00000381469727,"z":"ebe2868a.85eee8","wires":[["2ba8aea0.61ef72"]]},{"id":"2ba8aea0.61ef72","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":889.6666374206543,"y":418.00001430511475,"z":"ebe2868a.85eee8","wires":[]},{"id":"241a1eaf.f84722","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":871.3333206176758,"y":328.33336448669434,"z":"ebe2868a.85eee8","wires":[[]]},{"id":"d1369b1.c587768","type":"switchNode","name":"switch naming-policy","xml":"\n","comments":"","outputs":1,"x":1141.1903610229492,"y":795.9523792266846,"z":"ebe2868a.85eee8","wires":[["b05283b4.d77c8","e6ad7e36.240e"]]},{"id":"b05283b4.d77c8","type":"outcome","name":"NULL","xml":"","comments":"","outputs":1,"x":1329.7618255615234,"y":730.238073348999,"z":"ebe2868a.85eee8","wires":[["6e33da8d.29b254"]]},{"id":"e6ad7e36.240e","type":"other","name":"other","xml":"\n","comments":"","outputs":1,"x":1329.7619953155518,"y":861.6667251586914,"z":"ebe2868a.85eee8","wires":[["32bd4b8d.890d24"]]},{"id":"9d88bb51.187fd8","type":"set","name":"set tmp.service-instance-name to NULL","xml":"\n\n","comments":"","x":554.0476226806641,"y":597.3809223175049,"z":"ebe2868a.85eee8","wires":[]},{"id":"6e33da8d.29b254","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1482.6190948486328,"y":728.8095397949219,"z":"ebe2868a.85eee8","wires":[["972ca6c6.f6a738","1d844ee1.34f781"]]},{"id":"e0265226.af816","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"\n","comments":"","outputs":1,"x":1818.3336029052734,"y":901.6668066978455,"z":"ebe2868a.85eee8","wires":[["b1f21349.e89a2","abf0d275.5d5d7"]]},{"id":"32bd4b8d.890d24","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1482.6191177368164,"y":861.6667423248291,"z":"ebe2868a.85eee8","wires":[["daa02d3c.1bde5","e0265226.af816","7298a83a.1d0fe8"]]},{"id":"daa02d3c.1bde5","type":"set","name":"set variables for generating name","xml":"\n\n\n\n\n\n","comments":"","x":1728.3335189819336,"y":855.9524607658386,"z":"ebe2868a.85eee8","wires":[]},{"id":"15e76921.f8bad7","type":"returnFailure","name":"return failure","xml":"\n\t\n\t\n \n","comments":"","x":2276.904594966343,"y":877.5237165178571,"z":"ebe2868a.85eee8","wires":[]},{"id":"a2f31308.70f7e","type":"set","name":"set tmp.service-instance-name to generated name","xml":"\n\n","comments":"","x":2392.761957168579,"y":924.6665439605713,"z":"ebe2868a.85eee8","wires":[]},{"id":"7298a83a.1d0fe8","type":"set","name":"set generated-via-policy to true","xml":"\n\n","comments":"","x":1719.7621002197266,"y":810.2381148338318,"z":"ebe2868a.85eee8","wires":[]},{"id":"941dbd7.75af94","type":"block","name":"block : atomic","xml":"","atomic":"true","outputs":1,"x":1072.6190948486328,"y":1256.523838043213,"z":"ebe2868a.85eee8","wires":[["d60970c6.ad39b","bfa2c057.12d04"]]},{"id":"bfa2c057.12d04","type":"call","name":"call GENERIC-RESOURCE-API:naming-policy-generate-name","xml":"\n","comments":"","outputs":1,"x":1396.904800415039,"y":1283.0953693389893,"z":"ebe2868a.85eee8","wires":[[]]},{"id":"d60970c6.ad39b","type":"set","name":"set variables for deleting name","xml":"\n\n\n\n","comments":"","x":1298.3334197998047,"y":1235.9524402618408,"z":"ebe2868a.85eee8","wires":[]},{"id":"f540264c.07c8a8","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":879.7619094848633,"y":1325.95237159729,"z":"ebe2868a.85eee8","wires":[["bbe08f80.8031","941dbd7.75af94"]]},{"id":"4a03445e.27b53c","type":"block","name":"block","xml":"\n","atomic":"false","comments":"","outputs":1,"x":878.3333206176758,"y":1374.523754119873,"z":"ebe2868a.85eee8","wires":[["3da7d74d.b454f8","941dbd7.75af94"]]},{"id":"b1f21349.e89a2","type":"success","name":"success","xml":"\n","comments":"","outputs":1,"x":2122.142961502075,"y":924.9999656677246,"z":"ebe2868a.85eee8","wires":[["a2f31308.70f7e"]]},{"id":"abf0d275.5d5d7","type":"failure","name":"failure","xml":"\n","comments":"","outputs":1,"x":2119.2854347229004,"y":877.4285659790039,"z":"ebe2868a.85eee8","wires":[["15e76921.f8bad7"]]},{"id":"652bca2b.d4b364","type":"comment","name":"check removed with US622450","info":"","comments":"","x":369.99999999999994,"y":326.66666666666663,"z":"ebe2868a.85eee8","wires":[]}] \ No newline at end of file +[ + { + "id": "ed114b7a.f75b18", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 1352.22216796875, + "y": 72.41365623474121, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "983246b.2a205b8" + ] + ] + }, + { + "id": "983246b.2a205b8", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "comments": "", + "xml": "", + "outputs": 1, + "x": 1464.6507263183594, + "y": 112.65176677703857, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "823dc8cd.dd6d58" + ] + ] + }, + { + "id": "823dc8cd.dd6d58", + "type": "method", + "name": "method service-topology-operation-assign", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1452.3650741577148, + "y": 152.41365432739258, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "f7c5ffc6.e6b88" + ] + ] + }, + { + "id": "9697023a.bcbfc", + "type": "comment", + "name": "service-topology-operation-assign", + "info": "", + "comments": "", + "x": 1746.567024230957, + "y": 20, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "f7c5ffc6.e6b88", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 1469.0792922973633, + "y": 743.1756019592285, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "3b97fcb6.4ecbb4", + "4deb90b3.ddf1b", + "4cc6f60e.e6e328", + "a6b363c6.539e", + "7331194a.880a78", + "cf878be6.433098", + "116637a7.bf8608", + "be564011.84b1f", + "1f9303e8.465f3c", + "155d1e57.3f9452" + ] + ] + }, + { + "id": "3b97fcb6.4ecbb4", + "type": "switchNode", + "name": "switch request-action", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1751.4602813720703, + "y": 254.127947807312, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "7361817e.f466d", + "f1851772.f51898" + ] + ] + }, + { + "id": "7361817e.f466d", + "type": "outcome", + "name": "CreateServiceInstance", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1988.6030960083008, + "y": 228.4136562347412, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "7ff4cffa.a03ca" + ] + ] + }, + { + "id": "f1851772.f51898", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1938.6031188964844, + "y": 272.46129512786865, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "6b8abbcc.8abe04" + ] + ] + }, + { + "id": "7ff4cffa.a03ca", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2167.1745529174805, + "y": 228.41369152069092, + "z": "7a783ca6.163ee4", + "wires": [ + [] + ] + }, + { + "id": "6b8abbcc.8abe04", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2145.9840660095215, + "y": 272.46130657196045, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "4deb90b3.ddf1b", + "type": "get-resource", + "name": "get-resource SERVICE_MODEL", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 1788.007797241211, + "y": 477.2232360839844, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "10dea27a.48091e", + "d11d8917.44be58" + ] + ] + }, + { + "id": "6349641.a52799c", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2178.0077476501465, + "y": 500.65173530578613, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "4cc6f60e.e6e328", + "type": "switchNode", + "name": "switch input service-instance-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1783.9839706420898, + "y": 876.3898258209229, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "ad3069cf.d72968", + "928867c5.6bc8b8" + ] + ] + }, + { + "id": "ad3069cf.d72968", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2018.0076293945312, + "y": 688.8898077011108, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "39cb4b5a.a62424" + ] + ] + }, + { + "id": "38149fb4.8ccca", + "type": "switchNode", + "name": "switch ecomp-naming", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2395.86515045166, + "y": 591.2708940505981, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "5712a731.e45c98", + "4c3eb89c.769a68", + "66aec164.b4d93" + ] + ] + }, + { + "id": "39cb4b5a.a62424", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2163.7221298217773, + "y": 688.8899250030518, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "38149fb4.8ccca", + "2de9537d.ce5a3c" + ] + ] + }, + { + "id": "4c3eb89c.769a68", + "type": "outcome", + "name": "N", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2582.2935371398926, + "y": 591.7470207214355, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "83b1cfed.045bb" + ] + ] + }, + { + "id": "83b1cfed.045bb", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2736.5793228149414, + "y": 610.3184652328491, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "5712a731.e45c98", + "type": "outcome", + "name": "Y", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2582.293529510498, + "y": 550.3184747695923, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "1659b650.b537fa" + ] + ] + }, + { + "id": "66aec164.b4d93", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2582.2934761047363, + "y": 634.6041526794434, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "83b1cfed.045bb" + ] + ] + }, + { + "id": "1659b650.b537fa", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2719.4364471435547, + "y": 550.4613418579102, + "z": "7a783ca6.163ee4", + "wires": [ + [] + ] + }, + { + "id": "928867c5.6bc8b8", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2000.5793342590332, + "y": 1085.1755352020264, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "a4b27acf.1f5e18" + ] + ] + }, + { + "id": "d6c60ea4.5874b", + "type": "set", + "name": "set tmp.service-instance-name", + "xml": "\n\n", + "comments": "", + "x": 2953.7221908569336, + "y": 1134.0327558517456, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "a6b363c6.539e", + "type": "update", + "name": "update AAI service instance", + "xml": "\n\t\n\t\n", + "comments": "", + "outputs": 1, + "x": 1762.531753540039, + "y": 1341.3660259246826, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "4545106b.1b452", + "96982434.ffc468" + ] + ] + }, + { + "id": "4545106b.1b452", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1974.2936210632324, + "y": 1316.6041803359985, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "454a1467.66c43c" + ] + ] + }, + { + "id": "a9649c95.7bd9", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2321.4364166259766, + "y": 1315.175682067871, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "1f9303e8.465f3c", + "type": "set", + "name": "set service-level-oper-status to Created", + "xml": "\n\n\n\n", + "comments": "", + "x": 1796.3888473510742, + "y": 1622.91353225708, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "be564011.84b1f", + "type": "set", + "name": "set service-object-path", + "xml": "\n\n", + "comments": "", + "x": 1748.4839096069336, + "y": 1177.318284034729, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "c4d228ca.69a5b8", + "type": "switchNode", + "name": "switch order-status", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1744.6030769348145, + "y": 365.0804195404053, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "db73c544.13ae08", + "53c75a45.113554", + "b305520d.c4aaf" + ] + ] + }, + { + "id": "db73c544.13ae08", + "type": "outcome", + "name": "Created", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1940.5555267333984, + "y": 364.74701595306396, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "cbf2a27.30d166" + ] + ] + }, + { + "id": "cbf2a27.30d166", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2142.698356628418, + "y": 364.3185501098633, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "7331194a.880a78", + "type": "set", + "name": "set service-topology identifiers", + "xml": "\n\n\n\n\n", + "comments": "", + "x": 1769.507968902588, + "y": 1433.9849061965942, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "f0cb971e.9a6bb8", + "type": "for", + "name": "for each service-input-parameters", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2202.174503326416, + "y": 1580.6519136428833, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "cc455e9f.b2dcb" + ] + ] + }, + { + "id": "cc455e9f.b2dcb", + "type": "set", + "name": "set parameter name/value", + "xml": "\n\n\n", + "comments": "", + "x": 2483.6029663085938, + "y": 1580.6518602371216, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "cf878be6.433098", + "type": "switchNode", + "name": "switch input parameter length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1766.9840774536133, + "y": 1553.032633781433, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "19f64235.4f36ee", + "9db57bb8.52cdc8" + ] + ] + }, + { + "id": "19f64235.4f36ee", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1979.888656616211, + "y": 1529.2232675552368, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "5fbb5b14.363894" + ] + ] + }, + { + "id": "5fbb5b14.363894", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2118.460048675537, + "y": 1529.2232503890991, + "z": "7a783ca6.163ee4", + "wires": [ + [] + ] + }, + { + "id": "9db57bb8.52cdc8", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1978.4600677490234, + "y": 1580.6518564224243, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "f0cb971e.9a6bb8" + ] + ] + }, + { + "id": "116637a7.bf8608", + "type": "set", + "name": "set service-topology onap-model-information", + "xml": "\n\n", + "comments": "", + "x": 1812.365089416504, + "y": 1482.5563163757324, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "96982434.ffc468", + "type": "failure", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1980.6030502319336, + "y": 1365.1755981445312, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "e3f492c3.6e0a5" + ] + ] + }, + { + "id": "cc899e97.23141", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2319.650577545166, + "y": 1363.651912689209, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "69ce2ba.144d5d4", + "type": "call", + "name": "call GENERIC-RESOURCE-API:generate-unique-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3054.269729614258, + "y": 740.3183941841125, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "1766b7bb.cff678", + "29d42e71.3312e2" + ] + ] + }, + { + "id": "1766b7bb.cff678", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3331.4125328063965, + "y": 713.8899273872375, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "8e4917db.c56bf8" + ] + ] + }, + { + "id": "29d42e71.3312e2", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3336.1742782592773, + "y": 759.2708382606506, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "4d990495.1c092c" + ] + ] + }, + { + "id": "2e79f822.688378", + "type": "set", + "name": "set variables for generating unique name", + "xml": "\n\n\n\n\n\n\n", + "comments": "", + "x": 3009.2699813842773, + "y": 691.4137139320374, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "4d990495.1c092c", + "type": "set", + "name": "set tmp.service-instance-name to generated name", + "xml": "\n\n", + "comments": "", + "x": 3603.0786743164062, + "y": 759.746913433075, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "8e4917db.c56bf8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 3484.9839935302734, + "y": 713.3184370994568, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "a4b27acf.1f5e18", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2148.5078620910645, + "y": 1083.8422222137451, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "663b2c60.a3fbe4", + "e58b759e.fa9038" + ] + ] + }, + { + "id": "e58b759e.fa9038", + "type": "call", + "name": "call GENERIC-RESOURCE-API:generate-unique-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2448.5079498291016, + "y": 1108.5088710784912, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "92c339a8.616968", + "c4fd2567.a5a888" + ] + ] + }, + { + "id": "92c339a8.616968", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2729.936420440674, + "y": 1083.2708559036255, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "4a49ebd1.d51d64" + ] + ] + }, + { + "id": "c4fd2567.a5a888", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2732.9840545654297, + "y": 1134.937665939331, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "d6c60ea4.5874b" + ] + ] + }, + { + "id": "663b2c60.a3fbe4", + "type": "set", + "name": "set variables for generating unique name", + "xml": "\n\n\n", + "comments": "", + "x": 2406.841323852539, + "y": 1060.1755771636963, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "4a49ebd1.d51d64", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2897.7935333251953, + "y": 1082.6993675231934, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "10dea27a.48091e", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2004.5077819824219, + "y": 457.17555046081543, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "e6798aa7.071568" + ] + ] + }, + { + "id": "d11d8917.44be58", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2013.0792121887207, + "y": 500.4612636566162, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "6349641.a52799c" + ] + ] + }, + { + "id": "e6798aa7.071568", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2177.364948272705, + "y": 455.7469940185547, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "53c75a45.113554", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1938.5554504394531, + "y": 320.08033752441406, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "f1200e41.32e3" + ] + ] + }, + { + "id": "b305520d.c4aaf", + "type": "other", + "name": "PendingDelete", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1961.2221794128418, + "y": 408.7469959259033, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "62b73505.87e2cc" + ] + ] + }, + { + "id": "62b73505.87e2cc", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 2143.555477142334, + "y": 408.7470064163208, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "f1200e41.32e3", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2125.2221603393555, + "y": 319.0803565979004, + "z": "7a783ca6.163ee4", + "wires": [ + [] + ] + }, + { + "id": "2de9537d.ce5a3c", + "type": "switchNode", + "name": "switch naming-policy", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2395.079200744629, + "y": 786.6993713378906, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "2684edf5.753852", + "18f39428.236a8c" + ] + ] + }, + { + "id": "2684edf5.753852", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 2583.650665283203, + "y": 720.9850654602051, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "26dd020.844b9fe" + ] + ] + }, + { + "id": "18f39428.236a8c", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2583.6508350372314, + "y": 852.4137172698975, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "555fed1d.539e64" + ] + ] + }, + { + "id": "155d1e57.3f9452", + "type": "set", + "name": "set tmp.service-instance-name to NULL", + "xml": "\n\n", + "comments": "", + "x": 1807.9364624023438, + "y": 588.1279144287109, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "26dd020.844b9fe", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2736.5079345703125, + "y": 719.5565319061279, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "2e79f822.688378", + "69ce2ba.144d5d4" + ] + ] + }, + { + "id": "d9662f9c.d46e6", + "type": "call", + "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3072.222442626953, + "y": 892.4137988090515, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "a9acf59.3d9a608", + "ab2b1e84.df443" + ] + ] + }, + { + "id": "555fed1d.539e64", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2736.507957458496, + "y": 852.4137344360352, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "9be34e30.19b1f", + "d9662f9c.d46e6", + "ff3c0c0e.8833f" + ] + ] + }, + { + "id": "9be34e30.19b1f", + "type": "set", + "name": "set variables for generating name", + "xml": "\n\n\n\n\n\n", + "comments": "", + "x": 2982.2223587036133, + "y": 846.6994528770447, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "bc6ccae5.e3b088", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 3530.793434688023, + "y": 868.2707086290632, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "441302c7.f518bc", + "type": "set", + "name": "set tmp.service-instance-name to generated name", + "xml": "\n\n", + "comments": "", + "x": 3646.650796890259, + "y": 915.4135360717773, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "ff3c0c0e.8833f", + "type": "set", + "name": "set generated-via-policy to true", + "xml": "\n\n", + "comments": "", + "x": 2973.6509399414062, + "y": 800.9851069450378, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "3a82772.0b3ff88", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 2326.5079345703125, + "y": 1247.270830154419, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "c71638eb.a196b8", + "b10a109b.8b814" + ] + ] + }, + { + "id": "b10a109b.8b814", + "type": "call", + "name": "call GENERIC-RESOURCE-API:naming-policy-generate-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 2650.7936401367188, + "y": 1273.8423614501953, + "z": "7a783ca6.163ee4", + "wires": [ + [] + ] + }, + { + "id": "c71638eb.a196b8", + "type": "set", + "name": "set variables for deleting name", + "xml": "\n\n\n\n", + "comments": "", + "x": 2552.2222595214844, + "y": 1226.6994323730469, + "z": "7a783ca6.163ee4", + "wires": [] + }, + { + "id": "454a1467.66c43c", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2133.650749206543, + "y": 1316.699363708496, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "a9649c95.7bd9", + "3a82772.0b3ff88" + ] + ] + }, + { + "id": "e3f492c3.6e0a5", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 2132.2221603393555, + "y": 1365.270746231079, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "cc899e97.23141", + "3a82772.0b3ff88" + ] + ] + }, + { + "id": "a9acf59.3d9a608", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3376.031801223755, + "y": 915.7469577789307, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "441302c7.f518bc" + ] + ] + }, + { + "id": "ab2b1e84.df443", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 3373.17427444458, + "y": 868.17555809021, + "z": "7a783ca6.163ee4", + "wires": [ + [ + "bc6ccae5.e3b088" + ] + ] + }, + { + "id": "9f9d847c.b86d18", + "type": "comment", + "name": "check removed with US622450", + "info": "", + "comments": "", + "x": 1623.8888397216797, + "y": 317.4136587778727, + "z": "7a783ca6.163ee4", + "wires": [] + } +] \ No newline at end of file diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generate-unique-name.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generate-unique-name.xml index 267a2cc0..73938422 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generate-unique-name.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_generate-unique-name.xml @@ -32,7 +32,7 @@ ++ ' $generate-unique-name-input.name-table-type , $generate-unique-name-input.supplied-name , null , null, $generate-unique-name-input.service-instance-id )'`" /> diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_rollback-generated-names.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_rollback-generated-names.xml index d36c4066..41a64686 100644 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_rollback-generated-names.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_rollback-generated-names.xml @@ -47,12 +47,17 @@ - - + + - - + + + diff --git a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml index dda220aa..c9300bd1 100755 --- a/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml +++ b/platform-logic/generic-resource-api/src/main/xml/GENERIC-RESOURCE-API_service-topology-operation-assign.xml @@ -121,6 +121,7 @@ + -- 2.16.6