3 "id": "3e7ef4ac.b2e17c",
9 "z": "9458f851.9a2498",
17 "id": "cbfbc44.cd69838",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 1092.5311317443848,
26 "y": 248.03125476837158,
27 "z": "9458f851.9a2498",
35 "id": "8072076.84dccf8",
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",
41 "x": 1055.5311317443848,
42 "y": 367.0312547683716,
43 "z": "9458f851.9a2498",
51 "id": "9a3cc53d.6e79d8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 1453.5312385559082,
59 "y": 366.0312547683716,
60 "z": "9458f851.9a2498",
74 "id": "d6360288.4527f",
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",
80 "x": 1895.531536102295,
81 "y": 220.14233589172363,
82 "z": "9458f851.9a2498",
88 "id": "ccc27501.c46688",
90 "name": "for:network-input-paramters",
91 "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",
94 "x": 1899.5315589904785,
95 "y": 442.0311813354492,
96 "z": "9458f851.9a2498",
104 "id": "5837e3f.e88671c",
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",
110 "x": 1890.5315589904785,
111 "y": 352.03125762939453,
112 "z": "9458f851.9a2498",
121 "id": "df6b78a.61b9688",
124 "xml": "<outcome value='success'>\n",
127 "x": 2189.698184967041,
128 "y": 348.28125762939453,
129 "z": "9458f851.9a2498",
137 "id": "632411.2d700bf",
140 "xml": "<outcome value='failure'>\n",
143 "x": 2185.698184967041,
144 "y": 242.2812271118164,
145 "z": "9458f851.9a2498",
153 "id": "53a754bd.11dc7c",
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 queryTokenID,vaule is null\" />\n",
158 "x": 2732.8119888305664,
159 "y": 290.64491176605225,
160 "z": "9458f851.9a2498",
164 "id": "54233be2.f30004",
167 "xml": "<outcome value=''>\n",
170 "x": 2556.531566619873,
171 "y": 291.031213760376,
172 "z": "9458f851.9a2498",
180 "id": "c7e8c95e.bd9528",
181 "type": "switchNode",
182 "name": "switch:token ",
183 "xml": "<switch test='`$token-result.accessSession`'>\n",
186 "x": 2388.531566619873,
187 "y": 349.031213760376,
188 "z": "9458f851.9a2498",
197 "id": "2525724.318638e",
200 "xml": "<outcome value='Other'>\n",
203 "x": 2557.531566619873,
204 "y": 348.031213760376,
205 "z": "9458f851.9a2498",
213 "id": "b5f78ce0.e4e8f",
215 "name": "set:token-id",
216 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
218 "x": 2732.0315589904785,
219 "y": 347.28125762939453,
220 "z": "9458f851.9a2498",
224 "id": "e0b6a2ae.458e8",
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 ",
230 "x": 2943.5315589904785,
231 "y": 345.0311965942383,
232 "z": "9458f851.9a2498",
238 "id": "bfbc37d6.3aa9c8",
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",
243 "x": 1861.531536102295,
244 "y": 140.0314121246338,
245 "z": "9458f851.9a2498",
249 "id": "afc719e1.eb7f48",
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\"/>",
255 "x": 1951.5318222045898,
256 "y": 622.0313603878021,
257 "z": "9458f851.9a2498",
266 "id": "c6939dae.0ae37",
269 "xml": "<outcome value='failure'>\n",
272 "x": 2256.531837463379,
273 "y": 562.0313415527344,
274 "z": "9458f851.9a2498",
282 "id": "7116ae31.13271",
285 "xml": "<outcome value='success'>\n",
288 "x": 2256.531810760498,
289 "y": 621.0313413143158,
290 "z": "9458f851.9a2498",
298 "id": "b5b74804.ae8938",
301 "xml": "<outcome value=''>\n",
304 "x": 2742.5319213867188,
305 "y": 518.031275510788,
306 "z": "9458f851.9a2498",
314 "id": "19c841bb.b9c39e",
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=\"$network-input-parameters.param[$idx].name +' value is null, please check it.'\" />\n",
319 "x": 2927.4408683776855,
320 "y": 517.9403285980225,
321 "z": "9458f851.9a2498",
325 "id": "430a13df.a78e9c",
326 "type": "switchNode",
327 "name": "switch:serviceID",
328 "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'serviceID'`\">\n",
331 "x": 2174.5315856933594,
332 "y": 441.0312690734863,
333 "z": "9458f851.9a2498",
341 "id": "804331b5.825a1",
342 "type": "outcomeTrue",
344 "xml": "<outcome value='true'>\n",
347 "x": 2347.531470298767,
348 "y": 440.0312671661377,
349 "z": "9458f851.9a2498",
357 "id": "b8311cf7.388d1",
359 "name": "set:serviceID",
360 "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$network-input-parameters.param[$idx].value`' />\n",
362 "x": 2918.531436920166,
363 "y": 439.6312789916992,
364 "z": "9458f851.9a2498",
368 "id": "1d00164b.c74e1a",
369 "type": "switchNode",
370 "name": "switch:serviceID value",
371 "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
374 "x": 2528.679630279541,
375 "y": 439.80895233154297,
376 "z": "9458f851.9a2498",
385 "id": "acaa6a13.89b9f8",
388 "xml": "<outcome value='Other'>\n",
391 "x": 2736.679630279541,
392 "y": 440.80895233154297,
393 "z": "9458f851.9a2498",
401 "id": "29565532.cf8cca",
403 "name": "call:validate-bbs-network-input-parameters",
404 "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-bbs-network-input-parameters' mode='sync' >\n",
407 "x": 1973.031162261963,
408 "y": 59.03126335144043,
409 "z": "9458f851.9a2498",
415 "id": "1c65ae1f.8b01d2",
417 "name": "block : atomic",
418 "xml": "<block atomic=\"true\">\n",
422 "x": 2433.031608581543,
423 "y": 622.0315194129944,
424 "z": "9458f851.9a2498",
432 "id": "cced1fd6.04da4",
433 "type": "switchNode",
434 "name": "switch:service-result",
435 "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
438 "x": 2651.0314865112305,
439 "y": 621.0313668251038,
440 "z": "9458f851.9a2498",
449 "id": "4dce053b.3feafc",
452 "xml": "<outcome value='Other'>\n",
455 "x": 2885.0315322875977,
456 "y": 622.0313267707825,
457 "z": "9458f851.9a2498",
465 "id": "cf917e9d.94b86",
468 "xml": "<outcome value=''>\n",
471 "x": 2887.0315322875977,
472 "y": 708.0313267707825,
473 "z": "9458f851.9a2498",
481 "id": "7f7a43fa.cb783c",
484 "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 ",
487 "x": 3325.03169631958,
488 "y": 609.031343460083,
489 "z": "9458f851.9a2498",
495 "id": "79257394.2307bc",
496 "type": "returnSuccess",
497 "name": "return success",
498 "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",
500 "x": 1853.0313758850098,
501 "y": 760.0312690734863,
502 "z": "9458f851.9a2498",
506 "id": "7c2264f5.7e8cec",
507 "type": "returnFailure",
508 "name": "return failure",
509 "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 return: '+$service-result.errors.error[0].error-message`\" />\n\n",
511 "x": 3085.03120803833,
512 "y": 622.0312614440918,
513 "z": "9458f851.9a2498",
517 "id": "523726af.0e2f78",
524 "x": 3071.0312271118164,
525 "y": 707.3039350509644,
526 "z": "9458f851.9a2498",
532 "id": "da5c448.537c3b8",
533 "type": "returnFailure",
534 "name": "return failure",
535 "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 failed to call queryTokenID\" />\n",
537 "x": 2378.196044921875,
538 "y": 243.15057373046875,
539 "z": "9458f851.9a2498",
543 "id": "c09b1f3e.53091",
544 "type": "returnFailure",
545 "name": "return failure",
546 "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 failed to call deleteAccessConnectivityService\" />\n",
548 "x": 2426.803955078125,
549 "y": 560.3948364257812,
550 "z": "9458f851.9a2498",
554 "id": "3a60417f.fe190e",
557 "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 ",
560 "x": 3290.031753540039,
561 "y": 705.0314111709595,
562 "z": "9458f851.9a2498",