3 "id": "32e79365.f9a674",
9 "z": "e7492f37.77e028",
17 "id": "b127d6e2.ff9c7",
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": 972.9998817443848,
26 "y": 664.0000047683716,
27 "z": "e7492f37.77e028",
35 "id": "2c85dd35.2b753a",
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": 935.9998817443848,
42 "y": 783.0000047683716,
43 "z": "e7492f37.77e028",
51 "id": "ef9e0c93.94adf8",
53 "name": "block : atomic",
54 "xml": "<block atomic=\"true\">\n",
58 "x": 1333.9999885559082,
59 "y": 782.0000047683716,
60 "z": "e7492f37.77e028",
74 "id": "267997b8.e9b0d",
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": 1776.000286102295,
81 "y": 636.1110858917236,
82 "z": "e7492f37.77e028",
88 "id": "5f5fa66b.a3a898",
90 "name": "for:network-input-paramters",
91 "xml": "<for index='idx' start='0' end='`$network-input-parameters.param_length`' >\n",
94 "x": 1780.0003089904785,
95 "y": 857.9999313354492,
96 "z": "e7492f37.77e028",
104 "id": "1d5f9b67.3462ad",
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": 1771.0003089904785,
111 "y": 768.0000076293945,
112 "z": "e7492f37.77e028",
121 "id": "15bc857f.bafd43",
124 "xml": "<outcome value='success'>\n",
127 "x": 2070.166934967041,
128 "y": 764.2500076293945,
129 "z": "e7492f37.77e028",
137 "id": "2b64faec.a1d51e",
140 "xml": "<outcome value='failure'>\n",
143 "x": 2066.166934967041,
144 "y": 658.2499771118164,
145 "z": "e7492f37.77e028",
153 "id": "5704a92f.4d6488",
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": 2613.2807388305664,
159 "y": 706.6136617660522,
160 "z": "e7492f37.77e028",
164 "id": "a55c0e66.2654c8",
167 "xml": "<outcome value=''>\n",
170 "x": 2437.000316619873,
171 "y": 706.999963760376,
172 "z": "e7492f37.77e028",
180 "id": "c730ec93.32f82",
181 "type": "switchNode",
182 "name": "switch:token ",
183 "xml": "<switch test='`$token-result.accessSession`'>\n",
186 "x": 2269.000316619873,
187 "y": 764.999963760376,
188 "z": "e7492f37.77e028",
197 "id": "72281c79.15bf7c",
200 "xml": "<outcome value='Other'>\n",
203 "x": 2438.000316619873,
204 "y": 763.999963760376,
205 "z": "e7492f37.77e028",
213 "id": "85cd43c3.a877f8",
215 "name": "set:token-id",
216 "xml": "<set>\n<parameter name='prop.sdncRestApi.token_id' value='`$token-result.accessSession`' />\n",
218 "x": 2612.5003089904785,
219 "y": 763.2500076293945,
220 "z": "e7492f37.77e028",
224 "id": "cf8179f9.6c703",
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": 2824.0003089904785,
231 "y": 760.9999465942383,
232 "z": "e7492f37.77e028",
238 "id": "68d0163d.33ab6",
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": 1742.000286102295,
244 "y": 556.0001621246338,
245 "z": "e7492f37.77e028",
249 "id": "a5de3800.3f3c9",
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": 1832.0005722045898,
256 "y": 1038.0001103878021,
257 "z": "e7492f37.77e028",
266 "id": "5b7315a4.8b9d54",
269 "xml": "<outcome value='failure'>\n",
272 "x": 2137.000587463379,
273 "y": 978.0000915527344,
274 "z": "e7492f37.77e028",
282 "id": "b2a61f83.59c088",
285 "xml": "<outcome value='success'>\n",
288 "x": 2137.000560760498,
289 "y": 1037.0000913143158,
290 "z": "e7492f37.77e028",
298 "id": "67d761ed.040b7",
301 "xml": "<outcome value=''>\n",
304 "x": 2623.0006713867188,
305 "y": 934.000025510788,
306 "z": "e7492f37.77e028",
314 "id": "f6e3cbc5.9d1b18",
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": 2807.9096183776855,
320 "y": 933.9090785980225,
321 "z": "e7492f37.77e028",
325 "id": "a2cbb6ad.9498d8",
326 "type": "switchNode",
327 "name": "switch:serviceID",
328 "xml": "<switch test=\"`$network-input-parameters.param[$idx].name == 'serviceID'`\">\n",
331 "x": 2055.0003356933594,
332 "y": 857.0000190734863,
333 "z": "e7492f37.77e028",
341 "id": "8cd031d1.154ec8",
342 "type": "outcomeTrue",
344 "xml": "<outcome value='true'>\n",
347 "x": 2228.000220298767,
348 "y": 856.0000171661377,
349 "z": "e7492f37.77e028",
357 "id": "7e9b3155.7cd6d",
359 "name": "set:serviceID",
360 "xml": "<set>\n<parameter name='prop.bbs.serviceID' value='`$network-input-parameters.param[$idx].value`' />\n",
362 "x": 2799.000186920166,
363 "y": 855.6000289916992,
364 "z": "e7492f37.77e028",
368 "id": "9ffc371.a8c8ec8",
369 "type": "switchNode",
370 "name": "switch:serviceID value",
371 "xml": "<switch test='`$network-input-parameters.param[$idx].value`'>\n",
374 "x": 2409.148380279541,
375 "y": 855.777702331543,
376 "z": "e7492f37.77e028",
385 "id": "46008887.d0731",
388 "xml": "<outcome value='Other'>\n",
391 "x": 2617.148380279541,
392 "y": 856.777702331543,
393 "z": "e7492f37.77e028",
401 "id": "f1c69874.61cb9",
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": 1853.499912261963,
408 "y": 475.00001335144043,
409 "z": "e7492f37.77e028",
415 "id": "fca294fa.de967",
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 ",
421 "x": 3170.500503540039,
422 "y": 1121.0001611709595,
423 "z": "e7492f37.77e028",
429 "id": "ce8b9653.804e",
431 "name": "block : atomic",
432 "xml": "<block atomic=\"true\">\n",
436 "x": 2313.500358581543,
437 "y": 1038.0002694129944,
438 "z": "e7492f37.77e028",
446 "id": "558a111d.84c158",
447 "type": "switchNode",
448 "name": "switch:service-result",
449 "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
452 "x": 2531.5002365112305,
453 "y": 1037.0001168251038,
454 "z": "e7492f37.77e028",
463 "id": "3ed23c26.7d9344",
466 "xml": "<outcome value='Other'>\n",
469 "x": 2765.5002822875977,
470 "y": 1038.0000767707825,
471 "z": "e7492f37.77e028",
479 "id": "3b7a58ab.469a28",
482 "xml": "<outcome value=''>\n",
485 "x": 2767.5002822875977,
486 "y": 1124.0000767707825,
487 "z": "e7492f37.77e028",
495 "id": "daa9ee04.8494a8",
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 ",
501 "x": 3205.50044631958,
502 "y": 1025.000093460083,
503 "z": "e7492f37.77e028",
509 "id": "7e468fe4.3b77e8",
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",
514 "x": 1733.5001258850098,
515 "y": 1176.0000190734863,
516 "z": "e7492f37.77e028",
520 "id": "a4966b56.feb3a",
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 return: '+$service-result.errors.error[0].error-message`\" />\n\n",
525 "x": 2965.49995803833,
526 "y": 1038.0000114440918,
527 "z": "e7492f37.77e028",
531 "id": "f89a532c.628618",
538 "x": 2951.4999771118164,
539 "y": 1123.2726850509644,
540 "z": "e7492f37.77e028",
548 "id": "20d8621f.db8eee",
549 "type": "returnFailure",
550 "name": "return failure",
551 "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",
553 "x": 2258.664794921875,
554 "y": 659.1193237304688,
555 "z": "e7492f37.77e028",
559 "id": "218de6d2.4c392a",
560 "type": "returnFailure",
561 "name": "return failure",
562 "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",
564 "x": 2307.272705078125,
565 "y": 976.3635864257812,
566 "z": "e7492f37.77e028",