Merge "connectivity attachment issue fix"
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_connection-attachment-topology-operation.json
1 [
2   {
3     "id": "7040c3da.af1dec",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 110.00390625,
8     "y": 64.00390625,
9     "z": "d74aac07.dc7e5",
10     "wires": [
11       [
12         "2925fee5.4b2612"
13       ]
14     ]
15   },
16   {
17     "id": "2925fee5.4b2612",
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": 248.00392150878906,
26     "y": 125.00390434265137,
27     "z": "d74aac07.dc7e5",
28     "wires": [
29       [
30         "b82edbfb.46a2a8"
31       ]
32     ]
33   },
34   {
35     "id": "b82edbfb.46a2a8",
36     "type": "method",
37     "name": "connection-attachment-topology-operation",
38     "xml": "<method rpc='connection-attachment-topology-operation' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 283.0039367675781,
42     "y": 173.00393295288086,
43     "z": "d74aac07.dc7e5",
44     "wires": [
45       [
46         "a9203dbc.c4a92"
47       ]
48     ]
49   },
50   {
51     "id": "a9203dbc.c4a92",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 208.00390625,
58     "y": 251.00389862060547,
59     "z": "d74aac07.dc7e5",
60     "wires": [
61       [
62         "d28295b8.2c2758",
63         "7f7eb3b.b67394c",
64         "779cd391.117a2c",
65         "3ccb66ff.5dacfa"
66       ]
67     ]
68   },
69   {
70     "id": "d28295b8.2c2758",
71     "type": "returnSuccess",
72     "name": "return success",
73     "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
74     "comments": "",
75     "x": 422.37308502197266,
76     "y": 863.8467736244202,
77     "z": "d74aac07.dc7e5",
78     "wires": []
79   },
80   {
81     "id": "7f7eb3b.b67394c",
82     "type": "switchNode",
83     "name": "switch svc-action",
84     "xml": "<switch test='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`'>\n",
85     "comments": "",
86     "outputs": 1,
87     "x": 429.0038299560547,
88     "y": 410.41761684417725,
89     "z": "d74aac07.dc7e5",
90     "wires": [
91       [
92         "bb04a1a3.bc9cc",
93         "e1cc92c7.25fd7",
94         "cf940d5c.e7317",
95         "935024a.1180cd8",
96         "50ef3ecb.f8e1d"
97       ]
98     ]
99   },
100   {
101     "id": "779cd391.117a2c",
102     "type": "call",
103     "name": "call GENERIC-RESOURCE-API:validate-connection-attachment-input",
104     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-connection-attachment-input' mode='sync' >\n",
105     "comments": "",
106     "outputs": 1,
107     "x": 620.5753479003906,
108     "y": 230.98905754089355,
109     "z": "d74aac07.dc7e5",
110     "wires": [
111       []
112     ]
113   },
114   {
115     "id": "bb04a1a3.bc9cc",
116     "type": "other",
117     "name": "activate",
118     "xml": "<outcome value='activate'>\n",
119     "comments": "",
120     "outputs": 1,
121     "x": 644.2895736694336,
122     "y": 419.56049633026123,
123     "z": "d74aac07.dc7e5",
124     "wires": [
125       [
126         "f86d00f8.fcf59"
127       ]
128     ]
129   },
130   {
131     "id": "e1cc92c7.25fd7",
132     "type": "other",
133     "name": "delete",
134     "xml": "<outcome value='delete'>\n",
135     "comments": "",
136     "outputs": 1,
137     "x": 654.2896347045898,
138     "y": 700.5606594085693,
139     "z": "d74aac07.dc7e5",
140     "wires": [
141       [
142         "7a0372ab.33be4c"
143       ]
144     ]
145   },
146   {
147     "id": "cf940d5c.e7317",
148     "type": "other",
149     "name": "other",
150     "xml": "<outcome value='Other'>\n",
151     "comments": "",
152     "outputs": 1,
153     "x": 643.6229438781738,
154     "y": 785.8940830230713,
155     "z": "d74aac07.dc7e5",
156     "wires": [
157       [
158         "903586f6.489208"
159       ]
160     ]
161   },
162   {
163     "id": "903586f6.489208",
164     "type": "returnFailure",
165     "name": "return failure",
166     "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=\"sdnc-request-header.svc-action is invalid\" />\n",
167     "comments": "",
168     "x": 825.6229400634766,
169     "y": 784.8940925598145,
170     "z": "d74aac07.dc7e5",
171     "wires": []
172   },
173   {
174     "id": "3ccb66ff.5dacfa",
175     "type": "set",
176     "name": "Set final indicator to Y",
177     "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
178     "comments": "",
179     "x": 441.4007797241211,
180     "y": 823.0051121711731,
181     "z": "d74aac07.dc7e5",
182     "wires": []
183   },
184   {
185     "id": "935024a.1180cd8",
186     "type": "other",
187     "name": "create",
188     "xml": "<outcome value='create'>\n",
189     "comments": "",
190     "outputs": 1,
191     "x": 643.5302696228027,
192     "y": 284.16522884368896,
193     "z": "d74aac07.dc7e5",
194     "wires": [
195       [
196         "76e064e5.59ef8c"
197       ]
198     ]
199   },
200   {
201     "id": "50ef3ecb.f8e1d",
202     "type": "other",
203     "name": "deactivate",
204     "xml": "<outcome value='deactivate'>\n",
205     "comments": "",
206     "outputs": 1,
207     "x": 648.8636207580566,
208     "y": 560.8320322036743,
209     "z": "d74aac07.dc7e5",
210     "wires": [
211       [
212         "c2dd69d2.09a368"
213       ]
214     ]
215   },
216   {
217     "id": "381cd5e6.60b05a",
218     "type": "call",
219     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-create",
220     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-create' mode='sync' >\n",
221     "comments": "",
222     "outputs": 1,
223     "x": 1538.0902099609375,
224     "y": 235.54469108581543,
225     "z": "d74aac07.dc7e5",
226     "wires": [
227       []
228     ]
229   },
230   {
231     "id": "76e064e5.59ef8c",
232     "type": "switchNode",
233     "name": "switch request-action",
234     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
235     "comments": "",
236     "outputs": 1,
237     "x": 834.5039596557617,
238     "y": 283.0039129257202,
239     "z": "d74aac07.dc7e5",
240     "wires": [
241       [
242         "73303973.3b9048",
243         "7c8a6efc.7a43c"
244       ]
245     ]
246   },
247   {
248     "id": "73303973.3b9048",
249     "type": "outcome",
250     "name": "CreateSOTNAttachmentInstance",
251     "xml": "<outcome value='CreateSOTNAttachmentInstance'>",
252     "comments": "",
253     "outputs": 1,
254     "x": 1089.837173461914,
255     "y": 235.00371932983398,
256     "z": "d74aac07.dc7e5",
257     "wires": [
258       [
259         "381cd5e6.60b05a"
260       ]
261     ]
262   },
263   {
264     "id": "7c8a6efc.7a43c",
265     "type": "outcome",
266     "name": "other",
267     "xml": "<outcome value='other'>",
268     "comments": "",
269     "outputs": 1,
270     "x": 1019.8372802734375,
271     "y": 326.67044830322266,
272     "z": "d74aac07.dc7e5",
273     "wires": [
274       [
275         "2e04dda8.211e22"
276       ]
277     ]
278   },
279   {
280     "id": "2e04dda8.211e22",
281     "type": "returnFailure",
282     "name": "return failure",
283     "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=\"`'Provided request-action=' + $connection-attachment-topology-operation-input.request-information.request-action + ' is not supported.'`\" />\n",
284     "comments": "",
285     "x": 1185.5039443969727,
286     "y": 327.00391387939453,
287     "z": "d74aac07.dc7e5",
288     "wires": []
289   },
290   {
291     "id": "c3ec8e4c.42bba",
292     "type": "call",
293     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-activate",
294     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-activate' mode='sync' >\n",
295     "comments": "",
296     "outputs": 1,
297     "x": 1547.5039520263672,
298     "y": 370.00391578674316,
299     "z": "d74aac07.dc7e5",
300     "wires": [
301       []
302     ]
303   },
304   {
305     "id": "e555e69b.d6dab8",
306     "type": "outcome",
307     "name": "ActivateSOTNAttachmentInstance",
308     "xml": "<outcome value='ActivateSOTNAttachmentInstance'>",
309     "comments": "",
310     "outputs": 1,
311     "x": 1097.250991821289,
312     "y": 372.4629497528076,
313     "z": "d74aac07.dc7e5",
314     "wires": [
315       [
316         "c3ec8e4c.42bba"
317       ]
318     ]
319   },
320   {
321     "id": "5c941c7c.d135c4",
322     "type": "outcome",
323     "name": "other",
324     "xml": "<outcome value='other'>",
325     "comments": "",
326     "outputs": 1,
327     "x": 1027.2510986328125,
328     "y": 464.1296787261963,
329     "z": "d74aac07.dc7e5",
330     "wires": [
331       [
332         "b0deba38.7b5228"
333       ]
334     ]
335   },
336   {
337     "id": "874a4de5.20f7a",
338     "type": "outcome",
339     "name": "DeactivateSOTNAttachmentInstance",
340     "xml": "<outcome value='DeactivateSOTNAttachmentInstance'>",
341     "comments": "",
342     "outputs": 1,
343     "x": 1116.8372039794922,
344     "y": 511.0037364959717,
345     "z": "d74aac07.dc7e5",
346     "wires": [
347       [
348         "4329778c.cafb48"
349       ]
350     ]
351   },
352   {
353     "id": "8f441f1b.ab4bb",
354     "type": "outcome",
355     "name": "other",
356     "xml": "<outcome value='other'>",
357     "comments": "",
358     "outputs": 1,
359     "x": 1031.8372268676758,
360     "y": 602.6704416275024,
361     "z": "d74aac07.dc7e5",
362     "wires": [
363       [
364         "5242314d.7fd95"
365       ]
366     ]
367   },
368   {
369     "id": "4329778c.cafb48",
370     "type": "call",
371     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-deactivate",
372     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-deactivate' mode='sync' >\n",
373     "comments": "",
374     "outputs": 1,
375     "x": 1575.5040283203125,
376     "y": 511.00391960144043,
377     "z": "d74aac07.dc7e5",
378     "wires": [
379       []
380     ]
381   },
382   {
383     "id": "18c3914d.1fd05f",
384     "type": "outcome",
385     "name": "DeleteSOTNAttachmentInstance",
386     "xml": "<outcome value='DeleteSOTNAttachmentInstance'>",
387     "comments": "",
388     "outputs": 1,
389     "x": 1105.8371200561523,
390     "y": 652.0037126541138,
391     "z": "d74aac07.dc7e5",
392     "wires": [
393       [
394         "1d1f5f1c.4ba391"
395       ]
396     ]
397   },
398   {
399     "id": "a82f11b4.25a05",
400     "type": "outcome",
401     "name": "other",
402     "xml": "<outcome value='other'>",
403     "comments": "",
404     "outputs": 1,
405     "x": 1035.8372268676758,
406     "y": 743.6704416275024,
407     "z": "d74aac07.dc7e5",
408     "wires": [
409       [
410         "c42475bd.4b30d8"
411       ]
412     ]
413   },
414   {
415     "id": "1d1f5f1c.4ba391",
416     "type": "call",
417     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-delete",
418     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-delete' mode='sync' >\n",
419     "comments": "",
420     "outputs": 1,
421     "x": 1561.5039978027344,
422     "y": 653.0039234161377,
423     "z": "d74aac07.dc7e5",
424     "wires": [
425       []
426     ]
427   },
428   {
429     "id": "f86d00f8.fcf59",
430     "type": "switchNode",
431     "name": "switch request-action",
432     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
433     "comments": "",
434     "outputs": 1,
435     "x": 832.0039672851562,
436     "y": 424.00391960144043,
437     "z": "d74aac07.dc7e5",
438     "wires": [
439       [
440         "e555e69b.d6dab8",
441         "5c941c7c.d135c4"
442       ]
443     ]
444   },
445   {
446     "id": "c2dd69d2.09a368",
447     "type": "switchNode",
448     "name": "switch request-action",
449     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
450     "comments": "",
451     "outputs": 1,
452     "x": 846.00390625,
453     "y": 565.00390625,
454     "z": "d74aac07.dc7e5",
455     "wires": [
456       [
457         "874a4de5.20f7a",
458         "8f441f1b.ab4bb"
459       ]
460     ]
461   },
462   {
463     "id": "7a0372ab.33be4c",
464     "type": "switchNode",
465     "name": "switch request-action",
466     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
467     "comments": "",
468     "outputs": 1,
469     "x": 849.00390625,
470     "y": 700.00390625,
471     "z": "d74aac07.dc7e5",
472     "wires": [
473       [
474         "18c3914d.1fd05f",
475         "a82f11b4.25a05"
476       ]
477     ]
478   },
479   {
480     "id": "b0deba38.7b5228",
481     "type": "returnFailure",
482     "name": "return failure",
483     "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=\"`'Provided request-action=' + $connection-attachment-topology-operation-input.request-information.request-action + ' is not supported.'`\" />\n",
484     "comments": "",
485     "x": 1191.00390625,
486     "y": 464.00390625,
487     "z": "d74aac07.dc7e5",
488     "wires": []
489   },
490   {
491     "id": "5242314d.7fd95",
492     "type": "returnFailure",
493     "name": "return failure",
494     "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=\"`'Provided request-action=' + $connection-attachment-topology-operation-input.request-information.request-action + ' is not supported.'`\" />\n",
495     "comments": "",
496     "x": 1199.00390625,
497     "y": 604.00390625,
498     "z": "d74aac07.dc7e5",
499     "wires": []
500   },
501   {
502     "id": "c42475bd.4b30d8",
503     "type": "returnFailure",
504     "name": "return failure",
505     "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=\"`'Provided request-action=' + $connection-attachment-topology-operation-input.request-information.request-action + ' is not supported.'`\" />\n",
506     "comments": "",
507     "x": 1204.00390625,
508     "y": 743.00390625,
509     "z": "d74aac07.dc7e5",
510     "wires": []
511   }
512 ]