Deployment onap rename
[appc/deployment.git] / platform-logic / appc / src / main / json / APPC_chef.json
1 [{
2         "id": "335dc414.286014",
3         "type": "set",
4         "name": "chef server set",
5         "xml": "<set>\n<parameter name='chef-server-address' value='`$chef-server-address`' />\n<parameter name='chef-username' value='`$chef-username`' />\n<parameter name='chef-organization' value='`$chef-organization`'/>\n",
6         "comments": "",
7         "x": 404,
8         "y": 238.45454788208008,
9         "z": "49009b52.507ca4",
10         "wires": []
11 }, {
12         "id": "33bda605.955de2",
13         "type": "block",
14         "name": "block",
15         "xml": "<block>\n",
16         "atomic": "false",
17         "comments": "",
18         "outputs": 1,
19         "x": 218.54547882080078,
20         "y": 485,
21         "z": "49009b52.507ca4",
22         "wires": [
23                 ["e8329217.2dc7c", "a40c3e36.fe8338"]
24         ]
25 }, {
26         "id": "e8329217.2dc7c",
27         "type": "execute",
28         "name": "Environment",
29         "xml": "<execute plugin='org.onap.appc.adapter.chef.ChefAdapter' method='VnfcEnvironment' >\n<parameter name='organizations' value='`$chef-organization`'/> \n<parameter name='serverAddress' value='`$chef-server-address`'/> \n<parameter name='username' value='`$chef-username`'/> \n<parameter name='Environment' value='`$Environment`'/>",
30         "comments": "",
31         "outputs": 1,
32         "x": 409.9091262817383,
33         "y": 410.2727355957031,
34         "z": "49009b52.507ca4",
35         "wires": [
36                 []
37         ]
38 }, {
39         "id": "b142240c.8ddff8",
40         "type": "block",
41         "name": "block",
42         "xml": "<block>\n",
43         "atomic": "false",
44         "comments": "",
45         "outputs": 1,
46         "x": 816.9091110229492,
47         "y": 408.7272605895996,
48         "z": "49009b52.507ca4",
49         "wires": [
50                 ["bc8d5070.3d88b8", "10a16c52.ad032c"]
51         ]
52 }, {
53         "id": "bc8d5070.3d88b8",
54         "type": "execute",
55         "name": "VnfcNodeobjects",
56         "xml": "<execute plugin='org.onap.appc.adapter.chef.ChefAdapter' method='VnfcNodeobjects' >\n<parameter name='organizations' value='`$chef-organization`'/> \n<parameter name='serverAddress' value='`$chef-server-address`'/> \n<parameter name='username' value='`$chef-username`'/> \n<parameter name='NodeList' value='`$NodeList`'/>\n<parameter name='Node' value='`$Node`'/>",
57         "comments": "",
58         "outputs": 1,
59         "x": 1050.0908889770508,
60         "y": 367.00000381469727,
61         "z": "49009b52.507ca4",
62         "wires": [
63                 []
64         ]
65 }, {
66         "id": "10a16c52.ad032c",
67         "type": "switchNode",
68         "name": "switch",
69         "xml": "<switch test='`$chefServerResult.code`'>",
70         "comments": "",
71         "outputs": 1,
72         "x": 1063.0908889770508,
73         "y": 471.00000381469727,
74         "z": "49009b52.507ca4",
75         "wires": [
76                 ["f32d707f.bec0f", "1b80d2ba.806e35"]
77         ]
78 }, {
79         "id": "1b80d2ba.806e35",
80         "type": "other",
81         "name": "outcome",
82         "xml": "<outcome value='200'>\n",
83         "comments": "",
84         "outputs": 1,
85         "x": 1251.0908889770508,
86         "y": 454,
87         "z": "49009b52.507ca4",
88         "wires": [
89                 ["4c00f500.6c661c"]
90         ]
91 }, {
92         "id": "f32d707f.bec0f",
93         "type": "other",
94         "name": "outcome",
95         "xml": "<outcome value='Other'>\n",
96         "comments": "",
97         "outputs": 1,
98         "x": 1161.0908889770508,
99         "y": 587.0000038146973,
100         "z": "49009b52.507ca4",
101         "wires": [
102                 ["2a7cac08.317dec"]
103         ]
104 }, {
105         "id": "43690b27.0ac9cc",
106         "type": "block",
107         "name": "block",
108         "xml": "<block>\n",
109         "atomic": "false",
110         "comments": "",
111         "outputs": 1,
112         "x": 1681.1819534301758,
113         "y": 199.09091186523438,
114         "z": "49009b52.507ca4",
115         "wires": [
116                 ["f306ea50.b4f3e", "e4f71a52.e2d5e"]
117         ]
118 }, {
119         "id": "9082bb4a.80248",
120         "type": "execute",
121         "name": "checkPushJob",
122         "xml": "<execute plugin='org.onap.appc.adapter.chef.ChefAdapter' method='checkPushJob' >\n\t<parameter name='organizations' value='`$chef-organization`'/> \n\t<parameter name='serverAddress' value='`$chef-server-address`'/> \n\t<parameter name='username' value='`$chef-username`'/> \n\t<parameter name='jobid' value='`$jobID`'/>\n\t<parameter name='retryTimes' value='`$retryTimes`'/>\n\t<parameter name='retryInterval' value='`$retryInterval`'/>",
123         "comments": "",
124         "outputs": 1,
125         "x": 2343.4543991088867,
126         "y": 729.9999265670776,
127         "z": "49009b52.507ca4",
128         "wires": [
129                 []
130         ]
131 }, {
132         "id": "da225e9c.f12d08",
133         "type": "other",
134         "name": "outcome",
135         "xml": "<outcome value='201'>\n",
136         "comments": "",
137         "outputs": 1,
138         "x": 1878.0908279418945,
139         "y": 581.181770324707,
140         "z": "49009b52.507ca4",
141         "wires": [
142                 ["53c3c4d6.42f5dc"]
143         ]
144 }, {
145         "id": "6ea6e2ea.488efc",
146         "type": "other",
147         "name": "outcome",
148         "xml": "<outcome value='Other'>\n",
149         "comments": "",
150         "outputs": 1,
151         "x": 1881.181739807129,
152         "y": 426.9090461730957,
153         "z": "49009b52.507ca4",
154         "wires": [
155                 ["6b2adbf9.afd184"]
156         ]
157 }, {
158         "id": "e4f71a52.e2d5e",
159         "type": "switchNode",
160         "name": "switch",
161         "xml": "<switch test='`$chefServerResult.code`'>\n",
162         "comments": "",
163         "outputs": 1,
164         "x": 1720.3636283874512,
165         "y": 486.54542541503906,
166         "z": "49009b52.507ca4",
167         "wires": [
168                 ["da225e9c.f12d08", "6ea6e2ea.488efc"]
169         ]
170 }, {
171         "id": "f306ea50.b4f3e",
172         "type": "execute",
173         "name": "pushJob",
174         "xml": "<execute plugin='org.onap.appc.adapter.chef.ChefAdapter' method='VnfcPushJob'>\n\t<parameter name='organizations' value='`$chef-organization`'/> \n\t<parameter name='serverAddress' value='`$chef-server-address`'/> \n\t<parameter name='username' value='`$chef-username`'/> \n\t<parameter name='NodeList' value='`$NodeList`'/>\n\t<parameter name='CallbackCapable' value='`$CallbackCapable`'/>\n\t<parameter name='RequestId' value='`$RequestId`'/>\n\t<parameter name='CallbackUrl' value='`$CallbackUrl`'/>",
175         "comments": "",
176         "outputs": 1,
177         "x": 1862.2727737426758,
178         "y": 181.6363525390625,
179         "z": "49009b52.507ca4",
180         "wires": [
181                 []
182         ]
183 }, {
184         "id": "3276a7e.dac35d8",
185         "type": "other",
186         "name": "other",
187         "xml": "<outcome value='Other'>\n",
188         "comments": "",
189         "outputs": 1,
190         "x": 562.5454788208008,
191         "y": 589,
192         "z": "49009b52.507ca4",
193         "wires": [
194                 ["7ded29ca.1fb8a8"]
195         ]
196 }, {
197         "id": "e66f2cd9.a34a6",
198         "type": "other",
199         "name": "outcome",
200         "xml": "<outcome value='200'>\n",
201         "comments": "",
202         "outputs": 1,
203         "x": 577.5454788208008,
204         "y": 440,
205         "z": "49009b52.507ca4",
206         "wires": [
207                 ["b142240c.8ddff8"]
208         ]
209 }, {
210         "id": "a40c3e36.fe8338",
211         "type": "switchNode",
212         "name": "switch",
213         "xml": "<switch test='`$chefServerResult.code`'>",
214         "comments": "",
215         "outputs": 1,
216         "x": 380.36365509033203,
217         "y": 634.5454711914062,
218         "z": "49009b52.507ca4",
219         "wires": [
220                 ["3276a7e.dac35d8", "e66f2cd9.a34a6", "5861ba34.9baf74"]
221         ]
222 }, {
223         "id": "2a7cac08.317dec",
224         "type": "returnFailure",
225         "name": "return failure",
226         "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$chefServerResult.message`' />\n",
227         "comments": "",
228         "x": 1335.0908889770508,
229         "y": 593.0000038146973,
230         "z": "49009b52.507ca4",
231         "wires": []
232 }, {
233         "id": "7ded29ca.1fb8a8",
234         "type": "returnFailure",
235         "name": "return failure",
236         "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$chefServerResult.message`' />\n",
237         "comments": "",
238         "x": 786.5454788208008,
239         "y": 598,
240         "z": "49009b52.507ca4",
241         "wires": []
242 }, {
243         "id": "5861ba34.9baf74",
244         "type": "other",
245         "name": "outcome",
246         "xml": "<outcome value='201'>\n",
247         "comments": "",
248         "outputs": 1,
249         "x": 578.4545364379883,
250         "y": 509.272705078125,
251         "z": "49009b52.507ca4",
252         "wires": [
253                 ["b142240c.8ddff8"]
254         ]
255 }, {
256         "id": "c573c0a2.f1b6a",
257         "type": "block",
258         "name": "block",
259         "xml": "<block>\n",
260         "atomic": "false",
261         "comments": "",
262         "outputs": 1,
263         "x": 93.54547882080078,
264         "y": 338,
265         "z": "49009b52.507ca4",
266         "wires": [
267                 ["335dc414.286014", "33bda605.955de2"]
268         ]
269 }, {
270         "id": "6b2adbf9.afd184",
271         "type": "returnFailure",
272         "name": "return failure",
273         "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$chefServerResult.message`' />\n",
274         "comments": "",
275         "x": 2083.545478820801,
276         "y": 426,
277         "z": "49009b52.507ca4",
278         "wires": []
279 }, {
280         "id": "53c3c4d6.42f5dc",
281         "type": "switchNode",
282         "name": "switch",
283         "xml": "<switch test='`$CallbackCapable`'>\n",
284         "comments": "",
285         "outputs": 1,
286         "x": 1953.5454788208008,
287         "y": 688,
288         "z": "49009b52.507ca4",
289         "wires": [
290                 ["bddb192.207ca68", "e972395c.32322"]
291         ]
292 }, {
293         "id": "e972395c.32322",
294         "type": "other",
295         "name": "outcome",
296         "xml": "<outcome value='Other'>\n",
297         "comments": "",
298         "outputs": 1,
299         "x": 2114.545478820801,
300         "y": 741,
301         "z": "49009b52.507ca4",
302         "wires": [
303                 ["f0f202b3.e8ceb8"]
304         ]
305 }, {
306         "id": "bddb192.207ca68",
307         "type": "outcomeTrue",
308         "name": "outcome",
309         "xml": "<outcome value='true'>\n",
310         "comments": "",
311         "outputs": 1,
312         "x": 2117.636390686035,
313         "y": 586.7272758483887,
314         "z": "49009b52.507ca4",
315         "wires": [
316                 ["51e8206a.a3d048"]
317         ]
318 }, {
319         "id": "51e8206a.a3d048",
320         "type": "returnSuccess",
321         "name": "return success",
322         "xml": "<return status='success'>\n<parameter name='output.status.code' value='400' />\n<parameter name='output.status.message' value='chef success, waiting for callback' />",
323         "comments": "",
324         "x": 2300.545478820801,
325         "y": 588,
326         "z": "49009b52.507ca4",
327         "wires": []
328 }, {
329         "id": "ff3d4c52.b0f988",
330         "type": "other",
331         "name": "outcome",
332         "xml": "<outcome value='200'>\n",
333         "comments": "",
334         "outputs": 1,
335         "x": 2451.545478820801,
336         "y": 985,
337         "z": "49009b52.507ca4",
338         "wires": [
339                 ["389afae5.2abcfe"]
340         ]
341 }, {
342         "id": "7430e7ad.b98db8",
343         "type": "other",
344         "name": "outcome",
345         "xml": "<outcome value='Other'>\n",
346         "comments": "",
347         "outputs": 1,
348         "x": 2454.636390686035,
349         "y": 830.7272758483887,
350         "z": "49009b52.507ca4",
351         "wires": [
352                 ["a7b69f75.49a23"]
353         ]
354 }, {
355         "id": "438453a1.a7dc6c",
356         "type": "switchNode",
357         "name": "switch",
358         "xml": "<switch test='`$chefServerResult.code`'>\n",
359         "comments": "",
360         "outputs": 1,
361         "x": 2293.8182792663574,
362         "y": 890.363655090332,
363         "z": "49009b52.507ca4",
364         "wires": [
365                 ["ff3d4c52.b0f988", "7430e7ad.b98db8"]
366         ]
367 }, {
368         "id": "a7b69f75.49a23",
369         "type": "returnFailure",
370         "name": "return failure",
371         "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$chefServerResult.message`' />",
372         "comments": "",
373         "x": 2673.909004211426,
374         "y": 782,
375         "z": "49009b52.507ca4",
376         "wires": []
377 }, {
378         "id": "719f95d6.241efc",
379         "type": "execute",
380         "name": "fetchResults",
381         "xml": "<execute plugin='org.onap.appc.adapter.chef.ChefAdapter' method='fetchResults' >\n\t<parameter name='organizations' value='`$chef-organization`'/> \n\t<parameter name='serverAddress' value='`$chef-server-address`'/> \n\t<parameter name='username' value='`$chef-username`'/> \n\t<parameter name='NodeList' value='`$NodeList`'/>",
382         "comments": "",
383         "outputs": 1,
384         "x": 2978.727119445801,
385         "y": 1222.181884765625,
386         "z": "49009b52.507ca4",
387         "wires": [
388                 []
389         ]
390 }, {
391         "id": "f0f202b3.e8ceb8",
392         "type": "block",
393         "name": "block",
394         "xml": "<block>\n",
395         "atomic": "false",
396         "comments": "",
397         "outputs": 1,
398         "x": 2117.5454788208003,
399         "y": 843.9999999999998,
400         "z": "49009b52.507ca4",
401         "wires": [
402                 ["9082bb4a.80248", "438453a1.a7dc6c"]
403         ]
404 }, {
405         "id": "9636fbc0.374dc",
406         "type": "switchNode",
407         "name": "switch",
408         "xml": "<switch test='`$chefServerResult.code`'>\n",
409         "comments": "",
410         "outputs": 1,
411         "x": 2965.5454788208012,
412         "y": 1366.0000000000002,
413         "z": "49009b52.507ca4",
414         "wires": [
415                 ["23dc29f4.7deafe", "da18f68d.d8c4f"]
416         ]
417 }, {
418         "id": "da18f68d.d8c4f",
419         "type": "other",
420         "name": "outcome",
421         "xml": "<outcome value='Other'>\n",
422         "comments": "",
423         "outputs": 1,
424         "x": 3238.6363945007324,
425         "y": 1483.000029563904,
426         "z": "49009b52.507ca4",
427         "wires": [
428                 ["9102124d.6d7118"]
429         ]
430 }, {
431         "id": "23dc29f4.7deafe",
432         "type": "other",
433         "name": "outcome",
434         "xml": "<outcome value='200'>\n",
435         "comments": "",
436         "outputs": 1,
437         "x": 3239.727363586426,
438         "y": 1330.7272949218752,
439         "z": "49009b52.507ca4",
440         "wires": [
441                 ["b38ba59b.7c553"]
442         ]
443 }, {
444         "id": "b38ba59b.7c553",
445         "type": "returnSuccess",
446         "name": "return success",
447         "xml": "<return status='success'>\n<parameter name='output.status.code' value='400' />\n<parameter name='output.status.message' value='finish' />\n<parameter name='output.status.results' value='`$chefServerResult.message`' />",
448         "comments": "",
449         "x": 3467.909248352051,
450         "y": 1331.4545898437502,
451         "z": "49009b52.507ca4",
452         "wires": []
453 }, {
454         "id": "9102124d.6d7118",
455         "type": "returnFailure",
456         "name": "return failure",
457         "xml": "<return status='failure'>\n<parameter name='output.status.code' value='200' />\n<parameter name='output.status.message' value='`$chefServerResult.message`' />\n",
458         "comments": "",
459         "x": 3473.727363586426,
460         "y": 1491.7271728515625,
461         "z": "49009b52.507ca4",
462         "wires": []
463 }, {
464         "id": "310e4a28.127d5e",
465         "type": "block",
466         "name": "block",
467         "xml": "<block>\n",
468         "atomic": "false",
469         "comments": "",
470         "outputs": 1,
471         "x": 2815.545478820801,
472         "y": 1286,
473         "z": "49009b52.507ca4",
474         "wires": [
475                 ["719f95d6.241efc", "9636fbc0.374dc"]
476         ]
477 }, {
478         "id": "389afae5.2abcfe",
479         "type": "switchNode",
480         "name": "switch",
481         "xml": "<switch test='`$GetOutputFlag`'>\n",
482         "comments": "",
483         "outputs": 1,
484         "x": 2619.545478820801,
485         "y": 1064,
486         "z": "49009b52.507ca4",
487         "wires": [
488                 ["cc456542.7b98f", "71db97e2.8ed32"]
489         ]
490 }, {
491         "id": "71db97e2.8ed32",
492         "type": "outcomeTrue",
493         "name": "outcome",
494         "xml": "<outcome value='true'>\n",
495         "comments": "",
496         "outputs": 1,
497         "x": 2818.6363945007324,
498         "y": 1121.0000295639038,
499         "z": "49009b52.507ca4",
500         "wires": [
501                 ["310e4a28.127d5e"]
502         ]
503 }, {
504         "id": "cc456542.7b98f",
505         "type": "other",
506         "name": "outcome",
507         "xml": "<outcome value='Other'>\n",
508         "comments": "",
509         "outputs": 1,
510         "x": 2821.727306365967,
511         "y": 966.7273054122925,
512         "z": "49009b52.507ca4",
513         "wires": [
514                 ["47f523ab.f340ac"]
515         ]
516 }, {
517         "id": "47f523ab.f340ac",
518         "type": "returnSuccess",
519         "name": "return success",
520         "xml": "<return status='success'>\n<parameter name='output.status.code' value='400' />\n<parameter name='output.status.message' value='`$chefServerResult.message`' />",
521         "comments": "",
522         "x": 3005.909248352051,
523         "y": 969.4545288085938,
524         "z": "49009b52.507ca4",
525         "wires": []
526 }, {
527         "id": "5bb7e566.448e74",
528         "type": "dgstart",
529         "name": "DGSTART",
530         "outputs": 1,
531         "x": 148.54547882080078,
532         "y": 81,
533         "z": "49009b52.507ca4",
534         "wires": [
535                 ["21f2ae37.a3c3aa"]
536         ]
537 }, {
538         "id": "2a37ea50.e2ef2e",
539         "type": "method",
540         "name": "chef",
541         "xml": "<method rpc='chef' mode='sync'>\n",
542         "comments": "",
543         "outputs": 1,
544         "x": 126.54547882080078,
545         "y": 242,
546         "z": "49009b52.507ca4",
547         "wires": [
548                 ["c573c0a2.f1b6a"]
549         ]
550 }, {
551         "id": "4c00f500.6c661c",
552         "type": "switchNode",
553         "name": "switch",
554         "xml": "<switch test='`$PushJobFlag`'>\n",
555         "comments": "",
556         "outputs": 1,
557         "x": 1356.5454788208008,
558         "y": 291,
559         "z": "49009b52.507ca4",
560         "wires": [
561                 ["c0401b40.2f6d1", "8bba0e5b.35d44"]
562         ]
563 }, {
564         "id": "8bba0e5b.35d44",
565         "type": "other",
566         "name": "outcome",
567         "xml": "<outcome value='Other'>\n",
568         "comments": "",
569         "outputs": 1,
570         "x": 1476.5454788208008,
571         "y": 348,
572         "z": "49009b52.507ca4",
573         "wires": [
574                 ["815c41bc.e5c128"]
575         ]
576 }, {
577         "id": "c0401b40.2f6d1",
578         "type": "outcomeTrue",
579         "name": "outcome",
580         "xml": "<outcome value='true'>\n",
581         "comments": "",
582         "outputs": 1,
583         "x": 1479.6363906860352,
584         "y": 193.72727584838867,
585         "z": "49009b52.507ca4",
586         "wires": [
587                 ["43690b27.0ac9cc"]
588         ]
589 }, {
590         "id": "815c41bc.e5c128",
591         "type": "returnSuccess",
592         "name": "return success",
593         "xml": "<return status='success'>\n<parameter name='output.status.code' value='400' />\n<parameter name='output.status.message' value='chef success, do not need push job ' />",
594         "comments": "",
595         "x": 1518.5454788208008,
596         "y": 468,
597         "z": "49009b52.507ca4",
598         "wires": []
599 }, {
600         "id": "21f2ae37.a3c3aa",
601         "type": "service-logic",
602         "name": "APPC 3.0.0",
603         "module": "APPC",
604         "version": "3.0.0",
605         "comments": "",
606         "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='APPC' version='3.0.0'>",
607         "outputs": 1,
608         "x": 147,
609         "y": 163,
610         "z": "49009b52.507ca4",
611         "wires": [
612                 ["2a37ea50.e2ef2e"]
613         ]
614 }]