Adding site Resource DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vnf-topology-operation.json
1 [
2   {
3     "id": "1b5f4355.88b3ed",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 136,
8     "y": 81.41365623474121,
9     "z": "c9c2af7b.65cd3",
10     "wires": [
11       [
12         "92410749.e30c28"
13       ]
14     ]
15   },
16   {
17     "id": "92410749.e30c28",
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": 211.28570556640625,
26     "y": 121.65176773071289,
27     "z": "c9c2af7b.65cd3",
28     "wires": [
29       [
30         "de7a7cf0.2991d"
31       ]
32     ]
33   },
34   {
35     "id": "de7a7cf0.2991d",
36     "type": "method",
37     "name": "method vnf-topology-operation",
38     "xml": "<method rpc='vnf-topology-operation' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 204.42862701416016,
42     "y": 161.4136505126953,
43     "z": "c9c2af7b.65cd3",
44     "wires": [
45       [
46         "867be286.94ccc"
47       ]
48     ]
49   },
50   {
51     "id": "281a9dd6.337dd2",
52     "type": "comment",
53     "name": "vnf-topology-operation",
54     "info": "",
55     "comments": "",
56     "x": 530.344856262207,
57     "y": 29,
58     "z": "c9c2af7b.65cd3",
59     "wires": [
60       
61     ]
62   },
63   {
64     "id": "867be286.94ccc",
65     "type": "block",
66     "name": "block : atomic",
67     "xml": "<block atomic=\"true\">",
68     "atomic": "true",
69     "outputs": 1,
70     "x": 220.16676330566406,
71     "y": 348.10718727111816,
72     "z": "c9c2af7b.65cd3",
73     "wires": [
74       [
75         "fe43f540.d09078",
76         "15193abc.c22c05",
77         "fc3ae627.2d5b18"
78       ]
79     ]
80   },
81   {
82     "id": "fe43f540.d09078",
83     "type": "returnSuccess",
84     "name": "return success",
85     "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",
86     "comments": "",
87     "x": 512.6667175292969,
88     "y": 498.27122020721436,
89     "z": "c9c2af7b.65cd3",
90     "wires": [
91       
92     ]
93   },
94   {
95     "id": "15193abc.c22c05",
96     "type": "switchNode",
97     "name": "switch svc-action",
98     "xml": "<switch test='`$vnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
99     "comments": "",
100     "outputs": 1,
101     "x": 515.5714340209961,
102     "y": 346.31843090057373,
103     "z": "c9c2af7b.65cd3",
104     "wires": [
105       [
106         "a43184a6.086e28",
107         "7b06cbd3.e89e84",
108         "dae5d288.e7a92",
109         "7acf72d2.60660c",
110         "2e7ef9bc.356346",
111         "d945d7c6.11f878",
112         "bd3763ee.b90e6"
113       ]
114     ]
115   },
116   {
117     "id": "a43184a6.086e28",
118     "type": "outcome",
119     "name": "assign",
120     "xml": "<outcome value='assign'>\n",
121     "comments": "",
122     "outputs": 1,
123     "x": 927.3809661865234,
124     "y": 56.937567710876465,
125     "z": "c9c2af7b.65cd3",
126     "wires": [
127       [
128         "19bbb0d.1420e4f"
129       ]
130     ]
131   },
132   {
133     "id": "7b06cbd3.e89e84",
134     "type": "outcome",
135     "name": "unassign",
136     "xml": "<outcome value='unassign'>\n",
137     "comments": "",
138     "outputs": 1,
139     "x": 943.4286308288574,
140     "y": 487.12828254699707,
141     "z": "c9c2af7b.65cd3",
142     "wires": [
143       [
144         "c0267b56.9f8598"
145       ]
146     ]
147   },
148   {
149     "id": "7acf72d2.60660c",
150     "type": "other",
151     "name": "other",
152     "xml": "<outcome value='Other'>\n",
153     "comments": "",
154     "outputs": 1,
155     "x": 932.1428680419922,
156     "y": 867.3183660507202,
157     "z": "c9c2af7b.65cd3",
158     "wires": [
159       [
160         "7fb1d50a.a61dfc"
161       ]
162     ]
163   },
164   {
165     "id": "7fb1d50a.a61dfc",
166     "type": "returnFailure",
167     "name": "return failure",
168     "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=\"`$vnf-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
169     "comments": "",
170     "x": 1165.3332977294922,
171     "y": 867.3184270858765,
172     "z": "c9c2af7b.65cd3",
173     "wires": [
174       
175     ]
176   },
177   {
178     "id": "fc3ae627.2d5b18",
179     "type": "call",
180     "name": "call GENERIC-RESOURCE-API:validate-vnf-input",
181     "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-vnf-input' mode='sync' >\n",
182     "comments": "",
183     "outputs": 1,
184     "x": 621.4166870117188,
185     "y": 237.79471588134766,
186     "z": "c9c2af7b.65cd3",
187     "wires": [
188       [
189         
190       ]
191     ]
192   },
193   {
194     "id": "19bbb0d.1420e4f",
195     "type": "call",
196     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-assign",
197     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign' mode='sync' >\n",
198     "comments": "",
199     "outputs": 1,
200     "x": 1269.5238189697266,
201     "y": 56.50902843475342,
202     "z": "c9c2af7b.65cd3",
203     "wires": [
204       [
205         
206       ]
207     ]
208   },
209   {
210     "id": "989adce1.617b6",
211     "type": "call",
212     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-deactivate",
213     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-deactivate' mode='sync' >\n",
214     "comments": "",
215     "outputs": 1,
216     "x": 1750.8571319580078,
217     "y": 399.84235858917236,
218     "z": "c9c2af7b.65cd3",
219     "wires": [
220       [
221         
222       ]
223     ]
224   },
225   {
226     "id": "c0267b56.9f8598",
227     "type": "call",
228     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-unassign",
229     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-unassign' mode='sync' >\n",
230     "comments": "",
231     "outputs": 1,
232     "x": 1288.5237274169922,
233     "y": 486.8424139022827,
234     "z": "c9c2af7b.65cd3",
235     "wires": [
236       [
237         
238       ]
239     ]
240   },
241   {
242     "id": "dae5d288.e7a92",
243     "type": "outcome",
244     "name": "deactivate",
245     "xml": "<outcome value='deactivate'>\n",
246     "comments": "",
247     "outputs": 1,
248     "x": 950.5237579345703,
249     "y": 342.5090456008911,
250     "z": "c9c2af7b.65cd3",
251     "wires": [
252       [
253         "d35c6654.dff7f8"
254       ]
255     ]
256   },
257   {
258     "id": "b233aed1.7cc8b",
259     "type": "call",
260     "name": "call GENERIC-RESOURCE-API:vnf-topology-operation-activate",
261     "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-activate' mode='sync' >\n",
262     "comments": "",
263     "outputs": 1,
264     "x": 1692.6665802001953,
265     "y": 221.41364765167236,
266     "z": "c9c2af7b.65cd3",
267     "wires": [
268       [
269         
270       ]
271     ]
272   },
273   {
274     "id": "2e7ef9bc.356346",
275     "type": "outcome",
276     "name": "activate",
277     "xml": "<outcome value='activate'>\n",
278     "comments": "",
279     "outputs": 1,
280     "x": 930.3333053588867,
281     "y": 148.08033561706543,
282     "z": "c9c2af7b.65cd3",
283     "wires": [
284       [
285         "b8b2367a.dc9308"
286       ]
287     ]
288   },
289   {
290     "id": "d945d7c6.11f878",
291     "type": "outcome",
292     "name": "create",
293     "xml": "<outcome value='create'>\n",
294     "comments": "",
295     "outputs": 1,
296     "x": 945.0001182556152,
297     "y": 587.5000038146973,
298     "z": "c9c2af7b.65cd3",
299     "wires": [
300       [
301         "11cfb10a.0c9b2f"
302       ]
303     ]
304   },
305   {
306     "id": "bd3763ee.b90e6",
307     "type": "outcome",
308     "name": "delete",
309     "xml": "<outcome value='delete'>\n",
310     "comments": "",
311     "outputs": 1,
312     "x": 943.0001068115234,
313     "y": 730.5000066757202,
314     "z": "c9c2af7b.65cd3",
315     "wires": [
316       [
317         "b6227308.758fb"
318       ]
319     ]
320   },
321   {
322     "id": "3b079f6f.6575e",
323     "type": "switchNode",
324     "name": "switch request-action",
325     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
326     "comments": "",
327     "outputs": 1,
328     "x": 1172.0000762939453,
329     "y": 198.5000123977661,
330     "z": "c9c2af7b.65cd3",
331     "wires": [
332       [
333         "91e1f35b.e83e1",
334         "9ab20bbe.72bfe8"
335       ]
336     ]
337   },
338   {
339     "id": "9ab20bbe.72bfe8",
340     "type": "outcome",
341     "name": "ActivateSiteInstance",
342     "xml": "<outcome value='ActivateSiteInstance'>",
343     "comments": "",
344     "outputs": 1,
345     "x": 1385.4762725830078,
346     "y": 129.979229927063,
347     "z": "c9c2af7b.65cd3",
348     "wires": [
349       [
350         "cc08e8cd.1386a8"
351       ]
352     ]
353   },
354   {
355     "id": "91e1f35b.e83e1",
356     "type": "other",
357     "name": "other",
358     "xml": "<outcome value='Other'>\n",
359     "comments": "",
360     "outputs": 1,
361     "x": 1354.381004333496,
362     "y": 221.3572244644165,
363     "z": "c9c2af7b.65cd3",
364     "wires": [
365       [
366         "b233aed1.7cc8b"
367       ]
368     ]
369   },
370   {
371     "id": "b8b2367a.dc9308",
372     "type": "block",
373     "name": "block : atomic",
374     "xml": "<block atomic=\"true\">",
375     "atomic": "true",
376     "outputs": 1,
377     "x": 1111.0000762939453,
378     "y": 143.5000123977661,
379     "z": "c9c2af7b.65cd3",
380     "wires": [
381       [
382         "3b079f6f.6575e"
383       ]
384     ]
385   },
386   {
387     "id": "cc08e8cd.1386a8",
388     "type": "call",
389     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-activate",
390     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-activate' mode='sync' >\n",
391     "comments": "",
392     "outputs": 1,
393     "x": 1759.0000762939453,
394     "y": 128.5000123977661,
395     "z": "c9c2af7b.65cd3",
396     "wires": [
397       [
398         
399       ]
400     ]
401   },
402   {
403     "id": "c5b71763.802b68",
404     "type": "switchNode",
405     "name": "switch request-action",
406     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
407     "comments": "",
408     "outputs": 1,
409     "x": 1213.0000762939453,
410     "y": 375.5000123977661,
411     "z": "c9c2af7b.65cd3",
412     "wires": [
413       [
414         "68410e70.ad006",
415         "bb394983.2aedd8"
416       ]
417     ]
418   },
419   {
420     "id": "bb394983.2aedd8",
421     "type": "outcome",
422     "name": "DeActivateSiteInstance",
423     "xml": "<outcome value='DeActivateSiteInstance'>",
424     "comments": "",
425     "outputs": 1,
426     "x": 1426.4762725830078,
427     "y": 306.979229927063,
428     "z": "c9c2af7b.65cd3",
429     "wires": [
430       [
431         "91176b7.7e10a98"
432       ]
433     ]
434   },
435   {
436     "id": "68410e70.ad006",
437     "type": "other",
438     "name": "other",
439     "xml": "<outcome value='Other'>\n",
440     "comments": "",
441     "outputs": 1,
442     "x": 1395.381004333496,
443     "y": 398.3572244644165,
444     "z": "c9c2af7b.65cd3",
445     "wires": [
446       [
447         "989adce1.617b6"
448       ]
449     ]
450   },
451   {
452     "id": "d35c6654.dff7f8",
453     "type": "block",
454     "name": "block : atomic",
455     "xml": "<block atomic=\"true\">",
456     "atomic": "true",
457     "outputs": 1,
458     "x": 1152.0000762939453,
459     "y": 320.5000123977661,
460     "z": "c9c2af7b.65cd3",
461     "wires": [
462       [
463         "c5b71763.802b68"
464       ]
465     ]
466   },
467   {
468     "id": "91176b7.7e10a98",
469     "type": "call",
470     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-deactivate",
471     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-deactivate' mode='sync' >\n",
472     "comments": "",
473     "outputs": 1,
474     "x": 1796.0000762939453,
475     "y": 304.5000123977661,
476     "z": "c9c2af7b.65cd3",
477     "wires": [
478       [
479         
480       ]
481     ]
482   },
483   {
484     "id": "2493a0e1.8557e",
485     "type": "switchNode",
486     "name": "switch request-action",
487     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
488     "comments": "",
489     "outputs": 1,
490     "x": 1188.3336029052734,
491     "y": 640.086371421814,
492     "z": "c9c2af7b.65cd3",
493     "wires": [
494       [
495         "83563263.c6fd7",
496         "db1508ed.23aba8"
497       ]
498     ]
499   },
500   {
501     "id": "db1508ed.23aba8",
502     "type": "outcome",
503     "name": "CreateSiteInstance",
504     "xml": "<outcome value='CreateSiteInstance'>",
505     "comments": "",
506     "outputs": 1,
507     "x": 1401.809799194336,
508     "y": 571.5655889511108,
509     "z": "c9c2af7b.65cd3",
510     "wires": [
511       [
512         "614f2a06.d13b14"
513       ]
514     ]
515   },
516   {
517     "id": "83563263.c6fd7",
518     "type": "other",
519     "name": "other",
520     "xml": "<outcome value='Other'>\n",
521     "comments": "",
522     "outputs": 1,
523     "x": 1370.7145309448242,
524     "y": 662.9435834884644,
525     "z": "c9c2af7b.65cd3",
526     "wires": [
527       [
528         "b50447b1.828c48"
529       ]
530     ]
531   },
532   {
533     "id": "11cfb10a.0c9b2f",
534     "type": "block",
535     "name": "block : atomic",
536     "xml": "<block atomic=\"true\">",
537     "atomic": "true",
538     "outputs": 1,
539     "x": 1127.3336029052734,
540     "y": 585.086371421814,
541     "z": "c9c2af7b.65cd3",
542     "wires": [
543       [
544         "2493a0e1.8557e"
545       ]
546     ]
547   },
548   {
549     "id": "614f2a06.d13b14",
550     "type": "call",
551     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-create",
552     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-create' mode='sync' >\n",
553     "comments": "",
554     "outputs": 1,
555     "x": 1775.3336029052734,
556     "y": 570.086371421814,
557     "z": "c9c2af7b.65cd3",
558     "wires": [
559       [
560         
561       ]
562     ]
563   },
564   {
565     "id": "b50447b1.828c48",
566     "type": "block",
567     "name": "block",
568     "xml": "<block>\n",
569     "atomic": "false",
570     "comments": "",
571     "outputs": 1,
572     "x": 1511.0001068115234,
573     "y": 664.0000066757202,
574     "z": "c9c2af7b.65cd3",
575     "wires": [
576       [
577         
578       ]
579     ]
580   },
581   {
582     "id": "ae568733.43d4f8",
583     "type": "switchNode",
584     "name": "switch request-action",
585     "xml": "<switch test='`$vnf-topology-operation-input.request-information.request-action`'>\n",
586     "comments": "",
587     "outputs": 1,
588     "x": 1189.0001068115234,
589     "y": 783.0000066757202,
590     "z": "c9c2af7b.65cd3",
591     "wires": [
592       [
593         "7dcf461f.f62e18",
594         "3e92266c.ac902a"
595       ]
596     ]
597   },
598   {
599     "id": "3e92266c.ac902a",
600     "type": "outcome",
601     "name": "DeleteSiteInstance",
602     "xml": "<outcome value='DeleteSiteInstance'>",
603     "comments": "",
604     "outputs": 1,
605     "x": 1402.476303100586,
606     "y": 714.4792242050171,
607     "z": "c9c2af7b.65cd3",
608     "wires": [
609       [
610         "bb58fef3.31757"
611       ]
612     ]
613   },
614   {
615     "id": "7dcf461f.f62e18",
616     "type": "other",
617     "name": "other",
618     "xml": "<outcome value='Other'>\n",
619     "comments": "",
620     "outputs": 1,
621     "x": 1371.3810348510742,
622     "y": 805.8572187423706,
623     "z": "c9c2af7b.65cd3",
624     "wires": [
625       [
626         "efc8c613.2b0088"
627       ]
628     ]
629   },
630   {
631     "id": "b6227308.758fb",
632     "type": "block",
633     "name": "block : atomic",
634     "xml": "<block atomic=\"true\">",
635     "atomic": "true",
636     "outputs": 1,
637     "x": 1128.0001068115234,
638     "y": 728.0000066757202,
639     "z": "c9c2af7b.65cd3",
640     "wires": [
641       [
642         "ae568733.43d4f8"
643       ]
644     ]
645   },
646   {
647     "id": "bb58fef3.31757",
648     "type": "call",
649     "name": "call GENERIC-RESOURCE-API:sotn-vnf-topology-operation-delete",
650     "xml": "<call module='GENERIC-RESOURCE-API' rpc='sotn-vnf-topology-operation-delete' mode='sync' >\n",
651     "comments": "",
652     "outputs": 1,
653     "x": 1776.0001068115234,
654     "y": 713.0000066757202,
655     "z": "c9c2af7b.65cd3",
656     "wires": [
657       [
658         
659       ]
660     ]
661   },
662   {
663     "id": "efc8c613.2b0088",
664     "type": "block",
665     "name": "block",
666     "xml": "<block>\n",
667     "atomic": "false",
668     "comments": "",
669     "outputs": 1,
670     "x": 1511.6666107177734,
671     "y": 806.9136419296265,
672     "z": "c9c2af7b.65cd3",
673     "wires": [
674       [
675         
676       ]
677     ]
678   }
679 ]