289376697c3c8983148bc8b0b9fb99527987bfdc
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / Dispatcher-DG / APPC_method_Generic_Sync_2.0.0.json
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   "id": "9c13e82a.387b38",
23   "type": "dgstart",
24   "name": "DGSTART",
25   "outputs": 1,
26   "x": 131.66665649414062,
27   "y": 116.6666750907898,
28   "z": "214b12db.e4ae8e",
29   "wires": [["c8696732.57b668"]]
30 },
31   {
32     "id": "c8696732.57b668",
33     "type": "service-logic",
34     "name": "APPC 2.0.0",
35     "module": "APPC",
36     "version": "2.0.0",
37     "comments": "",
38     "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.0'>",
39     "outputs": 1,
40     "x": 311.6666564941406,
41     "y": 116.6666750907898,
42     "z": "214b12db.e4ae8e",
43     "wires": [["11c0a5be.fe5bfa"]]
44   },
45   {
46     "id": "11c0a5be.fe5bfa",
47     "type": "method",
48     "name": "Sync",
49     "xml": "<method rpc='Generic_Sync' mode='sync'>\n",
50     "comments": "",
51     "outputs": 1,
52     "x": 490.6666564941406,
53     "y": 116.6666750907898,
54     "z": "214b12db.e4ae8e",
55     "wires": [["cb484414.952458"]]
56   },
57   {
58     "id": "9ec6a6d6.7a5678",
59     "type": "get-resource",
60     "name": "Retrieve current config details",
61     "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"SELECT service_description, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\" pfx=\"currnt-config[]\">",
62     "comments": "",
63     "outputs": 1,
64     "x": 519.0861930847168,
65     "y": 437.4498953819275,
66     "z": "214b12db.e4ae8e",
67     "wires": [["a4a4499.da795b8",
68       "d4b62675.cc3218",
69       "f40aff31.110c9"]]
70   },
71   {
72     "id": "f40aff31.110c9",
73     "type": "failure",
74     "name": "failure",
75     "xml": "<outcome value='failure'>\n",
76     "comments": "",
77     "outputs": 1,
78     "x": 771.3759498596191,
79     "y": 365.17019033432007,
80     "z": "214b12db.e4ae8e",
81     "wires": [["841d3cc6.f08c7"]]
82   },
83   {
84     "id": "a4a4499.da795b8",
85     "type": "not-found",
86     "name": "not-found",
87     "xml": "<outcome value='not-found'>",
88     "comments": "",
89     "outputs": 1,
90     "x": 776.3759956359863,
91     "y": 436.947970867157,
92     "z": "214b12db.e4ae8e",
93     "wires": [["b9da4281.1adab"]]
94   },
95   {
96     "id": "d4b62675.cc3218",
97     "type": "success",
98     "name": "success",
99     "xml": "<outcome value='success'>\n",
100     "comments": "",
101     "outputs": 1,
102     "x": 773.598217010498,
103     "y": 500.61465311050415,
104     "z": "214b12db.e4ae8e",
105     "wires": [["88d88ec0.cbcfa"]]
106   },
107   {
108     "id": "2a1906ba.c69e1a",
109     "type": "execute",
110     "name": "Report Error to DCAE",
111     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
112     "comments": "",
113     "outputs": 1,
114     "x": 1229.2260704040527,
115     "y": 539.5462489128113,
116     "z": "214b12db.e4ae8e",
117     "wires": [[]]
118   },
119   {
120     "id": "2195ead0.db2c66",
121     "type": "returnFailure",
122     "name": "return failure",
123     "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
124     "comments": "",
125     "x": 1207.9867248535156,
126     "y": 592.734308719635,
127     "z": "214b12db.e4ae8e",
128     "wires": []
129   },
130   {
131     "id": "9e646937.3ed6a8",
132     "type": "set",
133     "name": "Set error message",
134     "xml": "<set>\n<parameter name='error-message' value=\"`'Current configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
135     "comments": "",
136     "x": 1214.5936851501465,
137     "y": 436.7257466316223,
138     "z": "214b12db.e4ae8e",
139     "wires": []
140   },
141   {
142     "id": "88cf09de.c0d5e8",
143     "type": "set",
144     "name": "Set error message",
145     "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving current configuration from the repository for the vnf-id : ' + $input.action-identifiers.vnf-id`\"/>\n",
146     "comments": "",
147     "x": 1215.234661102295,
148     "y": 384.6402335166931,
149     "z": "214b12db.e4ae8e",
150     "wires": []
151   },
152   {
153     "id": "841d3cc6.f08c7",
154     "type": "block",
155     "name": "block",
156     "xml": "<block>\n",
157     "atomic": "false",
158     "comments": "",
159     "outputs": 1,
160     "x": 932.456859588623,
161     "y": 365.05907678604126,
162     "z": "214b12db.e4ae8e",
163     "wires": [["88cf09de.c0d5e8",
164       "2a1906ba.c69e1a",
165       "2195ead0.db2c66",
166       "1aa4df6e.f6da11"]]
167   },
168   {
169     "id": "b9da4281.1adab",
170     "type": "block",
171     "name": "block",
172     "xml": "<block>\n",
173     "atomic": "false",
174     "comments": "",
175     "outputs": 1,
176     "x": 940.0124244689941,
177     "y": 436.8368649482727,
178     "z": "214b12db.e4ae8e",
179     "wires": [["9e646937.3ed6a8",
180       "2a1906ba.c69e1a",
181       "2195ead0.db2c66",
182       "1aa4df6e.f6da11"]]
183   },
184   {
185     "id": "88d88ec0.cbcfa",
186     "type": "block",
187     "name": "block : atomic",
188     "xml": "<block atomic='true'>",
189     "atomic": "true",
190     "comments": "",
191     "outputs": 1,
192     "x": 409.5640525817871,
193     "y": 615.6837515830994,
194     "z": "214b12db.e4ae8e",
195     "wires": [["7732a369.eb726c",
196       "4f4a7a36.c2a284",
197       "d5cea21b.c34aa",
198       "11dcb423.01808c",
199       "6d230a1.4a08cf4",
200       "855ad0e4.d405c",
201       "59566c79.8df204",
202       "872a0177.f9c8f",
203       "aa08d8db.e07148"]]
204   },
205   {
206     "id": "7732a369.eb726c",
207     "type": "for",
208     "name": "for each current config",
209     "xml": "<for index=\"i\" start=\"0\" end=\"`$currnt-config_length`\" >\n",
210     "comments": "",
211     "outputs": 1,
212     "x": 657.6324729919434,
213     "y": 616.0513052940369,
214     "z": "214b12db.e4ae8e",
215     "wires": [["842b0ba4.2b8248"]]
216   },
217   {
218     "id": "ce31ce3d.765e7",
219     "type": "set",
220     "name": "Set context",
221     "xml": "<set>\n<parameter name='service-description' value=\"`$currnt-config[$i].service-description`\" />\n<parameter name='vm-name' value=\"`$currnt-config[$i].vm-name`\" />\n<parameter name='vnf-type' value=\"`$currnt-config[$i].vnf-type`\" />\n<parameter name='vnfc-type' value=\"`$currnt-config[$i].vnfc-type`\" />\n<parameter name='host-ip-address' value=\"`$currnt-config[$i].host-ip-address`\" />\n<parameter name='vnf-name' value=\"`$currnt-config[$i].vnf-name`\" />\n",
222     "comments": "",
223     "x": 1072.4787254333496,
224     "y": 616.2821097373962,
225     "z": "214b12db.e4ae8e",
226     "wires": []
227   },
228   {
229     "id": "9fe7ebb1.f6f948",
230     "type": "call",
231     "name": "Call Retrieve running Config DG",
232     "xml": "<call rpc='GetRunningConfig' mode='sync' >\n",
233     "comments": "",
234     "outputs": 1,
235     "x": 1104.4786949157715,
236     "y": 674.28204870224,
237     "z": "214b12db.e4ae8e",
238     "wires": [["cd269b5.a716568",
239       "4f80d854.e62828",
240       "83342c8c.51a98"]]
241   },
242   {
243     "id": "842b0ba4.2b8248",
244     "type": "block",
245     "name": "block : atomic",
246     "xml": "<block atomic='true'>",
247     "atomic": "true",
248     "comments": "",
249     "outputs": 1,
250     "x": 852.7863121032715,
251     "y": 675.205144405365,
252     "z": "214b12db.e4ae8e",
253     "wires": [["ce31ce3d.765e7",
254       "9fe7ebb1.f6f948",
255       "dd580aa1.a817c8",
256       "4c8c9a0.c6b3768"]]
257   },
258   {
259     "id": "cd269b5.a716568",
260     "type": "failure",
261     "name": "failure",
262     "xml": "<outcome value='failure'>\n",
263     "comments": "",
264     "outputs": 1,
265     "x": 1346.5898399353027,
266     "y": 623.2819828987122,
267     "z": "214b12db.e4ae8e",
268     "wires": [["7e006a6b.da6ef4"]]
269   },
270   {
271     "id": "4f80d854.e62828",
272     "type": "not-found",
273     "name": "not-found",
274     "xml": "<outcome value='not-found'>",
275     "comments": "",
276     "outputs": 1,
277     "x": 1358.034236907959,
278     "y": 676.28204870224,
279     "z": "214b12db.e4ae8e",
280     "wires": [["6c663e2f.d966d"]]
281   },
282   {
283     "id": "83342c8c.51a98",
284     "type": "success",
285     "name": "success",
286     "xml": "<outcome value='success'>\n",
287     "comments": "",
288     "outputs": 1,
289     "x": 1368.1451988220215,
290     "y": 728.3930716514587,
291     "z": "214b12db.e4ae8e",
292     "wires": [[]]
293   },
294   {
295     "id": "4f4a7a36.c2a284",
296     "type": "update",
297     "name": "Mark current configs as historic",
298     "xml": "<update resource='SQL' force='true' plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' key=\"UPDATE UPLOAD_CONFIG SET config_indicator=null WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator='Current' AND (pending_delete IS NULL OR pending_delete != 'Y')\">\n",
299     "comments": "",
300     "outputs": 1,
301     "x": 801.5814094543457,
302     "y": 1163.6410536766052,
303     "z": "214b12db.e4ae8e",
304     "wires": [["25e5bfd2.2129e",
305       "baa57190.f5968"]]
306   },
307   {
308     "id": "d5cea21b.c34aa",
309     "type": "save",
310     "name": "Store device config as 'Current'",
311     "xml": "<save plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"INSERT INTO UPLOAD_CONFIG (request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, content) SELECT request_id, originator_id, service_description, action, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, 'Current', content FROM UPLOAD_CONFIG WHERE vnf_id = $input.action-identifiers.vnf-id AND config_indicator = 'Running' AND (pending_delete IS NULL OR pending_delete != 'Y')\" force='true'>\n",
312     "comments": "",
313     "outputs": 1,
314     "x": 795.196704864502,
315     "y": 1331.1795058250427,
316     "z": "214b12db.e4ae8e",
317     "wires": [["3111ae3b.b3f9e2",
318       "f1f93963.7ca2d8"]]
319   },
320   {
321     "id": "f1f93963.7ca2d8",
322     "type": "success",
323     "name": "success",
324     "xml": "<outcome value='success'>\n",
325     "comments": "",
326     "outputs": 1,
327     "x": 1055.1968002319336,
328     "y": 1375.1795058250427,
329     "z": "214b12db.e4ae8e",
330     "wires": [[]]
331   },
332   {
333     "id": "3111ae3b.b3f9e2",
334     "type": "failure",
335     "name": "failure",
336     "xml": "<outcome value='failure'>\n",
337     "comments": "",
338     "outputs": 1,
339     "x": 1050.1968002319336,
340     "y": 1291.1795058250427,
341     "z": "214b12db.e4ae8e",
342     "wires": [["f16ab34d.41c77"]]
343   },
344   {
345     "id": "25e5bfd2.2129e",
346     "type": "success",
347     "name": "success",
348     "xml": "<outcome value='success'>\n",
349     "comments": "",
350     "outputs": 1,
351     "x": 1060.581470489502,
352     "y": 1218.6410384178162,
353     "z": "214b12db.e4ae8e",
354     "wires": [[]]
355   },
356   {
357     "id": "baa57190.f5968",
358     "type": "failure",
359     "name": "failure",
360     "xml": "<outcome value='failure'>\n",
361     "comments": "",
362     "outputs": 1,
363     "x": 1054.581470489502,
364     "y": 1162.6410536766052,
365     "z": "214b12db.e4ae8e",
366     "wires": [["62bc5493.c88cfc"]]
367   },
368   {
369     "id": "7e006a6b.da6ef4",
370     "type": "block",
371     "name": "block",
372     "xml": "<block>\n",
373     "atomic": "false",
374     "comments": "",
375     "outputs": 1,
376     "x": 1497.1454181671143,
377     "y": 623.2819752693176,
378     "z": "214b12db.e4ae8e",
379     "wires": [["f6c71fae.e8d17",
380       "a278106d.b2101",
381       "aac04b94.261c38",
382       "4b77bb4a.9f7014"]]
383   },
384   {
385     "id": "f6c71fae.e8d17",
386     "type": "set",
387     "name": "Set error message",
388     "xml": "<set>\n<parameter name='error-message' value=\"`$error-message`\" />\n",
389     "comments": "",
390     "x": 1804.7011909484863,
391     "y": 521.1709504127502,
392     "z": "214b12db.e4ae8e",
393     "wires": []
394   },
395   {
396     "id": "6c663e2f.d966d",
397     "type": "block",
398     "name": "block",
399     "xml": "<block>\n",
400     "atomic": "false",
401     "comments": "",
402     "outputs": 1,
403     "x": 1510.4786949157715,
404     "y": 675.1709036827087,
405     "z": "214b12db.e4ae8e",
406     "wires": [["963a5bc6.b3e628",
407       "a278106d.b2101",
408       "aac04b94.261c38",
409       "4b77bb4a.9f7014"]]
410   },
411   {
412     "id": "963a5bc6.b3e628",
413     "type": "set",
414     "name": "Set error message",
415     "xml": "<set>\n<parameter name='error-message' value='DG to retrieve running configuration not found'/>",
416     "comments": "",
417     "x": 1806.7012519836426,
418     "y": 570.1709456443787,
419     "z": "214b12db.e4ae8e",
420     "wires": []
421   },
422   {
423     "id": "62bc5493.c88cfc",
424     "type": "block",
425     "name": "block",
426     "xml": "<block>\n",
427     "atomic": "false",
428     "comments": "",
429     "outputs": 1,
430     "x": 1223.359302520752,
431     "y": 1163.6410536766052,
432     "z": "214b12db.e4ae8e",
433     "wires": [["fca9379c.f1ba58",
434       "205f706d.16fb1",
435       "15018948.152e47",
436       "3521d3f3.e7bf6c",
437       "4d82212c.2ef21"]]
438   },
439   {
440     "id": "fca9379c.f1ba58",
441     "type": "set",
442     "name": "Set error message",
443     "xml": "<set>\n<parameter name='error-message' value=\"`'Error while marking current configuration as historic in the repository for vnf-id:' + $input.action-identifiers.vnf-id`\" />\n",
444     "comments": "",
445     "x": 1451.6924629211426,
446     "y": 1200.6411147117615,
447     "z": "214b12db.e4ae8e",
448     "wires": []
449   },
450   {
451     "id": "f16ab34d.41c77",
452     "type": "block",
453     "name": "block",
454     "xml": "<block>\n",
455     "atomic": "false",
456     "comments": "",
457     "outputs": 1,
458     "x": 1216.9744491577148,
459     "y": 1293.1795058250427,
460     "z": "214b12db.e4ae8e",
461     "wires": [["4adc4f3b.17a16",
462       "205f706d.16fb1",
463       "15018948.152e47",
464       "3521d3f3.e7bf6c",
465       "4d82212c.2ef21"]]
466   },
467   {
468     "id": "4adc4f3b.17a16",
469     "type": "set",
470     "name": "Set error message",
471     "xml": "<set>\n<parameter name='error-message' value=\"`'Error while storing the new current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\" />\n",
472     "comments": "",
473     "x": 1443.529987335205,
474     "y": 1245.2907118797302,
475     "z": "214b12db.e4ae8e",
476     "wires": []
477   },
478   {
479     "id": "aac04b94.261c38",
480     "type": "returnFailure",
481     "name": "return failure",
482     "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
483     "comments": "",
484     "x": 1787.5473823547363,
485     "y": 713.0171122550964,
486     "z": "214b12db.e4ae8e",
487     "wires": []
488   },
489   {
490     "id": "a278106d.b2101",
491     "type": "execute",
492     "name": "Report Error to DCAE",
493     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
494     "comments": "",
495     "outputs": 1,
496     "x": 1816.5474433898926,
497     "y": 663.0170950889587,
498     "z": "214b12db.e4ae8e",
499     "wires": [[]]
500   },
501   {
502     "id": "15018948.152e47",
503     "type": "returnFailure",
504     "name": "return failure",
505     "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
506     "comments": "",
507     "x": 1436.7608222961426,
508     "y": 1427.1369032859802,
509     "z": "214b12db.e4ae8e",
510     "wires": []
511   },
512   {
513     "id": "205f706d.16fb1",
514     "type": "execute",
515     "name": "Report Error to DCAE",
516     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
517     "comments": "",
518     "outputs": 1,
519     "x": 1461.7608222961426,
520     "y": 1337.1369032859802,
521     "z": "214b12db.e4ae8e",
522     "wires": [[]]
523   },
524   {
525     "id": "f5cfbdb3.30a63",
526     "type": "block",
527     "name": "block",
528     "xml": "<block>\n",
529     "atomic": "false",
530     "comments": "",
531     "outputs": 1,
532     "x": 291.6666603088379,
533     "y": 343.57577085494995,
534     "z": "214b12db.e4ae8e",
535     "wires": [["9ec6a6d6.7a5678",
536       "58cdab19.f47684"]]
537   },
538   {
539     "id": "1aa4df6e.f6da11",
540     "type": "record",
541     "name": "Log error",
542     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
543     "comments": "",
544     "outputs": 1,
545     "x": 1182.3589057922363,
546     "y": 491.3589644432068,
547     "z": "214b12db.e4ae8e",
548     "wires": [[]]
549   },
550   {
551     "id": "4b77bb4a.9f7014",
552     "type": "record",
553     "name": "Log error",
554     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
555     "comments": "",
556     "outputs": 1,
557     "x": 1778.0247383117676,
558     "y": 613.7672305107117,
559     "z": "214b12db.e4ae8e",
560     "wires": [[]]
561   },
562   {
563     "id": "3521d3f3.e7bf6c",
564     "type": "record",
565     "name": "Log error",
566     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
567     "comments": "",
568     "outputs": 1,
569     "x": 1427.1704940795898,
570     "y": 1292.0814833641052,
571     "z": "214b12db.e4ae8e",
572     "wires": [[]]
573   },
574   {
575     "id": "58cdab19.f47684",
576     "type": "record",
577     "name": "Log message",
578     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Retrieving current configuration details from the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
579     "comments": "",
580     "outputs": 1,
581     "x": 481.0855522155762,
582     "y": 343.16138219833374,
583     "z": "214b12db.e4ae8e",
584     "wires": [[]]
585   },
586   {
587     "id": "11dcb423.01808c",
588     "type": "record",
589     "name": "Log message",
590     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Marking current configuration as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
591     "comments": "",
592     "outputs": 1,
593     "x": 735.7780342102051,
594     "y": 1098.2382216453552,
595     "z": "214b12db.e4ae8e",
596     "wires": [[]]
597   },
598   {
599     "id": "6d230a1.4a08cf4",
600     "type": "record",
601     "name": "Log message",
602     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Storing device configuration as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
603     "comments": "",
604     "outputs": 1,
605     "x": 745.7009773254395,
606     "y": 1274.3923964500427,
607     "z": "214b12db.e4ae8e",
608     "wires": [[]]
609   },
610   {
611     "id": "855ad0e4.d405c",
612     "type": "record",
613     "name": "Log message",
614     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Current configuration marked as historic in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
615     "comments": "",
616     "outputs": 1,
617     "x": 748.6198616027832,
618     "y": 1218.4325575828552,
619     "z": "214b12db.e4ae8e",
620     "wires": [[]]
621   },
622   {
623     "id": "59566c79.8df204",
624     "type": "record",
625     "name": "Log message",
626     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"debug\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`'Device configuration stored as Current configuration in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>\n",
627     "comments": "",
628     "outputs": 1,
629     "x": 735.6198616027832,
630     "y": 1387.8555312156677,
631     "z": "214b12db.e4ae8e",
632     "wires": [[]]
633   },
634   {
635     "id": "872a0177.f9c8f",
636     "type": "returnSuccess",
637     "name": "return success",
638     "xml": "<return status='success'>\n",
639     "comments": "",
640     "x": 711.4660873413086,
641     "y": 1504.8555312156677,
642     "z": "214b12db.e4ae8e",
643     "wires": []
644   },
645   {
646     "id": "dd580aa1.a817c8",
647     "type": "set",
648     "name": "Set Running Config ID",
649     "xml": "<set>\n<parameter name='output.payload.upload-config-id[$i]' value='`$runningConfig.UPLOAD-CONFIG-ID`' />\n\n",
650     "comments": "",
651     "x": 1083.6667442321777,
652     "y": 733.0000834465027,
653     "z": "214b12db.e4ae8e",
654     "wires": []
655   },
656   {
657     "id": "aa08d8db.e07148",
658     "type": "execute",
659     "name": "Generate output payload",
660     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
661     "comments": "",
662     "outputs": 1,
663     "x": 763.6667366027832,
664     "y": 1445.0000014305115,
665     "z": "214b12db.e4ae8e",
666     "wires": [["1639668d.25e0d9",
667       "264aed94.5a8e32",
668       "397802b1.358f0e"]]
669   },
670   {
671     "id": "1639668d.25e0d9",
672     "type": "failure",
673     "name": "failure",
674     "xml": "<outcome value='failure'>\n",
675     "comments": "",
676     "outputs": 1,
677     "x": 1006.6668586730957,
678     "y": 1425.9999403953552,
679     "z": "214b12db.e4ae8e",
680     "wires": [["a0b721e.ccba5e"]]
681   },
682   {
683     "id": "264aed94.5a8e32",
684     "type": "not-found",
685     "name": "not-found",
686     "xml": "<outcome value='not-found'>\n",
687     "comments": "",
688     "outputs": 1,
689     "x": 1008.6668586730957,
690     "y": 1471.0000014305115,
691     "z": "214b12db.e4ae8e",
692     "wires": [["a0b721e.ccba5e"]]
693   },
694   {
695     "id": "397802b1.358f0e",
696     "type": "success",
697     "name": "success",
698     "xml": "<outcome value='success'>\n",
699     "comments": "",
700     "outputs": 1,
701     "x": 1011.6667366027832,
702     "y": 1521.9999403953552,
703     "z": "214b12db.e4ae8e",
704     "wires": [[]]
705   },
706   {
707     "id": "a0b721e.ccba5e",
708     "type": "block",
709     "name": "block : atomic",
710     "xml": "<block atomic='true'>",
711     "atomic": "true",
712     "comments": "",
713     "outputs": 1,
714     "x": 1206.3336067199707,
715     "y": 1482.9999403953552,
716     "z": "214b12db.e4ae8e",
717     "wires": [["a2cf5226.8165",
718       "bd7acdda.91a63"]]
719   },
720   {
721     "id": "bd7acdda.91a63",
722     "type": "execute",
723     "name": "Report error to DCAE",
724     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
725     "comments": "",
726     "outputs": 1,
727     "x": 1441.2381706237793,
728     "y": 1484.3807997703552,
729     "z": "214b12db.e4ae8e",
730     "wires": [[]]
731   },
732   {
733     "id": "a2cf5226.8165",
734     "type": "returnFailure",
735     "name": "return failure",
736     "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
737     "comments": "",
738     "x": 1425.6666374206543,
739     "y": 1533.5236220359802,
740     "z": "214b12db.e4ae8e",
741     "wires": []
742   },
743   {
744     "id": "4d82212c.2ef21",
745     "type": "execute",
746     "name": "Generate output payload",
747     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='generateOutputPayloadFromContext' >",
748     "comments": "",
749     "outputs": 1,
750     "x": 1493.8887519836426,
751     "y": 1385.0000014305115,
752     "z": "214b12db.e4ae8e",
753     "wires": [["425e2e54.04ff7",
754       "d2f01dc7.e5e29",
755       "481f9e71.90512"]]
756   },
757   {
758     "id": "425e2e54.04ff7",
759     "type": "failure",
760     "name": "failure",
761     "xml": "<outcome value='failure'>\n",
762     "comments": "",
763     "outputs": 1,
764     "x": 1740.8889350891113,
765     "y": 1332.9999403953552,
766     "z": "214b12db.e4ae8e",
767     "wires": [["62fbe5e0.d9cdcc"]]
768   },
769   {
770     "id": "d2f01dc7.e5e29",
771     "type": "not-found",
772     "name": "not-found",
773     "xml": "<outcome value='not-found'>\n",
774     "comments": "",
775     "outputs": 1,
776     "x": 1731.8889961242676,
777     "y": 1386.0000014305115,
778     "z": "214b12db.e4ae8e",
779     "wires": [["62fbe5e0.d9cdcc"]]
780   },
781   {
782     "id": "481f9e71.90512",
783     "type": "success",
784     "name": "success",
785     "xml": "<outcome value='success'>\n",
786     "comments": "",
787     "outputs": 1,
788     "x": 1733.888874053955,
789     "y": 1435.9999403953552,
790     "z": "214b12db.e4ae8e",
791     "wires": [[]]
792   },
793   {
794     "id": "62fbe5e0.d9cdcc",
795     "type": "block",
796     "name": "block : atomic",
797     "xml": "<block atomic='true'>",
798     "atomic": "true",
799     "comments": "",
800     "outputs": 1,
801     "x": 1936.5558052062988,
802     "y": 1356.9999403953552,
803     "z": "214b12db.e4ae8e",
804     "wires": [["23d2ce67.52c4d2",
805       "49e01c1c.c64a44"]]
806   },
807   {
808     "id": "49e01c1c.c64a44",
809     "type": "execute",
810     "name": "Report error to DCAE",
811     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Failure while generating output payload JSON\" />",
812     "comments": "",
813     "outputs": 1,
814     "x": 2165.460346221924,
815     "y": 1355.3807997703552,
816     "z": "214b12db.e4ae8e",
817     "wires": [[]]
818   },
819   {
820     "id": "23d2ce67.52c4d2",
821     "type": "returnFailure",
822     "name": "return failure",
823     "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
824     "comments": "",
825     "x": 2145.888813018799,
826     "y": 1416.5236220359802,
827     "z": "214b12db.e4ae8e",
828     "wires": []
829   },
830   {
831     "id": "f6b28639.a1c3a8",
832     "type": "outcome",
833     "name": "Outcome: y",
834     "xml": "<outcome value='y'>\n",
835     "comments": "",
836     "outputs": 1,
837     "x": 1190.6666526794434,
838     "y": 808.1822867393494,
839     "z": "214b12db.e4ae8e",
840     "wires": [["60059d22.c2ba54"]]
841   },
842   {
843     "id": "4c8c9a0.c6b3768",
844     "type": "switchNode",
845     "name": "switch",
846     "xml": "<switch test='`$Publish_Config`'>",
847     "comments": "",
848     "outputs": 1,
849     "x": 1037.6666984558105,
850     "y": 799.5156636238098,
851     "z": "214b12db.e4ae8e",
852     "wires": [["f6b28639.a1c3a8",
853       "6d199d17.82f204"]]
854   },
855   {
856     "id": "60059d22.c2ba54",
857     "type": "get-resource",
858     "name": "Retrieve Running config details DB",
859     "xml": "<get-resource plugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' resource='SQL' key=\"SELECT upload_config_id, request_id, originator_id, service_description, action, upload_date, vnf_id, vnf_name, vm_name, vnf_type, vnfc_type, host_ip_address, config_indicator, pending_delete ,content FROM UPLOAD_CONFIG WHERE upload_config_id = $runningConfig.UPLOAD-CONFIG-ID\" pfx=\"running-config\">",
860     "comments": "",
861     "outputs": 1,
862     "x": 1432.6667404174805,
863     "y": 829.1823210716248,
864     "z": "214b12db.e4ae8e",
865     "wires": [["cdc99515.922c58",
866       "9a6d5a51.faabc8",
867       "9034241c.159aa8"]]
868   },
869   {
870     "id": "cdc99515.922c58",
871     "type": "success",
872     "name": "success",
873     "xml": "<outcome value='success'>\n",
874     "comments": "",
875     "outputs": 1,
876     "x": 1690.6669082641602,
877     "y": 840.1825032234192,
878     "z": "214b12db.e4ae8e",
879     "wires": [["7e300025.5253a"]]
880   },
881   {
882     "id": "7e300025.5253a",
883     "type": "execute",
884     "name": "execute CvaasDataIntoContext",
885     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='cvaasFileNameAndFileContentToContext' >\n<parameter name=\"cvaas-directory-path\" value=\"/opt/app/bvc/cvaas\" />\n<parameter name=\"appc-instance-id\" value=\"appc01\" />\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
886     "comments": "",
887     "outputs": 1,
888     "x": 1943.9172744750977,
889     "y": 844.1830830574036,
890     "z": "214b12db.e4ae8e",
891     "wires": [["eb8bab96.3c6e98",
892       "46abe9bb.2c0fd8",
893       "ce71ba2a.e1ce38"]]
894   },
895   {
896     "id": "eb8bab96.3c6e98",
897     "type": "success",
898     "name": "success",
899     "xml": "<outcome value='success'>\n",
900     "comments": "",
901     "outputs": 1,
902     "x": 2241.1673278808594,
903     "y": 965.1831040382385,
904     "z": "214b12db.e4ae8e",
905     "wires": [["694c898b.ddbd58"]]
906   },
907   {
908     "id": "46abe9bb.2c0fd8",
909     "type": "failure",
910     "name": "failure",
911     "xml": "<outcome value='failure'>\n",
912     "comments": "",
913     "outputs": 1,
914     "x": 2250.6669998168945,
915     "y": 861.1828625202179,
916     "z": "214b12db.e4ae8e",
917     "wires": [["9fa2a21b.8af7c"]]
918   },
919   {
920     "id": "ce71ba2a.e1ce38",
921     "type": "not-found",
922     "name": "not-found",
923     "xml": "<outcome value='not-found'>\n",
924     "comments": "",
925     "outputs": 1,
926     "x": 2257.667266845703,
927     "y": 913.1830716133118,
928     "z": "214b12db.e4ae8e",
929     "wires": [["9fa2a21b.8af7c"]]
930   },
931   {
932     "id": "9034241c.159aa8",
933     "type": "not-found",
934     "name": "not-found",
935     "xml": "<outcome value='not-found'>",
936     "comments": "",
937     "outputs": 1,
938     "x": 1524.9166564941406,
939     "y": 1005.182294845581,
940     "z": "214b12db.e4ae8e",
941     "wires": [["567684cc.50b0dc"]]
942   },
943   {
944     "id": "9a6d5a51.faabc8",
945     "type": "failure",
946     "name": "failure",
947     "xml": "<outcome value='failure'>\n",
948     "comments": "",
949     "outputs": 1,
950     "x": 1521.9165420532227,
951     "y": 953.4044423103333,
952     "z": "214b12db.e4ae8e",
953     "wires": [["4bc0b87d.970378"]]
954   },
955   {
956     "id": "4bc0b87d.970378",
957     "type": "block",
958     "name": "block",
959     "xml": "<block>\n",
960     "atomic": "false",
961     "comments": "",
962     "outputs": 1,
963     "x": 1661.9975929260254,
964     "y": 955.2935299873352,
965     "z": "214b12db.e4ae8e",
966     "wires": [["3ce78b3b.82fee4",
967       "ce132d3c.9e7bb",
968       "de31ac1.3cad05",
969       "ba52c35d.d0a18"]]
970   },
971   {
972     "id": "567684cc.50b0dc",
973     "type": "block",
974     "name": "block",
975     "xml": "<block>\n",
976     "atomic": "false",
977     "comments": "",
978     "outputs": 1,
979     "x": 1661.553165435791,
980     "y": 1014.0713334083557,
981     "z": "214b12db.e4ae8e",
982     "wires": [["ce132d3c.9e7bb",
983       "de31ac1.3cad05",
984       "ba52c35d.d0a18",
985       "956742c7.415fd"]]
986   },
987   {
988     "id": "ba52c35d.d0a18",
989     "type": "record",
990     "name": "Log error",
991     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
992     "comments": "",
993     "outputs": 1,
994     "x": 1859.8998336791992,
995     "y": 1030.5936121940613,
996     "z": "214b12db.e4ae8e",
997     "wires": [[]]
998   },
999   {
1000     "id": "3ce78b3b.82fee4",
1001     "type": "set",
1002     "name": "Set error message",
1003     "xml": "<set>\n<parameter name='error-message' value=\"`'Error while retrieving running configuration from the repository for the vnf-id : ' + $input.action-identifiers.vnf-id`\"/>\n",
1004     "comments": "",
1005     "x": 1892.7756729125977,
1006     "y": 930.875011920929,
1007     "z": "214b12db.e4ae8e",
1008     "wires": []
1009   },
1010   {
1011     "id": "6d199d17.82f204",
1012     "type": "outcome",
1013     "name": "Outcome: Y",
1014     "xml": "<outcome value='Y'>\n",
1015     "comments": "",
1016     "outputs": 1,
1017     "x": 1191.6667098999023,
1018     "y": 860.1822571754456,
1019     "z": "214b12db.e4ae8e",
1020     "wires": [["60059d22.c2ba54"]]
1021   },
1022   {
1023     "id": "956742c7.415fd",
1024     "type": "set",
1025     "name": "Set error message",
1026     "xml": "<set>\n<parameter name='error-message' value=\"`'Running configuration not found in the repository for vnf-id: ' + $input.action-identifiers.vnf-id`\"/>",
1027     "comments": "",
1028     "x": 1891.1346130371094,
1029     "y": 979.9603943824768,
1030     "z": "214b12db.e4ae8e",
1031     "wires": []
1032   },
1033   {
1034     "id": "694c898b.ddbd58",
1035     "type": "record",
1036     "name": "record cvass",
1037     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"`$cvaas-file-name`\"/>\n<parameter name=\"record\" value=\"`$cvaas-file-content`\"/>",
1038     "comments": "",
1039     "outputs": 1,
1040     "x": 2417.917697906494,
1041     "y": 1007.1834092140198,
1042     "z": "214b12db.e4ae8e",
1043     "wires": [["e96f6416.e57a18",
1044       "9939c991.265c38"]]
1045   },
1046   {
1047     "id": "900e8879.a7b3f8",
1048     "type": "returnFailure",
1049     "name": "return failure",
1050     "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1051     "comments": "",
1052     "x": 2636.6667404174805,
1053     "y": 938.7069244384766,
1054     "z": "214b12db.e4ae8e",
1055     "wires": []
1056   },
1057   {
1058     "id": "4c75663f.43f0d8",
1059     "type": "execute",
1060     "name": "execute CheckFileCreated",
1061     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='checkFileCreated' >\n<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />",
1062     "comments": "",
1063     "outputs": 1,
1064     "x": 2490.933391571045,
1065     "y": 1143.9486117362976,
1066     "z": "214b12db.e4ae8e",
1067     "wires": [["a473caa6.56a5f8",
1068       "18a86d58.a2caa3",
1069       "3498054b.73705a"]]
1070   },
1071   {
1072     "id": "4f4d3434.694adc",
1073     "type": "block",
1074     "name": "block : atomic",
1075     "xml": "<block atomic='true'>",
1076     "atomic": "false",
1077     "comments": "",
1078     "outputs": 1,
1079     "x": 2965.4338912963867,
1080     "y": 1122.9491600990295,
1081     "z": "214b12db.e4ae8e",
1082     "wires": [["8b90be34.c5f61",
1083       "cab8f54e.ec65e8",
1084       "feccd180.68417",
1085       "cd47c223.a0626"]]
1086   },
1087   {
1088     "id": "8b90be34.c5f61",
1089     "type": "set",
1090     "name": "Set error message",
1091     "xml": "<set>\n<parameter name='error-message' value=\"`'Cvass file could not be created'`\"/>",
1092     "comments": "",
1093     "x": 3205.9892539978027,
1094     "y": 1070.8379549980164,
1095     "z": "214b12db.e4ae8e",
1096     "wires": []
1097   },
1098   {
1099     "id": "feccd180.68417",
1100     "type": "record",
1101     "name": "Log error",
1102     "xml": "<record plugin=\"org.openecomp.sdnc.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"error\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"record\" value=\"`$error-message`\"/>\n",
1103     "comments": "",
1104     "outputs": 1,
1105     "x": 3182.3132286071777,
1106     "y": 1122.4345178604126,
1107     "z": "214b12db.e4ae8e",
1108     "wires": [[]]
1109   },
1110   {
1111     "id": "cab8f54e.ec65e8",
1112     "type": "execute",
1113     "name": "Report Error to DCAE",
1114     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1115     "comments": "",
1116     "outputs": 1,
1117     "x": 3216.8359298706055,
1118     "y": 1174.6844897270203,
1119     "z": "214b12db.e4ae8e",
1120     "wires": [[]]
1121   },
1122   {
1123     "id": "18a86d58.a2caa3",
1124     "type": "failure",
1125     "name": "failure",
1126     "xml": "<outcome value='failure'>\n",
1127     "comments": "",
1128     "outputs": 1,
1129     "x": 2745.9338912963867,
1130     "y": 1097.9491291046143,
1131     "z": "214b12db.e4ae8e",
1132     "wires": [["4f4d3434.694adc"]]
1133   },
1134   {
1135     "id": "a473caa6.56a5f8",
1136     "type": "not-found",
1137     "name": "not-found",
1138     "xml": "<outcome value='not-found'>\n",
1139     "comments": "",
1140     "outputs": 1,
1141     "x": 2754.9335975646973,
1142     "y": 1154.9489903450012,
1143     "z": "214b12db.e4ae8e",
1144     "wires": [["4f4d3434.694adc"]]
1145   },
1146   {
1147     "id": "3498054b.73705a",
1148     "type": "success",
1149     "name": "success",
1150     "xml": "<outcome value='success'>\n",
1151     "comments": "",
1152     "outputs": 1,
1153     "x": 2761.933582305908,
1154     "y": 1207.9490694999695,
1155     "z": "214b12db.e4ae8e",
1156     "wires": [[]]
1157   },
1158   {
1159     "id": "9fa2a21b.8af7c",
1160     "type": "block",
1161     "name": "block : atomic",
1162     "xml": "<block atomic='true'>",
1163     "atomic": "true",
1164     "comments": "",
1165     "outputs": 1,
1166     "x": 2456.3336868286133,
1167     "y": 883.1828720569611,
1168     "z": "214b12db.e4ae8e",
1169     "wires": [["900e8879.a7b3f8",
1170       "8652a63d.1ea618"]]
1171   },
1172   {
1173     "id": "8652a63d.1ea618",
1174     "type": "execute",
1175     "name": "Report error to DCAE",
1176     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"output.status.message\" value=\"Error while fetching cvass data\" />",
1177     "comments": "",
1178     "outputs": 1,
1179     "x": 2655.238349914551,
1180     "y": 840.5637314319611,
1181     "z": "214b12db.e4ae8e",
1182     "wires": [[]]
1183   },
1184   {
1185     "id": "e96f6416.e57a18",
1186     "type": "failure",
1187     "name": "failure",
1188     "xml": "<outcome value='failure'>\n",
1189     "comments": "",
1190     "outputs": 1,
1191     "x": 2254.933277130127,
1192     "y": 1124.9486260414124,
1193     "z": "214b12db.e4ae8e",
1194     "wires": [["4c75663f.43f0d8"]]
1195   },
1196   {
1197     "id": "9939c991.265c38",
1198     "type": "success",
1199     "name": "success",
1200     "xml": "<outcome value='success'>\n",
1201     "comments": "",
1202     "outputs": 1,
1203     "x": 2255.9330825805664,
1204     "y": 1167.9487557411194,
1205     "z": "214b12db.e4ae8e",
1206     "wires": [["4c75663f.43f0d8"]]
1207   },
1208   {
1209     "id": "de31ac1.3cad05",
1210     "type": "returnFailure",
1211     "name": "return failure",
1212     "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
1213     "comments": "",
1214     "x": 1875.5276527404785,
1215     "y": 1128.9689564704895,
1216     "z": "214b12db.e4ae8e",
1217     "wires": []
1218   },
1219   {
1220     "id": "ce132d3c.9e7bb",
1221     "type": "execute",
1222     "name": "Report Error to DCAE",
1223     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name='output.status.message' value=\"`$error-message`\"/>",
1224     "comments": "",
1225     "outputs": 1,
1226     "x": 1900.7669982910156,
1227     "y": 1077.7808966636658,
1228     "z": "214b12db.e4ae8e",
1229     "wires": [[]]
1230   },
1231   {
1232     "id": "cb484414.952458",
1233     "type": "execute",
1234     "name": "Set payload in Context",
1235     "xml": "<execute plugin='org.openecomp.appc.dg.common.JsonDgUtil' method='flatAndAddToContext' >\n<parameter name=\"payload\" value=\"`$input.payload`\" />",
1236     "comments": "",
1237     "outputs": 1,
1238     "x": 726.6667137145996,
1239     "y": 116.74999856948853,
1240     "z": "214b12db.e4ae8e",
1241     "wires": [["b20f9d10.79243",
1242       "c4b37771.d26c18",
1243       "b02ba377.938ab",
1244       "d871965c.fc6f98"]]
1245   },
1246   {
1247     "id": "c4b37771.d26c18",
1248     "type": "other",
1249     "name": "other",
1250     "xml": "<outcome value='Other'>\n",
1251     "comments": "",
1252     "outputs": 1,
1253     "x": 1016.6667289733887,
1254     "y": 58.99999761581421,
1255     "z": "214b12db.e4ae8e",
1256     "wires": [["507fcd18.8ae1c4"]]
1257   },
1258   {
1259     "id": "b02ba377.938ab",
1260     "type": "failure",
1261     "name": "failure",
1262     "xml": "<outcome value='failure'>\n",
1263     "comments": "",
1264     "outputs": 1,
1265     "x": 1017.6667289733887,
1266     "y": 108.99999761581421,
1267     "z": "214b12db.e4ae8e",
1268     "wires": [["507fcd18.8ae1c4"]]
1269   },
1270   {
1271     "id": "d871965c.fc6f98",
1272     "type": "not-found",
1273     "name": "not-found",
1274     "xml": "<outcome value='not-found'>\n",
1275     "comments": "",
1276     "outputs": 1,
1277     "x": 1010.6667289733887,
1278     "y": 164.00001287460327,
1279     "z": "214b12db.e4ae8e",
1280     "wires": [["507fcd18.8ae1c4"]]
1281   },
1282   {
1283     "id": "b20f9d10.79243",
1284     "type": "success",
1285     "name": "success",
1286     "xml": "<outcome value='success'>\n",
1287     "comments": "",
1288     "outputs": 1,
1289     "x": 1007.6667900085449,
1290     "y": 219.750009059906,
1291     "z": "214b12db.e4ae8e",
1292     "wires": [["f5cfbdb3.30a63"]]
1293   },
1294   {
1295     "id": "507fcd18.8ae1c4",
1296     "type": "block",
1297     "name": "block",
1298     "xml": "<block atomic='true'>",
1299     "atomic": "true",
1300     "comments": "",
1301     "outputs": 1,
1302     "x": 1224.3333702087402,
1303     "y": 151.99999952316284,
1304     "z": "214b12db.e4ae8e",
1305     "wires": [["2a1493.66c87b6e",
1306       "861e0870.0e6308"]]
1307   },
1308   {
1309     "id": "861e0870.0e6308",
1310     "type": "execute",
1311     "name": "OutputMessageBuilder",
1312     "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\" />",
1313     "comments": "",
1314     "outputs": 1,
1315     "x": 1454.6664390563965,
1316     "y": 103.88888502120972,
1317     "z": "214b12db.e4ae8e",
1318     "wires": [["b958118a.b4c35"]]
1319   },
1320   {
1321     "id": "2a1493.66c87b6e",
1322     "type": "returnFailure",
1323     "name": "return failure",
1324     "xml": "<return status='failure'>\n<parameter name=\"output.status.message\" value=\"Failure in flattening payload Json\" />",
1325     "comments": "",
1326     "x": 1421.666316986084,
1327     "y": 152.52372694015503,
1328     "z": "214b12db.e4ae8e",
1329     "wires": []
1330   },
1331   {
1332     "id": "b958118a.b4c35",
1333     "type": "success",
1334     "name": "success",
1335     "xml": "<outcome value='success'>\n",
1336     "comments": "",
1337     "outputs": 1,
1338     "x": 1662.7614707946777,
1339     "y": 103.17462110519409,
1340     "z": "214b12db.e4ae8e",
1341     "wires": [["61a0d1cf.928f8"]]
1342   },
1343   {
1344     "id": "61a0d1cf.928f8",
1345     "type": "execute",
1346     "name": "Report Error to DCAE",
1347     "xml": "<execute plugin='org.openecomp.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"event-message\" value=\"`$event-message`\" />",
1348     "comments": "",
1349     "outputs": 1,
1350     "x": 1864.3330039978027,
1351     "y": 102.88888502120972,
1352     "z": "214b12db.e4ae8e",
1353     "wires": [[]]
1354   },
1355   {
1356     "id": "cd47c223.a0626",
1357     "type": "returnFailure",
1358     "name": "return failure",
1359     "xml": "<return status='failure'>\n<parameter name='error-code' value='401'/>\n<parameter name='error-message' value=\"`$error-message`\"/>\n<parameter name='output.status.code' value='401'/>\n<parameter name='output.status.message' value=\"`$error-message`\"/>\n",
1360     "comments": "",
1361     "x": 3202.333251953125,
1362     "y": 1273,
1363     "z": "214b12db.e4ae8e",
1364     "wires": []
1365   }]