Refactored SOTN and SDWAN DG
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / sdwan / GENERIC-RESOURCE-API_validate-sdwan-network-input-parameters.json
1 [
2   {
3     "id": "afeb4b10.2ec518",
4     "type": "dgstart",
5     "name": "DGSTART",
6     "outputs": 1,
7     "x": 107.00390625,
8     "y": 51.76191961765289,
9     "z": "7458dba4.32cb64",
10     "wires": [
11       [
12         "9ef25946.8f8138"
13       ]
14     ]
15   },
16   {
17     "id": "9ef25946.8f8138",
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": 352.2896194458008,
26     "y": 50.999998688697815,
27     "z": "7458dba4.32cb64",
28     "wires": [
29       [
30         "92a3d741.4ec998"
31       ]
32     ]
33   },
34   {
35     "id": "92a3d741.4ec998",
36     "type": "method",
37     "name": "validate-sdwan-network-input-parameters",
38     "xml": "<method rpc='validate-sdwan-network-input-parameters' mode='sync'>\n",
39     "comments": "",
40     "outputs": 1,
41     "x": 309.92059326171875,
42     "y": 126.01493704319,
43     "z": "7458dba4.32cb64",
44     "wires": [
45       [
46         "11ca3a4.93689c6"
47       ]
48     ]
49   },
50   {
51     "id": "11ca3a4.93689c6",
52     "type": "block",
53     "name": "block : atomic",
54     "xml": "<block atomic=\"true\">",
55     "atomic": "true",
56     "outputs": 1,
57     "x": 593.9206008911133,
58     "y": 114.01496183872223,
59     "z": "7458dba4.32cb64",
60     "wires": [
61       [
62         "2b12fe90.83a562",
63         "91c94469.10e2a8"
64       ]
65     ]
66   },
67   {
68     "id": "2b12fe90.83a562",
69     "type": "switchNode",
70     "name": "switch  svc-action",
71     "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
72     "comments": "",
73     "outputs": 1,
74     "x": 874.9206008911133,
75     "y": 109.01494753360748,
76     "z": "7458dba4.32cb64",
77     "wires": [
78       [
79         "d55b2509.439598"
80       ]
81     ]
82   },
83   {
84     "id": "d55b2509.439598",
85     "type": "outcome",
86     "name": "NULL",
87     "xml": "<outcome value=''>",
88     "comments": "",
89     "outputs": 1,
90     "x": 1065.6349029541016,
91     "y": 110.0149484872818,
92     "z": "7458dba4.32cb64",
93     "wires": [
94       [
95         "aa102400.8ed8a8"
96       ]
97     ]
98   },
99   {
100     "id": "aa102400.8ed8a8",
101     "type": "returnFailure",
102     "name": "return failure",
103     "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-request-id is a required input\" />\n",
104     "comments": "",
105     "x": 1240.0634536743164,
106     "y": 109.01494085788727,
107     "z": "7458dba4.32cb64",
108     "wires": []
109   },
110   {
111     "id": "91c94469.10e2a8",
112     "type": "switchNode",
113     "name": "switch svc-action",
114     "xml": "<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
115     "comments": "",
116     "outputs": 1,
117     "x": 175.92054748535156,
118     "y": 385.01496183872223,
119     "z": "7458dba4.32cb64",
120     "wires": [
121       [
122         "13054de7.037f72",
123         "196d19c4.864306",
124         "766974bb.0b0c8c",
125         "c4c13754.2744e8",
126         "d97f2f03.ab243"
127       ]
128     ]
129   },
130   {
131     "id": "13054de7.037f72",
132     "type": "outcome",
133     "name": "create",
134     "xml": "<outcome value='create'>\n",
135     "comments": "",
136     "outputs": 1,
137     "x": 384.50392150878906,
138     "y": 214.42858946323395,
139     "z": "7458dba4.32cb64",
140     "wires": [
141       [
142         "ce85f1c.60e7f1"
143       ]
144     ]
145   },
146   {
147     "id": "ce85f1c.60e7f1",
148     "type": "block",
149     "name": "block : atomic",
150     "xml": "<block atomic=\"true\">",
151     "atomic": "true",
152     "outputs": 1,
153     "x": 545.5039215087891,
154     "y": 214.42858946323395,
155     "z": "7458dba4.32cb64",
156     "wires": [
157       [
158         "14ed1ad7.45eb75"
159       ]
160     ]
161   },
162   {
163     "id": "196d19c4.864306",
164     "type": "outcome",
165     "name": "deactivate",
166     "xml": "<outcome value='deactivate'>\n",
167     "comments": "",
168     "outputs": 1,
169     "x": 357.49591064453125,
170     "y": 823.1904579401016,
171     "z": "7458dba4.32cb64",
172     "wires": [
173       [
174         "39810a58.826e96"
175       ]
176     ]
177   },
178   {
179     "id": "766974bb.0b0c8c",
180     "type": "outcome",
181     "name": "delete",
182     "xml": "<outcome value='delete'>\n",
183     "comments": "",
184     "outputs": 1,
185     "x": 361.2102928161621,
186     "y": 993.9050155878067,
187     "z": "7458dba4.32cb64",
188     "wires": [
189       [
190         "8132304a.a7e6f"
191       ]
192     ]
193   },
194   {
195     "id": "c4c13754.2744e8",
196     "type": "other",
197     "name": "other",
198     "xml": "<outcome value='Other'>\n",
199     "comments": "",
200     "outputs": 1,
201     "x": 360.97218322753906,
202     "y": 1167.3333011865616,
203     "z": "7458dba4.32cb64",
204     "wires": [
205       [
206         "4398ae0d.dda9f"
207       ]
208     ]
209   },
210   {
211     "id": "4398ae0d.dda9f",
212     "type": "returnFailure",
213     "name": "return failure",
214     "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=\"`$network-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
215     "comments": "",
216     "x": 544.5437164306641,
217     "y": 1167.9524418115616,
218     "z": "7458dba4.32cb64",
219     "wires": []
220   },
221   {
222     "id": "14ed1ad7.45eb75",
223     "type": "switchNode",
224     "name": "switch request-action",
225     "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
226     "comments": "",
227     "outputs": 1,
228     "x": 746.0038986206055,
229     "y": 212.42859840393066,
230     "z": "7458dba4.32cb64",
231     "wires": [
232       [
233         "501d8531.74505c",
234         "9ab1ce33.97d5d"
235       ]
236     ]
237   },
238   {
239     "id": "501d8531.74505c",
240     "type": "other",
241     "name": "Other",
242     "xml": "<outcome value='Other'>",
243     "comments": "",
244     "outputs": 1,
245     "x": 944.5039215087891,
246     "y": 234.42858946323395,
247     "z": "7458dba4.32cb64",
248     "wires": [
249       [
250         "fe537f74.2801e"
251       ]
252     ]
253   },
254   {
255     "id": "fe537f74.2801e",
256     "type": "returnFailure",
257     "name": "return failure",
258     "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=\"request-information.request-action is required to be SOTN CreateVPNNetworkInstance for svc-action=create\" />\n",
259     "comments": "",
260     "x": 1082.003921508789,
261     "y": 234.42858946323395,
262     "z": "7458dba4.32cb64",
263     "wires": []
264   },
265   {
266     "id": "8d93a83c.557ca8",
267     "type": "other",
268     "name": "DeleteSDWANConnectivityInstance",
269     "xml": "<outcome value='DeleteSDWANConnectivityInstance'>",
270     "comments": "",
271     "outputs": 1,
272     "x": 783.0673332214355,
273     "y": 994.460285782814,
274     "z": "7458dba4.32cb64",
275     "wires": [
276       [
277         "ce9cc56b.d10598"
278       ]
279     ]
280   },
281   {
282     "id": "5b1ba696.fd4ac8",
283     "type": "other",
284     "name": "Other",
285     "xml": "<outcome value='Other'>",
286     "comments": "",
287     "outputs": 1,
288     "x": 718.6228790283203,
289     "y": 1066.6825548410416,
290     "z": "7458dba4.32cb64",
291     "wires": [
292       [
293         "781f0dda.132404"
294       ]
295     ]
296   },
297   {
298     "id": "781f0dda.132404",
299     "type": "returnFailure",
300     "name": "return failure",
301     "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=\"request-information.request-action is required to be SOTN DeleteVPNNetworkInstance for svc-action=delete\" />\n",
302     "comments": "",
303     "x": 878.956298828125,
304     "y": 1068.7936922311783,
305     "z": "7458dba4.32cb64",
306     "wires": []
307   },
308   {
309     "id": "ce9cc56b.d10598",
310     "type": "block",
311     "name": "block : atomic",
312     "xml": "<block atomic=\"true\">",
313     "atomic": "true",
314     "outputs": 1,
315     "x": 1026.9562072753906,
316     "y": 996.6825376749039,
317     "z": "7458dba4.32cb64",
318     "wires": [
319       [
320         "d93bc459.24d028",
321         "c2120486.723e58",
322         "bad3546.ed6b1a8",
323         "36e3a49c.e1e66c"
324       ]
325     ]
326   },
327   {
328     "id": "d97f2f03.ab243",
329     "type": "outcome",
330     "name": "activate",
331     "xml": "<outcome value='activate'>\n",
332     "comments": "",
333     "outputs": 1,
334     "x": 378.4324760437012,
335     "y": 477.47623217105865,
336     "z": "7458dba4.32cb64",
337     "wires": [
338       [
339         "11ba1c11.e436c4"
340       ]
341     ]
342   },
343   {
344     "id": "11ba1c11.e436c4",
345     "type": "switchNode",
346     "name": "switch request-action",
347     "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
348     "comments": "",
349     "outputs": 1,
350     "x": 561.2896423339844,
351     "y": 474.61908209323883,
352     "z": "7458dba4.32cb64",
353     "wires": [
354       [
355         "4b7aba5c.10de74",
356         "b08d251d.2801a8"
357       ]
358     ]
359   },
360   {
361     "id": "4b7aba5c.10de74",
362     "type": "other",
363     "name": "ActivateSDWANConnectivityInstance",
364     "xml": "<outcome value='ActivateSDWANConnectivityInstance'>",
365     "comments": "",
366     "outputs": 1,
367     "x": 814.5039215087891,
368     "y": 454.42858946323395,
369     "z": "7458dba4.32cb64",
370     "wires": [
371       [
372         "59e37406.bc397c"
373       ]
374     ]
375   },
376   {
377     "id": "b08d251d.2801a8",
378     "type": "other",
379     "name": "Other",
380     "xml": "<outcome value='Other'>",
381     "comments": "",
382     "outputs": 1,
383     "x": 744.5039215087891,
384     "y": 494.42858946323395,
385     "z": "7458dba4.32cb64",
386     "wires": [
387       [
388         "a5228d9.922b87"
389       ]
390     ]
391   },
392   {
393     "id": "a5228d9.922b87",
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=\"request-information.request-action is required to be SOTN ActivateVPNNetworkInstance for svc-action=activate\" />\n",
397     "comments": "",
398     "x": 902.0039215087891,
399     "y": 494.42858946323395,
400     "z": "7458dba4.32cb64",
401     "wires": []
402   },
403   {
404     "id": "59e37406.bc397c",
405     "type": "block",
406     "name": "block : atomic",
407     "xml": "<block atomic=\"true\">",
408     "atomic": "true",
409     "outputs": 1,
410     "x": 1045.503921508789,
411     "y": 454.42858946323395,
412     "z": "7458dba4.32cb64",
413     "wires": [
414       [
415         "bad3546.ed6b1a8",
416         "d93bc459.24d028",
417         "c2120486.723e58",
418         "3af5d77e.c8b058"
419       ]
420     ]
421   },
422   {
423     "id": "33ba9655.52034a",
424     "type": "other",
425     "name": "DeactivateSDWANConnectivityInstance",
426     "xml": "<outcome value='DeactivateSDWANConnectivityInstance'>",
427     "comments": "",
428     "outputs": 1,
429     "x": 800.9245376586914,
430     "y": 824.9048515558243,
431     "z": "7458dba4.32cb64",
432     "wires": [
433       [
434         "fc8127c.e4d07d8"
435       ]
436     ]
437   },
438   {
439     "id": "a9fb5199.fc8f5",
440     "type": "other",
441     "name": "Other",
442     "xml": "<outcome value='Other'>",
443     "comments": "",
444     "outputs": 1,
445     "x": 715.9245300292969,
446     "y": 893.9048591852188,
447     "z": "7458dba4.32cb64",
448     "wires": [
449       [
450         "98e8303b.28c"
451       ]
452     ]
453   },
454   {
455     "id": "98e8303b.28c",
456     "type": "returnFailure",
457     "name": "return failure",
458     "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=\"request-information.request-action is required to be SOTN DeactivateVPNNetworkInstance for svc-action=deactivate\" />\n",
459     "comments": "",
460     "x": 896.9245452880859,
461     "y": 894.9048591852188,
462     "z": "7458dba4.32cb64",
463     "wires": []
464   },
465   {
466     "id": "39810a58.826e96",
467     "type": "switchNode",
468     "name": "switch request-action",
469     "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
470     "comments": "",
471     "outputs": 1,
472     "x": 537.7815933227539,
473     "y": 825.3806854486465,
474     "z": "7458dba4.32cb64",
475     "wires": [
476       [
477         "33ba9655.52034a",
478         "a9fb5199.fc8f5"
479       ]
480     ]
481   },
482   {
483     "id": "8132304a.a7e6f",
484     "type": "switchNode",
485     "name": "switch request-action",
486     "xml": "<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
487     "comments": "",
488     "outputs": 1,
489     "x": 541.5593948364258,
490     "y": 993.7142394781113,
491     "z": "7458dba4.32cb64",
492     "wires": [
493       [
494         "8d93a83c.557ca8",
495         "5b1ba696.fd4ac8"
496       ]
497     ]
498   },
499   {
500     "id": "fc8127c.e4d07d8",
501     "type": "block",
502     "name": "block : atomic",
503     "xml": "<block atomic=\"true\">",
504     "atomic": "true",
505     "outputs": 1,
506     "x": 1060.8926849365234,
507     "y": 827.7142463922501,
508     "z": "7458dba4.32cb64",
509     "wires": [
510       [
511         "d93bc459.24d028",
512         "c2120486.723e58",
513         "bad3546.ed6b1a8",
514         "376f44f.91631bc"
515       ]
516     ]
517   },
518   {
519     "id": "9ab1ce33.97d5d",
520     "type": "other",
521     "name": "CreateSDWANConnectivityInstance",
522     "xml": "<outcome value='CreateSDWANConnectivityInstance'>",
523     "comments": "",
524     "outputs": 1,
525     "x": 1010.5039215087891,
526     "y": 194.42858946323395,
527     "z": "7458dba4.32cb64",
528     "wires": [
529       [
530         "b176ae48.6fe8f"
531       ]
532     ]
533   },
534   {
535     "id": "b176ae48.6fe8f",
536     "type": "block",
537     "name": "block : atomic",
538     "xml": "<block atomic=\"true\">",
539     "atomic": "true",
540     "outputs": 1,
541     "x": 1225.503921508789,
542     "y": 194.42858946323395,
543     "z": "7458dba4.32cb64",
544     "wires": [
545       [
546         "cf12d38b.a3405"
547       ]
548     ]
549   },
550   {
551     "id": "cf12d38b.a3405",
552     "type": "for",
553     "name": "for loop i - Network input parameters",
554     "xml": "<for index=\"i\" start=\"0\" end=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param_length`\">\n",
555     "comments": "",
556     "outputs": 1,
557     "x": 1476.003921508789,
558     "y": 194.42858946323395,
559     "z": "7458dba4.32cb64",
560     "wires": [
561       [
562         "635e00b0.83e09"
563       ]
564     ]
565   },
566   {
567     "id": "635e00b0.83e09",
568     "type": "block",
569     "name": "block",
570     "xml": "<block>\n",
571     "atomic": "false",
572     "comments": "",
573     "outputs": 1,
574     "x": 1704.503921508789,
575     "y": 194.42858946323395,
576     "z": "7458dba4.32cb64",
577     "wires": [
578       [
579         "d02f1a6c.9ed398",
580         "7b155a14.1d88e4",
581         "a5572ff3.83699"
582       ]
583     ]
584   },
585   {
586     "id": "d02f1a6c.9ed398",
587     "type": "set",
588     "name": "clear tmp-data",
589     "xml": "<set>\n<parameter name='tmp.name' value='' />\n<parameter name='tmp.value' value='' />\n",
590     "comments": "",
591     "x": 1887.503921508789,
592     "y": 154.42858946323395,
593     "z": "7458dba4.32cb64",
594     "wires": []
595   },
596   {
597     "id": "7b155a14.1d88e4",
598     "type": "set",
599     "name": "set tmp-data",
600     "xml": "<set>\n<parameter name='tmp.name' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$i].name`\"/>\n<parameter name='tmp.value' value=\"`$network-topology-operation-input.network-request-input.network-input-parameters.param[$i].value`\"/>\n",
601     "comments": "",
602     "x": 1882.003921508789,
603     "y": 194.42858946323395,
604     "z": "7458dba4.32cb64",
605     "wires": []
606   },
607   {
608     "id": "a5572ff3.83699",
609     "type": "switchNode",
610     "name": "switch name",
611     "xml": "<switch test=\"`$tmp.name`\">\n",
612     "comments": "",
613     "outputs": 1,
614     "x": 1882.003921508789,
615     "y": 234.42858946323395,
616     "z": "7458dba4.32cb64",
617     "wires": [
618       [
619         "4c1f2b9e.d59164",
620         "930c8bdc.0463f8",
621         "6c76b8a1.37a458"
622       ]
623     ]
624   },
625   {
626     "id": "9f5e4298.3ba59",
627     "type": "switchNode",
628     "name": "switch value",
629     "xml": "<switch test=\"`$tmp.value`\">\n",
630     "comments": "",
631     "outputs": 1,
632     "x": 2342.0040893554688,
633     "y": 186.42861008644104,
634     "z": "7458dba4.32cb64",
635     "wires": [
636       [
637         "b3a0c7f3.4a5588"
638       ]
639     ]
640   },
641   {
642     "id": "6c76b8a1.37a458",
643     "type": "outcome",
644     "name": "NULL",
645     "xml": "<outcome value=''>",
646     "comments": "",
647     "outputs": 1,
648     "x": 2101.5042572021484,
649     "y": 252.42859768867493,
650     "z": "7458dba4.32cb64",
651     "wires": [
652       [
653         "6ab0e444.08d8bc"
654       ]
655     ]
656   },
657   {
658     "id": "6ab0e444.08d8bc",
659     "type": "returnFailure",
660     "name": "return failure",
661     "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=\"`'network-topology-operation-input.network-request-input.network-input-parameters.param[' + $i + ']' + '.name is a required input'`\" />\n",
662     "comments": "",
663     "x": 2276.5042610168457,
664     "y": 251.42859768867493,
665     "z": "7458dba4.32cb64",
666     "wires": []
667   },
668   {
669     "id": "4c1f2b9e.d59164",
670     "type": "other",
671     "name": "name",
672     "xml": "<outcome value='name'>",
673     "comments": "",
674     "outputs": 1,
675     "x": 2101.5042572021484,
676     "y": 136.42859196662903,
677     "z": "7458dba4.32cb64",
678     "wires": [
679       [
680         "9f5e4298.3ba59"
681       ]
682     ]
683   },
684   {
685     "id": "930c8bdc.0463f8",
686     "type": "other",
687     "name": "topology",
688     "xml": "<outcome value='topology'>",
689     "comments": "",
690     "outputs": 1,
691     "x": 2113.5040130615234,
692     "y": 190.09525418281555,
693     "z": "7458dba4.32cb64",
694     "wires": [
695       [
696         "9f5e4298.3ba59"
697       ]
698     ]
699   },
700   {
701     "id": "b3a0c7f3.4a5588",
702     "type": "outcome",
703     "name": "NULL",
704     "xml": "<outcome value=''>",
705     "comments": "",
706     "outputs": 1,
707     "x": 2485.5040893554688,
708     "y": 186.42861008644104,
709     "z": "7458dba4.32cb64",
710     "wires": [
711       [
712         "e1e167f3.9a8ab8"
713       ]
714     ]
715   },
716   {
717     "id": "e1e167f3.9a8ab8",
718     "type": "returnFailure",
719     "name": "return failure",
720     "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=\"`'network-request-input.network-input-parameters.param '+ $tmp.name +' is a required input'`\" />\n",
721     "comments": "",
722     "x": 2643.5040893554688,
723     "y": 186.42861008644104,
724     "z": "7458dba4.32cb64",
725     "wires": []
726   },
727   {
728     "id": "bad3546.ed6b1a8",
729     "type": "switchNode",
730     "name": "switch service-data.networks.network_length",
731     "xml": "<switch test='`$service-data.networks.network_length`'>\n",
732     "comments": "",
733     "outputs": 1,
734     "x": 1350.3927841186523,
735     "y": 497.7619024515152,
736     "z": "7458dba4.32cb64",
737     "wires": [
738       [
739         "5db60397.24e42c",
740         "d1ba2f0d.dcd85"
741       ]
742     ]
743   },
744   {
745     "id": "5db60397.24e42c",
746     "type": "other",
747     "name": "outcome Null",
748     "xml": "<outcome value=''>\n",
749     "comments": "",
750     "outputs": 1,
751     "x": 1604.003921508789,
752     "y": 474.42858946323395,
753     "z": "7458dba4.32cb64",
754     "wires": [
755       [
756         "9216f078.ec3f4"
757       ]
758     ]
759   },
760   {
761     "id": "9216f078.ec3f4",
762     "type": "returnFailure",
763     "name": "return failure",
764     "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
765     "comments": "",
766     "x": 1782.003921508789,
767     "y": 474.42858946323395,
768     "z": "7458dba4.32cb64",
769     "wires": []
770   },
771   {
772     "id": "d1ba2f0d.dcd85",
773     "type": "other",
774     "name": "other",
775     "xml": "<outcome value='Other'>\n",
776     "comments": "",
777     "outputs": 1,
778     "x": 1584.503921508789,
779     "y": 514.428589463234,
780     "z": "7458dba4.32cb64",
781     "wires": [
782       [
783         "9e24923a.18e3c"
784       ]
785     ]
786   },
787   {
788     "id": "9e24923a.18e3c",
789     "type": "block",
790     "name": "block : atomic",
791     "xml": "<block atomic=\"true\">",
792     "atomic": "true",
793     "outputs": 1,
794     "x": 1745.503921508789,
795     "y": 514.428589463234,
796     "z": "7458dba4.32cb64",
797     "wires": [
798       [
799         "a46227c4.f759c8",
800         "748af6ef.c63f88"
801       ]
802     ]
803   },
804   {
805     "id": "a46227c4.f759c8",
806     "type": "for",
807     "name": "for nidx..service-data.networks.network[]",
808     "xml": "<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
809     "comments": "",
810     "outputs": 1,
811     "x": 2008.003921508789,
812     "y": 494.42858946323395,
813     "z": "7458dba4.32cb64",
814     "wires": [
815       [
816         "fa1d115b.6d17b"
817       ]
818     ]
819   },
820   {
821     "id": "fa1d115b.6d17b",
822     "type": "switchNode",
823     "name": "switch networkid found",
824     "xml": "<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
825     "comments": "",
826     "outputs": 1,
827     "x": 2294.003921508789,
828     "y": 494.42858946323395,
829     "z": "7458dba4.32cb64",
830     "wires": [
831       [
832         "37889212.4c53ee"
833       ]
834     ]
835   },
836   {
837     "id": "37889212.4c53ee",
838     "type": "outcomeTrue",
839     "name": "true",
840     "xml": "<outcome value='true'>\n",
841     "comments": "",
842     "outputs": 1,
843     "x": 2464.503921508789,
844     "y": 494.42858946323395,
845     "z": "7458dba4.32cb64",
846     "wires": [
847       [
848         "b3a1659a.240748"
849       ]
850     ]
851   },
852   {
853     "id": "272a6015.e0db5",
854     "type": "set",
855     "name": "set tmp.nidx and ctx.network-data",
856     "xml": "<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].network-data.`' />\n",
857     "comments": "",
858     "x": 2865.5039825439453,
859     "y": 491.42863273620605,
860     "z": "7458dba4.32cb64",
861     "wires": []
862   },
863   {
864     "id": "732b4efd.21101",
865     "type": "returnFailure",
866     "name": "return failure",
867     "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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
868     "comments": "",
869     "x": 2222.003921508789,
870     "y": 534.428589463234,
871     "z": "7458dba4.32cb64",
872     "wires": []
873   },
874   {
875     "id": "763f7f60.997eb",
876     "type": "outcome",
877     "name": "NULL",
878     "xml": "<outcome value=''>\n",
879     "comments": "",
880     "outputs": 1,
881     "x": 2084.503921508789,
882     "y": 534.428589463234,
883     "z": "7458dba4.32cb64",
884     "wires": [
885       [
886         "732b4efd.21101"
887       ]
888     ]
889   },
890   {
891     "id": "748af6ef.c63f88",
892     "type": "switchNode",
893     "name": "switch tmp.nidx ",
894     "xml": "<switch test=\"`$tmp.nidx`\">\n\n",
895     "comments": "",
896     "outputs": 1,
897     "x": 1930.503921508789,
898     "y": 534.428589463234,
899     "z": "7458dba4.32cb64",
900     "wires": [
901       [
902         "763f7f60.997eb"
903       ]
904     ]
905   },
906   {
907     "id": "3af5d77e.c8b058",
908     "type": "switchNode",
909     "name": "switch network-level-oper-status",
910     "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
911     "comments": "",
912     "outputs": 1,
913     "x": 1309.6706085205078,
914     "y": 573.3174673318863,
915     "z": "7458dba4.32cb64",
916     "wires": [
917       [
918         "c33efa09.b018d8",
919         "4cfec973.493b68"
920       ]
921     ]
922   },
923   {
924     "id": "c33efa09.b018d8",
925     "type": "outcome",
926     "name": "outcome Created",
927     "xml": "<outcome value='Created'>\n",
928     "comments": "",
929     "outputs": 1,
930     "x": 1606.5040245056152,
931     "y": 573.3174654245377,
932     "z": "7458dba4.32cb64",
933     "wires": [
934       [
935         "7c4edd00.49aac4"
936       ]
937     ]
938   },
939   {
940     "id": "4cfec973.493b68",
941     "type": "other",
942     "name": "other",
943     "xml": "<outcome value='Other'>\n",
944     "comments": "",
945     "outputs": 1,
946     "x": 1574.5040245056152,
947     "y": 613.3174654245377,
948     "z": "7458dba4.32cb64",
949     "wires": [
950       [
951         "dabe6a18.d1d558"
952       ]
953     ]
954   },
955   {
956     "id": "dabe6a18.d1d558",
957     "type": "returnFailure",
958     "name": "return failure",
959     "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=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
960     "comments": "",
961     "x": 1732.0040245056152,
962     "y": 613.3174654245377,
963     "z": "7458dba4.32cb64",
964     "wires": []
965   },
966   {
967     "id": "c2120486.723e58",
968     "type": "switchNode",
969     "name": "switch network-id",
970     "xml": "<switch test=\"`$network-topology-operation-input.network-information.network-id`\">\n",
971     "comments": "",
972     "outputs": 1,
973     "x": 1256.503921508789,
974     "y": 434.42858946323395,
975     "z": "7458dba4.32cb64",
976     "wires": [
977       [
978         "c9dd79cc.30f0a8"
979       ]
980     ]
981   },
982   {
983     "id": "c9dd79cc.30f0a8",
984     "type": "outcome",
985     "name": "NULL",
986     "xml": "<outcome value=''>",
987     "comments": "",
988     "outputs": 1,
989     "x": 1484.503921508789,
990     "y": 434.42858946323395,
991     "z": "7458dba4.32cb64",
992     "wires": [
993       [
994         "f8690bd9.02e568"
995       ]
996     ]
997   },
998   {
999     "id": "f8690bd9.02e568",
1000     "type": "returnFailure",
1001     "name": "return failure",
1002     "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=\"network-request-input.network-input-parameters.name is a required input\" />\n",
1003     "comments": "",
1004     "x": 1622.003921508789,
1005     "y": 434.42858946323395,
1006     "z": "7458dba4.32cb64",
1007     "wires": []
1008   },
1009   {
1010     "id": "d93bc459.24d028",
1011     "type": "execute",
1012     "name": "execute requiredParameters",
1013     "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='requiredParameters' >\n<parameter name=\"network-topology-operation-input.network-information.network-id\" value=\"$network-topology-operation-input.network-information.network-id\"/>\n\n",
1014     "comments": "",
1015     "outputs": 1,
1016     "x": 1291.003921508789,
1017     "y": 394.42858946323395,
1018     "z": "7458dba4.32cb64",
1019     "wires": [
1020       []
1021     ]
1022   },
1023   {
1024     "id": "376f44f.91631bc",
1025     "type": "switchNode",
1026     "name": "switch network-level-oper-status",
1027     "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
1028     "comments": "",
1029     "outputs": 1,
1030     "x": 1337.837173461914,
1031     "y": 823.3174444437027,
1032     "z": "7458dba4.32cb64",
1033     "wires": [
1034       [
1035         "4ff725b8.75f0ac",
1036         "b79412d2.13234"
1037       ]
1038     ]
1039   },
1040   {
1041     "id": "4ff725b8.75f0ac",
1042     "type": "outcome",
1043     "name": "outcome Active",
1044     "xml": "<outcome value='Active'>\n",
1045     "comments": "",
1046     "outputs": 1,
1047     "x": 1611.1705474853516,
1048     "y": 797.7619024515152,
1049     "z": "7458dba4.32cb64",
1050     "wires": [
1051       [
1052         "d84d7eae.ba968"
1053       ]
1054     ]
1055   },
1056   {
1057     "id": "b79412d2.13234",
1058     "type": "other",
1059     "name": "other",
1060     "xml": "<outcome value='Other'>\n",
1061     "comments": "",
1062     "outputs": 1,
1063     "x": 1581.1705474853516,
1064     "y": 837.7619024515152,
1065     "z": "7458dba4.32cb64",
1066     "wires": [
1067       [
1068         "b8e9f263.26346"
1069       ]
1070     ]
1071   },
1072   {
1073     "id": "b8e9f263.26346",
1074     "type": "returnFailure",
1075     "name": "return failure",
1076     "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=\"`'Network is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
1077     "comments": "",
1078     "x": 1747.1705474853516,
1079     "y": 839.7619024515152,
1080     "z": "7458dba4.32cb64",
1081     "wires": []
1082   },
1083   {
1084     "id": "36e3a49c.e1e66c",
1085     "type": "switchNode",
1086     "name": "switch network-level-oper-status",
1087     "xml": "<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
1088     "comments": "",
1089     "outputs": 1,
1090     "x": 1326.726089477539,
1091     "y": 994.4285284280777,
1092     "z": "7458dba4.32cb64",
1093     "wires": [
1094       [
1095         "fc99139.ec0cdf",
1096         "4e170b57.b8a2a4"
1097       ]
1098     ]
1099   },
1100   {
1101     "id": "fc99139.ec0cdf",
1102     "type": "outcome",
1103     "name": "outcome PendingDelete",
1104     "xml": "<outcome value='PendingDelete'>\n",
1105     "comments": "",
1106     "outputs": 1,
1107     "x": 1626.7261505126953,
1108     "y": 962.2063242197037,
1109     "z": "7458dba4.32cb64",
1110     "wires": [
1111       [
1112         "9aca9b79.d849b8"
1113       ]
1114     ]
1115   },
1116   {
1117     "id": "4e170b57.b8a2a4",
1118     "type": "other",
1119     "name": "other",
1120     "xml": "<outcome value='Other'>\n",
1121     "comments": "",
1122     "outputs": 1,
1123     "x": 1570.0594635009766,
1124     "y": 1008.8729864358902,
1125     "z": "7458dba4.32cb64",
1126     "wires": [
1127       [
1128         "50d4161c.bde178"
1129       ]
1130     ]
1131   },
1132   {
1133     "id": "50d4161c.bde178",
1134     "type": "returnFailure",
1135     "name": "return failure",
1136     "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=\"`'Network is not in appropriate state for delete. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
1137     "comments": "",
1138     "x": 1736.0594635009766,
1139     "y": 1010.8729864358902,
1140     "z": "7458dba4.32cb64",
1141     "wires": []
1142   },
1143   {
1144     "id": "7c4edd00.49aac4",
1145     "type": "block",
1146     "name": "block : atomic",
1147     "xml": "<block atomic=\"true\">",
1148     "atomic": "true",
1149     "outputs": 1,
1150     "x": 1794.5039024353027,
1151     "y": 574.4285494089127,
1152     "z": "7458dba4.32cb64",
1153     "wires": [
1154       []
1155     ]
1156   },
1157   {
1158     "id": "d84d7eae.ba968",
1159     "type": "block",
1160     "name": "block : atomic",
1161     "xml": "<block atomic=\"true\">",
1162     "atomic": "true",
1163     "outputs": 1,
1164     "x": 1811.170425415039,
1165     "y": 795.910034775734,
1166     "z": "7458dba4.32cb64",
1167     "wires": [
1168       []
1169     ]
1170   },
1171   {
1172     "id": "9aca9b79.d849b8",
1173     "type": "block",
1174     "name": "block : atomic",
1175     "xml": "<block atomic=\"true\">",
1176     "atomic": "true",
1177     "outputs": 1,
1178     "x": 1842.2816314697266,
1179     "y": 962.5766607522964,
1180     "z": "7458dba4.32cb64",
1181     "wires": [
1182       []
1183     ]
1184   },
1185   {
1186     "id": "b3a1659a.240748",
1187     "type": "block",
1188     "name": "block : atomic",
1189     "xml": "<block atomic=\"true\">",
1190     "atomic": "true",
1191     "outputs": 1,
1192     "x": 2614.6704330444336,
1193     "y": 490.7619377374649,
1194     "z": "7458dba4.32cb64",
1195     "wires": [
1196       [
1197         "272a6015.e0db5"
1198       ]
1199     ]
1200   }
1201 ]