Add LCM DGs
[sdnc/oam.git] / platform-logic / lcm / src / main / json / LCM_upgrade-post-check.json
1 [
2     {
3         "id": "7a39f2fe.3dcdf4",
4         "type": "method",
5         "name": "upgrade-post-check",
6         "xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
7         "comments": "",
8         "outputs": 1,
9         "x": 504,
10         "y": 189,
11         "z": "8298903b.6dd47",
12         "wires": [
13             [
14                 "29adfec5.3e996a"
15             ]
16         ]
17     },
18     {
19         "id": "d4e963ab.cbd07",
20         "type": "service-logic",
21         "name": "LCM ${project.version}",
22         "module": "LCM",
23         "version": "${project.version}",
24         "comments": "",
25         "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='LCM' version='${project.version}'>",
26         "outputs": 1,
27         "x": 291.99993896484375,
28         "y": 190,
29         "z": "8298903b.6dd47",
30         "wires": [
31             [
32                 "7a39f2fe.3dcdf4"
33             ]
34         ]
35     },
36     {
37         "id": "dbae8f8c.b9f5c8",
38         "type": "execute",
39         "name": "execute AnsibleA.reqExec",
40         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>\n<parameter name='NodeList' value='`$prop.ansible.nodelist`'/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 292.00001525878906,
44         "y": 407,
45         "z": "8298903b.6dd47",
46         "wires": [
47             [
48                 "6f51d66.269da28",
49                 "3cef6eb.3854f92",
50                 "7d81ec43.a1807c"
51             ]
52         ]
53     },
54     {
55         "id": "d7bab1d5.51757",
56         "type": "switchNode",
57         "name": "switch",
58         "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
59         "comments": "",
60         "outputs": 1,
61         "x": 593,
62         "y": 455,
63         "z": "8298903b.6dd47",
64         "wires": [
65             [
66                 "2746f459.4c8844",
67                 "f804c90e.5a0878",
68                 "a107745e.d375f"
69             ]
70         ]
71     },
72     {
73         "id": "2746f459.4c8844",
74         "type": "other",
75         "name": "outcome 500",
76         "xml": "<outcome value='500'>\n",
77         "comments": "",
78         "outputs": 1,
79         "x": 738,
80         "y": 453.00000762939453,
81         "z": "8298903b.6dd47",
82         "wires": [
83             [
84                 "812cc9c1.aee1"
85             ]
86         ]
87     },
88     {
89         "id": "f804c90e.5a0878",
90         "type": "other",
91         "name": "outcome 100",
92         "xml": "<outcome value='100'>\n",
93         "comments": "",
94         "outputs": 1,
95         "x": 741,
96         "y": 496.00003814697266,
97         "z": "8298903b.6dd47",
98         "wires": [
99             [
100                 "91a9092c.bcfc5"
101             ]
102         ]
103     },
104     {
105         "id": "91a9092c.bcfc5",
106         "type": "execute",
107         "name": "execute reqExecResult",
108         "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n    <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$prop.lcm.upgrade-post-check.playbookname`'/>\n\t\n\n\n\n\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 919.0000305175781,
112         "y": 496.00003814697266,
113         "z": "8298903b.6dd47",
114         "wires": [
115             [
116                 "746c71a8.ecf54",
117                 "3553670.a015a9a"
118             ]
119         ]
120     },
121     {
122         "id": "3cef6eb.3854f92",
123         "type": "failure",
124         "name": "failure",
125         "xml": "<outcome value='failure'>\n",
126         "comments": "",
127         "outputs": 1,
128         "x": 484,
129         "y": 364.0000305175781,
130         "z": "8298903b.6dd47",
131         "wires": [
132             [
133                 "812cc9c1.aee1"
134             ]
135         ]
136     },
137     {
138         "id": "6f51d66.269da28",
139         "type": "other",
140         "name": "other",
141         "xml": "<outcome value='Other'>\n",
142         "comments": "",
143         "outputs": 1,
144         "x": 486,
145         "y": 416,
146         "z": "8298903b.6dd47",
147         "wires": [
148             [
149                 "d7bab1d5.51757"
150             ]
151         ]
152     },
153     {
154         "id": "746c71a8.ecf54",
155         "type": "failure",
156         "name": "failure",
157         "xml": "<outcome value='failure'>\n",
158         "comments": "",
159         "outputs": 1,
160         "x": 1080.0000610351562,
161         "y": 473.00000762939453,
162         "z": "8298903b.6dd47",
163         "wires": [
164             [
165                 "812cc9c1.aee1"
166             ]
167         ]
168     },
169     {
170         "id": "a107745e.d375f",
171         "type": "other",
172         "name": "outcome 101",
173         "xml": "<outcome value='101'>\n",
174         "comments": "",
175         "outputs": 1,
176         "x": 735,
177         "y": 411.00003814697266,
178         "z": "8298903b.6dd47",
179         "wires": [
180             [
181                 "812cc9c1.aee1"
182             ]
183         ]
184     },
185     {
186         "id": "3553670.a015a9a",
187         "type": "success",
188         "name": "success",
189         "xml": "<outcome value='success'>\n",
190         "comments": "",
191         "outputs": 1,
192         "x": 1087.0000610351562,
193         "y": 521.0000381469727,
194         "z": "8298903b.6dd47",
195         "wires": [
196             [
197                 "9eb97883.c25dd"
198             ]
199         ]
200     },
201     {
202         "id": "4d0102b3.cb0034",
203         "type": "returnSuccess",
204         "name": "return success",
205         "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
206         "comments": "",
207         "x": 1369.9999389648438,
208         "y": 573.0000381469727,
209         "z": "8298903b.6dd47",
210         "wires": []
211     },
212     {
213         "id": "b0b34f77.1a63a",
214         "type": "dgstart",
215         "name": "DGSTART",
216         "outputs": 1,
217         "x": 107,
218         "y": 189,
219         "z": "8298903b.6dd47",
220         "wires": [
221             [
222                 "d4e963ab.cbd07"
223             ]
224         ]
225     },
226     {
227         "id": "29adfec5.3e996a",
228         "type": "block",
229         "name": "block",
230         "xml": "<block>\n",
231         "atomic": "false",
232         "comments": "",
233         "outputs": 1,
234         "x": 102.91668701171875,
235         "y": 370.0833435058594,
236         "z": "8298903b.6dd47",
237         "wires": [
238             [
239                 "dbae8f8c.b9f5c8",
240                 "2da1a6a3.957b62",
241                 "f33027ae.498be"
242             ]
243         ]
244     },
245     {
246         "id": "2da1a6a3.957b62",
247         "type": "execute",
248         "name": "execute Properties",
249         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
250         "comments": "",
251         "outputs": 1,
252         "x": 275.00001525878906,
253         "y": 328.0833435058594,
254         "z": "8298903b.6dd47",
255         "wires": [
256             []
257         ]
258     },
259     {
260         "id": "e8fdf598.f43db",
261         "type": "execute",
262         "name": "execute DmaapMsg",
263         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n    <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n    <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='contentType' value='application/json' />\n    <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
264         "comments": "",
265         "outputs": 1,
266         "x": 1087.0000610351562,
267         "y": 317.0833435058594,
268         "z": "8298903b.6dd47",
269         "wires": [
270             [
271                 "27736dcd.8ac982"
272             ]
273         ]
274     },
275     {
276         "id": "27736dcd.8ac982",
277         "type": "failure",
278         "name": "failure",
279         "xml": "<outcome value='failure'>\n",
280         "comments": "",
281         "outputs": 1,
282         "x": 1257,
283         "y": 316.0833435058594,
284         "z": "8298903b.6dd47",
285         "wires": [
286             [
287                 "86cb0ea6.638338"
288             ]
289         ]
290     },
291     {
292         "id": "812cc9c1.aee1",
293         "type": "block",
294         "name": "block",
295         "xml": "<block>\n",
296         "atomic": "false",
297         "comments": "",
298         "outputs": 1,
299         "x": 890,
300         "y": 341.0833435058594,
301         "z": "8298903b.6dd47",
302         "wires": [
303             [
304                 "e8fdf598.f43db",
305                 "e11198e6.679a2",
306                 "a3a650c3.8200a8"
307             ]
308         ]
309     },
310     {
311         "id": "7d25ddd1.4d85f4",
312         "type": "execute",
313         "name": "execute DmaapMsg",
314         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n    <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n    <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n    <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='contentType' value='application/json' />\n    <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
315         "comments": "",
316         "outputs": 1,
317         "x": 1390.4999389648438,
318         "y": 522.0833511352539,
319         "z": "8298903b.6dd47",
320         "wires": [
321             [
322                 "1bd36512.b1eedb"
323             ]
324         ]
325     },
326     {
327         "id": "1bd36512.b1eedb",
328         "type": "failure",
329         "name": "failure",
330         "xml": "<outcome value='failure'>\n",
331         "comments": "",
332         "outputs": 1,
333         "x": 1550.4999389648438,
334         "y": 522.0833511352539,
335         "z": "8298903b.6dd47",
336         "wires": [
337             [
338                 "8b14e6d.6ed9318"
339             ]
340         ]
341     },
342     {
343         "id": "86cb0ea6.638338",
344         "type": "record",
345         "name": "record",
346         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
347         "comments": "",
348         "outputs": 1,
349         "x": 1389,
350         "y": 316.0833435058594,
351         "z": "8298903b.6dd47",
352         "wires": [
353             []
354         ]
355     },
356     {
357         "id": "e11198e6.679a2",
358         "type": "returnFailure",
359         "name": "return failure",
360         "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
361         "comments": "",
362         "x": 1061.9166870117188,
363         "y": 354.0833435058594,
364         "z": "8298903b.6dd47",
365         "wires": []
366     },
367     {
368         "id": "8b14e6d.6ed9318",
369         "type": "record",
370         "name": "record",
371         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
372         "comments": "",
373         "outputs": 1,
374         "x": 1671.9166870117188,
375         "y": 523.0833511352539,
376         "z": "8298903b.6dd47",
377         "wires": [
378             []
379         ]
380     },
381     {
382         "id": "a3a650c3.8200a8",
383         "type": "set",
384         "name": "set",
385         "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
386         "comments": "",
387         "x": 1039.0000610351562,
388         "y": 264.0833435058594,
389         "z": "8298903b.6dd47",
390         "wires": []
391     },
392     {
393         "id": "9eb97883.c25dd",
394         "type": "block",
395         "name": "block",
396         "xml": "<block>\n",
397         "atomic": "false",
398         "comments": "",
399         "outputs": 1,
400         "x": 1219.9999389648438,
401         "y": 521.0833206176758,
402         "z": "8298903b.6dd47",
403         "wires": [
404             [
405                 "7d25ddd1.4d85f4",
406                 "5aed86b8.dac118",
407                 "4d0102b3.cb0034"
408             ]
409         ]
410     },
411     {
412         "id": "5aed86b8.dac118",
413         "type": "set",
414         "name": "set",
415         "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
416         "comments": "",
417         "x": 1350.1666870117188,
418         "y": 474.0833511352539,
419         "z": "8298903b.6dd47",
420         "wires": []
421     },
422     {
423         "id": "7d81ec43.a1807c",
424         "type": "not-found",
425         "name": "not-found",
426         "xml": "<outcome value='not-found'>\n",
427         "comments": "",
428         "outputs": 1,
429         "x": 480,
430         "y": 317,
431         "z": "8298903b.6dd47",
432         "wires": [
433             [
434                 "97422b5e.b01ec"
435             ]
436         ]
437     },
438     {
439         "id": "c3ed93bf.f51b6",
440         "type": "set",
441         "name": "set Defaults",
442         "xml": "<set>\n<parameter name='$org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
443         "comments": "",
444         "x": 864,
445         "y": 264,
446         "z": "8298903b.6dd47",
447         "wires": []
448     },
449     {
450         "id": "97422b5e.b01ec",
451         "type": "block",
452         "name": "block",
453         "xml": "<block>\n",
454         "atomic": "false",
455         "comments": "",
456         "outputs": 1,
457         "x": 664,
458         "y": 309,
459         "z": "8298903b.6dd47",
460         "wires": [
461             [
462                 "c3ed93bf.f51b6",
463                 "812cc9c1.aee1"
464             ]
465         ]
466     },
467     {
468         "id": "f33027ae.498be",
469         "type": "set",
470         "name": "set default status value",
471         "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
472         "comments": "",
473         "x": 289,
474         "y": 368,
475         "z": "8298903b.6dd47",
476         "wires": []
477     }
478 ]