17a2dfe3a8ed14595317e5c269996fb205b4ffae
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-access-connectivity-network-topology-operation-delete-huawei.json
1 [
2     {
3         "id": "9258ad5d.d05ba",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 289.50011825561523,
8         "y": 436.0000114440918,
9         "z": "828aeb02.de4ff8",
10         "wires": [
11             [
12                 "377de850.27cec8"
13             ]
14         ]
15     },
16     {
17         "id": "377de850.27cec8",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
23         "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
24         "outputs": 1,
25         "x": 677.5,
26         "y": 436.0000162124634,
27         "z": "828aeb02.de4ff8",
28         "wires": [
29             [
30                 "7334f5ac.b08f4c"
31             ]
32         ]
33     },
34     {
35         "id": "7334f5ac.b08f4c",
36         "type": "method",
37         "name": "method:bbs-access-connectivity-network-topology-operation-delete-huawei",
38         "xml": "<method rpc='bbs-access-connectivity-network-topology-operation-delete-huawei' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 640.5,
42         "y": 555.0000162124634,
43         "z": "828aeb02.de4ff8",
44         "wires": [
45             [
46                 "a88453d9.f253b"
47             ]
48         ]
49     },
50     {
51         "id": "a88453d9.f253b",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 1038.5001068115234,
59         "y": 554.0000162124634,
60         "z": "828aeb02.de4ff8",
61         "wires": [
62             [
63                 "cb91ee20.76b95",
64                 "ca9aad5d.392e5",
65                 "c4485241.e819a",
66                 "c4d9d4a8.396518",
67                 "2637d1ad.97175e",
68                 "bc596678.34ee28",
69                 "c3d1b49e.311728"
70             ]
71         ]
72     },
73     {
74         "id": "cb91ee20.76b95",
75         "type": "execute",
76         "name": "excute:readProperties",
77         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n\n",
78         "comments": "",
79         "outputs": 1,
80         "x": 1480.5004043579102,
81         "y": 408.11109733581543,
82         "z": "828aeb02.de4ff8",
83         "wires": [
84             []
85         ]
86     },
87     {
88         "id": "bc596678.34ee28",
89         "type": "for",
90         "name": "for:network-input-paramters",
91         "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",
92         "comments": "",
93         "outputs": 1,
94         "x": 1484.5004272460938,
95         "y": 629.999942779541,
96         "z": "828aeb02.de4ff8",
97         "wires": [
98             [
99                 "e67c3291.c9f3e"
100             ]
101         ]
102     },
103     {
104         "id": "2637d1ad.97175e",
105         "type": "execute",
106         "name": "execute:querryTokenID",
107         "xml": " <execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-token-template.json'`\"/>\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url+'/rest/plat/smapp/v1/oauth/token'`\"/>\n    <parameter name=\"format\" value=\"json\"/>\n    <parameter name=\"httpMethod\" value=\"put\"/>\n    <parameter name=\"responsePrefix\" value=\"token-result\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>\n\n",
108         "comments": "",
109         "outputs": 1,
110         "x": 1475.5004272460938,
111         "y": 540.0000190734863,
112         "z": "828aeb02.de4ff8",
113         "wires": [
114             [
115                 "3ddf50e9.7ad19",
116                 "6fb4fdec.445914"
117             ]
118         ]
119     },
120     {
121         "id": "6fb4fdec.445914",
122         "type": "outcome",
123         "name": "success",
124         "xml": "<outcome value='success'>\n",
125         "comments": "",
126         "outputs": 1,
127         "x": 1774.6670532226562,
128         "y": 536.2500190734863,
129         "z": "828aeb02.de4ff8",
130         "wires": [
131             [
132                 "bb09478d.013828"
133             ]
134         ]
135     },
136     {
137         "id": "3ddf50e9.7ad19",
138         "type": "outcome",
139         "name": "failure",
140         "xml": "<outcome value='failure'>\n",
141         "comments": "",
142         "outputs": 1,
143         "x": 1770.6670532226562,
144         "y": 430.2499885559082,
145         "z": "828aeb02.de4ff8",
146         "wires": [
147             [
148                 "cafa7f31.58fb9"
149             ]
150         ]
151     },
152     {
153         "id": "cafa7f31.58fb9",
154         "type": "returnFailure",
155         "name": "return failure",
156         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error executing Get token rest api\" />\n",
157         "comments": "",
158         "x": 2341.4171752929688,
159         "y": 422.2499885559082,
160         "z": "828aeb02.de4ff8",
161         "wires": []
162     },
163     {
164         "id": "b7ad2681.5938c8",
165         "type": "outcome",
166         "name": "NULL",
167         "xml": "<outcome value=''>\n",
168         "comments": "",
169         "outputs": 1,
170         "x": 2141.5004348754883,
171         "y": 478.9999752044678,
172         "z": "828aeb02.de4ff8",
173         "wires": [
174             [
175                 "cafa7f31.58fb9"
176             ]
177         ]
178     },
179     {
180         "id": "bb09478d.013828",
181         "type": "switchNode",
182         "name": "switch:token ",
183         "xml": "<switch test='`$token-result.accessSession`'>\n",
184         "comments": "",
185         "outputs": 1,
186         "x": 1973.5004348754883,
187         "y": 536.9999752044678,
188         "z": "828aeb02.de4ff8",
189         "wires": [
190             [
191                 "b7ad2681.5938c8",
192                 "c64cc196.0b01"
193             ]
194         ]
195     },
196     {
197         "id": "c64cc196.0b01",
198         "type": "outcome",
199         "name": "Other",
200         "xml": "<outcome value='Other'>\n",
201         "comments": "",
202         "outputs": 1,
203         "x": 2142.5004348754883,
204         "y": 535.9999752044678,
205         "z": "828aeb02.de4ff8",
206         "wires": [
207             [
208                 "4a6b446f.138e7c"
209             ]
210         ]
211     },
212     {
213         "id": "4a6b446f.138e7c",
214         "type": "set",
215         "name": "set:token-id",
216         "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
217         "comments": "",
218         "x": 2317.0004272460938,
219         "y": 535.2500190734863,
220         "z": "828aeb02.de4ff8",
221         "wires": []
222     },
223     {
224         "id": "69330fca.c0655",
225         "type": "record",
226         "name": "log file",
227         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"__TIMESTAMP__\" />\n    <parameter name=\"field2\" value=\"sucess executing Get token rest api\" />\n    <parameter name=\"field3\" value=\"`$token-result.accessSession`\" />\n    ",
228         "comments": "",
229         "outputs": 1,
230         "x": 2528.5004272460938,
231         "y": 532.9999580383301,
232         "z": "828aeb02.de4ff8",
233         "wires": [
234             []
235         ]
236     },
237     {
238         "id": "c4d9d4a8.396518",
239         "type": "set",
240         "name": "set:variables",
241         "xml": "<set>\n<parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='https://172.30.0.55:26335' />\n<parameter name='network-input-parameters.' value='`$network-topology-operation-input.network-request-input.network-input-parameters.`' />\n",
242         "comments": "",
243         "x": 1446.5004043579102,
244         "y": 328.0001735687256,
245         "z": "828aeb02.de4ff8",
246         "wires": []
247     },
248     {
249         "id": "c3d1b49e.311728",
250         "type": "execute",
251         "name": "execute:deleteAccessConnectivityService",
252         "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ws/rest/1002/FanOpenAPI/DeactivateOnt?serviceID='+$prop.bbs.serviceID`\" />\n    <parameter name=\"httpMethod\" value=\"get\"/>\n    <parameter name=\"contentType\" value=\"application/x-www-form-urlencoded\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>\n    <parameter name=\"customHttpHeaders\" value=\"`'X-Auth-Token=' + $prop.sdncRestApi.token_id`\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
253         "comments": "",
254         "outputs": 1,
255         "x": 1536.500690460205,
256         "y": 810.0001218318939,
257         "z": "828aeb02.de4ff8",
258         "wires": [
259             [
260                 "5321d4ef.5d4d2c",
261                 "d9cf5692.a52db8"
262             ]
263         ]
264     },
265     {
266         "id": "5321d4ef.5d4d2c",
267         "type": "outcome",
268         "name": "failure",
269         "xml": "<outcome value='failure'>\n",
270         "comments": "",
271         "outputs": 1,
272         "x": 1841.5007057189941,
273         "y": 750.0001029968262,
274         "z": "828aeb02.de4ff8",
275         "wires": [
276             [
277                 "b0348a26.8427e8"
278             ]
279         ]
280     },
281     {
282         "id": "d9cf5692.a52db8",
283         "type": "outcome",
284         "name": "success",
285         "xml": "<outcome value='success'>\n",
286         "comments": "",
287         "outputs": 1,
288         "x": 1841.5006790161133,
289         "y": 809.0001027584076,
290         "z": "828aeb02.de4ff8",
291         "wires": [
292             [
293                 "de1193ab.e5312"
294             ]
295         ]
296     },
297     {
298         "id": "1e90d7c8.353078",
299         "type": "outcome",
300         "name": "NULL",
301         "xml": "<outcome value=''>\n",
302         "comments": "",
303         "outputs": 1,
304         "x": 2327.500789642334,
305         "y": 706.0000369548798,
306         "z": "828aeb02.de4ff8",
307         "wires": [
308             [
309                 "b0348a26.8427e8"
310             ]
311         ]
312     },
313     {
314         "id": "b0348a26.8427e8",
315         "type": "returnFailure",
316         "name": "return failure",
317         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"invalid network-input-parameters.param in bbs-access-connectivity-network-topology-operation-delete\" />\n",
318         "comments": "",
319         "x": 2531.5006313323975,
320         "y": 745.0000369548798,
321         "z": "828aeb02.de4ff8",
322         "wires": []
323     },
324     {
325         "id": "e67c3291.c9f3e",
326         "type": "switchNode",
327         "name": "switch:serviceID",
328         "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'serviceID'`\">\n",
329         "comments": "",
330         "outputs": 1,
331         "x": 1759.5004539489746,
332         "y": 629.0000305175781,
333         "z": "828aeb02.de4ff8",
334         "wires": [
335             [
336                 "fb75295a.8000b8"
337             ]
338         ]
339     },
340     {
341         "id": "fb75295a.8000b8",
342         "type": "outcomeTrue",
343         "name": "true",
344         "xml": "<outcome value='true'>\n",
345         "comments": "",
346         "outputs": 1,
347         "x": 1932.5003385543823,
348         "y": 628.0000286102295,
349         "z": "828aeb02.de4ff8",
350         "wires": [
351             [
352                 "c27015c2.2e9f58"
353             ]
354         ]
355     },
356     {
357         "id": "7c852ec3.9bf23",
358         "type": "set",
359         "name": "set:serviceID",
360         "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$network-input-parameters.param[$idx].value`' />\n",
361         "comments": "",
362         "x": 2503.5003051757812,
363         "y": 627.600040435791,
364         "z": "828aeb02.de4ff8",
365         "wires": []
366     },
367     {
368         "id": "c27015c2.2e9f58",
369         "type": "switchNode",
370         "name": "switch:serviceID value",
371         "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
372         "comments": "",
373         "outputs": 1,
374         "x": 2113.6484985351562,
375         "y": 627.7777137756348,
376         "z": "828aeb02.de4ff8",
377         "wires": [
378             [
379                 "9c90b9c1.bc3cb8",
380                 "1e90d7c8.353078"
381             ]
382         ]
383     },
384     {
385         "id": "9c90b9c1.bc3cb8",
386         "type": "outcome",
387         "name": "Other",
388         "xml": "<outcome value='Other'>\n",
389         "comments": "",
390         "outputs": 1,
391         "x": 2321.6484985351562,
392         "y": 628.7777137756348,
393         "z": "828aeb02.de4ff8",
394         "wires": [
395             [
396                 "7c852ec3.9bf23"
397             ]
398         ]
399     },
400     {
401         "id": "ca9aad5d.392e5",
402         "type": "call",
403         "name": "call:validate-bbs-network-input-parameters",
404         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-bbs-network-input-parameters' mode='sync' >\n",
405         "comments": "",
406         "outputs": 1,
407         "x": 1558.0000305175781,
408         "y": 247.00002479553223,
409         "z": "828aeb02.de4ff8",
410         "wires": [
411             []
412         ]
413     },
414     {
415         "id": "477b70c6.2a5c9",
416         "type": "record",
417         "name": "log file",
418         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"deleteAccessConnectivityService success!\" />\n    <parameter name=\"field2\" value=\"`$service-result.accessE2Eservice.serviceID`\" />\n    ",
419         "comments": "",
420         "outputs": 1,
421         "x": 2885.0005645751953,
422         "y": 911.0001068115234,
423         "z": "828aeb02.de4ff8",
424         "wires": [
425             []
426         ]
427     },
428     {
429         "id": "de1193ab.e5312",
430         "type": "block",
431         "name": "block : atomic",
432         "xml": "<block atomic=\"true\">\n",
433         "atomic": "false",
434         "comments": "",
435         "outputs": 1,
436         "x": 2018.0004768371582,
437         "y": 810.0002808570862,
438         "z": "828aeb02.de4ff8",
439         "wires": [
440             [
441                 "754aabd8.cabdb4"
442             ]
443         ]
444     },
445     {
446         "id": "754aabd8.cabdb4",
447         "type": "switchNode",
448         "name": "switch:service-result",
449         "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
450         "comments": "",
451         "outputs": 1,
452         "x": 2236.0003547668457,
453         "y": 809.0001282691956,
454         "z": "828aeb02.de4ff8",
455         "wires": [
456             [
457                 "2dd16d0d.e63022",
458                 "c62a673d.9cf0e8"
459             ]
460         ]
461     },
462     {
463         "id": "2dd16d0d.e63022",
464         "type": "outcome",
465         "name": "Other",
466         "xml": "<outcome value='Other'>\n",
467         "comments": "",
468         "outputs": 1,
469         "x": 2470.000400543213,
470         "y": 810.0000882148743,
471         "z": "828aeb02.de4ff8",
472         "wires": [
473             [
474                 "6c15beca.e4e8a"
475             ]
476         ]
477     },
478     {
479         "id": "c62a673d.9cf0e8",
480         "type": "outcome",
481         "name": "NULL",
482         "xml": "<outcome value=''>\n",
483         "comments": "",
484         "outputs": 1,
485         "x": 2472.000400543213,
486         "y": 896.0000882148743,
487         "z": "828aeb02.de4ff8",
488         "wires": [
489             [
490                 "c04ee5c.68b7018"
491             ]
492         ]
493     },
494     {
495         "id": "5e21416c.565be",
496         "type": "record",
497         "name": "log error",
498         "xml": " <record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n    <parameter name=\"file\" value=\"/opt/oak/logx.txt\" />\n    <parameter name=\"field1\" value=\"deleteAccessConnectivityService falied!\" />\n    <parameter name=\"field2\" value=\"`$service-result.errors.error[0].error-info.error-code`\" />\n    <parameter name=\"field3\" value=\"`$service-result.errors.error[0].error-message`\" />\n    <parameter name=\"field4\" value=\"`$service-result.errors.error[0].error-tag`\" />\n    ",
499         "comments": "",
500         "outputs": 1,
501         "x": 2910.0005645751953,
502         "y": 797.0001049041748,
503         "z": "828aeb02.de4ff8",
504         "wires": [
505             []
506         ]
507     },
508     {
509         "id": "c4485241.e819a",
510         "type": "returnSuccess",
511         "name": "return success",
512         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
513         "comments": "",
514         "x": 1438.000244140625,
515         "y": 948.0000305175781,
516         "z": "828aeb02.de4ff8",
517         "wires": []
518     },
519     {
520         "id": "6c15beca.e4e8a",
521         "type": "returnFailure",
522         "name": "return failure",
523         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error deleteAccessConnectivityService failed: '+$service-result.errors.error[0].error-message`\" />\n\n",
524         "comments": "",
525         "x": 2670.0000762939453,
526         "y": 810.0000228881836,
527         "z": "828aeb02.de4ff8",
528         "wires": []
529     },
530     {
531         "id": "c04ee5c.68b7018",
532         "type": "block",
533         "name": "block",
534         "xml": "<block>\n",
535         "atomic": "false",
536         "comments": "",
537         "outputs": 1,
538         "x": 2656.0000762939453,
539         "y": 898.0000267028809,
540         "z": "828aeb02.de4ff8",
541         "wires": [
542             []
543         ]
544     }
545 ]