cca7530d9325492ea8386ffc8505f18221ec665f
[appc.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property.  All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 [
22   {
23     "id": "b25ea899.d365d8",
24     "type": "dgstart",
25     "name": "DGSTART",
26     "outputs": 1,
27     "x": 174.515625,
28     "y": 391.515625,
29     "z": "25788422.0cd1fc",
30     "wires": [
31       [
32         "f1895f0c.4c6ea"
33       ]
34     ]
35   },
36   {
37     "id": "f1895f0c.4c6ea",
38     "type": "service-logic",
39     "name": "APPC 2.0.2",
40     "module": "APPC",
41     "version": "2.0.2",
42     "comments": "",
43     "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.2'>",
44     "outputs": 1,
45     "x": 350.515625,
46     "y": 391.515625,
47     "z": "25788422.0cd1fc",
48     "wires": [
49       [
50         "29d8b20c.bcc73e"
51       ]
52     ]
53   },
54   {
55     "id": "29d8b20c.bcc73e",
56     "type": "method",
57     "name": "Stop_VNF",
58     "xml": "<method rpc='Stop_VNF' mode='sync'>\n",
59     "comments": "",
60     "outputs": 1,
61     "x": 182.51568603515625,
62     "y": 473.515625,
63     "z": "25788422.0cd1fc",
64     "wires": [
65       [
66         "dd256332.18b52"
67       ]
68     ]
69   },
70   {
71     "id": "3303293f.b715b6",
72     "type": "failure",
73     "name": "failure",
74     "xml": "<outcome value='failure'>\n",
75     "comments": "",
76     "outputs": 1,
77     "x": 734.5159301757812,
78     "y": 415.515625,
79     "z": "25788422.0cd1fc",
80     "wires": [
81       [
82         "1160b666.e3e76a"
83       ]
84     ]
85   },
86   {
87     "id": "de3c0f63.e4197",
88     "type": "other",
89     "name": "other",
90     "xml": "<outcome value='Other'>\n",
91     "comments": "",
92     "outputs": 1,
93     "x": 733.515869140625,
94     "y": 363.515625,
95     "z": "25788422.0cd1fc",
96     "wires": [
97       [
98         "1160b666.e3e76a"
99       ]
100     ]
101   },
102   {
103     "id": "2a306103.619fbe",
104     "type": "not-found",
105     "name": "not-found",
106     "xml": "<outcome value='not-found'>\n",
107     "comments": "",
108     "outputs": 1,
109     "x": 729.5159301757812,
110     "y": 455.51563262939453,
111     "z": "25788422.0cd1fc",
112     "wires": [
113       [
114         "1160b666.e3e76a"
115       ]
116     ]
117   },
118   {
119     "id": "dd256332.18b52",
120     "type": "execute",
121     "name": "flatAndAddToContext",
122     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
123     "comments": "",
124     "outputs": 1,
125     "x": 422.5157165527344,
126     "y": 472.51564025878906,
127     "z": "25788422.0cd1fc",
128     "wires": [
129       [
130         "3303293f.b715b6",
131         "de3c0f63.e4197",
132         "2a306103.619fbe",
133         "60deb41e.71e38c"
134       ]
135     ]
136   },
137   {
138     "id": "60deb41e.71e38c",
139     "type": "success",
140     "name": "success",
141     "xml": "<outcome value='success'>\n",
142     "comments": "",
143     "outputs": 1,
144     "x": 252.51565551757812,
145     "y": 580.5156555175781,
146     "z": "25788422.0cd1fc",
147     "wires": [
148       [
149         "c02b5f84.eb026"
150       ]
151     ]
152   },
153   {
154     "id": "c02b5f84.eb026",
155     "type": "execute",
156     "name": "execute_getVnfHierarchy",
157     "xml": "<execute plugin='org.openecomp.appc.dg.aai.AAIPlugin' method='getVnfHierarchy'>\n<parameter name=\"resourceKey\" value=\"`$input.action-identifiers.vnf-id`\" />\n",
158     "comments": "",
159     "outputs": 1,
160     "x": 434.182373046875,
161     "y": 580.5157165527344,
162     "z": "25788422.0cd1fc",
163     "wires": [
164       [
165         "f740cf84.95c9",
166         "7eef4ecc.dbdbd"
167       ]
168     ]
169   },
170   {
171     "id": "7eef4ecc.dbdbd",
172     "type": "failure",
173     "name": "failure",
174     "xml": "<outcome value='failure'>\n",
175     "comments": "",
176     "outputs": 1,
177     "x": 679.1823120117188,
178     "y": 531.5156555175781,
179     "z": "25788422.0cd1fc",
180     "wires": [
181       [
182         "314e24d1.2af52c"
183       ]
184     ]
185   },
186   {
187     "id": "f740cf84.95c9",
188     "type": "success",
189     "name": "success",
190     "xml": "<outcome value='success'>\n",
191     "comments": "",
192     "outputs": 1,
193     "x": 404.1823425292969,
194     "y": 650.5156860351562,
195     "z": "25788422.0cd1fc",
196     "wires": [
197       [
198         "dcc95947.dc16f8"
199       ]
200     ]
201   },
202   {
203     "id": "dcc95947.dc16f8",
204     "type": "switchNode",
205     "name": "switch_getVnfHierarchy_result",
206     "xml": "<switch test='`$getVnfHierarchy_result`'>\n",
207     "comments": "",
208     "outputs": 1,
209     "x": 492.18231201171875,
210     "y": 713.6268310546875,
211     "z": "25788422.0cd1fc",
212     "wires": [
213       [
214         "26dec072.fac0a",
215         "c73a3ef3.82e05"
216       ]
217     ]
218   },
219   {
220     "id": "26dec072.fac0a",
221     "type": "outcome",
222     "name": "outcome_SUCCESS",
223     "xml": "<outcome value='SUCCESS'>\n",
224     "comments": "",
225     "outputs": 1,
226     "x": 495.18231201171875,
227     "y": 787.6268310546875,
228     "z": "25788422.0cd1fc",
229     "wires": [
230       [
231         "445c9cba.fb5d94"
232       ]
233     ]
234   },
235   {
236     "id": "c73a3ef3.82e05",
237     "type": "outcome",
238     "name": "outcome_FAILURE",
239     "xml": "<outcome value='FAILURE'>\n",
240     "comments": "",
241     "outputs": 1,
242     "x": 767.182373046875,
243     "y": 639.6268310546875,
244     "z": "25788422.0cd1fc",
245     "wires": [
246       [
247         "8df5db13.758428"
248       ]
249     ]
250   },
251   {
252     "id": "445c9cba.fb5d94",
253     "type": "switchNode",
254     "name": "switch_VNF_VMCount",
255     "xml": "<switch test='`$VNF.VMCount`'>",
256     "comments": "",
257     "outputs": 1,
258     "x": 610.1823425292969,
259     "y": 853.7379150390625,
260     "z": "25788422.0cd1fc",
261     "wires": [
262       [
263         "43163179.13979",
264         "a3b76bbf.32b818"
265       ]
266     ]
267   },
268   {
269     "id": "43163179.13979",
270     "type": "outcome",
271     "name": "outcome_0",
272     "xml": "<outcome value='0'>\n",
273     "comments": "",
274     "outputs": 1,
275     "x": 834.1823120117188,
276     "y": 755.73779296875,
277     "z": "25788422.0cd1fc",
278     "wires": [
279       [
280         "b911488a.955a38"
281       ]
282     ]
283   },
284   {
285     "id": "a3b76bbf.32b818",
286     "type": "other",
287     "name": "other",
288     "xml": "<outcome value='Other'>\n",
289     "comments": "",
290     "outputs": 1,
291     "x": 564.1823120117188,
292     "y": 916.7379150390625,
293     "z": "25788422.0cd1fc",
294     "wires": [
295       [
296         "1de7ef77.6f1701"
297       ]
298     ]
299   },
300   {
301     "id": "1de7ef77.6f1701",
302     "type": "execute",
303     "name": "Get VNFC Execution Flow Data",
304     "xml": "<execute plugin='org.openecomp.appc.dg.common.VnfExecutionFlow' method='getVnfExecutionFlowData' >\n<parameter name=\"DependencyType\" value='RESOURCE' />\n<parameter name=\"FlowStrategy\" value='REVERSE' />\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfVersion\" value='`$vnf.version`' />\n",
305     "comments": "",
306     "outputs": 1,
307     "x": 596.1823120117188,
308     "y": 969.8489990234375,
309     "z": "25788422.0cd1fc",
310     "wires": [
311       [
312         "62e8b7ae.830b88",
313         "3ccb7956.965646"
314       ]
315     ]
316   },
317   {
318     "id": "62e8b7ae.830b88",
319     "type": "failure",
320     "name": "failure",
321     "xml": "<outcome value='failure'>\n",
322     "comments": "",
323     "outputs": 1,
324     "x": 846.1823120117188,
325     "y": 905.8489990234375,
326     "z": "25788422.0cd1fc",
327     "wires": [
328       [
329         "bf9622b3.21e47"
330       ]
331     ]
332   },
333   {
334     "id": "1160b666.e3e76a",
335     "type": "block",
336     "name": "block : atomic",
337     "xml": "<block atomic='true'>",
338     "atomic": "true",
339     "comments": "",
340     "outputs": 1,
341     "x": 892.182487487793,
342     "y": 414.515625,
343     "z": "25788422.0cd1fc",
344     "wires": [
345       [
346         "6fae0bcd.781004",
347         "915b6526.fc9068"
348       ]
349     ]
350   },
351   {
352     "id": "6a4cb650.71b798",
353     "type": "execute",
354     "name": "Report Error to DCAE",
355     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
356     "comments": "",
357     "outputs": 1,
358     "x": 2930.0870666503906,
359     "y": 979.8965454101562,
360     "z": "25788422.0cd1fc",
361     "wires": [
362       [
363         "b93bd4c0.a52508"
364       ]
365     ]
366   },
367   {
368     "id": "b93bd4c0.a52508",
369     "type": "success",
370     "name": "success",
371     "xml": "<outcome value='success'>\n",
372     "comments": "",
373     "outputs": 1,
374     "x": 3104.3724670410156,
375     "y": 977.3251953125,
376     "z": "25788422.0cd1fc",
377     "wires": [
378       []
379     ]
380   },
381   {
382     "id": "6fae0bcd.781004",
383     "type": "returnFailure",
384     "name": "return failure",
385     "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
386     "comments": "",
387     "x": 969.5154304504395,
388     "y": 488.0393295288086,
389     "z": "25788422.0cd1fc",
390     "wires": []
391   },
392   {
393     "id": "314e24d1.2af52c",
394     "type": "block",
395     "name": "block : atomic",
396     "xml": "<block atomic='true'>",
397     "atomic": "true",
398     "comments": "",
399     "outputs": 1,
400     "x": 857.9600219726562,
401     "y": 531.404541015625,
402     "z": "25788422.0cd1fc",
403     "wires": [
404       [
405         "cfef6dc8.945be",
406         "1c582707.184b99"
407       ]
408     ]
409   },
410   {
411     "id": "1c582707.184b99",
412     "type": "execute",
413     "name": "OutputMessageBuilder",
414     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failed to retrieve VNF details from A&amp;AI\"/>\n",
415     "comments": "",
416     "outputs": 1,
417     "x": 1281.9598999023438,
418     "y": 537.404541015625,
419     "z": "25788422.0cd1fc",
420     "wires": [
421       [
422         "d5e38f40.40fcd"
423       ]
424     ]
425   },
426   {
427     "id": "cfef6dc8.945be",
428     "type": "returnFailure",
429     "name": "return failure",
430     "xml": "<return status='failure'>\n",
431     "comments": "",
432     "x": 1097.9600219726562,
433     "y": 583.404541015625,
434     "z": "25788422.0cd1fc",
435     "wires": []
436   },
437   {
438     "id": "d5e38f40.40fcd",
439     "type": "success",
440     "name": "success",
441     "xml": "<outcome value='success'>\n",
442     "comments": "",
443     "outputs": 1,
444     "x": 1496.9600219726562,
445     "y": 474.4045104980469,
446     "z": "25788422.0cd1fc",
447     "wires": [
448       [
449         "6a4cb650.71b798"
450       ]
451     ]
452   },
453   {
454     "id": "8df5db13.758428",
455     "type": "block",
456     "name": "block : atomic",
457     "xml": "<block atomic='true'>",
458     "atomic": "true",
459     "comments": "",
460     "outputs": 1,
461     "x": 1010.8490600585938,
462     "y": 640.6268310546875,
463     "z": "25788422.0cd1fc",
464     "wires": [
465       [
466         "8259cf4e.93836",
467         "58014ac2.8034f4"
468       ]
469     ]
470   },
471   {
472     "id": "58014ac2.8034f4",
473     "type": "execute",
474     "name": "OutputMessageBuilder",
475     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failed to retrieve VNF details from A&amp;AI\"/>\n\n",
476     "comments": "",
477     "outputs": 1,
478     "x": 1276.8490600585938,
479     "y": 638.6268310546875,
480     "z": "25788422.0cd1fc",
481     "wires": [
482       [
483         "848f3b70.e46888"
484       ]
485     ]
486   },
487   {
488     "id": "848f3b70.e46888",
489     "type": "success",
490     "name": "success",
491     "xml": "<outcome value='success'>\n",
492     "comments": "",
493     "outputs": 1,
494     "x": 1500.8490600585938,
495     "y": 548.6268310546875,
496     "z": "25788422.0cd1fc",
497     "wires": [
498       [
499         "6a4cb650.71b798"
500       ]
501     ]
502   },
503   {
504     "id": "8259cf4e.93836",
505     "type": "returnFailure",
506     "name": "return failure",
507     "xml": "<return status='failure'>\n",
508     "comments": "",
509     "x": 1258.8490600585938,
510     "y": 687.6268310546875,
511     "z": "25788422.0cd1fc",
512     "wires": []
513   },
514   {
515     "id": "b911488a.955a38",
516     "type": "block",
517     "name": "block : atomic",
518     "xml": "<block atomic='true'>",
519     "atomic": "true",
520     "comments": "",
521     "outputs": 1,
522     "x": 1022.5156860351562,
523     "y": 756.7379455566406,
524     "z": "25788422.0cd1fc",
525     "wires": [
526       [
527         "10549a32.dff226",
528         "fe639385.f254b"
529       ]
530     ]
531   },
532   {
533     "id": "fe639385.f254b",
534     "type": "execute",
535     "name": "OutputMessageBuilder",
536     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
537     "comments": "",
538     "outputs": 1,
539     "x": 1287.5156860351562,
540     "y": 738.7379150390625,
541     "z": "25788422.0cd1fc",
542     "wires": [
543       [
544         "d6ec24dc.40d138"
545       ]
546     ]
547   },
548   {
549     "id": "d6ec24dc.40d138",
550     "type": "success",
551     "name": "success",
552     "xml": "<outcome value='success'>\n",
553     "comments": "",
554     "outputs": 1,
555     "x": 1520.5156860351562,
556     "y": 646.7379150390625,
557     "z": "25788422.0cd1fc",
558     "wires": [
559       [
560         "6a4cb650.71b798"
561       ]
562     ]
563   },
564   {
565     "id": "10549a32.dff226",
566     "type": "returnFailure",
567     "name": "return failure",
568     "xml": "<return status='failure'>\n",
569     "comments": "",
570     "x": 1252.5156860351562,
571     "y": 806.7379150390625,
572     "z": "25788422.0cd1fc",
573     "wires": []
574   },
575   {
576     "id": "bf9622b3.21e47",
577     "type": "block",
578     "name": "block : atomic",
579     "xml": "<block atomic='true'>",
580     "atomic": "true",
581     "comments": "",
582     "outputs": 1,
583     "x": 1014.515625,
584     "y": 906.9600830078125,
585     "z": "25788422.0cd1fc",
586     "wires": [
587       [
588         "b19f523c.7b27f",
589         "ca1fafca.d9e25"
590       ]
591     ]
592   },
593   {
594     "id": "ca1fafca.d9e25",
595     "type": "execute",
596     "name": "OutputMessageBuilder",
597     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />",
598     "comments": "",
599     "outputs": 1,
600     "x": 1293.515625,
601     "y": 872.9600830078125,
602     "z": "25788422.0cd1fc",
603     "wires": [
604       [
605         "5d09f297.44349c"
606       ]
607     ]
608   },
609   {
610     "id": "5d09f297.44349c",
611     "type": "success",
612     "name": "success",
613     "xml": "<outcome value='success'>\n",
614     "comments": "",
615     "outputs": 1,
616     "x": 1522.5156860351562,
617     "y": 733.9601135253906,
618     "z": "25788422.0cd1fc",
619     "wires": [
620       [
621         "6a4cb650.71b798"
622       ]
623     ]
624   },
625   {
626     "id": "b19f523c.7b27f",
627     "type": "returnFailure",
628     "name": "return failure",
629     "xml": "<return status='failure'>\n",
630     "comments": "",
631     "x": 1258.5155639648438,
632     "y": 942.9601440429688,
633     "z": "25788422.0cd1fc",
634     "wires": []
635   },
636   {
637     "id": "741ec63e.47b658",
638     "type": "execute",
639     "name": "Resolve VNFC DG",
640     "xml": "<execute plugin='org.openecomp.appc.dg.common.VNFCDgResolverPlugin' method='resolveVNFCDg'>\n<parameter name=\"vnfType\" value='`$vnf.type`' />\n<parameter name=\"vnfcType\" value='`$vnfcFlow[$i].vnfcType`' /> \n<parameter name=\"action\" value=\"Stop\" />\n<parameter name=\"api-ver\" value='`$input.common-header.api-ver`' /> \n<parameter name=\"prefix\" value=\"Stop\" />",
641     "comments": "",
642     "outputs": 1,
643     "x": 1256.7380676269531,
644     "y": 1276.1823425292969,
645     "z": "25788422.0cd1fc",
646     "wires": [
647       [
648         "ce601d5.d4914e",
649         "ca1cbabc.1584a8"
650       ]
651     ]
652   },
653   {
654     "id": "1d9ddab5.667815",
655     "type": "for",
656     "name": "for_each_vnfcFlow",
657     "xml": "<for index='i' start='0' end='`$vnfcFlowCount`' >\n",
658     "comments": "",
659     "outputs": 1,
660     "x": 850.7379302978516,
661     "y": 1259.1824035644531,
662     "z": "25788422.0cd1fc",
663     "wires": [
664       [
665         "b0ac43b7.cee43"
666       ]
667     ]
668   },
669   {
670     "id": "504ee939.7682f8",
671     "type": "set",
672     "name": "set vnfc parameters",
673     "xml": "<set>\n<parameter name='vnfcName' value='`$vnfcFlow[$i].vnfcName`' />\n<parameter name='vnfcType' value='`$vnfcFlow[$i].vnfcType`' />\n<parameter name='vmCount' value='`$vnfcFlow[$i].vmCount`' />\n<parameter name='input.action' value='`$input.action`' />\n<parameter name='AAIUpdateSuccessFlag' value='false' />\n\n",
674     "comments": "",
675     "x": 1261.7376708984375,
676     "y": 1091.2935180664062,
677     "z": "25788422.0cd1fc",
678     "wires": []
679   },
680   {
681     "id": "6688cc5b.a481f4",
682     "type": "call",
683     "name": "call VNFC DG",
684     "xml": "<call module='`$Stop.dg_module`' rpc='`$Stop.dg_name`' mode='sync' >\n",
685     "comments": "",
686     "outputs": 1,
687     "x": 1592.7378234863281,
688     "y": 1318.2936096191406,
689     "z": "25788422.0cd1fc",
690     "wires": [
691       [
692         "d62f7e05.fc757",
693         "867811c.94c21f",
694         "abe16d65.fa0ad"
695       ]
696     ]
697   },
698   {
699     "id": "1ff36a5c.3a1fa6",
700     "type": "block",
701     "name": "block : atomic",
702     "xml": "<block atomic='true'>",
703     "atomic": "true",
704     "comments": "",
705     "outputs": 1,
706     "x": 622.7380981445312,
707     "y": 1258.1824645996094,
708     "z": "25788422.0cd1fc",
709     "wires": [
710       [
711         "1d9ddab5.667815",
712         "cacb482f.c409f8",
713         "442ba77d.874db8"
714       ]
715     ]
716   },
717   {
718     "id": "ce601d5.d4914e",
719     "type": "success",
720     "name": "success",
721     "xml": "<outcome value='success'>\n",
722     "comments": "",
723     "outputs": 1,
724     "x": 1431.7375793457031,
725     "y": 1318.1824035644531,
726     "z": "25788422.0cd1fc",
727     "wires": [
728       [
729         "6688cc5b.a481f4"
730       ]
731     ]
732   },
733   {
734     "id": "ca1cbabc.1584a8",
735     "type": "failure",
736     "name": "failure",
737     "xml": "<outcome value='failure'>\n",
738     "comments": "",
739     "outputs": 1,
740     "x": 1443.7377014160156,
741     "y": 1237.1824035644531,
742     "z": "25788422.0cd1fc",
743     "wires": [
744       [
745         "9a471db7.e302b"
746       ]
747     ]
748   },
749   {
750     "id": "9a471db7.e302b",
751     "type": "block",
752     "name": "block : atomic",
753     "xml": "<block atomic='true'>",
754     "atomic": "true",
755     "comments": "",
756     "outputs": 1,
757     "x": 1625.7376708984375,
758     "y": 1236.1824035644531,
759     "z": "25788422.0cd1fc",
760     "wires": [
761       [
762         "2b7c2fc2.fce28",
763         "d1b96ddb.ec598"
764       ]
765     ]
766   },
767   {
768     "id": "2b7c2fc2.fce28",
769     "type": "execute",
770     "name": "OutputMessageBuilder",
771     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'Failed to retrieve VNFC DG for ' + $vnfcFlow[$i].vnfcType`\"/>",
772     "comments": "",
773     "outputs": 1,
774     "x": 1905.7377624511719,
775     "y": 1195.1825256347656,
776     "z": "25788422.0cd1fc",
777     "wires": [
778       [
779         "7b9666da.06bef8"
780       ]
781     ]
782   },
783   {
784     "id": "867811c.94c21f",
785     "type": "not-found",
786     "name": "not-found",
787     "xml": "<outcome value='not-found'>\n",
788     "comments": "",
789     "outputs": 1,
790     "x": 1782.5155944824219,
791     "y": 1278.4046936035156,
792     "z": "25788422.0cd1fc",
793     "wires": [
794       [
795         "a8bdf6b0.355778"
796       ]
797     ]
798   },
799   {
800     "id": "d62f7e05.fc757",
801     "type": "failure",
802     "name": "failure",
803     "xml": "<outcome value='failure'>\n",
804     "comments": "",
805     "outputs": 1,
806     "x": 1771.5156555175781,
807     "y": 1361.4049072265625,
808     "z": "25788422.0cd1fc",
809     "wires": [
810       [
811         "d9f2c28b.c7429"
812       ]
813     ]
814   },
815   {
816     "id": "a8bdf6b0.355778",
817     "type": "block",
818     "name": "block : atomic",
819     "xml": "<block atomic='true'>",
820     "atomic": "true",
821     "comments": "",
822     "outputs": 1,
823     "x": 1959.9599914550781,
824     "y": 1278.4046936035156,
825     "z": "25788422.0cd1fc",
826     "wires": [
827       [
828         "44681b66.f4c3a4",
829         "9dc3e92d.6f7f18"
830       ]
831     ]
832   },
833   {
834     "id": "44681b66.f4c3a4",
835     "type": "execute",
836     "name": "OutputMessageBuilder",
837     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'VNFC DG not found for: ' + $vnfcFlow[$i].vnfcName`\"/>",
838     "comments": "",
839     "outputs": 1,
840     "x": 2185.960723876953,
841     "y": 1279.4048156738281,
842     "z": "25788422.0cd1fc",
843     "wires": [
844       [
845         "5b4bdcd5.0244f4"
846       ]
847     ]
848   },
849   {
850     "id": "d9f2c28b.c7429",
851     "type": "block",
852     "name": "block : atomic",
853     "xml": "<block atomic='true'>",
854     "atomic": "true",
855     "comments": "",
856     "outputs": 1,
857     "x": 1920.4045715332031,
858     "y": 1363.40478515625,
859     "z": "25788422.0cd1fc",
860     "wires": [
861       [
862         "6d279d37.78ccd4"
863       ]
864     ]
865   },
866   {
867     "id": "b0ac43b7.cee43",
868     "type": "block",
869     "name": "block : atomic",
870     "xml": "<block atomic='true'>",
871     "atomic": "true",
872     "comments": "",
873     "outputs": 1,
874     "x": 1038.4044647216797,
875     "y": 1177.4045715332031,
876     "z": "25788422.0cd1fc",
877     "wires": [
878       [
879         "741ec63e.47b658",
880         "504ee939.7682f8",
881         "ba8e7dc8.b3d94"
882       ]
883     ]
884   },
885   {
886     "id": "ba8e7dc8.b3d94",
887     "type": "for",
888     "name": "for_each_vm",
889     "xml": "<for index='j' start='0' end='`$vmCount`' >\n",
890     "comments": "",
891     "outputs": 1,
892     "x": 1262.515640258789,
893     "y": 1177.9601135253906,
894     "z": "25788422.0cd1fc",
895     "wires": [
896       [
897         "73299151.c13e7"
898       ]
899     ]
900   },
901   {
902     "id": "89ef910b.6f179",
903     "type": "set",
904     "name": "set VM url",
905     "xml": "<set>\n<parameter name=\"vm[$j].url\" value='`$vnfcFlow[$i].vm[$j].url`' />\n\n\n\n\n\n",
906     "comments": "",
907     "x": 1681.515640258789,
908     "y": 1174.9601135253906,
909     "z": "25788422.0cd1fc",
910     "wires": []
911   },
912   {
913     "id": "73299151.c13e7",
914     "type": "block",
915     "name": "block : atomic",
916     "xml": "<block atomic='true'>",
917     "atomic": "true",
918     "comments": "",
919     "outputs": 1,
920     "x": 1497.515640258789,
921     "y": 1175.9601135253906,
922     "z": "25788422.0cd1fc",
923     "wires": [
924       [
925         "89ef910b.6f179"
926       ]
927     ]
928   },
929   {
930     "id": "3ccb7956.965646",
931     "type": "success",
932     "name": "success",
933     "xml": "<outcome value='success'>\n",
934     "comments": "",
935     "outputs": 1,
936     "x": 842.515625,
937     "y": 962.7378540039062,
938     "z": "25788422.0cd1fc",
939     "wires": [
940       [
941         "926dd466.d05b38"
942       ]
943     ]
944   },
945   {
946     "id": "926dd466.d05b38",
947     "type": "switchNode",
948     "name": "switch_dependencyModelFound",
949     "xml": "<switch test='`$dependencyModelFound`'>\n",
950     "comments": "",
951     "outputs": 1,
952     "x": 606.5157470703125,
953     "y": 1043.1823120117188,
954     "z": "25788422.0cd1fc",
955     "wires": [
956       [
957         "bcdaaae8.15d2e8",
958         "a9b756f3.902238"
959       ]
960     ]
961   },
962   {
963     "id": "bcdaaae8.15d2e8",
964     "type": "outcome",
965     "name": "outcome_false",
966     "xml": "<outcome value='false'>\n",
967     "comments": "",
968     "outputs": 1,
969     "x": 955.1824340820312,
970     "y": 1014.2933959960938,
971     "z": "25788422.0cd1fc",
972     "wires": [
973       [
974         "a3432c6e.32994"
975       ]
976     ]
977   },
978   {
979     "id": "a9b756f3.902238",
980     "type": "outcome",
981     "name": "outcome_true",
982     "xml": "<outcome value='true'>\n",
983     "comments": "",
984     "outputs": 1,
985     "x": 568.5156860351562,
986     "y": 1148.1822814941406,
987     "z": "25788422.0cd1fc",
988     "wires": [
989       [
990         "1ff36a5c.3a1fa6"
991       ]
992     ]
993   },
994   {
995     "id": "a3432c6e.32994",
996     "type": "call",
997     "name": "call Stop VNF without Model DG",
998     "xml": "<call module='APPC' rpc='Stop_VNF' version='2.0.1' mode='sync' >\n",
999     "comments": "",
1000     "outputs": 1,
1001     "x": 1233.5154876708984,
1002     "y": 1004.7378845214844,
1003     "z": "25788422.0cd1fc",
1004     "wires": [
1005       [
1006         "28d59860.ed9638",
1007         "b6692659.08be28",
1008         "85aacc05.3e737"
1009       ]
1010     ]
1011   },
1012   {
1013     "id": "28d59860.ed9638",
1014     "type": "not-found",
1015     "name": "not-found",
1016     "xml": "<outcome value='not-found'>\n",
1017     "comments": "",
1018     "outputs": 1,
1019     "x": 1490.2933197021484,
1020     "y": 954.8490295410156,
1021     "z": "25788422.0cd1fc",
1022     "wires": [
1023       [
1024         "ddc29a60.9b4398"
1025       ]
1026     ]
1027   },
1028   {
1029     "id": "b6692659.08be28",
1030     "type": "failure",
1031     "name": "failure",
1032     "xml": "<outcome value='failure'>\n",
1033     "comments": "",
1034     "outputs": 1,
1035     "x": 1493.2933197021484,
1036     "y": 995.8490295410156,
1037     "z": "25788422.0cd1fc",
1038     "wires": [
1039       [
1040         "7e1f30ff.7a6f7"
1041       ]
1042     ]
1043   },
1044   {
1045     "id": "ddc29a60.9b4398",
1046     "type": "block",
1047     "name": "block : atomic",
1048     "xml": "<block atomic='true'>",
1049     "atomic": "true",
1050     "comments": "",
1051     "outputs": 1,
1052     "x": 1677.7377319335938,
1053     "y": 943.8490371704102,
1054     "z": "25788422.0cd1fc",
1055     "wires": [
1056       [
1057         "fabbee43.1dc99",
1058         "f7377249.220f5"
1059       ]
1060     ]
1061   },
1062   {
1063     "id": "f7377249.220f5",
1064     "type": "execute",
1065     "name": "OutputMessageBuilder",
1066     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Stop DG not found\"/>",
1067     "comments": "",
1068     "outputs": 1,
1069     "x": 1895.7378845214844,
1070     "y": 919.8490371704102,
1071     "z": "25788422.0cd1fc",
1072     "wires": [
1073       [
1074         "9324252c.fadd38"
1075       ]
1076     ]
1077   },
1078   {
1079     "id": "fabbee43.1dc99",
1080     "type": "returnFailure",
1081     "name": "return failure",
1082     "xml": "<return status='failure'>\n",
1083     "comments": "",
1084     "x": 1905.7378845214844,
1085     "y": 974.8490982055664,
1086     "z": "25788422.0cd1fc",
1087     "wires": []
1088   },
1089   {
1090     "id": "7e1f30ff.7a6f7",
1091     "type": "returnFailure",
1092     "name": "return failure",
1093     "xml": "<return status='failure'>\n",
1094     "comments": "",
1095     "x": 1730.182357788086,
1096     "y": 990.8491516113281,
1097     "z": "25788422.0cd1fc",
1098     "wires": []
1099   },
1100   {
1101     "id": "85aacc05.3e737",
1102     "type": "success",
1103     "name": "success",
1104     "xml": "<outcome value='success'>\n",
1105     "comments": "",
1106     "outputs": 1,
1107     "x": 1502.2933654785156,
1108     "y": 1035.8489990234375,
1109     "z": "25788422.0cd1fc",
1110     "wires": [
1111       [
1112         "8d846ad5.9a88c8"
1113       ]
1114     ]
1115   },
1116   {
1117     "id": "8d846ad5.9a88c8",
1118     "type": "returnSuccess",
1119     "name": "return success",
1120     "xml": "<return status='success'>\n\n",
1121     "comments": "",
1122     "x": 1736.2933197021484,
1123     "y": 1034.8490295410156,
1124     "z": "25788422.0cd1fc",
1125     "wires": []
1126   },
1127   {
1128     "id": "442ba77d.874db8",
1129     "type": "set",
1130     "name": "init failed VNFC count",
1131     "xml": "<set>\n<parameter name='stopFailedVNFCCount' value='0' />\n",
1132     "comments": "",
1133     "x": 892.6267242431641,
1134     "y": 1101.1824035644531,
1135     "z": "25788422.0cd1fc",
1136     "wires": []
1137   },
1138   {
1139     "id": "cacb482f.c409f8",
1140     "type": "switchNode",
1141     "name": "switch_server_restart_success",
1142     "xml": "<switch test='`$stopFailedVNFCCount == 0`'>\n",
1143     "comments": "",
1144     "outputs": 1,
1145     "x": 895.8489379882812,
1146     "y": 1446.1825866699219,
1147     "z": "25788422.0cd1fc",
1148     "wires": [
1149       [
1150         "11544b2a.bebbb5",
1151         "9af5b3b0.6ce16"
1152       ]
1153     ]
1154   },
1155   {
1156     "id": "11544b2a.bebbb5",
1157     "type": "outcomeFalse",
1158     "name": "false",
1159     "xml": "<outcome value='false'>\n",
1160     "comments": "",
1161     "outputs": 1,
1162     "x": 1126.0988464355469,
1163     "y": 1408.9324645996094,
1164     "z": "25788422.0cd1fc",
1165     "wires": [
1166       [
1167         "7d480213.47e71c"
1168       ]
1169     ]
1170   },
1171   {
1172     "id": "9af5b3b0.6ce16",
1173     "type": "outcomeTrue",
1174     "name": "true",
1175     "xml": "<outcome value='true'>\n",
1176     "comments": "",
1177     "outputs": 1,
1178     "x": 1123.5989379882812,
1179     "y": 1467.9324645996094,
1180     "z": "25788422.0cd1fc",
1181     "wires": [
1182       [
1183         "744fa6c6.b167d8"
1184       ]
1185     ]
1186   },
1187   {
1188     "id": "7d480213.47e71c",
1189     "type": "block",
1190     "name": "block : atomic",
1191     "xml": "<block atomic='true'>",
1192     "atomic": "true",
1193     "comments": "",
1194     "outputs": 1,
1195     "x": 1302.8488464355469,
1196     "y": 1409.4046325683594,
1197     "z": "25788422.0cd1fc",
1198     "wires": [
1199       [
1200         "9bb8d081.6d716"
1201       ]
1202     ]
1203   },
1204   {
1205     "id": "9bb8d081.6d716",
1206     "type": "returnFailure",
1207     "name": "return failure",
1208     "xml": "<return status='failure'>\n",
1209     "comments": "",
1210     "x": 1545.367691040039,
1211     "y": 1409.4493408203125,
1212     "z": "25788422.0cd1fc",
1213     "wires": []
1214   },
1215   {
1216     "id": "744fa6c6.b167d8",
1217     "type": "block",
1218     "name": "block : atomic",
1219     "xml": "<block atomic='true'>",
1220     "atomic": "true",
1221     "comments": "",
1222     "outputs": 1,
1223     "x": 1303.8489379882812,
1224     "y": 1468.4046325683594,
1225     "z": "25788422.0cd1fc",
1226     "wires": [
1227       [
1228         "306bf572.a2195a"
1229       ]
1230     ]
1231   },
1232   {
1233     "id": "306bf572.a2195a",
1234     "type": "returnSuccess",
1235     "name": "return success",
1236     "xml": "<return status='success'>\n",
1237     "comments": "",
1238     "x": 1540.5986938476562,
1239     "y": 1468.8492126464844,
1240     "z": "25788422.0cd1fc",
1241     "wires": []
1242   },
1243   {
1244     "id": "89bf85ab.857028",
1245     "type": "set",
1246     "name": "update failed VNFC count",
1247     "xml": "<set>\n<parameter name=\"stopFailedVNFCCount\" value=\"`$stopFailedVNFCCount + 1`\" />\n",
1248     "comments": "",
1249     "x": 2546.6261291503906,
1250     "y": 1402.0712890625,
1251     "z": "25788422.0cd1fc",
1252     "wires": []
1253   },
1254   {
1255     "id": "abe16d65.fa0ad",
1256     "type": "success",
1257     "name": "success",
1258     "xml": "<outcome value='success'>\n",
1259     "comments": "",
1260     "outputs": 1,
1261     "x": 1785.5156555175781,
1262     "y": 1320.4049072265625,
1263     "z": "25788422.0cd1fc",
1264     "wires": [
1265       []
1266     ]
1267   },
1268   {
1269     "id": "915b6526.fc9068",
1270     "type": "execute",
1271     "name": "OutputMessageBuilder",
1272     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"Failure in flattening payload Json\" />",
1273     "comments": "",
1274     "outputs": 1,
1275     "x": 1266.5155639648438,
1276     "y": 391.18228912353516,
1277     "z": "25788422.0cd1fc",
1278     "wires": [
1279       [
1280         "88963945.2b6798"
1281       ]
1282     ]
1283   },
1284   {
1285     "id": "88963945.2b6798",
1286     "type": "success",
1287     "name": "success",
1288     "xml": "<outcome value='success'>\n",
1289     "comments": "",
1290     "outputs": 1,
1291     "x": 1476.5155639648438,
1292     "y": 387.18228912353516,
1293     "z": "25788422.0cd1fc",
1294     "wires": [
1295       [
1296         "6a4cb650.71b798"
1297       ]
1298     ]
1299   },
1300   {
1301     "id": "9324252c.fadd38",
1302     "type": "success",
1303     "name": "success",
1304     "xml": "<outcome value='success'>\n",
1305     "comments": "",
1306     "outputs": 1,
1307     "x": 2103.515594482422,
1308     "y": 923.1822891235352,
1309     "z": "25788422.0cd1fc",
1310     "wires": [
1311       [
1312         "6a4cb650.71b798"
1313       ]
1314     ]
1315   },
1316   {
1317     "id": "7b9666da.06bef8",
1318     "type": "success",
1319     "name": "success",
1320     "xml": "<outcome value='success'>\n",
1321     "comments": "",
1322     "outputs": 1,
1323     "x": 2109.1819763183594,
1324     "y": 1194.8490295410156,
1325     "z": "25788422.0cd1fc",
1326     "wires": [
1327       [
1328         "6a4cb650.71b798"
1329       ]
1330     ]
1331   },
1332   {
1333     "id": "5b4bdcd5.0244f4",
1334     "type": "success",
1335     "name": "success",
1336     "xml": "<outcome value='success'>\n",
1337     "comments": "",
1338     "outputs": 1,
1339     "x": 2374.1827697753906,
1340     "y": 1279.8489990234375,
1341     "z": "25788422.0cd1fc",
1342     "wires": [
1343       [
1344         "6a4cb650.71b798"
1345       ]
1346     ]
1347   },
1348   {
1349     "id": "d1b96ddb.ec598",
1350     "type": "returnFailure",
1351     "name": "return failure",
1352     "xml": "<return status='failure'>\n",
1353     "comments": "",
1354     "x": 1875.9600524902344,
1355     "y": 1234.8490295410156,
1356     "z": "25788422.0cd1fc",
1357     "wires": []
1358   },
1359   {
1360     "id": "9dc3e92d.6f7f18",
1361     "type": "returnFailure",
1362     "name": "return failure",
1363     "xml": "<return status='failure'>\n",
1364     "comments": "",
1365     "x": 2160.960479736328,
1366     "y": 1318.9600830078125,
1367     "z": "25788422.0cd1fc",
1368     "wires": []
1369   },
1370   {
1371     "id": "6d279d37.78ccd4",
1372     "type": "switchNode",
1373     "name": "AAIUpdateSuccessFlag ?",
1374     "xml": "<switch test='`$AAIUpdateSuccessFlag == true`'>\n",
1375     "comments": "",
1376     "outputs": 1,
1377     "x": 2126.6263732910156,
1378     "y": 1363.9600830078125,
1379     "z": "25788422.0cd1fc",
1380     "wires": [
1381       [
1382         "ba58c904.507168",
1383         "a925e3d2.fb1ff"
1384       ]
1385     ]
1386   },
1387   {
1388     "id": "a925e3d2.fb1ff",
1389     "type": "outcomeFalse",
1390     "name": "false",
1391     "xml": "<outcome value='false'>\n",
1392     "comments": "",
1393     "outputs": 1,
1394     "x": 2333.4044494628906,
1395     "y": 1340.960205078125,
1396     "z": "25788422.0cd1fc",
1397     "wires": [
1398       [
1399         "fda81ffe.7d7c7"
1400       ]
1401     ]
1402   },
1403   {
1404     "id": "ba58c904.507168",
1405     "type": "outcomeTrue",
1406     "name": "true",
1407     "xml": "<outcome value='true'>\n",
1408     "comments": "",
1409     "outputs": 1,
1410     "x": 2332.9044494628906,
1411     "y": 1401.960205078125,
1412     "z": "25788422.0cd1fc",
1413     "wires": [
1414       [
1415         "89bf85ab.857028"
1416       ]
1417     ]
1418   },
1419   {
1420     "id": "ae5453ba.3f87c",
1421     "type": "execute",
1422     "name": "OutputMessageBuilder",
1423     "xml": "<execute plugin='org.openecomp.appc.dg.common.OutputMessagePlugin' method='outputMessageBuilder' >\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name=\"event-message\" value=\"`'AAI update for VNFC ' + $vnfcName + '  failed. Not proceeding to the next VNFC.'`\" />\n",
1424     "comments": "",
1425     "outputs": 1,
1426     "x": 2692.6266174316406,
1427     "y": 1288.9600830078125,
1428     "z": "25788422.0cd1fc",
1429     "wires": [
1430       [
1431         "c93a0a4b.c48288"
1432       ]
1433     ]
1434   },
1435   {
1436     "id": "c93a0a4b.c48288",
1437     "type": "success",
1438     "name": "success",
1439     "xml": "<outcome value='success'>\n",
1440     "comments": "",
1441     "outputs": 1,
1442     "x": 2723.8487854003906,
1443     "y": 1171.404296875,
1444     "z": "25788422.0cd1fc",
1445     "wires": [
1446       [
1447         "6a4cb650.71b798"
1448       ]
1449     ]
1450   },
1451   {
1452     "id": "c5c2ca6e.d26dc8",
1453     "type": "returnFailure",
1454     "name": "return failure",
1455     "xml": "<return status='failure'>\n",
1456     "comments": "",
1457     "x": 2684.6263732910156,
1458     "y": 1339.515380859375,
1459     "z": "25788422.0cd1fc",
1460     "wires": []
1461   },
1462   {
1463     "id": "fda81ffe.7d7c7",
1464     "type": "block",
1465     "name": "block : atomic",
1466     "xml": "<block atomic='true'>",
1467     "atomic": "true",
1468     "comments": "",
1469     "outputs": 1,
1470     "x": 2478.6266174316406,
1471     "y": 1339.9600830078125,
1472     "z": "25788422.0cd1fc",
1473     "wires": [
1474       [
1475         "ae5453ba.3f87c",
1476         "c5c2ca6e.d26dc8"
1477       ]
1478     ]
1479   }
1480 ]