Adding connectivity attachment Resource DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_connection-attachment-topology-operation.json
1 [
2   {
3     "id": "b2143086.a417",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 109.03125,
8     "y": 37.03125,
9     "z": "efb71132.eba6e",
10     "wires": [
11       [
12         "7e88a37a.69419c"
13       ]
14     ]
15   },
16   {
17     "id": "7e88a37a.69419c",
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": 247.03126525878906,
26     "y": 98.03124809265137,
27     "z": "efb71132.eba6e",
28     "wires": [
29       [
30         "90bc847a.1e90f8"
31       ]
32     ]
33   },
34   {
35     "id": "90bc847a.1e90f8",
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": 282.0312805175781,
42     "y": 146.03127670288086,
43     "z": "efb71132.eba6e",
44     "wires": [
45       [
46         "bf0dea50.c6f6f8"
47       ]
48     ]
49   },
50   {
51     "id": "bf0dea50.c6f6f8",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 207.03125,
58     "y": 224.03124237060547,
59     "z": "efb71132.eba6e",
60     "wires": [
61       [
62         "4b652dbe.7deec4",
63         "976e09a7.a23c78",
64         "d692689.8b14098",
65         "f2e8c4be.f6edf8"
66       ]
67     ]
68   },
69   {
70     "id": "4b652dbe.7deec4",
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": 421.40042877197266,
76     "y": 836.8741173744202,
77     "z": "efb71132.eba6e",
78     "wires": [
79
80     ]
81   },
82   {
83     "id": "976e09a7.a23c78",
84     "type": "switchNode",
85     "name": "switch svc-action",
86     "xml": "<switch test='`$connection-attachment-topology-operation-input.sdnc-request-header.svc-action`'>\n",
87     "comments": "",
88     "outputs": 1,
89     "x": 428.0311737060547,
90     "y": 383.44496059417725,
91     "z": "efb71132.eba6e",
92     "wires": [
93       [
94         "7df40438.8d552c",
95         "854b6002.a361e",
96         "d0a5f285.16e91",
97         "a7c210e.8aeb8f",
98         "d7a3669.7308f98"
99       ]
100     ]
101   },
102   {
103     "id": "d692689.8b14098",
104     "type": "call",
105     "name": "call GENERIC-RESOURCE-API:validate-connection-attachment-input",
106     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-connection-attachment-input' mode='sync' >\n",
107     "comments": "",
108     "outputs": 1,
109     "x": 619.6026916503906,
110     "y": 204.01640129089355,
111     "z": "efb71132.eba6e",
112     "wires": [
113       [
114
115       ]
116     ]
117   },
118   {
119     "id": "7df40438.8d552c",
120     "type": "other",
121     "name": "activate",
122     "xml": "<outcome value='activate'>\n",
123     "comments": "",
124     "outputs": 1,
125     "x": 643.3169174194336,
126     "y": 392.58784008026123,
127     "z": "efb71132.eba6e",
128     "wires": [
129       [
130         "c747bb59.396bf8"
131       ]
132     ]
133   },
134   {
135     "id": "854b6002.a361e",
136     "type": "other",
137     "name": "deactivate",
138     "xml": "<outcome value='deactivate'>\n",
139     "comments": "",
140     "outputs": 1,
141     "x": 653.3169784545898,
142     "y": 673.5880031585693,
143     "z": "efb71132.eba6e",
144     "wires": [
145       [
146         "5f2c7e54.e5319"
147       ]
148     ]
149   },
150   {
151     "id": "d0a5f285.16e91",
152     "type": "other",
153     "name": "other",
154     "xml": "<outcome value='Other'>\n",
155     "comments": "",
156     "outputs": 1,
157     "x": 642.6502876281738,
158     "y": 758.9214267730713,
159     "z": "efb71132.eba6e",
160     "wires": [
161       [
162         "63b93e5c.700f6"
163       ]
164     ]
165   },
166   {
167     "id": "63b93e5c.700f6",
168     "type": "returnFailure",
169     "name": "return failure",
170     "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",
171     "comments": "",
172     "x": 824.6502838134766,
173     "y": 757.9214363098145,
174     "z": "efb71132.eba6e",
175     "wires": [
176
177     ]
178   },
179   {
180     "id": "f2e8c4be.f6edf8",
181     "type": "set",
182     "name": "Set final indicator to Y",
183     "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
184     "comments": "",
185     "x": 440.4281234741211,
186     "y": 796.0324559211731,
187     "z": "efb71132.eba6e",
188     "wires": [
189
190     ]
191   },
192   {
193     "id": "a7c210e.8aeb8f",
194     "type": "other",
195     "name": "create",
196     "xml": "<outcome value='create'>\n",
197     "comments": "",
198     "outputs": 1,
199     "x": 642.5576133728027,
200     "y": 257.19257259368896,
201     "z": "efb71132.eba6e",
202     "wires": [
203       [
204         "8d1575e7.3d39d8"
205       ]
206     ]
207   },
208   {
209     "id": "d7a3669.7308f98",
210     "type": "other",
211     "name": "delete",
212     "xml": "<outcome value='delete'>\n",
213     "comments": "",
214     "outputs": 1,
215     "x": 647.8909645080566,
216     "y": 533.8593759536743,
217     "z": "efb71132.eba6e",
218     "wires": [
219       [
220         "347f7912.887506"
221       ]
222     ]
223   },
224   {
225     "id": "380d46d2.a08ada",
226     "type": "call",
227     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-create",
228     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-create' mode='sync' >\n",
229     "comments": "",
230     "outputs": 1,
231     "x": 1537.1175537109375,
232     "y": 208.57203483581543,
233     "z": "efb71132.eba6e",
234     "wires": [
235       [
236
237       ]
238     ]
239   },
240   {
241     "id": "8d1575e7.3d39d8",
242     "type": "switchNode",
243     "name": "switch request-action",
244     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
245     "comments": "",
246     "outputs": 1,
247     "x": 833.5313034057617,
248     "y": 256.0312566757202,
249     "z": "efb71132.eba6e",
250     "wires": [
251       [
252         "b4498aac.7cb2b8",
253         "ed77a730.056558"
254       ]
255     ]
256   },
257   {
258     "id": "b4498aac.7cb2b8",
259     "type": "outcome",
260     "name": "CreateSOTNAttachmentInstance",
261     "xml": "<outcome value='CreateSOTNAttachmentInstance'>",
262     "comments": "",
263     "outputs": 1,
264     "x": 1088.864517211914,
265     "y": 208.03106307983398,
266     "z": "efb71132.eba6e",
267     "wires": [
268       [
269         "380d46d2.a08ada"
270       ]
271     ]
272   },
273   {
274     "id": "ed77a730.056558",
275     "type": "outcome",
276     "name": "other",
277     "xml": "<outcome value='other'>",
278     "comments": "",
279     "outputs": 1,
280     "x": 1018.8646240234375,
281     "y": 299.69779205322266,
282     "z": "efb71132.eba6e",
283     "wires": [
284       [
285         "1b79383c.71b538"
286       ]
287     ]
288   },
289   {
290     "id": "1b79383c.71b538",
291     "type": "returnFailure",
292     "name": "return failure",
293     "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",
294     "comments": "",
295     "x": 1184.5312881469727,
296     "y": 300.03125762939453,
297     "z": "efb71132.eba6e",
298     "wires": [
299
300     ]
301   },
302   {
303     "id": "b97ace55.086d3",
304     "type": "call",
305     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-activate",
306     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-activate' mode='sync' >\n",
307     "comments": "",
308     "outputs": 1,
309     "x": 1546.5312957763672,
310     "y": 343.03125953674316,
311     "z": "efb71132.eba6e",
312     "wires": [
313       [
314
315       ]
316     ]
317   },
318   {
319     "id": "a6785aab.86f948",
320     "type": "outcome",
321     "name": "ActivateSOTNAttachmentInstance",
322     "xml": "<outcome value='ActivateSOTNAttachmentInstance'>",
323     "comments": "",
324     "outputs": 1,
325     "x": 1096.278335571289,
326     "y": 345.4902935028076,
327     "z": "efb71132.eba6e",
328     "wires": [
329       [
330         "b97ace55.086d3"
331       ]
332     ]
333   },
334   {
335     "id": "d100865f.7e59f8",
336     "type": "outcome",
337     "name": "other",
338     "xml": "<outcome value='other'>",
339     "comments": "",
340     "outputs": 1,
341     "x": 1026.2784423828125,
342     "y": 437.1570224761963,
343     "z": "efb71132.eba6e",
344     "wires": [
345       [
346         "19062ead.ade691"
347       ]
348     ]
349   },
350   {
351     "id": "bbd40a3d.52a218",
352     "type": "outcome",
353     "name": "DeactivateSOTNAttachmentInstance",
354     "xml": "<outcome value='DeactivateSOTNAttachmentInstance'>",
355     "comments": "",
356     "outputs": 1,
357     "x": 1115.8645477294922,
358     "y": 484.0310802459717,
359     "z": "efb71132.eba6e",
360     "wires": [
361       [
362         "cdb50b2f.8ff328"
363       ]
364     ]
365   },
366   {
367     "id": "6647d681.d75a78",
368     "type": "outcome",
369     "name": "other",
370     "xml": "<outcome value='other'>",
371     "comments": "",
372     "outputs": 1,
373     "x": 1030.8645706176758,
374     "y": 575.6977853775024,
375     "z": "efb71132.eba6e",
376     "wires": [
377       [
378         "dab4a1b3.5c9b3"
379       ]
380     ]
381   },
382   {
383     "id": "cdb50b2f.8ff328",
384     "type": "call",
385     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-deactivate",
386     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-deactivate' mode='sync' >\n",
387     "comments": "",
388     "outputs": 1,
389     "x": 1574.5313720703125,
390     "y": 484.03126335144043,
391     "z": "efb71132.eba6e",
392     "wires": [
393       [
394
395       ]
396     ]
397   },
398   {
399     "id": "8c01d720.070a78",
400     "type": "outcome",
401     "name": "DeleteSOTNAttachmentInstance",
402     "xml": "<outcome value='DeleteSOTNAttachmentInstance'>",
403     "comments": "",
404     "outputs": 1,
405     "x": 1104.8644638061523,
406     "y": 625.0310564041138,
407     "z": "efb71132.eba6e",
408     "wires": [
409       [
410         "58c79286.6e607c"
411       ]
412     ]
413   },
414   {
415     "id": "aa83e7c.d9f1218",
416     "type": "outcome",
417     "name": "other",
418     "xml": "<outcome value='other'>",
419     "comments": "",
420     "outputs": 1,
421     "x": 1034.8645706176758,
422     "y": 716.6977853775024,
423     "z": "efb71132.eba6e",
424     "wires": [
425       [
426         "4e0c491c.1e9da8"
427       ]
428     ]
429   },
430   {
431     "id": "58c79286.6e607c",
432     "type": "call",
433     "name": "call GENERIC-RESOURCE-API:sotn-attachment-topology-operation-delete",
434     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-attachment-topology-operation-delete' mode='sync' >\n",
435     "comments": "",
436     "outputs": 1,
437     "x": 1560.5313415527344,
438     "y": 626.0312671661377,
439     "z": "efb71132.eba6e",
440     "wires": [
441       [
442
443       ]
444     ]
445   },
446   {
447     "id": "c747bb59.396bf8",
448     "type": "switchNode",
449     "name": "switch request-action",
450     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
451     "comments": "",
452     "outputs": 1,
453     "x": 831.0313110351562,
454     "y": 397.03126335144043,
455     "z": "efb71132.eba6e",
456     "wires": [
457       [
458         "a6785aab.86f948",
459         "d100865f.7e59f8"
460       ]
461     ]
462   },
463   {
464     "id": "347f7912.887506",
465     "type": "switchNode",
466     "name": "switch request-action",
467     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
468     "comments": "",
469     "outputs": 1,
470     "x": 845.03125,
471     "y": 538.03125,
472     "z": "efb71132.eba6e",
473     "wires": [
474       [
475         "bbd40a3d.52a218",
476         "6647d681.d75a78"
477       ]
478     ]
479   },
480   {
481     "id": "5f2c7e54.e5319",
482     "type": "switchNode",
483     "name": "switch request-action",
484     "xml": "<switch test='`$connection-attachment-topology-operation-input.request-information.request-action`'>\n",
485     "comments": "",
486     "outputs": 1,
487     "x": 848.03125,
488     "y": 673.03125,
489     "z": "efb71132.eba6e",
490     "wires": [
491       [
492         "8c01d720.070a78",
493         "aa83e7c.d9f1218"
494       ]
495     ]
496   },
497   {
498     "id": "19062ead.ade691",
499     "type": "returnFailure",
500     "name": "return failure",
501     "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",
502     "comments": "",
503     "x": 1190.03125,
504     "y": 437.03125,
505     "z": "efb71132.eba6e",
506     "wires": [
507
508     ]
509   },
510   {
511     "id": "dab4a1b3.5c9b3",
512     "type": "returnFailure",
513     "name": "return failure",
514     "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",
515     "comments": "",
516     "x": 1198.03125,
517     "y": 577.03125,
518     "z": "efb71132.eba6e",
519     "wires": [
520
521     ]
522   },
523   {
524     "id": "4e0c491c.1e9da8",
525     "type": "returnFailure",
526     "name": "return failure",
527     "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",
528     "comments": "",
529     "x": 1203.03125,
530     "y": 716.03125,
531     "z": "efb71132.eba6e",
532     "wires": [
533
534     ]
535   }
536 ]