17 "id":"a0627d9f.9732f8",
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":237.23807907104492,
26 "y":143.95239067077637,
27 "z":"307d8ab2.24f886",
35 "id":"d2b128d2.d9f3b",
37 "name":"tunnelxconn-topology-operation-activate",
38 "xml":"<method rpc='tunnelxconn-topology-operation-activate' mode='sync'>\n",
41 "x":283.15485763549805,
42 "y":179.19044589996338,
43 "z":"307d8ab2.24f886",
51 "id":"e0a0d26a.cd7c18",
53 "name":"block : atomic",
54 "xml":"<block atomic=\"true\">",
58 "x":191.47619247436523,
59 "y":322.5237879753113,
60 "z":"307d8ab2.24f886",
79 "id":"f82799c8.167508",
80 "type":"returnSuccess",
81 "name":"return success",
82 "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",
84 "x":458.0001106262207,
85 "y":992.2145080566406,
86 "z":"307d8ab2.24f886",
92 "id":"3595ac23.ea8734",
94 "name":"set output to api handler",
95 "xml":"<set>\n<parameter name='allotted-resource-id' value='`$tmp.ar.allotted-resource-id`' />\n<parameter name='tunnelxconn-object-path' value=\"`$tmp.ar.self-link`\"/>\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $tunnelxconn-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n \n",
97 "x":486.75402450561523,
98 "y":956.3370542526245,
99 "z":"307d8ab2.24f886",
105 "id":"69d61c38.40caa4",
107 "name":"set allotted-resource-oper-status",
108 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status' value='Active' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tunnelxconn-topology-operation-input.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-request-id`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.create-timestamp' value='`$tmp.current-time`' />\n",
110 "x":497.7542190551758,
111 "y":703.0514001846313,
112 "z":"307d8ab2.24f886",
118 "id":"2679eac0.b2cc36",
120 "name":"set tmp.ar.self-link",
121 "xml":"<set>\n<parameter name='tmp.ar.self-link' value=\"`'restconf/config/GENERIC-RESOURCE-API:tunnelxconn-allotted-resources/tunnelxconn-allotted-resource/'\n + $tmp.ar.allotted-resource-id\n + '/allotted-resource-data/tunnelxconn-topology/'` \" />\n\n",
123 "x":453.73806381225586,
124 "y":296.33332538604736,
125 "z":"307d8ab2.24f886",
131 "id":"e00d09b3.2a3938",
133 "name":"set tmp.ar.allotted-resource-id,etc",
134 "xml":"<set>\n<parameter name='tmp.ar.allotted-resource-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.allotted-resource-id`' />\n<parameter name='tmp.ar.parent-service-instance-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-information.parent-service-instance-id`' />\n<parameter name='tmp.ar.brg-vnf-id' value='`$tunnelxconn-topology-operation-input.allotted-resource-data.tunnelxconn-topology.tunnelxconn-assignments.tunnelxconn-vnf-id`' />\n\n\n",
136 "x":500.9973258972168,
137 "y":262.59259128570557,
138 "z":"307d8ab2.24f886",
144 "id":"1a8f12fd.5ade8d",
146 "name":"execute Properties",
147 "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",
150 "x":459.9934196472168,
151 "y":332.23152446746826,
152 "z":"307d8ab2.24f886",
160 "id":"6c7cdfc8.6b2608",
162 "name":"execute RestApiCallNode - Get AR by id",
163 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='GET' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
166 "x":522.5187530517578,
167 "y":493.4594917297363,
168 "z":"307d8ab2.24f886",
177 "id":"d30bace3.5a7f2",
179 "name":"generate allotted-resource url",
180 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.tx-allottedresource`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ar-url\"/>\n <parameter name=\"target\" value=\"{allotted-resource-id}\"/>\n <parameter name=\"replacement\" value=\"`$tmp.ar.allotted-resource-id`\"/>\n",
183 "x":488.0648536682129,
184 "y":392.0172290802002,
185 "z":"307d8ab2.24f886",
193 "id":"4b2d666b.abe658",
196 "xml":"<outcome value='success'>\n",
199 "x":779.8148918151855,
200 "y":492.26725220680237,
201 "z":"307d8ab2.24f886",
209 "id":"e60cbd81.14ee9",
211 "name":"execute RestApiCallNode - PUT AR by id",
212 "xml":"<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.tx.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ar-url`' />\n <parameter name='restapiUser' value='`$prop.controller.user`' />\n <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='PUT' />\n <parameter name=\"responsePrefix\" value=\"mdsal-ar\" />\n\n",
215 "x":530.5293121337891,
216 "y":846.4341316223145,
217 "z":"307d8ab2.24f886",
227 "id":"46ade8d5.b547e",
230 "xml":"<outcome value='not-found'>\n",
233 "x":800.837329864502,
234 "y":899.432332418859,
235 "z":"307d8ab2.24f886",
243 "id":"20a825ec.94755a",
246 "xml":"<outcome value='failure'>\n",
249 "x":791.8373794555664,
250 "y":867.9323581680655,
251 "z":"307d8ab2.24f886",
259 "id":"ce5466bc.b050b",
262 "xml":"<outcome value='success'>\n",
265 "x":795.5874176025391,
266 "y":838.2894630432129,
267 "z":"307d8ab2.24f886",
275 "id":"83dde006.65958",
276 "type":"returnFailure",
277 "name":"return failure",
278 "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Error updating md-sal for tunnelxconn-allotted-resource\" />\n",
280 "x":961.5874176025391,
281 "y":868.6823820099235,
282 "z":"307d8ab2.24f886",
288 "id":"56d62b25.1f49bc",
290 "name":"block: atomic",
291 "xml":"<block atomic=\"true\">\n",
295 "x":960.8148460388184,
296 "y":492.7672016620636,
297 "z":"307d8ab2.24f886",
306 "id":"e624279a.12ec8",
308 "name":"switch tx length",
309 "xml":"<switch test='`$mdsal-ar.tunnelxconn-allotted-resource_length`'>\n",
312 "x":1206.6720924377441,
313 "y":527.052964925766,
314 "z":"307d8ab2.24f886",
322 "id":"3cddd823.41afe",
325 "xml":"<outcome value='1'>\n",
328 "x":1397.6720962524414,
329 "y":527.0529625415802,
330 "z":"307d8ab2.24f886",
338 "id":"d7146c6d.b9cef8",
340 "name":"set tx-ar from get",
341 "xml":"<set>\n<parameter name='tx-ar.' value='$mdsal-ar.tunnelxconn-allotted-resource[0].' />\n",
343 "x":1797.5292320251465,
344 "y":527.6243867874146,
345 "z":"307d8ab2.24f886",
351 "id":"6be9fe1e.f9c138",
353 "name":"block: atomic",
354 "xml":"<block atomic='true'>\n",
358 "x":1568.5290794372559,
359 "y":527.6244316101074,
360 "z":"307d8ab2.24f886",
370 "id":"357a7eb2.2788c2",
372 "name":"set oper-status",
373 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-action' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.request-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-rpc-action' value='`$tx-ar.allotted-resource-status.rpc-action`' />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-oper-status.last-svc-request-id' value='`$tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.svc-request-id`' />\n\n",
375 "x":1795.5294761657715,
376 "y":595.0529508590698,
377 "z":"307d8ab2.24f886",
383 "id":"787114c9.2806c4",
385 "name":"GET tunnelxconn-allotted-resource from mdsal",
388 "x":547.8148155212402,
389 "y":456.7671926021576,
390 "z":"307d8ab2.24f886",
396 "id":"aecdfd17.ff094",
398 "name":"switch order-status",
399 "xml":"<switch test='`$tx-ar.allotted-resource-data.allotted-resource-oper-status.order-status`'>\n",
402 "x":1805.52925491333,
403 "y":560.6243848800659,
404 "z":"307d8ab2.24f886",
413 "id":"60364cde.e8654c",
415 "name":"outcome Created",
416 "xml":"<outcome value='Created'>\n",
419 "x":2017.1292114257812,
420 "y":521.6243848800659,
421 "z":"307d8ab2.24f886",
429 "id":"5dbfe46e.a42744",
431 "name":"outcome Other",
432 "xml":"<outcome value='Other'>\n",
435 "x":2042.8435859680176,
436 "y":557.052975654602,
437 "z":"307d8ab2.24f886",
445 "id":"3137dae9.e2b426",
447 "name":"Set allotted-resource-identifiers",
450 "x":503.33863830566406,
451 "y":547.3386459350586,
452 "z":"307d8ab2.24f886",
458 "id":"a31618b2.409b8",
460 "name":"save backup copy of mdsal-ar for rollback",
461 "xml":"<set>\n<parameter name='bk-tx-ar' value='$mdsal-ar.' />\n",
463 "x":1286.3864250183105,
464 "y":492.76729369163513,
465 "z":"307d8ab2.24f886",
471 "id":"f725e409.258e68",
473 "name":"Create urls for restapi",
476 "x":458.9576606750488,
477 "y":361.6243562698364,
478 "z":"307d8ab2.24f886",
484 "id":"f7831c73.19aa18",
491 "x":937.2433853149414,
492 "y":834.481632232666,
493 "z":"307d8ab2.24f886",
501 "id":"6917ca0.586c538",
503 "name":"TO DO: vnf/put parent",
506 "x":461.2433776855469,
507 "y":735.1481952667236,
508 "z":"307d8ab2.24f886",
514 "id":"e233eb48.73f8b",
516 "name":"execute getTime",
517 "xml":"<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='setTime' >\n <parameter name=\"outputPath\" value=\"tmp.current-time\" />\n\n",
520 "x":445.24338150024414,
521 "y":664.4815549850464,
522 "z":"307d8ab2.24f886",
530 "id":"c5e31c5.77e05e",
533 "xml":"<outcome value='Other'>\n",
536 "x":779.5766868591309,
537 "y":528.4814250469208,
538 "z":"307d8ab2.24f886",
546 "id":"dd1ff459.39f8a8",
548 "name":"block: atomic",
549 "xml":"<block atomic=\"true\">\n",
553 "x":959.5766372680664,
554 "y":529.1479756832123,
555 "z":"307d8ab2.24f886",
563 "id":"d2103b31.1f83e8",
566 "xml":"<set>\n<parameter name='tx-ar.allotted-resource-id' value=\"`$tmp.ar.allotted-resource-id` \" />\n<parameter name='tx-ar.allotted-resource-status.action' value=\"`$tunnelxconn-topology-operation-input.request-information.request-action` \" />\n<parameter name='tx-ar.allotted-resource-status.rpc-name' value=\"tunnelxconn-topology-operation\" />\n<parameter name='tx-ar.allotted-resource-status.rpc-action' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.svc-action` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.request-information.' value=\"`$tunnelxconn-topology-operation-input.request-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.sdnc-request-header.' value=\"`$tunnelxconn-topology-operation-input.sdnc-request-header.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.service-information.' value=\"`$tunnelxconn-topology-operation-input.service-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.allotted-resource-information.' value=\"`$tunnelxconn-topology-operation-input.allotted-resource-information.` \" />\n<parameter name='tx-ar.allotted-resource-data.allotted-resource-operation-information.tunnelxconn-request-input.' value=\"`$tunnelxconn-topology-operation-input.tunnelxconn-request-input.` \" />",
568 "x":428.24342346191406,
569 "y":584.1481666564941,
570 "z":"307d8ab2.24f886",
576 "id":"2e5253bb.935b44",
583 "x":2231.5997276306152,
584 "y":523.0000190734863,
585 "z":"307d8ab2.24f886",
593 "id":"3936aa7e.049e66",
595 "name":"update AAI allotted-resource",
596 "xml":"<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"allotted-resource\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-information.subscription-service-type AND\n\t\t\tservice-instance.service-instance-id = $service-data.service-information.service-instance-id AND\n\t\t\tallotted-resource.id = $tmp.ar.allotted-resource-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"operational-status\" value=\"in-service-path\" />\n",
599 "x":488.85716247558594,
600 "y":768.2380628585815,
601 "z":"307d8ab2.24f886",
610 "id":"578afeed.16a8f8",
613 "xml":"<outcome value='failure'>\n",
616 "x":744.6190567016602,
617 "y":751.1905598640442,
618 "z":"307d8ab2.24f886",
626 "id":"9bc7661.b85f498",
627 "type":"returnFailure",
628 "name":"return failure",
629 "xml":"<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
631 "x":911.142936706543,
632 "y":762.8096308708191,
633 "z":"307d8ab2.24f886",
639 "id":"fb8f774e.d3d13",
642 "xml":"<outcome value='not-found'>\n",
645 "x":751.7143440246582,
646 "y":783.9525275230408,
647 "z":"307d8ab2.24f886",