Fix error in SqlResource name
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_service-topology-operation-assign.json
1 [
2     {
3         "id": "295b7d63.10c692",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 112,
8         "y": 86,
9         "z": "d6c1fe8e.0dbfc",
10         "wires": [
11             [
12                 "70e80e39.fe45"
13             ]
14         ]
15     },
16     {
17         "id": "70e80e39.fe45",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24         "outputs": 1,
25         "x": 187.28570556640625,
26         "y": 126.23811149597168,
27         "z": "d6c1fe8e.0dbfc",
28         "wires": [
29             [
30                 "9baf2a8b.239b88"
31             ]
32         ]
33     },
34     {
35         "id": "9baf2a8b.239b88",
36         "type": "method",
37         "name": "method service-topology-operation-assign",
38         "xml": "<method rpc='service-topology-operation-assign' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 216.42862701416016,
42         "y": 166,
43         "z": "d6c1fe8e.0dbfc",
44         "wires": [
45             [
46                 "5cbbf27f.ee281c"
47             ]
48         ]
49     },
50     {
51         "id": "b98518f1.2eb928",
52         "type": "comment",
53         "name": "service-topology-operation-assign",
54         "info": "",
55         "comments": "",
56         "x": 506.34485626220703,
57         "y": 33.58634376525879,
58         "z": "d6c1fe8e.0dbfc",
59         "wires": []
60     },
61     {
62         "id": "5cbbf27f.ee281c",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 228.85712432861328,
69         "y": 756.7619457244873,
70         "z": "d6c1fe8e.0dbfc",
71         "wires": [
72             [
73                 "fd3525bb.e6b178",
74                 "3fc365e1.b2b29a",
75                 "80294281.2295d",
76                 "6dc77130.ebecc",
77                 "ec3c304f.7f733",
78                 "3d90af09.6137c",
79                 "da5ddc08.e7611",
80                 "e78ecd27.54c89",
81                 "b5b6afcf.5fa1",
82                 "dd72f866.d6cb28"
83             ]
84         ]
85     },
86     {
87         "id": "fd3525bb.e6b178",
88         "type": "switchNode",
89         "name": "switch request-action",
90         "xml": "<switch test='`$service-topology-operation-input.request-information.request-action`'>\n",
91         "comments": "",
92         "outputs": 1,
93         "x": 511.2381134033203,
94         "y": 267.7142915725708,
95         "z": "d6c1fe8e.0dbfc",
96         "wires": [
97             [
98                 "d0d2c5a2.a2fa38",
99                 "fbf77054.7e3f7"
100             ]
101         ]
102     },
103     {
104         "id": "d0d2c5a2.a2fa38",
105         "type": "outcome",
106         "name": "CreateServiceInstance",
107         "xml": "<outcome value='CreateServiceInstance'>\n",
108         "comments": "",
109         "outputs": 1,
110         "x": 748.3809280395508,
111         "y": 242,
112         "z": "d6c1fe8e.0dbfc",
113         "wires": [
114             [
115                 "c3e09ac6.b0a468"
116             ]
117         ]
118     },
119     {
120         "id": "fbf77054.7e3f7",
121         "type": "other",
122         "name": "other",
123         "xml": "<outcome value='Other'>\n",
124         "comments": "",
125         "outputs": 1,
126         "x": 698.3809509277344,
127         "y": 286.04763889312744,
128         "z": "d6c1fe8e.0dbfc",
129         "wires": [
130             [
131                 "14ef825f.a8bece"
132             ]
133         ]
134     },
135     {
136         "id": "c3e09ac6.b0a468",
137         "type": "block",
138         "name": "block",
139         "xml": "<block>\n",
140         "atomic": "false",
141         "comments": "",
142         "outputs": 1,
143         "x": 926.9523849487305,
144         "y": 242.0000352859497,
145         "z": "d6c1fe8e.0dbfc",
146         "wires": [
147             []
148         ]
149     },
150     {
151         "id": "14ef825f.a8bece",
152         "type": "returnFailure",
153         "name": "return failure",
154         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"If svc-action is 'assign' then request-action must be 'CreateServiceInstance'\" />\n",
155         "comments": "",
156         "x": 905.7618980407715,
157         "y": 286.04765033721924,
158         "z": "d6c1fe8e.0dbfc",
159         "wires": []
160     },
161     {
162         "id": "3fc365e1.b2b29a",
163         "type": "get-resource",
164         "name": "get-resource SERVICE_MODEL",
165         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-topology-operation-input.service-information.onap-model-information.model-uuid'\n  pfx='db.service-model'>\n\n",
166         "comments": "",
167         "outputs": 1,
168         "x": 547.7856292724609,
169         "y": 490.80957984924316,
170         "z": "d6c1fe8e.0dbfc",
171         "wires": [
172             [
173                 "42c43d09.6995e4",
174                 "141523e4.26033c"
175             ]
176         ]
177     },
178     {
179         "id": "74dca068.1349",
180         "type": "returnFailure",
181         "name": "return failure",
182         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`'No model found for service UUID ' + $service-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n",
183         "comments": "",
184         "x": 962.0712966918945,
185         "y": 515.6666297912598,
186         "z": "d6c1fe8e.0dbfc",
187         "wires": []
188     },
189     {
190         "id": "80294281.2295d",
191         "type": "switchNode",
192         "name": "switch input service-instance-name",
193         "xml": "<switch test='`$service-topology-operation-input.service-request-input.service-instance-name`'>\n",
194         "comments": "",
195         "outputs": 1,
196         "x": 555.1903610229492,
197         "y": 787.1190090179443,
198         "z": "d6c1fe8e.0dbfc",
199         "wires": [
200             [
201                 "2dc0c3ae.1f5c3c",
202                 "8c204a35.ee8d38"
203             ]
204         ]
205     },
206     {
207         "id": "2dc0c3ae.1f5c3c",
208         "type": "outcome",
209         "name": "NULL",
210         "xml": "<outcome value=''>",
211         "comments": "",
212         "outputs": 1,
213         "x": 776.3569221496582,
214         "y": 712.4761533737183,
215         "z": "d6c1fe8e.0dbfc",
216         "wires": [
217             [
218                 "8ca23910.bba748"
219             ]
220         ]
221     },
222     {
223         "id": "36a8a72c.e67fa8",
224         "type": "switchNode",
225         "name": "switch ecomp-naming",
226         "xml": "<switch test='`$db.service-model.ecomp-naming`'>\n",
227         "comments": "",
228         "outputs": 1,
229         "x": 1155.6429824829102,
230         "y": 604.8572378158569,
231         "z": "d6c1fe8e.0dbfc",
232         "wires": [
233             [
234                 "e46351c0.e65fe",
235                 "e2444120.96641",
236                 "b83f5b84.1194c8"
237             ]
238         ]
239     },
240     {
241         "id": "8ca23910.bba748",
242         "type": "block",
243         "name": "block : atomic",
244         "xml": "<block atomic=\"true\">",
245         "atomic": "true",
246         "outputs": 1,
247         "x": 922.0714225769043,
248         "y": 712.4762706756592,
249         "z": "d6c1fe8e.0dbfc",
250         "wires": [
251             [
252                 "11216bc9.793f94",
253                 "730225bd.4a385c",
254                 "36a8a72c.e67fa8"
255             ]
256         ]
257     },
258     {
259         "id": "e2444120.96641",
260         "type": "outcome",
261         "name": "N",
262         "xml": "<outcome value='N'>",
263         "comments": "",
264         "outputs": 1,
265         "x": 1404.9286422729492,
266         "y": 606.7619466781616,
267         "z": "d6c1fe8e.0dbfc",
268         "wires": [
269             [
270                 "e6cfdf66.2d46c"
271             ]
272         ]
273     },
274     {
275         "id": "e6cfdf66.2d46c",
276         "type": "returnFailure",
277         "name": "return failure",
278         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"No service-instance-name was received but ecomp-naming is not Y\" />\n",
279         "comments": "",
280         "x": 1559.214427947998,
281         "y": 625.3333911895752,
282         "z": "d6c1fe8e.0dbfc",
283         "wires": []
284     },
285     {
286         "id": "e46351c0.e65fe",
287         "type": "outcome",
288         "name": "Y",
289         "xml": "<outcome value='Y'>",
290         "comments": "",
291         "outputs": 1,
292         "x": 1404.9286079406738,
293         "y": 562.4762678146362,
294         "z": "d6c1fe8e.0dbfc",
295         "wires": [
296             [
297                 "c74d5ad9.510bf8"
298             ]
299         ]
300     },
301     {
302         "id": "b83f5b84.1194c8",
303         "type": "other",
304         "name": "other",
305         "xml": "<outcome value='Other'>\n",
306         "comments": "",
307         "outputs": 1,
308         "x": 1404.9285697937012,
309         "y": 652.4762659072876,
310         "z": "d6c1fe8e.0dbfc",
311         "wires": [
312             [
313                 "e6cfdf66.2d46c"
314             ]
315         ]
316     },
317     {
318         "id": "c74d5ad9.510bf8",
319         "type": "block",
320         "name": "block",
321         "xml": "<block>\n",
322         "atomic": "false",
323         "comments": "",
324         "outputs": 1,
325         "x": 1542.0715522766113,
326         "y": 562.4762678146362,
327         "z": "d6c1fe8e.0dbfc",
328         "wires": [
329             []
330         ]
331     },
332     {
333         "id": "8c204a35.ee8d38",
334         "type": "other",
335         "name": "other",
336         "xml": "<outcome value='Other'>\n",
337         "comments": "",
338         "outputs": 1,
339         "x": 778.9286041259766,
340         "y": 858.7618923187256,
341         "z": "d6c1fe8e.0dbfc",
342         "wires": [
343             [
344                 "7dd34c72.469dd4"
345             ]
346         ]
347     },
348     {
349         "id": "6c3ec4cc.7720cc",
350         "type": "set",
351         "name": "set tmp.service-instance-name",
352         "xml": "<set>\n<parameter name='tmp.service-instance-name' value=\"`$service-topology-operation-input.service-request-input.service-instance-name`\" />\n",
353         "comments": "",
354         "x": 1820.6428756713867,
355         "y": 906.1905384063721,
356         "z": "d6c1fe8e.0dbfc",
357         "wires": []
358     },
359     {
360         "id": "ec3c304f.7f733",
361         "type": "update",
362         "name": "update AAI service instance",
363         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-instance\" \n\t\tkey=\"customer.global-customer-id = $service-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-topology-operation-input.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-topology-operation-input.service-information.service-instance-id\"\n        pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"service-instance-name\" value=\"`$tmp.service-instance-name`\" />\n\t<parameter name=\"selflink\" value=\"`$service-object-path`\" />\n",
364         "comments": "",
365         "outputs": 1,
366         "x": 529.4524154663086,
367         "y": 1013.5237646102905,
368         "z": "d6c1fe8e.0dbfc",
369         "wires": [
370             [
371                 "52adc0d3.8b42e",
372                 "e75df5d6.b27108"
373             ]
374         ]
375     },
376     {
377         "id": "52adc0d3.8b42e",
378         "type": "failure",
379         "name": "failure",
380         "xml": "<outcome value='failure'>\n",
381         "comments": "",
382         "outputs": 1,
383         "x": 741.214282989502,
384         "y": 988.7619190216064,
385         "z": "d6c1fe8e.0dbfc",
386         "wires": [
387             [
388                 "633d341.6a482cc"
389             ]
390         ]
391     },
392     {
393         "id": "633d341.6a482cc",
394         "type": "returnFailure",
395         "name": "return failure",
396         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"AAI failed\" />\n",
397         "comments": "",
398         "x": 891.2142486572266,
399         "y": 988.7619972229004,
400         "z": "d6c1fe8e.0dbfc",
401         "wires": []
402     },
403     {
404         "id": "dd72f866.d6cb28",
405         "type": "set",
406         "name": "set service-level-oper-status to Created",
407         "xml": "<set>\n<parameter name='service-data.service-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.service-level-oper-status.last-rpc-action' value='assign' />\n<parameter name='service-data.service-level-oper-status.last-action' value='CreateServiceInstance' />\n",
408         "comments": "",
409         "x": 564.7380981445312,
410         "y": 1262.2141160964966,
411         "z": "d6c1fe8e.0dbfc",
412         "wires": []
413     },
414     {
415         "id": "b5b6afcf.5fa1",
416         "type": "set",
417         "name": "set service-object-path",
418         "xml": "<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
419         "comments": "",
420         "x": 513.9760437011719,
421         "y": 949.4761152267456,
422         "z": "d6c1fe8e.0dbfc",
423         "wires": []
424     },
425     {
426         "id": "6dc77130.ebecc",
427         "type": "switchNode",
428         "name": "switch order-status",
429         "xml": "<switch test='`$service-data.service-level-oper-status.order-status`'>\n",
430         "comments": "",
431         "outputs": 1,
432         "x": 504.38090896606445,
433         "y": 378.66676330566406,
434         "z": "d6c1fe8e.0dbfc",
435         "wires": [
436             [
437                 "a8edf7c5.7b4478",
438                 "ad8ed89.4b77b28",
439                 "ee8ac40f.7f3d48"
440             ]
441         ]
442     },
443     {
444         "id": "a8edf7c5.7b4478",
445         "type": "outcome",
446         "name": "Created",
447         "xml": "<outcome value='Created'>\n",
448         "comments": "",
449         "outputs": 1,
450         "x": 700.3333587646484,
451         "y": 378.33335971832275,
452         "z": "d6c1fe8e.0dbfc",
453         "wires": [
454             [
455                 "685d0e61.debed"
456             ]
457         ]
458     },
459     {
460         "id": "685d0e61.debed",
461         "type": "returnFailure",
462         "name": "return failure",
463         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"The requested service already exists\" />\n",
464         "comments": "",
465         "x": 902.476188659668,
466         "y": 377.90489387512207,
467         "z": "d6c1fe8e.0dbfc",
468         "wires": []
469     },
470     {
471         "id": "3d90af09.6137c",
472         "type": "set",
473         "name": "set service-topology identifiers",
474         "xml": "<set>\n<parameter name='service-data.service-topology.service-topology-identifier.service-instance-id'\n  value='`$service-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='service-data.service-topology.service-topology-identifier.service-type'\n  value='`$service-topology-operation-input.service-information.subscription-service-type`' />\n<parameter name='service-data.service-topology.service-topology-identifier.service-instance-name'\n  value='`$tmp.service-instance-name`' />\n<parameter name='service-data.service-topology.service-topology-identifier.global-customer-id'\n  value='`$service-topology-operation-input.service-information.global-customer-id`' />\n",
475         "comments": "",
476         "x": 540.7143249511719,
477         "y": 1081.8570585250854,
478         "z": "d6c1fe8e.0dbfc",
479         "wires": []
480     },
481     {
482         "id": "2653a44e.adc4ec",
483         "type": "for",
484         "name": "for each service-input-parameters",
485         "xml": "<for index='idx' start='0' end='`$service-topology-operation-input.service-request-input.service-input-parameters.param_length`' >\n",
486         "comments": "",
487         "outputs": 1,
488         "x": 970.523754119873,
489         "y": 1219.9524974822998,
490         "z": "d6c1fe8e.0dbfc",
491         "wires": [
492             [
493                 "6a555acb.26f484"
494             ]
495         ]
496     },
497     {
498         "id": "6a555acb.26f484",
499         "type": "set",
500         "name": "set parameter name/value",
501         "xml": "<set>\n<parameter name='service-data.service-topology.service-parameters[$idx].service-parameter-name'\n  value='`$service-topology-operation-input.service-request-input.service-input-parameters.param[$idx].name`' />\n<parameter name='service-data.service-topology.service-parameters[$idx].service-parameter-value'\n  value='`$service-topology-operation-input.service-request-input.service-input-parameters.param[$idx].value`' />\n",
502         "comments": "",
503         "x": 1251.9522171020508,
504         "y": 1219.952444076538,
505         "z": "d6c1fe8e.0dbfc",
506         "wires": []
507     },
508     {
509         "id": "da5ddc08.e7611",
510         "type": "switchNode",
511         "name": "switch input parameter length",
512         "xml": "<switch test='`$service-topology-operation-input.service-request-input.service-input-parameters.param_length`'>\n",
513         "comments": "",
514         "outputs": 1,
515         "x": 533.3333282470703,
516         "y": 1192.3332176208496,
517         "z": "d6c1fe8e.0dbfc",
518         "wires": [
519             [
520                 "f2b63cee.3f632",
521                 "cf7a3d51.1eefe"
522             ]
523         ]
524     },
525     {
526         "id": "f2b63cee.3f632",
527         "type": "outcome",
528         "name": "NULL",
529         "xml": "<outcome value=''>",
530         "comments": "",
531         "outputs": 1,
532         "x": 748.237907409668,
533         "y": 1168.5238513946533,
534         "z": "d6c1fe8e.0dbfc",
535         "wires": [
536             [
537                 "8a63c0fd.08758"
538             ]
539         ]
540     },
541     {
542         "id": "8a63c0fd.08758",
543         "type": "block",
544         "name": "block",
545         "xml": "<block>\n",
546         "atomic": "false",
547         "comments": "",
548         "outputs": 1,
549         "x": 886.8092994689941,
550         "y": 1168.5238342285156,
551         "z": "d6c1fe8e.0dbfc",
552         "wires": [
553             []
554         ]
555     },
556     {
557         "id": "cf7a3d51.1eefe",
558         "type": "other",
559         "name": "other",
560         "xml": "<outcome value='Other'>\n",
561         "comments": "",
562         "outputs": 1,
563         "x": 746.8093185424805,
564         "y": 1219.9524402618408,
565         "z": "d6c1fe8e.0dbfc",
566         "wires": [
567             [
568                 "2653a44e.adc4ec"
569             ]
570         ]
571     },
572     {
573         "id": "e78ecd27.54c89",
574         "type": "set",
575         "name": "set service-topology onap-model-information",
576         "xml": "<set>\n<parameter name='service-data.service-topology.onap-model-information.'\n  value='`$service-topology-operation-input.service-information.onap-model-information.`' />\n",
577         "comments": "",
578         "x": 590.7143096923828,
579         "y": 1126.142632484436,
580         "z": "d6c1fe8e.0dbfc",
581         "wires": []
582     },
583     {
584         "id": "e75df5d6.b27108",
585         "type": "failure",
586         "name": "not-found",
587         "xml": "<outcome value='not-found'>\n",
588         "comments": "",
589         "outputs": 1,
590         "x": 747.5237121582031,
591         "y": 1037.3333368301392,
592         "z": "d6c1fe8e.0dbfc",
593         "wires": [
594             [
595                 "d46d87d4.1042c8"
596             ]
597         ]
598     },
599     {
600         "id": "d46d87d4.1042c8",
601         "type": "returnFailure",
602         "name": "return failure",
603         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"The service instance does not exist in AAI\" />\n",
604         "comments": "",
605         "x": 890.8570098876953,
606         "y": 1035.6667108535767,
607         "z": "d6c1fe8e.0dbfc",
608         "wires": []
609     },
610     {
611         "id": "11216bc9.793f94",
612         "type": "call",
613         "name": "call GENERIC-RESOURCE-API:generate-unique-name",
614         "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
615         "comments": "",
616         "outputs": 1,
617         "x": 1261.1904754638672,
618         "y": 762.4761629104614,
619         "z": "d6c1fe8e.0dbfc",
620         "wires": [
621             [
622                 "d2b85a61.8d6948",
623                 "6193cfa1.f5b12"
624             ]
625         ]
626     },
627     {
628         "id": "d2b85a61.8d6948",
629         "type": "failure",
630         "name": "failure",
631         "xml": "<outcome value='failure'>\n",
632         "comments": "",
633         "outputs": 1,
634         "x": 1601.1904487609863,
635         "y": 737.476222038269,
636         "z": "d6c1fe8e.0dbfc",
637         "wires": [
638             [
639                 "ed4311d6.fdf73"
640             ]
641         ]
642     },
643     {
644         "id": "6193cfa1.f5b12",
645         "type": "success",
646         "name": "success",
647         "xml": "<outcome value='success'>\n",
648         "comments": "",
649         "outputs": 1,
650         "x": 1604.5237986246743,
651         "y": 787.1428651809692,
652         "z": "d6c1fe8e.0dbfc",
653         "wires": [
654             [
655                 "42ec1fd9.8064a"
656             ]
657         ]
658     },
659     {
660         "id": "730225bd.4a385c",
661         "type": "set",
662         "name": "set variables for generating unique name",
663         "xml": "<set>\n<parameter name='generate-unique-name-input.index-table-name' value='SERVICE_INSTANCE_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='service_instance_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='SERVICE_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$db.service-model.service-instance-name-prefix + '_'`\" />\n",
664         "comments": "",
665         "x": 1216.190559387207,
666         "y": 702.142972946167,
667         "z": "d6c1fe8e.0dbfc",
668         "wires": []
669     },
670     {
671         "id": "42ec1fd9.8064a",
672         "type": "set",
673         "name": "set tmp.service-instance-name to generated name",
674         "xml": "<set>\n<parameter name='tmp.service-instance-name' value='`$generate-unique-name-output.generated-name`' />\n",
675         "comments": "",
676         "x": 1888.5713500976562,
677         "y": 786.1904458999634,
678         "z": "d6c1fe8e.0dbfc",
679         "wires": []
680     },
681     {
682         "id": "ed4311d6.fdf73",
683         "type": "returnFailure",
684         "name": "return failure",
685         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`$generate-unique-name-output.error-message`\" />\n",
686         "comments": "",
687         "x": 1769.0475616455078,
688         "y": 736.9047336578369,
689         "z": "d6c1fe8e.0dbfc",
690         "wires": []
691     },
692     {
693         "id": "7dd34c72.469dd4",
694         "type": "block",
695         "name": "block : atomic",
696         "xml": "<block atomic=\"true\">",
697         "atomic": "true",
698         "outputs": 1,
699         "x": 926.8571319580078,
700         "y": 857.4285793304443,
701         "z": "d6c1fe8e.0dbfc",
702         "wires": [
703             [
704                 "39e93876.652cd8",
705                 "bbc8a4da.124f28"
706             ]
707         ]
708     },
709     {
710         "id": "bbc8a4da.124f28",
711         "type": "call",
712         "name": "call GENERIC-RESOURCE-API:generate-unique-name",
713         "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
714         "comments": "",
715         "outputs": 1,
716         "x": 1256.8571472167969,
717         "y": 882.0952301025391,
718         "z": "d6c1fe8e.0dbfc",
719         "wires": [
720             [
721                 "8ea07c5d.48a34",
722                 "d227b72.98c2048"
723             ]
724         ]
725     },
726     {
727         "id": "8ea07c5d.48a34",
728         "type": "failure",
729         "name": "failure",
730         "xml": "<outcome value='failure'>\n",
731         "comments": "",
732         "outputs": 1,
733         "x": 1596.857105255127,
734         "y": 855.428638458252,
735         "z": "d6c1fe8e.0dbfc",
736         "wires": [
737             [
738                 "9626e69f.8bab88"
739             ]
740         ]
741     },
742     {
743         "id": "d227b72.98c2048",
744         "type": "success",
745         "name": "success",
746         "xml": "<outcome value='success'>\n",
747         "comments": "",
748         "outputs": 1,
749         "x": 1600.190455118815,
750         "y": 907.0952816009521,
751         "z": "d6c1fe8e.0dbfc",
752         "wires": [
753             [
754                 "6c3ec4cc.7720cc"
755             ]
756         ]
757     },
758     {
759         "id": "39e93876.652cd8",
760         "type": "set",
761         "name": "set variables for generating unique name",
762         "xml": "<set>\n<parameter name='generate-unique-name-input.name-table-type' value='SERVICE_INSTANCE' />\n<parameter name='generate-unique-name-input.supplied-name' value='`$service-topology-operation-input.service-request-input.service-instance-name`' />\n",
763         "comments": "",
764         "x": 1215.1905212402344,
765         "y": 833.7619361877441,
766         "z": "d6c1fe8e.0dbfc",
767         "wires": []
768     },
769     {
770         "id": "9626e69f.8bab88",
771         "type": "returnFailure",
772         "name": "return failure",
773         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`$generate-unique-name-output.error-message`\" />\n",
774         "comments": "",
775         "x": 1764.7142181396484,
776         "y": 854.8571500778198,
777         "z": "d6c1fe8e.0dbfc",
778         "wires": []
779     },
780     {
781         "id": "42c43d09.6995e4",
782         "type": "failure",
783         "name": "failure",
784         "xml": "<outcome value='failure'>\n",
785         "comments": "",
786         "outputs": 1,
787         "x": 788.5713310241699,
788         "y": 472.19044494628906,
789         "z": "d6c1fe8e.0dbfc",
790         "wires": [
791             [
792                 "43d55ae4.17c224"
793             ]
794         ]
795     },
796     {
797         "id": "141523e4.26033c",
798         "type": "not-found",
799         "name": "not-found",
800         "xml": "<outcome value='not-found'>\n",
801         "comments": "",
802         "outputs": 1,
803         "x": 797.1427612304688,
804         "y": 515.4761581420898,
805         "z": "d6c1fe8e.0dbfc",
806         "wires": [
807             [
808                 "74dca068.1349"
809             ]
810         ]
811     },
812     {
813         "id": "43d55ae4.17c224",
814         "type": "returnFailure",
815         "name": "return failure",
816         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"Error reading SERVICE_MODEL table\" />\n",
817         "comments": "",
818         "x": 961.4284973144531,
819         "y": 470.7618885040283,
820         "z": "d6c1fe8e.0dbfc",
821         "wires": []
822     },
823     {
824         "id": "ad8ed89.4b77b28",
825         "type": "outcome",
826         "name": "NULL",
827         "xml": "<outcome value=''>",
828         "comments": "",
829         "outputs": 1,
830         "x": 698.3332824707031,
831         "y": 333.66668128967285,
832         "z": "d6c1fe8e.0dbfc",
833         "wires": [
834             [
835                 "8fe971e9.f5c2"
836             ]
837         ]
838     },
839     {
840         "id": "ee8ac40f.7f3d48",
841         "type": "other",
842         "name": "PendingDelete",
843         "xml": "<outcome value='PendingDelete'>\n",
844         "comments": "",
845         "outputs": 1,
846         "x": 721.0000114440918,
847         "y": 422.3333396911621,
848         "z": "d6c1fe8e.0dbfc",
849         "wires": [
850             [
851                 "840bc4c1.bd8ae8"
852             ]
853         ]
854     },
855     {
856         "id": "840bc4c1.bd8ae8",
857         "type": "returnFailure",
858         "name": "return failure",
859         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"The requested service is pending deletion\" />\n",
860         "comments": "",
861         "x": 903.333309173584,
862         "y": 422.3333501815796,
863         "z": "d6c1fe8e.0dbfc",
864         "wires": []
865     },
866     {
867         "id": "8fe971e9.f5c2",
868         "type": "block",
869         "name": "block",
870         "xml": "<block>\n",
871         "atomic": "false",
872         "comments": "",
873         "outputs": 1,
874         "x": 884.9999923706055,
875         "y": 332.6667003631592,
876         "z": "d6c1fe8e.0dbfc",
877         "wires": [
878             []
879         ]
880     }
881 ]