aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation-assign.json424
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation.json302
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-assign.json1375
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-ra-assignment.json1074
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-pnf-input.json573
5 files changed, 3748 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation-assign.json
new file mode 100644
index 00000000..2e3a1c2e
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation-assign.json
@@ -0,0 +1,424 @@
+[
+ {
+ "id": "d3b3a7ea.d04d08",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 133.3333282470703,
+ "y": 79.63588523864746,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "46bb10f7.5c3fb"
+ ]
+ ]
+ },
+ {
+ "id": "46bb10f7.5c3fb",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 248.61903381347656,
+ "y": 121.54066467285156,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "11b944cd.c96c5b"
+ ]
+ ]
+ },
+ {
+ "id": "11b944cd.c96c5b",
+ "type": "method",
+ "name": "method pnf-topology-operation-assign",
+ "xml": "<method rpc='pnf-topology-operation-assign' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 243.92864990234375,
+ "y": 165.55255317687988,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "ce6b8a58.b8d3e8"
+ ]
+ ]
+ },
+ {
+ "id": "7e923496.314c4c",
+ "type": "comment",
+ "name": "pnf-topology-operation-assign",
+ "info": "",
+ "comments": "",
+ "x": 535.5948638916016,
+ "y": 41.38888931274414,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "2c8dd484.c334bc",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 627.2143096923828,
+ "y": 309.0287160873413,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "e97259d0.1af158",
+ "413f5d48.571fc4"
+ ]
+ ]
+ },
+ {
+ "id": "e97259d0.1af158",
+ "type": "outcome",
+ "name": "CreatePnfInstance",
+ "xml": "<outcome value='CreatePnfInstance'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 880.9286041259766,
+ "y": 286.1715974807739,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "f6bc9eb4.5cc37"
+ ]
+ ]
+ },
+ {
+ "id": "413f5d48.571fc4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 842.9285697937012,
+ "y": 331.88592529296875,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "514d78e9.baa838"
+ ]
+ ]
+ },
+ {
+ "id": "f6bc9eb4.5cc37",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1065.785732269287,
+ "y": 286.17162704467773,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "514d78e9.baa838",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"If svc-action is 'assign' then request-action must be 'CreatePnfInstance'\" />\n",
+ "comments": "",
+ "x": 1082.9285774230957,
+ "y": 331.8858833312988,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "4388ff9d.ce7d6",
+ "type": "get-resource",
+ "name": "get-resource VF_MODEL",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid'\n pfx='db.vf-model'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 639.5476150512695,
+ "y": 400.17158603668213,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "512ab575.220ccc",
+ "3a1614d2.3eacec"
+ ]
+ ]
+ },
+ {
+ "id": "6dc29919.0f2208",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"`'No model found for VF customization UUID ' + $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`\" />\n",
+ "comments": "",
+ "x": 1080.9760932922363,
+ "y": 423.60007190704346,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "512ab575.220ccc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 840.3333129882812,
+ "y": 380.55242347717285,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "d5d2d14c.f67aa"
+ ]
+ ]
+ },
+ {
+ "id": "3a1614d2.3eacec",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 848.9047431945801,
+ "y": 424.83813667297363,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "6dc29919.0f2208"
+ ]
+ ]
+ },
+ {
+ "id": "d5d2d14c.f67aa",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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 reading VF_MODEL table\" />\n",
+ "comments": "",
+ "x": 1080.333293914795,
+ "y": 378.695330619812,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "95465986.653a28",
+ "type": "execute",
+ "name": "execute PropertiesNode",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 635.1190948486328,
+ "y": 182.314471244812,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ce6b8a58.b8d3e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 353.41272735595703,
+ "y": 309.5079708099365,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "2c8dd484.c334bc",
+ "4388ff9d.ce7d6",
+ "95465986.653a28",
+ "6cdfcbff.124fe4",
+ "4f7127f2.481f58"
+ ]
+ ]
+ },
+ {
+ "id": "6cdfcbff.124fe4",
+ "type": "switchNode",
+ "name": "switch input cloud-owner",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 635.8333511352539,
+ "y": 237.55254077911377,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "fbe3ca5c.624b78",
+ "12f9e0f5.d15d1f"
+ ]
+ ]
+ },
+ {
+ "id": "fbe3ca5c.624b78",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 819.1667251586914,
+ "y": 207.55252933502197,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "c50e0e6c.80923"
+ ]
+ ]
+ },
+ {
+ "id": "12f9e0f5.d15d1f",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 818.9286308288574,
+ "y": 248.5050230026245,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "6843bdbc.1eb674"
+ ]
+ ]
+ },
+ {
+ "id": "c50e0e6c.80923",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 954.1666793823242,
+ "y": 205.88586902618408,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6843bdbc.1eb674",
+ "type": "set",
+ "name": "set prop.cloud-region.cloud-owner",
+ "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`' />\n",
+ "comments": "",
+ "x": 1035.8333358764648,
+ "y": 247.55255031585693,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "940a3bec.b79db8",
+ "type": "call",
+ "name": "call self-serve-pnf-assign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-assign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 848.5553359985352,
+ "y": 596.4128832817078,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "ee11637d.64cc5"
+ ]
+ ]
+ },
+ {
+ "id": "22ef4f33.3ca9c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"`'Failed to create self-serve assignment for pnf with pnf-id=' + $pnf-topology-operation-input.pnf-details.pnf-id + ' with error: ' + $error-message`\" />\n",
+ "comments": "",
+ "x": 1232.6267127990723,
+ "y": 596.4128336906433,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "d7499e88.a3c54",
+ "type": "comment",
+ "name": "SELF-SERVE FORK",
+ "info": "",
+ "comments": "",
+ "x": 758.174690246582,
+ "y": 547.6151220798492,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "ee11637d.64cc5",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1053.8529167175293,
+ "y": 595.9009146690369,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "22ef4f33.3ca9c"
+ ]
+ ]
+ },
+ {
+ "id": "8085154e.65e6a8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 820.9642715454102,
+ "y": 750.5674510002136,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "4326ce02.3a255",
+ "type": "set",
+ "name": "set pnf-level-oper-status to PendingCreate",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-rpc-action' value='`$pnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-action' value='`$pnf-topology-operation-input.request-information.request-action`' />",
+ "comments": "",
+ "x": 959.0277328491211,
+ "y": 649.15491771698,
+ "z": "6dfe2c1.a0003d4",
+ "wires": []
+ },
+ {
+ "id": "b05b3263.f3526",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-pnf-assign.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 810.8689994812012,
+ "y": 698.3447003364563,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4f7127f2.481f58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 599.535530090332,
+ "y": 667.8531589508057,
+ "z": "6dfe2c1.a0003d4",
+ "wires": [
+ [
+ "940a3bec.b79db8",
+ "8085154e.65e6a8",
+ "b05b3263.f3526"
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation.json
new file mode 100644
index 00000000..95599658
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_pnf-topology-operation.json
@@ -0,0 +1,302 @@
+[
+ {
+ "id": "a75a636d.6f381",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 151.42859649658203,
+ "y": 90.00000190734863,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "bc77da8a.d3eb38"
+ ]
+ ]
+ },
+ {
+ "id": "bc77da8a.d3eb38",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 265.7143020629883,
+ "y": 130.2381134033203,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "5d578276.4bfefc"
+ ]
+ ]
+ },
+ {
+ "id": "5d578276.4bfefc",
+ "type": "method",
+ "name": "method pnf-topology-operation",
+ "xml": "<method rpc='pnf-topology-operation' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 217.8572235107422,
+ "y": 169.99999618530273,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "8685d57b.911a08"
+ ]
+ ]
+ },
+ {
+ "id": "24fd3171.4300ae",
+ "type": "comment",
+ "name": "pnf-topology-operation",
+ "info": "",
+ "comments": "",
+ "x": 545.7734527587891,
+ "y": 37.58634567260742,
+ "z": "304db441.66b4dc",
+ "wires": []
+ },
+ {
+ "id": "8685d57b.911a08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 234.02387237548828,
+ "y": 376.26495265960693,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "53481fdc.accfe",
+ "142ac2ac.46ecad",
+ "1bd90137.06db9f"
+ ]
+ ]
+ },
+ {
+ "id": "53481fdc.accfe",
+ "type": "returnSuccess",
+ "name": "return success",
+ "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",
+ "comments": "",
+ "x": 519.380973815918,
+ "y": 530.7146434783936,
+ "z": "304db441.66b4dc",
+ "wires": []
+ },
+ {
+ "id": "142ac2ac.46ecad",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$pnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 529.4285430908203,
+ "y": 374.4761962890625,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "19927cce.f2a7f3",
+ "9c8ad773.ef9d68",
+ "a0c10c00.06af18",
+ "4205ab8c.75bdf4",
+ "5cc63376.4006fc",
+ "bec05d4a.4c7b6"
+ ]
+ ]
+ },
+ {
+ "id": "19927cce.f2a7f3",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 726.8094863891602,
+ "y": 268.5239009857178,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "ff0b4bca.7ccaa8"
+ ]
+ ]
+ },
+ {
+ "id": "9c8ad773.ef9d68",
+ "type": "outcome",
+ "name": "unassign",
+ "xml": "<outcome value='unassign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 730.8571090698242,
+ "y": 398.7146244049072,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "34401634.f821aa"
+ ]
+ ]
+ },
+ {
+ "id": "4205ab8c.75bdf4",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 724.142744064331,
+ "y": 484.3332748413086,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "fa0f4334.3fb5"
+ ]
+ ]
+ },
+ {
+ "id": "fa0f4334.3fb5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"`$pnf-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
+ "comments": "",
+ "x": 910.3331890106201,
+ "y": 484.3333396911621,
+ "z": "304db441.66b4dc",
+ "wires": []
+ },
+ {
+ "id": "1bd90137.06db9f",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-pnf-input",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-pnf-input' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 633.8452301025391,
+ "y": 227.38104057312012,
+ "z": "304db441.66b4dc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff0b4bca.7ccaa8",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:pnf-topology-operation-assign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='pnf-topology-operation-assign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1068.9523391723633,
+ "y": 268.0953617095947,
+ "z": "304db441.66b4dc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "90a49ca8.b5074",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:pnf-topology-operation-deactivate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='pnf-topology-operation-deactivate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1080.2856063842773,
+ "y": 352.4287099838257,
+ "z": "304db441.66b4dc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "34401634.f821aa",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:pnf-topology-operation-unassign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='pnf-topology-operation-unassign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1075.952205657959,
+ "y": 398.42875576019287,
+ "z": "304db441.66b4dc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a0c10c00.06af18",
+ "type": "outcome",
+ "name": "deactivate",
+ "xml": "<outcome value='deactivate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.9522476196289,
+ "y": 353.09538555145264,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "90a49ca8.b5074"
+ ]
+ ]
+ },
+ {
+ "id": "38e4cbe2.ef1884",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:pnf-topology-operation-activate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='pnf-topology-operation-activate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1073.0951843261719,
+ "y": 309.9999933242798,
+ "z": "304db441.66b4dc",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5cc63376.4006fc",
+ "type": "outcome",
+ "name": "activate",
+ "xml": "<outcome value='activate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 729.7618255615234,
+ "y": 310.66666889190674,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "38e4cbe2.ef1884"
+ ]
+ ]
+ },
+ {
+ "id": "bec05d4a.4c7b6",
+ "type": "outcome",
+ "name": "changeassign",
+ "xml": "<outcome value='changeassign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.7143363952637,
+ "y": 441.42855644226074,
+ "z": "304db441.66b4dc",
+ "wires": [
+ [
+ "27aa457b.765b8a"
+ ]
+ ]
+ },
+ {
+ "id": "27aa457b.765b8a",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:pnf-topology-operation-changeassign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='pnf-topology-operation-changeassign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1086.5237045288086,
+ "y": 441.1427230834961,
+ "z": "304db441.66b4dc",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-assign.json
new file mode 100644
index 00000000..2c57c178
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-assign.json
@@ -0,0 +1,1375 @@
+[
+ {
+ "id": "ecff213c.e8aaa",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 137.5,
+ "y": 90,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "23b17adc.1c80e6"
+ ]
+ ]
+ },
+ {
+ "id": "e6160663.8edf48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 167.9761962890625,
+ "y": 212.2777862548828,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "f97d0f53.e9029",
+ "2d2db8c6.748ba8",
+ "ff2d06ee.623348",
+ "ca8257f6.464808",
+ "b9417a96.c89598",
+ "97cbe59f.102fe8",
+ "71acdeef.4b572",
+ "b26b3f10.8cd93",
+ "2c0f97dd.67d808",
+ "192a8a0a.311bd6"
+ ]
+ ]
+ },
+ {
+ "id": "7bdd8af6.d4d404",
+ "type": "method",
+ "name": "method self-serve-pnf-assign",
+ "xml": "<method rpc='self-serve-pnf-assign' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 254.26190948486328,
+ "y": 144.70635509490967,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "e6160663.8edf48"
+ ]
+ ]
+ },
+ {
+ "id": "23b17adc.1c80e6",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 412.73819732666016,
+ "y": 90.19049263000488,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "7bdd8af6.d4d404"
+ ]
+ ]
+ },
+ {
+ "id": "2d2db8c6.748ba8",
+ "type": "switchNode",
+ "name": "switch pnf-parameters-data.param_length",
+ "xml": "<switch test='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 449.0357971191406,
+ "y": 1492.5120153427124,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "eb4e37ba.25e208"
+ ]
+ ]
+ },
+ {
+ "id": "eb4e37ba.25e208",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 711.0358276367188,
+ "y": 1492.5120153427124,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "ed282b71.ede0f8"
+ ]
+ ]
+ },
+ {
+ "id": "21ad94d1.be148c",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:self-serve-pnf-ra-assignment",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-ra-assignment' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1226.3214874267578,
+ "y": 1542.0834465026855,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "ffcba76.e3a6658"
+ ]
+ ]
+ },
+ {
+ "id": "afb8d713.9ea788",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Failed to get RA assignments: ' + $error-message`\" />\n",
+ "comments": "",
+ "x": 1698.0357284545898,
+ "y": 1541.6548500061035,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "6f90ee45.cde4f",
+ "type": "for",
+ "name": "foreach pnf-parameters-data.param[]",
+ "xml": "<for index='pidx' start='0' end='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 681.3574600219727,
+ "y": 1800.0120840072632,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "c123dce6.984a6",
+ "a008f4ce.816ac8"
+ ]
+ ]
+ },
+ {
+ "id": "f97d0f53.e9029",
+ "type": "set",
+ "name": "set ss.capability.execution-order[]",
+ "xml": "<set>\n<parameter name='ss.capability.execution-order[0]' value='aai-get' />\n<parameter name='ss.capability.execution-order[1]' value='generate-name' />\n<parameter name='ss.capability.execution-order[2]' value='alts-entitlement-assign' />\n<parameter name='ss.capability.execution-order[3]' value='alts-license-assign' />\n<parameter name='ss.capability.execution-order[4]' value='vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[5]' value='mS-vlan-tag-assign' />\n<parameter name='ss.capability.execution-order[6]' value='eipam-ip-assignment' />\n<parameter name='ss.capability.execution-order[7]' value='eipam-create-pool' />\n<parameter name='ss.capability.execution-order[8]' value='netbox-ip-assign' />\n<parameter name='ss.capability.execution-order[9]' value='mac-address-assign' />\n<parameter name='ss.capability.execution-order[10]' value='mS-mac-address-assign' />\n<parameter name='ss.capability.execution-order[11]' value='create-vpe-pool' />\n<parameter name='ss.capability.execution-order[12]' value='unresolved-composite-data' />\n<parameter name='ss.capability.execution-order[13]' value='aai-pnf-put' />\n<parameter name='ss.capability.execution-order_length' value='14' />\n",
+ "comments": "",
+ "x": 430.02384185791016,
+ "y": 1271.0001401901245,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "ff2d06ee.623348",
+ "type": "for",
+ "name": "foreach capability[]",
+ "xml": "<for index='cidx' start='0' end='`$ss.capability.execution-order_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 381.14300537109375,
+ "y": 1644.4049034118652,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "34d7033c.1d850c",
+ "bcdcac9e.1dcf8",
+ "6f90ee45.cde4f",
+ "7e8acf11.757ce"
+ ]
+ ]
+ },
+ {
+ "id": "a008f4ce.816ac8",
+ "type": "switchNode",
+ "name": "switch capability-name",
+ "xml": "<switch test='`$ss.capability-name == $tmp.param.capability-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 985.7502822875977,
+ "y": 1845.6548767089844,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "fbc7d0d6.d0f9a"
+ ]
+ ]
+ },
+ {
+ "id": "fbc7d0d6.d0f9a",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1176.2502822875977,
+ "y": 1845.9048767089844,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "1d5ac87a.53fd58"
+ ]
+ ]
+ },
+ {
+ "id": "ffcba76.e3a6658",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1543.8928337097168,
+ "y": 1541.5120401382446,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "afb8d713.9ea788"
+ ]
+ ]
+ },
+ {
+ "id": "34d7033c.1d850c",
+ "type": "set",
+ "name": "set ss.capability-name",
+ "xml": "<set>\n<parameter name='ss.capability-name' value='`$ss.capability.execution-order[$cidx]`' />\n<!--\nss.capability.execution-order[]\n-->",
+ "comments": "",
+ "x": 637.5000610351562,
+ "y": 1644.3573551177979,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "c123dce6.984a6",
+ "type": "set",
+ "name": "tmp.param.capability-name",
+ "xml": "<set>\n<parameter name='tmp.param.capability-name' \n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$pidx].resource-resolution-data.capability-name`' />",
+ "comments": "",
+ "x": 997.107307434082,
+ "y": 1800.2620868682861,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "bcdcac9e.1dcf8",
+ "type": "set",
+ "name": "set ss.capability-action = assign",
+ "xml": "<set>\n<parameter name='ss.capability-action' value='assign' />\n",
+ "comments": "",
+ "x": 666.2142028808594,
+ "y": 1691.2739391326904,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "7e8acf11.757ce",
+ "type": "set",
+ "name": "set capability-dg with 'self-serve-' + capability-name",
+ "xml": "<set>\n<parameter name='ss.capability-dg' value=\"`'self-serve-' + $ss.capability.execution-order[$cidx]`\" />\n",
+ "comments": "",
+ "x": 728.7262954711914,
+ "y": 1744.7501831054688,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "ca8257f6.464808",
+ "type": "set",
+ "name": "set sdnc-generated-cloud-resources = true",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.sdnc-generated-cloud-resources' value='true' />\n",
+ "comments": "",
+ "x": 458.9881362915039,
+ "y": 1324.7501487731934,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "9217be7a.bbdb1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 715.428539276123,
+ "y": 605.4643030166626,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "3723f166.b9d03e",
+ "74858ef1.51481",
+ "a4d6abfb.adbf88",
+ "7c366e89.adcd7",
+ "16c17b92.58b8f4",
+ "2ef35e2.ce87ea2",
+ "25981633.c7dc4a",
+ "152546f0.c6dac9",
+ "6f7c97df.b99708"
+ ]
+ ]
+ },
+ {
+ "id": "3723f166.b9d03e",
+ "type": "set",
+ "name": "set pnf-topology data",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-topology-identifier-structure.pnf-id'\n value='`$pnf-topology-operation-input.pnf-details.pnf-id`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-topology-identifier-structure.pnf-type'\n value='`$pnf-topology-operation-input.pnf-details.pnf-type`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.tenant'\n value='`$pnf-topology-operation-input.pnf-request-input.tenant`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.aic-cloud-region'\n value='`$pnf-topology-operation-input.pnf-request-input.aic-cloud-region`' />",
+ "comments": "",
+ "x": 930.9284820556641,
+ "y": 606.523811340332,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "ca44a755.ad1c68",
+ "type": "set",
+ "name": "set pnf-parameters-data",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.'\n value='pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.' />\n",
+ "comments": "",
+ "x": 1117.3217163085938,
+ "y": 1492.380844116211,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "a4d6abfb.adbf88",
+ "type": "set",
+ "name": "set pnf-level-oper-status to PendingCreate",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.order-status' value='PendingCreate' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-rpc-action' value='`$pnf-topology-operation-input.sdnc-request-header.svc-action`' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.last-action' value='`$pnf-topology-operation-input.request-information.request-action`' />\n",
+ "comments": "",
+ "x": 996.2184371948242,
+ "y": 1180.504020690918,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "74858ef1.51481",
+ "type": "set",
+ "name": "copy input data",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.sdnc-request-header.'\n value='$pnf-topology-operation-input.sdnc-request-header.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.request-information.'\n value='$pnf-topology-operation-input.request-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.'\n value='$pnf-topology-operation-input.service-information.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.'\n value='$pnf-topology-operation-input.pnf-details.' />\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.'\n value='$pnf-topology-operation-input.pnf-request-input.' />",
+ "comments": "",
+ "x": 913.5953521728516,
+ "y": 1130.3096599578857,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "b0cbcbbb.b2c498",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-invariant-uuid'\n value='`$db.pnf-model.invariant-uuid`' />",
+ "comments": "",
+ "x": 1327.9286727905273,
+ "y": 718.8810405731201,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "7c366e89.adcd7",
+ "type": "switchNode",
+ "name": "switch input model-invariant-uuid",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-invariant-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 968.7857475280762,
+ "y": 741.7054843902588,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "ae90c040.3cc39",
+ "5f2c6ed0.29635"
+ ]
+ ]
+ },
+ {
+ "id": "ae90c040.3cc39",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1177.4524192810059,
+ "y": 718.8484477996826,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "b0cbcbbb.b2c498"
+ ]
+ ]
+ },
+ {
+ "id": "5f2c6ed0.29635",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1178.881015777588,
+ "y": 763.1340389251709,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "f383b18b.bfab9"
+ ]
+ ]
+ },
+ {
+ "id": "f383b18b.bfab9",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-invariant-uuid'\n value='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-invariant-uuid`' />",
+ "comments": "",
+ "x": 1333.1667518615723,
+ "y": 762.5626111030579,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "4d3a329b.f2f90c",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-uuid'\n value='`$db.pnf-model.uuid`' />",
+ "comments": "",
+ "x": 1328.8809432983398,
+ "y": 807.419716835022,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "16c17b92.58b8f4",
+ "type": "switchNode",
+ "name": "switch input model-uuid",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 938.4047660827637,
+ "y": 830.2442216873169,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "59c0725a.54805c",
+ "bfa95def.afc74"
+ ]
+ ]
+ },
+ {
+ "id": "59c0725a.54805c",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1178.4047393798828,
+ "y": 807.3871536254883,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "4d3a329b.f2f90c"
+ ]
+ ]
+ },
+ {
+ "id": "bfa95def.afc74",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1179.8333358764648,
+ "y": 851.6727447509766,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "f2189dfb.909da"
+ ]
+ ]
+ },
+ {
+ "id": "f2189dfb.909da",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-uuid'\n value='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-uuid`' />",
+ "comments": "",
+ "x": 1334.1190719604492,
+ "y": 851.1013169288635,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "24e86468.e8cd5c",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-version'\n value='`$db.pnf-model.version`' />",
+ "comments": "",
+ "x": 1326.0238761901855,
+ "y": 896.2769241333008,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "2ef35e2.ce87ea2",
+ "type": "switchNode",
+ "name": "switch input model-version",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-version`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 949.5476379394531,
+ "y": 919.1013689041138,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "9b0d0090.c86a6",
+ "43470848.9d99c8"
+ ]
+ ]
+ },
+ {
+ "id": "9b0d0090.c86a6",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1175.547622680664,
+ "y": 896.2443313598633,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "24e86468.e8cd5c"
+ ]
+ ]
+ },
+ {
+ "id": "43470848.9d99c8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1176.976219177246,
+ "y": 940.5299224853516,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "1db4f705.93ccc9"
+ ]
+ ]
+ },
+ {
+ "id": "1db4f705.93ccc9",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-version'\n value='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-version`' />\n",
+ "comments": "",
+ "x": 1331.2619552612305,
+ "y": 939.9584946632385,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "1dc78c79.a450c4",
+ "type": "set",
+ "name": "set from DB",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-name'\n value='`$db.pnf-model.name`' />\n",
+ "comments": "",
+ "x": 1326.0238761901855,
+ "y": 983.4197463989258,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "25981633.c7dc4a",
+ "type": "switchNode",
+ "name": "switch input model-name",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 944.5476379394531,
+ "y": 1006.2441911697388,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "443be686.54dde8",
+ "f6a73c6d.1c44a"
+ ]
+ ]
+ },
+ {
+ "id": "443be686.54dde8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1175.547622680664,
+ "y": 983.3871536254883,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "1dc78c79.a450c4"
+ ]
+ ]
+ },
+ {
+ "id": "f6a73c6d.1c44a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1176.976219177246,
+ "y": 1027.6727447509766,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "963f984e.4e1598"
+ ]
+ ]
+ },
+ {
+ "id": "963f984e.4e1598",
+ "type": "set",
+ "name": "set from input",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-name'\n value='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-name`' />\n",
+ "comments": "",
+ "x": 1331.2619552612305,
+ "y": 1027.1013169288635,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "152546f0.c6dac9",
+ "type": "set",
+ "name": "set pnf-id",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-id'\n value='`$pnf-topology-operation-input.pnf-details.pnf-id`' />\n",
+ "comments": "",
+ "x": 894.9047088623047,
+ "y": 658.0388488769531,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "6f7c97df.b99708",
+ "type": "set",
+ "name": "set model-customization-uuid",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.onap-model-information.model-customization-uuid' \n value='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`' />\n",
+ "comments": "",
+ "x": 957.3332252502441,
+ "y": 1079.0863952636719,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "b26b3f10.8cd93",
+ "type": "switchNode",
+ "name": "switch service-data.pnfs.pnf_length",
+ "xml": "<switch test='`$service-data.pnfs.pnf_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 441.58329010009766,
+ "y": 292.4285001754761,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "548784a8.6fc1bc",
+ "97bdaa3b.0e9cb8",
+ "f611eac6.477cc8"
+ ]
+ ]
+ },
+ {
+ "id": "548784a8.6fc1bc",
+ "type": "other",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 683.7976760864258,
+ "y": 230.98793125152588,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "d33ee57f.a3ecb8"
+ ]
+ ]
+ },
+ {
+ "id": "1c98dcd.f3b3f23",
+ "type": "set",
+ "name": "set pnf-index=0",
+ "xml": "<set>\n<parameter name='pnf-index' value='0' />\n",
+ "comments": "",
+ "x": 1019.083381652832,
+ "y": 230.48800563812256,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "97bdaa3b.0e9cb8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 684.976203918457,
+ "y": 352.607120513916,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "231e0e98.80a622"
+ ]
+ ]
+ },
+ {
+ "id": "6ac25c2c.af1c14",
+ "type": "switchNode",
+ "name": "switch resource-resolution-data.status",
+ "xml": "<switch test='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$pidx].resource-resolution-data.status`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 843.3693580627441,
+ "y": 2105.3293199539185,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "3502dbdf.32a874",
+ "cc3acc09.1c768"
+ ]
+ ]
+ },
+ {
+ "id": "3502dbdf.32a874",
+ "type": "other",
+ "name": "PENDING",
+ "xml": "<outcome value='PENDING'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1112.7265739440918,
+ "y": 2105.3292760849,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "829e3fb9.d93a7"
+ ]
+ ]
+ },
+ {
+ "id": "cc3acc09.1c768",
+ "type": "other",
+ "name": "FAILED",
+ "xml": "<outcome value='FAILED'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1106.2623901367188,
+ "y": 2156.2936067581177,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "829e3fb9.d93a7"
+ ]
+ ]
+ },
+ {
+ "id": "829e3fb9.d93a7",
+ "type": "call",
+ "name": "call ss.capability-dg",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='`$ss.capability-dg`' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1321.3811225891113,
+ "y": 2157.0554580688477,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "3962ddfe.4c5df2",
+ "3e772b22.e1c734"
+ ]
+ ]
+ },
+ {
+ "id": "bdafebf6.f2fbb8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Encountered error from capability: '+ $ss.capability-dg + ', with error: '+ $error-message`\" />\n",
+ "comments": "",
+ "x": 1888.9286193847656,
+ "y": 2413.532018661499,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "3962ddfe.4c5df2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.2736320495605,
+ "y": 2157.055519104004,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "c929724.d0d769"
+ ]
+ ]
+ },
+ {
+ "id": "c929724.d0d769",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1669.5477485656738,
+ "y": 2156.3650598526,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "bdafebf6.f2fbb8",
+ "b6818d14.aad68",
+ "ae39be90.d76b7",
+ "60ef7bf2.fa7a14",
+ "e7c0edc.af4641"
+ ]
+ ]
+ },
+ {
+ "id": "ae39be90.d76b7",
+ "type": "execute",
+ "name": "generate ss-pnf url replace service-instance-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$prop.restapi.ss-pnf-assignments`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ss-pnf-url\"/>\n <parameter name=\"target\" value=\"{service-instance-id}\"/>\n <parameter name=\"replacement\" value=\"`$service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.service-instance-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1992.8808403015137,
+ "y": 2209.88161945343,
+ "z": "37882b3b.b21224",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7c0edc.af4641",
+ "type": "execute",
+ "name": "execute RestApiCallNode - PUT pnf",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.ss.pnf.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.ss-pnf-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-ss-pnf\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1962.3451347351074,
+ "y": 2312.7388410568237,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "2aae309b.44db4",
+ "6c63be99.6e9df"
+ ]
+ ]
+ },
+ {
+ "id": "2aae309b.44db4",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2236.9388008117676,
+ "y": 2366.736994743347,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "47b71a3e.97bf84"
+ ]
+ ]
+ },
+ {
+ "id": "6c63be99.6e9df",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2229.3674354553223,
+ "y": 2313.237014770508,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "47b71a3e.97bf84"
+ ]
+ ]
+ },
+ {
+ "id": "b6818d14.aad68",
+ "type": "set",
+ "name": "set pf data for restapi-call-node",
+ "xml": "<set>\n<parameter name='pf.pnf-id'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-id`' />\n<parameter name='pf.pnf-data.sdnc-request-header.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.sdnc-request-header.`' />\n<parameter name='pf.pnf-data.request-information.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.request-information.`' />\n<parameter name='pf.pnf-data.service-information.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.service-information.`' />\n<parameter name='pf.pnf-data.pnf-details.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.`' />\n<parameter name='pf.pnf-data.pnf-topology.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.`' />\n<parameter name='pf.pnf-data.pnf-level-oper-status.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-level-oper-status.`' />\n<parameter name='pf.pnf-data.pnf-request-input.pnf-input-parameters.'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.pnf-input-parameters.`' />\n<parameter name='pf.pnf-data.pnf-request-input.request-version'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.request-version`' />\n<parameter name='pf.pnf-data.pnf-request-input.pnf-name'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.pnf-name`' />\n<parameter name='pf.pnf-data.pnf-request-input.tenant'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.tenant`' />\n<parameter name='pf.pnf-data.pnf-request-input.aic-cloud-region'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.aic-cloud-region`' />\n<parameter name='pf.pnf-data.pnf-request-input.aic-clli'\n value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-request-input.aic-clli`' />",
+ "comments": "",
+ "x": 1945.3331413269043,
+ "y": 2155.976131439209,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "60ef7bf2.fa7a14",
+ "type": "execute",
+ "name": "generate ss-pnf url - replace pnf-id",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n <parameter name=\"source\" value=\"`$tmp.ss-pnf-url`\"/>\n <parameter name=\"outputPath\" value=\"tmp.ss-pnf-url\"/>\n <parameter name=\"target\" value=\"{pnf-id}\"/>\n <parameter name=\"replacement\" value=\"`$service-data.pnfs.pnf[$pnf-index].pnf-id`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1957.16654586792,
+ "y": 2260.69038772583,
+ "z": "37882b3b.b21224",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "97cbe59f.102fe8",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-pnf-assign.log' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 344.42456817626953,
+ "y": 2600.920820236206,
+ "z": "37882b3b.b21224",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b9417a96.c89598",
+ "type": "set",
+ "name": "set ss.capability-type = pnf",
+ "xml": "<set>\n<parameter name='ss.capability-type' value='pnf' />\n",
+ "comments": "",
+ "x": 409.89292907714844,
+ "y": 1375.5357942581177,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "ed282b71.ede0f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 875.8927993774414,
+ "y": 1492.892912864685,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "ca44a755.ad1c68",
+ "21ad94d1.be148c",
+ "31272402.ad905c"
+ ]
+ ]
+ },
+ {
+ "id": "b109eefc.1d872",
+ "type": "for",
+ "name": "for each existing PNF",
+ "xml": "<for index='idx' start='0' end='`$service-data.pnfs.pnf_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1032.0357284545898,
+ "y": 352.78579807281494,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "b986a80e.96c248"
+ ]
+ ]
+ },
+ {
+ "id": "b986a80e.96c248",
+ "type": "switchNode",
+ "name": "switch pnf-id: input vs service-data",
+ "xml": "<switch test='`$pf-topology-operation-input.pnf-details.pnf-id == $service-data.pnfs.pnf[$idx].pnf-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1309.321434020996,
+ "y": 352.85728549957275,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "cb09cf77.62df4"
+ ]
+ ]
+ },
+ {
+ "id": "cb09cf77.62df4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1532.1072006225586,
+ "y": 352.4287576675415,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "747e7c3c.174b44"
+ ]
+ ]
+ },
+ {
+ "id": "747e7c3c.174b44",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1664.5714530944824,
+ "y": 352.46431827545166,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "2a95ccf.7794434",
+ "8c6ecdd5.9e28b",
+ "4b25e8bd.e53158"
+ ]
+ ]
+ },
+ {
+ "id": "2a95ccf.7794434",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 1832.464241027832,
+ "y": 438.4642963409424,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "923b1ffd.af18b",
+ "type": "set",
+ "name": "set new pnf_length = 1",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf_length' value='1' />\n",
+ "comments": "",
+ "x": 1042.642951965332,
+ "y": 275.82148838043213,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "8c6ecdd5.9e28b",
+ "type": "set",
+ "name": "set pnf-index = idx",
+ "xml": "<set>\n<parameter name='pnf-index' value='`$idx`' />\n",
+ "comments": "",
+ "x": 1863.0357971191406,
+ "y": 395.2499752044678,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "71acdeef.4b572",
+ "type": "set",
+ "name": "set is-new-pnf = true",
+ "xml": "<set>\n<parameter name='is-new-pnf' value='true' />\n",
+ "comments": "",
+ "x": 395.8929214477539,
+ "y": 212.32144355773926,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "4b25e8bd.e53158",
+ "type": "set",
+ "name": "set is-new-pnf = false",
+ "xml": "<set>\n<parameter name='is-new-pnf' value='false' />\n",
+ "comments": "",
+ "x": 1871.0714836120605,
+ "y": 351.9643201828003,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "231e0e98.80a622",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 822.2500228881836,
+ "y": 352.2500162124634,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "b109eefc.1d872",
+ "12659093.1463bf"
+ ]
+ ]
+ },
+ {
+ "id": "12659093.1463bf",
+ "type": "switchNode",
+ "name": "switch is-new-pnf",
+ "xml": "<switch test='`$is-new-pnf`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1019.7500152587891,
+ "y": 438.8214178085327,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "273b5e8f.735eb2"
+ ]
+ ]
+ },
+ {
+ "id": "273b5e8f.735eb2",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1199.6071701049805,
+ "y": 438.39286518096924,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "35d2b6f5.5b532a"
+ ]
+ ]
+ },
+ {
+ "id": "d33ee57f.a3ecb8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 837.7499923706055,
+ "y": 230.99999713897705,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "1c98dcd.f3b3f23",
+ "923b1ffd.af18b"
+ ]
+ ]
+ },
+ {
+ "id": "f611eac6.477cc8",
+ "type": "other",
+ "name": "0",
+ "xml": "<outcome value='0'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 682.2499923706055,
+ "y": 290.7499990463257,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "d33ee57f.a3ecb8"
+ ]
+ ]
+ },
+ {
+ "id": "2c0f97dd.67d808",
+ "type": "switchNode",
+ "name": "switch is-new-pnf",
+ "xml": "<switch test='`$is-new-pnf`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 383.75000381469727,
+ "y": 606.2500057220459,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "a0d4e067.649e6"
+ ]
+ ]
+ },
+ {
+ "id": "a0d4e067.649e6",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 563.6071586608887,
+ "y": 605.8214530944824,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "9217be7a.bbdb1"
+ ]
+ ]
+ },
+ {
+ "id": "42f65de7.c91174",
+ "type": "set",
+ "name": "set new pnf_length++",
+ "xml": "<set>\n<parameter name='service-data.pnfs.pnf_length' value='`$service-data.pnfs.pnf_length + 1`' />\n",
+ "comments": "",
+ "x": 1547.5,
+ "y": 485,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "35d2b6f5.5b532a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1345.4999771118164,
+ "y": 437.99996185302734,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "42f65de7.c91174",
+ "5e6b2c5e.23b7b4"
+ ]
+ ]
+ },
+ {
+ "id": "5e6b2c5e.23b7b4",
+ "type": "set",
+ "name": "set pnf-index = pnf_length",
+ "xml": "<set>\n<parameter name='pnf-index' value='`$service-data.pnfs.pnf_length`' />\n",
+ "comments": "",
+ "x": 1556.9999809265137,
+ "y": 437.49996185302734,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "47b71a3e.97bf84",
+ "type": "set",
+ "name": "set error-message",
+ "xml": "<set>\n<parameter name=\"error-message\" value=\"Failed to persist self-serve pnf assignments during assign in MD-SAL\" />",
+ "comments": "",
+ "x": 2449.285758972168,
+ "y": 2312.107021331787,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "1d5ac87a.53fd58",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 577.5000228881836,
+ "y": 2105.142770767212,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "6ac25c2c.af1c14",
+ "cb3f6813.5ca268"
+ ]
+ ]
+ },
+ {
+ "id": "cb3f6813.5ca268",
+ "type": "break",
+ "name": "break",
+ "xml": "<break>\n",
+ "comments": "",
+ "x": 741.7857627868652,
+ "y": 2481.4284267425537,
+ "z": "37882b3b.b21224",
+ "wires": []
+ },
+ {
+ "id": "3e772b22.e1c734",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1517.5000228881836,
+ "y": 2277.5000324249268,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "7440700b.da7e"
+ ]
+ ]
+ },
+ {
+ "id": "7440700b.da7e",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"`'EXECUTION DONE: ' + $ss.capability-dg`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1661.2500228881836,
+ "y": 2276.2500324249268,
+ "z": "37882b3b.b21224",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "31272402.ad905c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE with pnf-ra-assigment\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1054.1071319580078,
+ "y": 1592.5000228881836,
+ "z": "37882b3b.b21224",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "45a102ef.9c38fc",
+ "type": "execute",
+ "name": "execute PropertiesNode",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 817.5000381469727,
+ "y": 1432.4286422729492,
+ "z": "37882b3b.b21224",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "192a8a0a.311bd6",
+ "type": "switchNode",
+ "name": "switch prop.controller.user",
+ "xml": "<switch test='`$prop.controller.user`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 406.21427372523704,
+ "y": 1432.8572630201065,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "98f24d4.445dfb"
+ ]
+ ]
+ },
+ {
+ "id": "98f24d4.445dfb",
+ "type": "failure",
+ "name": "NULL",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 606.0713691711426,
+ "y": 1432.428677558899,
+ "z": "37882b3b.b21224",
+ "wires": [
+ [
+ "45a102ef.9c38fc"
+ ]
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-ra-assignment.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-ra-assignment.json
new file mode 100644
index 00000000..616ca732
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-pnf-ra-assignment.json
@@ -0,0 +1,1074 @@
+[
+ {
+ "id": "81013586.72b878",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 152.5,
+ "y": 73.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "16d29a69.fd75d6"
+ ]
+ ]
+ },
+ {
+ "id": "16d29a69.fd75d6",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 428.5,
+ "y": 74.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "fb8a3acf.eacc88"
+ ]
+ ]
+ },
+ {
+ "id": "fb8a3acf.eacc88",
+ "type": "method",
+ "name": "self-serve-pnf-ra-assignment",
+ "xml": "<method rpc='self-serve-pnf-ra-assignment' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 745.5,
+ "y": 74.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "11ad89b0.4aa4c6"
+ ]
+ ]
+ },
+ {
+ "id": "11ad89b0.4aa4c6",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 241.66664123535156,
+ "y": 155.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "6a8abb82.762c24",
+ "d5ddf680.bc1228",
+ "d7d846c4.3b1898",
+ "62bc77a8.9608f8",
+ "ef795e5f.2b62e",
+ "cd9ccb1d.ad27d8",
+ "e4653dfe.029a3",
+ "ed802b4f.e3de88",
+ "4ae0bbb3.7d20c4",
+ "3049bbb0.b6b734",
+ "9eebb178.0f2de",
+ "507cc1d.a43bf4",
+ "22187a30.f13be6",
+ "c7fb6ab.3a33598",
+ "7905fcc3.ff7874"
+ ]
+ ]
+ },
+ {
+ "id": "d5ddf680.bc1228",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n <parameter name=\"request-id\" value=\"`$tmp.return.generate.pnf-se-serv-uuid`\"/>\n <parameter name=\"resource-type\" value=\"`$pnf-topology-operation-input.pnf-details.pnf-type`\" /> \n <parameter name=\"resource-id\" value=\"`$pnf-topology-operation-input.pnf-details.pnf-id`\" /> \n <parameter name=\"action-name\" value=\"resource-assignment\"/> \n <parameter name=\"responsePrefix\" value=\"raAssign\" />\n",
+ "comments": "",
+ "x": 427.4166603088379,
+ "y": 199.83333015441895,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "1893855c.d16e5b",
+ "type": "get-resource",
+ "name": "get-resource VF_MODEL",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\n key='SELECT * from VF_MODEL WHERE customization_uuid = $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid'\n pfx='db1.vf-model'>\n \n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 966.3094635009766,
+ "y": 591.3689861297607,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "a87dd4cc.178e18",
+ "ba66fea4.81fad",
+ "c6434f37.1962d"
+ ]
+ ]
+ },
+ {
+ "id": "a87dd4cc.178e18",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1211.3095626831055,
+ "y": 540.654709815979,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "ab46b2b3.a771c"
+ ]
+ ]
+ },
+ {
+ "id": "ab46b2b3.a771c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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 reading VF_MODEL table\" />\n",
+ "comments": "",
+ "x": 1384.3095626831055,
+ "y": 539.654709815979,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "879b8f8b.c19ed",
+ "type": "set",
+ "name": "set tmp.sdnc-model-name, tmp.sdnc-model-version, tmp.sdnc-artifact-name",
+ "xml": "<set>\n<parameter name='tmp.sdnc-model-name' value='`$db1.vf-model.sdnc-model-name`' />\n<parameter name='tmp.sdnc-model-version' value='`$db1.vf-model.sdnc-model-version`' />\n<parameter name='tmp.sdnc-artifact-name' value='`$db1.vf-model.sdnc-artifact-name`' />\n\n\n\n\n",
+ "comments": "",
+ "x": 1586.7380638122559,
+ "y": 640.797513961792,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "c7b5dfc8.8b235",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"`'No VF_MODEL found where customization_uuid = ' + $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`\" />\n",
+ "comments": "",
+ "x": 1386.3095626831055,
+ "y": 588.654709815979,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "ef795e5f.2b62e",
+ "type": "switchNode",
+ "name": "switch: model info == NULL",
+ "xml": "<switch test=\"`$tmp.sdnc-model-name == '' or $tmp.sdnc-model-version == '' or $tmp.sdnc-artifact-name == ''`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 487.30946350097656,
+ "y": 592.3689861297607,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "e98bb0b9.b2422"
+ ]
+ ]
+ },
+ {
+ "id": "ba66fea4.81fad",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1217.3095626831055,
+ "y": 589.654709815979,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "c7b5dfc8.8b235"
+ ]
+ ]
+ },
+ {
+ "id": "e98bb0b9.b2422",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value='true'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 736.3094635009766,
+ "y": 592.3689861297607,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "1893855c.d16e5b"
+ ]
+ ]
+ },
+ {
+ "id": "62bc77a8.9608f8",
+ "type": "for",
+ "name": "for pnf-topology-operation-input",
+ "xml": "<for silentFailure='true' index='i' start='0' end='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 503.16664123535156,
+ "y": 392.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "72f58635.66b448"
+ ]
+ ]
+ },
+ {
+ "id": "72f58635.66b448",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 725.1666412353516,
+ "y": 391.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "86d3f258.93e3b"
+ ]
+ ]
+ },
+ {
+ "id": "d041de83.d9577",
+ "type": "set",
+ "name": "set tmp.sdnc-model-name",
+ "xml": "<set>\n<parameter name='tmp.sdnc-model-name' value='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value`' />\n",
+ "comments": "",
+ "x": 1376.1666412353516,
+ "y": 324.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "2a96bf97.393f3",
+ "type": "outcome",
+ "name": "sdnc_model_name",
+ "xml": "<outcome value='sdnc_model_name'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1122.1666412353516,
+ "y": 324.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "d041de83.d9577"
+ ]
+ ]
+ },
+ {
+ "id": "86d3f258.93e3b",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].name`'>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 884.1666412353516,
+ "y": 391.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "2a96bf97.393f3",
+ "ff1ab59.1eb4148",
+ "733b67e2.c4f3c8",
+ "e6ecce71.c3cfb"
+ ]
+ ]
+ },
+ {
+ "id": "ff1ab59.1eb4148",
+ "type": "outcome",
+ "name": "sdnc_model_version",
+ "xml": "<outcome value='sdnc_model_version'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1125.1666412353516,
+ "y": 370.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "9cc66f84.f4ee2"
+ ]
+ ]
+ },
+ {
+ "id": "733b67e2.c4f3c8",
+ "type": "outcome",
+ "name": "sdnc_artifact_name",
+ "xml": "<outcome value='sdnc_artifact_name'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1124.1666412353516,
+ "y": 419.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "f2663e84.97046"
+ ]
+ ]
+ },
+ {
+ "id": "9cc66f84.f4ee2",
+ "type": "set",
+ "name": "set tmp.sdnc-model-version",
+ "xml": "<set>\n<parameter name='tmp.sdnc-model-version' value='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value`' />\n\n",
+ "comments": "",
+ "x": 1380.1666412353516,
+ "y": 370.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "f2663e84.97046",
+ "type": "set",
+ "name": "set tmp.sdnc-artifact-name",
+ "xml": "<set>\n<parameter name='tmp.sdnc-artifact-name' value='`$pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value`' />\n\n",
+ "comments": "",
+ "x": 1376.1666412353516,
+ "y": 419.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "ab5de2cd.b8552",
+ "type": "set",
+ "name": "set name-value other JsonString",
+ "xml": "<set>\n<parameter name=\"tmp.config-name-value-other-payload\" value=\"`$tmp.config-name-value-other-payload + '&quot;' + $pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].name + '&quot;:&quot;' + $pnf-topology-operation-input.pnf-request-input.pnf-input-parameters.param[$i].value + '&quot;,'`\"/>\n\n",
+ "comments": "",
+ "x": 1293.416648864746,
+ "y": 470.58335041999817,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "e6ecce71.c3cfb",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1084.166648864746,
+ "y": 468.6547546386719,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "ab5de2cd.b8552"
+ ]
+ ]
+ },
+ {
+ "id": "cd9ccb1d.ad27d8",
+ "type": "set",
+ "name": "set configAssignment JsonString",
+ "xml": "<set>\n<parameter name=\"tmp.config-name-value-payload4\" value=\"`$tmp.config-name-value-other-payload + '&quot;service-instance-id&quot;:&quot;' + $pnf-topology-operation-input.service-information.service-instance-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload5\" value=\"`$tmp.config-name-value-payload4 + '&quot;pnf-model-customization-uuid&quot;:&quot;' + $pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload6\" value=\"`$tmp.config-name-value-payload5 + '&quot;pnf-id&quot;:&quot;' + $pnf-topology-operation-input.pnf-details.pnf-id + '&quot;,'`\"/>\n<parameter name=\"tmp.config-name-value-payload7\" value=\"`$tmp.config-name-value-payload6 + '&quot;aic-cloud-region&quot;:&quot;' + $pnf-topology-operation-input.pnf-request-input.aic-cloud-region + '&quot;'`\"/>\n<parameter name=\"tmp.json-payload\" value=\"`'{' + $tmp.config-name-value-payload7 + '}'`\" />",
+ "comments": "",
+ "x": 497.16664123535156,
+ "y": 711.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "e4653dfe.029a3",
+ "type": "execute",
+ "name": "execute BlueprintProcessingClient",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.grpc.cds.BlueprintProcessingClient' method='sendRequest'>\n <parameter name='blueprint_name' value='`$tmp.sdnc-model-name`' />\n <parameter name='blueprint_version' value='`$tmp.sdnc-model-version`' />\n <parameter name='action' value='`$action-name`' />\n <parameter name='mode' value='sync' />\n <parameter name='force' value='false' />\n <parameter name='ttl' value='0' />\n <parameter name='prefix' value='`$responsePrefix`' />\n <parameter name='payload' value=\"`'{\n &quot;resource-assignment-request&quot;: {\n &quot;template-prefix&quot;: [\n &quot;' + $tmp.sdnc-artifact-name + '&quot;\n ],\n &quot;resource-assignment-properties&quot;: \n ' + $tmp.json-payload + '\n }\n}'`\"/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 504.83331298828125,
+ "y": 865.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "e9f0b05a.ea9a7",
+ "9906e0de.d8aa9"
+ ]
+ ]
+ },
+ {
+ "id": "e9f0b05a.ea9a7",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 744.8333129882812,
+ "y": 839.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "f76d9cc.08daa6"
+ ]
+ ]
+ },
+ {
+ "id": "f76d9cc.08daa6",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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 from BlueprintProcessingClient\" />\n",
+ "comments": "",
+ "x": 926.8333129882812,
+ "y": 860.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "4ae0bbb3.7d20c4",
+ "type": "for",
+ "name": "for resource-accumulator-resolved-data loop",
+ "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.resource-accumulator-resolved-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 529.1666412353516,
+ "y": 1083.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "f7dcae4c.80d6"
+ ]
+ ]
+ },
+ {
+ "id": "a560f52e.73b478",
+ "type": "set",
+ "name": "set from resource-accumulator-resolved-data",
+ "xml": "<set>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'/>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='RA Resolved'/>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='SUCCESS'/>\n",
+ "comments": "",
+ "x": 1759.1666412353516,
+ "y": 1135.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "3049bbb0.b6b734",
+ "type": "for",
+ "name": "for capability-data",
+ "xml": "<for silentFailure='true' index='i' start='0' end='`$jsonContextPrefix.capability-data_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 454.16664123535156,
+ "y": 1425.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "c321b6db.f91618"
+ ]
+ ]
+ },
+ {
+ "id": "c321b6db.f91618",
+ "type": "for",
+ "name": "for key-mapping",
+ "xml": "<for silentFailure='true' index='j' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 663.1666412353516,
+ "y": 1425.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "4bdfbe92.58a07"
+ ]
+ ]
+ },
+ {
+ "id": "ed802b4f.e3de88",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"`'raAssign.payload.resource-assignment-params.' + $tmp.sdnc-artifact-name`\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"false\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 473.16664123535156,
+ "y": 1004.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6a8abb82.762c24",
+ "type": "execute",
+ "name": "execute generateUUID",
+ "xml": " <execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" > \n <parameter name=\"ctx-destination\" value=\"tmp.return.generate.pnf-se-serv-uuid\" /> \n ",
+ "comments": "",
+ "outputs": 1,
+ "x": 479.16664123535156,
+ "y": 155.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "da110978.037e18"
+ ]
+ ]
+ },
+ {
+ "id": "da110978.037e18",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 657.1666412353516,
+ "y": 153.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "25f8a570.76c1ea"
+ ]
+ ]
+ },
+ {
+ "id": "25f8a570.76c1ea",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"generateUUID is failed\" />\n",
+ "comments": "",
+ "x": 804.1666412353516,
+ "y": 154.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "b8f9dea4.7ec9d",
+ "type": "for",
+ "name": "for pnf-parameters-data.param[]",
+ "xml": "<for silentFailure='true' index='cnt' start='0' end='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1502.1666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "9d5dafdb.8e745"
+ ]
+ ]
+ },
+ {
+ "id": "f7dcae4c.80d6",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 808.1666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "4b875a14.db0584",
+ "a6645a90.aff8b8",
+ "ac27262.137afd8"
+ ]
+ ]
+ },
+ {
+ "id": "d7d846c4.3b1898",
+ "type": "switchNode",
+ "name": "switch pnf-parameters-data.param_length",
+ "xml": "<switch test='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 531.1666412353516,
+ "y": 253.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "270f1448.0f808c",
+ "df2ab314.6f53a"
+ ]
+ ]
+ },
+ {
+ "id": "270f1448.0f808c",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 769.1666412353516,
+ "y": 221.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "bc1bcfe4.47473"
+ ]
+ ]
+ },
+ {
+ "id": "df2ab314.6f53a",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 768.1666412353516,
+ "y": 285.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "6ae0c2e2.e112ec"
+ ]
+ ]
+ },
+ {
+ "id": "bc1bcfe4.47473",
+ "type": "set",
+ "name": "set pre service param len as 0",
+ "xml": "<set>\n <parameter name='highnum' value='0' />\n <parameter name='prehighnum' value='0'/>\n",
+ "comments": "",
+ "x": 982.1666412353516,
+ "y": 221.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "6ae0c2e2.e112ec",
+ "type": "set",
+ "name": "set pre service param len",
+ "xml": "<set>\n <parameter name='highnum' value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' />\n <parameter name='prehighnum' value='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' />",
+ "comments": "",
+ "x": 967.1666412353516,
+ "y": 285.0833339691162,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "9d5dafdb.8e745",
+ "type": "switchNode",
+ "name": "switch param[].name - input vs. jsonContextPrefix",
+ "xml": "<switch test='`$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$cnt].name == $jsonContextPrefix.resource-accumulator-resolved-data[$i].param-name`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1881.1666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "d54adb3d.c51348"
+ ]
+ ]
+ },
+ {
+ "id": "d54adb3d.c51348",
+ "type": "not-found",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2165.1666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "bf4269c.812a398"
+ ]
+ ]
+ },
+ {
+ "id": "bf4269c.812a398",
+ "type": "set",
+ "name": "set for existing param name",
+ "xml": "<set>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$cnt].value`' value='`$jsonContextPrefix.resource-accumulator-resolved-data[$i].param-value`'/>\n<parameter name='tmp.mso.param.found' value='true' />\n",
+ "comments": "",
+ "x": 2375.1666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "ac27262.137afd8",
+ "type": "switchNode",
+ "name": "switch tmp.mso.param.found",
+ "xml": "<switch test='`$tmp.mso.param.found`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1050.1666412353516,
+ "y": 1136.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "80869ef9.b42b6"
+ ]
+ ]
+ },
+ {
+ "id": "80869ef9.b42b6",
+ "type": "not-found",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1284.1666412353516,
+ "y": 1135.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "aa6d15b3.b54808"
+ ]
+ ]
+ },
+ {
+ "id": "4b875a14.db0584",
+ "type": "set",
+ "name": "set for existing param name",
+ "xml": "<set>\n<parameter name='tmp.mso.param.found' value='false' />\n",
+ "comments": "",
+ "x": 1031.6666412353516,
+ "y": 1022.5833282470703,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "a6645a90.aff8b8",
+ "type": "switchNode",
+ "name": "switch check length > 0",
+ "xml": "<switch test='`$prehighnum &gt; 0`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026.6666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "3e9847d7.a9a428"
+ ]
+ ]
+ },
+ {
+ "id": "3e9847d7.a9a428",
+ "type": "not-found",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1273.6666412353516,
+ "y": 1084.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "b8f9dea4.7ec9d"
+ ]
+ ]
+ },
+ {
+ "id": "b72432c2.1cb81",
+ "type": "for",
+ "name": "for payload",
+ "xml": "<for silentFailure='true' index='k' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 1845.1666412353516,
+ "y": 1443.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "8a6d87a5.167378"
+ ]
+ ]
+ },
+ {
+ "id": "993132bf.1fc03",
+ "type": "set",
+ "name": "set resource-key",
+ "xml": "<set>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-name`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.resource-key[$num].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload[$k].param-value`'/>\n\n",
+ "comments": "",
+ "x": 2194.1666412353516,
+ "y": 1379.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "92dd255a.846018",
+ "type": "set",
+ "name": "set output-data ",
+ "xml": "<set>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].name`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-name`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].value`' value='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping[$l].resource-value`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.capability-name`' value='`$jsonContextPrefix.capability-data[$i].capability-name`'/>\n<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.status`' value='PENDING'/>\n<parameter name='num' value='0' />",
+ "comments": "",
+ "x": 1418.1666412353516,
+ "y": 1323.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "4bdfbe92.58a07",
+ "type": "for",
+ "name": "for output-key-mapping",
+ "xml": "<for silentFailure='true' index='l' start='0' end='`$jsonContextPrefix.capability-data[$i].key-mapping[$j].output-key-mapping_length`' >",
+ "comments": "",
+ "outputs": 1,
+ "x": 886.1666412353516,
+ "y": 1425.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "c7cc9512.4faa18"
+ ]
+ ]
+ },
+ {
+ "id": "c7cc9512.4faa18",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1137.1666412353516,
+ "y": 1425.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "92dd255a.846018",
+ "17ff9631.56b25a",
+ "72c5b1f7.aa391",
+ "69144068.7c5f8"
+ ]
+ ]
+ },
+ {
+ "id": "17ff9631.56b25a",
+ "type": "set",
+ "name": "set length",
+ "xml": "<set>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param_length`' value='`$highnum + 1`'/>\n",
+ "comments": "",
+ "x": 1406.1666412353516,
+ "y": 1461.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "9906e0de.d8aa9",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 749.8333129882812,
+ "y": 901.75,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "f76d9cc.08daa6"
+ ]
+ ]
+ },
+ {
+ "id": "72c5b1f7.aa391",
+ "type": "switchNode",
+ "name": "switch payload_length",
+ "xml": "<switch test=\"`$jsonContextPrefix.capability-data[$i].key-mapping[$j].payload_length == ''`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1442.1666412353516,
+ "y": 1394.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "4ffaaf1f.506fd",
+ "797447ba.d290d8"
+ ]
+ ]
+ },
+ {
+ "id": "4ffaaf1f.506fd",
+ "type": "outcome",
+ "name": "true",
+ "xml": "<outcome value='true'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1663.1666412353516,
+ "y": 1325.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "797447ba.d290d8",
+ "type": "other",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1670.1666412353516,
+ "y": 1443.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "b72432c2.1cb81"
+ ]
+ ]
+ },
+ {
+ "id": "c6434f37.1962d",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1213.4523658752441,
+ "y": 640.6546821594238,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "879b8f8b.c19ed"
+ ]
+ ]
+ },
+ {
+ "id": "831efa97.1c0588",
+ "type": "set",
+ "name": "set length",
+ "xml": "<set>\n\t<parameter name='`service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-topology.pnf-parameters-data.param[$highnum].resource-resolution-data.resource-key_length`' value='`$num + 1`'/>\n",
+ "comments": "",
+ "x": 2183.1666412353516,
+ "y": 1443.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "da21f5c1.b6dc88",
+ "type": "set",
+ "name": "increment length",
+ "xml": "<set>\n\t<parameter name='num' value='`$num + 1`' />\n",
+ "comments": "",
+ "x": 2201.1666412353516,
+ "y": 1517.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "69144068.7c5f8",
+ "type": "set",
+ "name": "increment length",
+ "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n\n",
+ "comments": "",
+ "x": 1427.1666412353516,
+ "y": 1528.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "aa6d15b3.b54808",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1461.1666412353516,
+ "y": 1134.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "a560f52e.73b478",
+ "2dccbddc.c39b12"
+ ]
+ ]
+ },
+ {
+ "id": "2dccbddc.c39b12",
+ "type": "set",
+ "name": "increment length",
+ "xml": "<set>\n\t<parameter name='highnum' value='`$highnum + 1`' />\n",
+ "comments": "",
+ "x": 1676.1666412353516,
+ "y": 1194.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "8a6d87a5.167378",
+ "type": "block",
+ "name": "block atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2001.1666412353516,
+ "y": 1444.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ [
+ "993132bf.1fc03",
+ "831efa97.1c0588",
+ "da21f5c1.b6dc88"
+ ]
+ ]
+ },
+ {
+ "id": "9eebb178.0f2de",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"BEFORE BlueprintProcessingClient\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 427.4999809265137,
+ "y": 787.083324432373,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "507cc1d.a43bf4",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"AFTER BlueprintProcessingClient\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 424.1666488647461,
+ "y": 942.0833320617676,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c7fb6ab.3a33598",
+ "type": "execute",
+ "name": "printContext",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='`$pathname`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 432.50000762939453,
+ "y": 1746.2500267028809,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "22187a30.f13be6",
+ "type": "set",
+ "name": "set pathname",
+ "xml": "<set>\n<parameter name='pathname' \n\tvalue=\"`'/var/tmp/ss-pnf-ra-assignment-' + \n\t$service-data.pnfs.pnf[$pnf-index].pnf-data.pnf-details.pnf-id + '.log'`\" />\n",
+ "comments": "",
+ "x": 438.75000762939453,
+ "y": 1693.7500247955322,
+ "z": "2b4129e2.7e3f56",
+ "wires": []
+ },
+ {
+ "id": "7905fcc3.ff7874",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"DONE: pnf-ra-assignment\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 416.25000381469727,
+ "y": 1647.5000247955322,
+ "z": "2b4129e2.7e3f56",
+ "wires": [
+ []
+ ]
+ }
+] \ No newline at end of file
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-pnf-input.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-pnf-input.json
new file mode 100644
index 00000000..13054675
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_validate-pnf-input.json
@@ -0,0 +1,573 @@
+[
+ {
+ "id": "94367b34.4993c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 244.44442749023438,
+ "y": 363.3055624961853,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "e96f0aba.6a2158",
+ "145655c7.5c421a",
+ "740fde80.5f9e8",
+ "a75da30.d5ab06",
+ "6154264e.c73678",
+ "4710ed3d.659744"
+ ]
+ ]
+ },
+ {
+ "id": "e96f0aba.6a2158",
+ "type": "switchNode",
+ "name": "switch svc-request-id",
+ "xml": "<switch test='`$pnf-topology-operation-input.sdnc-request-header.svc-request-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 502.20633697509766,
+ "y": 321.13589811325073,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "b12a28ac.b7b9b8"
+ ]
+ ]
+ },
+ {
+ "id": "b12a28ac.b7b9b8",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 727.9206314086914,
+ "y": 321.135901927948,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "8cc94a69.eb44f8"
+ ]
+ ]
+ },
+ {
+ "id": "8cc94a69.eb44f8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"sdnc-request-header.svc-request-id is a required input\" />\n",
+ "comments": "",
+ "x": 879.3491973876953,
+ "y": 321.13590002059937,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "145655c7.5c421a",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$pnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 490.7777001517161,
+ "y": 279.7073296819415,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "35e01edd.5783a2"
+ ]
+ ]
+ },
+ {
+ "id": "35e01edd.5783a2",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 726.4920518057688,
+ "y": 278.27872746331354,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "6beabba6.32f4f4"
+ ]
+ ]
+ },
+ {
+ "id": "6beabba6.32f4f4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"sdnc-request-header.svc-action is a required input\" />\n",
+ "comments": "",
+ "x": 876.492025102888,
+ "y": 278.2787370000567,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "740fde80.5f9e8",
+ "type": "switchNode",
+ "name": "switch request-action",
+ "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 500.7777535574778,
+ "y": 363.9930447850909,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "ef526c4a.39c59"
+ ]
+ ]
+ },
+ {
+ "id": "ef526c4a.39c59",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 727.9206270490376,
+ "y": 363.99305568422596,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "c2c067b2.6d5ab8"
+ ]
+ ]
+ },
+ {
+ "id": "c2c067b2.6d5ab8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"request-information.request-action is a required input\" />\n",
+ "comments": "",
+ "x": 879.3491930280416,
+ "y": 363.99305377687733,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "79e4afb1.99cc8",
+ "type": "switchNode",
+ "name": "switch model-customization-id",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1119.242275238037,
+ "y": 511.4218182563782,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "e37ed67.814bf28"
+ ]
+ ]
+ },
+ {
+ "id": "e37ed67.814bf28",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1324.242275238037,
+ "y": 511.4218010902405,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "d757cb77.2c7958"
+ ]
+ ]
+ },
+ {
+ "id": "d757cb77.2c7958",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"pnf-details.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments": "",
+ "x": 1475.670841217041,
+ "y": 511.42179918289185,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "a14b5bac.e97828",
+ "type": "switchNode",
+ "name": "switch tenant",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.tenant`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1065.0993537902832,
+ "y": 552.8503289222717,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "9f4a40d4.27fdf"
+ ]
+ ]
+ },
+ {
+ "id": "9f4a40d4.27fdf",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1322.8136711120605,
+ "y": 552.8503632545471,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "21e1ea3d.d3d876"
+ ]
+ ]
+ },
+ {
+ "id": "21e1ea3d.d3d876",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"pnf-request-input.tenant is a required input\" />\n",
+ "comments": "",
+ "x": 1474.2422370910645,
+ "y": 552.8503613471985,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "c290417a.999bd",
+ "type": "comment",
+ "name": "Validation of required fields",
+ "info": "",
+ "comments": "",
+ "x": 650.7777099609375,
+ "y": 235.42161226272583,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "a75da30.d5ab06",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$pnf-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 484.7658462524414,
+ "y": 553.1003041267395,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "ade91738.c2dee8"
+ ]
+ ]
+ },
+ {
+ "id": "ade91738.c2dee8",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 661.8491668701172,
+ "y": 552.6836438179016,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "9de99c30.2439d"
+ ]
+ ]
+ },
+ {
+ "id": "9de99c30.2439d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 858.5157775878906,
+ "y": 552.6836438179016,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "79e4afb1.99cc8",
+ "a14b5bac.e97828",
+ "5a47ef2e.17f48"
+ ]
+ ]
+ },
+ {
+ "id": "621027e3.a05c68",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 163.19443729945579,
+ "y": 107.9692120552063,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "fd592892.32a8c8"
+ ]
+ ]
+ },
+ {
+ "id": "fd592892.32a8c8",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "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}'>",
+ "outputs": 1,
+ "x": 276.48014286586204,
+ "y": 148.20732355117798,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "80133c43.3b152"
+ ]
+ ]
+ },
+ {
+ "id": "80133c43.3b152",
+ "type": "method",
+ "name": "method validate-pnf-input",
+ "xml": "<method rpc='validate-pnf-input' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 211.87306431361594,
+ "y": 189.21920824050903,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "94367b34.4993c8"
+ ]
+ ]
+ },
+ {
+ "id": "f8dbb90e.a422b8",
+ "type": "comment",
+ "name": "validate-pnf-input",
+ "info": "",
+ "comments": "",
+ "x": 557.5392935616628,
+ "y": 55.55555582046509,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "6154264e.c73678",
+ "type": "switchNode",
+ "name": "switch service-instance-id",
+ "xml": "<switch test='`$pnf-topology-operation-input.service-information.service-instance-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 513.8015845162527,
+ "y": 408.05557107925415,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "2ce54a7d.5835b6"
+ ]
+ ]
+ },
+ {
+ "id": "2ce54a7d.5835b6",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 726.2301657540456,
+ "y": 408.0555672645569,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "53191b49.840e74"
+ ]
+ ]
+ },
+ {
+ "id": "53191b49.840e74",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"service-information.service-instance-id is a required input\" />\n",
+ "comments": "",
+ "x": 877.6587317330495,
+ "y": 408.05556535720825,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "4710ed3d.659744",
+ "type": "switchNode",
+ "name": "switch pnf-id",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.pnf-id`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 471.3015937805176,
+ "y": 451.555561542511,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "a413f663.792248"
+ ]
+ ]
+ },
+ {
+ "id": "a413f663.792248",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 726.5873031616211,
+ "y": 450.12699365615845,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "9bbe7c79.3b76c"
+ ]
+ ]
+ },
+ {
+ "id": "9bbe7c79.3b76c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"pnf-details.pnf-id is a required input\" />\n",
+ "comments": "",
+ "x": 878.015869140625,
+ "y": 450.1269917488098,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "5a47ef2e.17f48",
+ "type": "switchNode",
+ "name": "switch aic-cloud-region",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.aic-cloud-region`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1094.444435119629,
+ "y": 595.1269860267639,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "38bfd2ff.c329ae"
+ ]
+ ]
+ },
+ {
+ "id": "38bfd2ff.c329ae",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1321.1587524414062,
+ "y": 595.1270203590393,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "be8a7d3e.b1956"
+ ]
+ ]
+ },
+ {
+ "id": "be8a7d3e.b1956",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"pnf-request-input.aic-cloud-region is a required input\" />\n",
+ "comments": "",
+ "x": 1472.5873184204102,
+ "y": 595.1270184516907,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "cbe7b870.eb2778",
+ "type": "switchNode",
+ "name": "switch model-customization-id",
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-details.onap-model-information.model-customization-uuid`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1089.9205780029297,
+ "y": 710.317467212677,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "a468752f.474808"
+ ]
+ ]
+ },
+ {
+ "id": "a468752f.474808",
+ "type": "outcome",
+ "name": "NULL",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1294.9205780029297,
+ "y": 710.3174500465393,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "b9bc06be.f3a6e8"
+ ]
+ ]
+ },
+ {
+ "id": "b9bc06be.f3a6e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "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=\"pnf-details.onap-model-information.model-customization-uuid is a required input\" />\n",
+ "comments": "",
+ "x": 1446.3491439819336,
+ "y": 710.3174481391907,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ },
+ {
+ "id": "23854a15.854736",
+ "type": "outcome",
+ "name": "changeassign",
+ "xml": "<outcome value='changeassign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 679.8607978820801,
+ "y": 710.2460265159607,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "9784e04d.64388"
+ ]
+ ]
+ },
+ {
+ "id": "9784e04d.64388",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 859.8607864379883,
+ "y": 710.2459931373596,
+ "z": "8b598434.ddbeb8",
+ "wires": [
+ [
+ "cbe7b870.eb2778"
+ ]
+ ]
+ },
+ {
+ "id": "cc3011b2.e59d9",
+ "type": "comment",
+ "name": "model-customization-uuid validation moved to changeassign DG",
+ "info": "",
+ "comments": "",
+ "x": 739.4444274902344,
+ "y": 675.5555663108826,
+ "z": "8b598434.ddbeb8",
+ "wires": []
+ }
+] \ No newline at end of file