--- /dev/null
+[\r
+ {\r
+ "id": "d3b3a7ea.d04d08",\r
+ "type": "dgstart",\r
+ "name": "DGSTART",\r
+ "outputs": 1,\r
+ "x": 133.3333282470703,\r
+ "y": 79.63588523864746,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "46bb10f7.5c3fb"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "46bb10f7.5c3fb",\r
+ "type": "service-logic",\r
+ "name": "GENERIC-RESOURCE-API ${project.version}",\r
+ "module": "GENERIC-RESOURCE-API",\r
+ "version": "${project.version}",\r
+ "comments": "",\r
+ "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}'>",\r
+ "outputs": 1,\r
+ "x": 248.61903381347656,\r
+ "y": 121.54066467285156,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "11b944cd.c96c5b"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "11b944cd.c96c5b",\r
+ "type": "method",\r
+ "name": "method pnf-topology-operation-assign",\r
+ "xml": "<method rpc='pnf-topology-operation-assign' mode='sync'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 243.92864990234375,\r
+ "y": 165.55255317687988,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "ce6b8a58.b8d3e8"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "7e923496.314c4c",\r
+ "type": "comment",\r
+ "name": "pnf-topology-operation-assign",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 535.5948638916016,\r
+ "y": 41.38888931274414,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "2c8dd484.c334bc",\r
+ "type": "switchNode",\r
+ "name": "switch request-action",\r
+ "xml": "<switch test='`$pnf-topology-operation-input.request-information.request-action`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 627.2143096923828,\r
+ "y": 309.0287160873413,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "e97259d0.1af158",\r
+ "413f5d48.571fc4"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "e97259d0.1af158",\r
+ "type": "outcome",\r
+ "name": "CreatePnfInstance",\r
+ "xml": "<outcome value='CreatePnfInstance'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 880.9286041259766,\r
+ "y": 286.1715974807739,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "f6bc9eb4.5cc37"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "413f5d48.571fc4",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 842.9285697937012,\r
+ "y": 331.88592529296875,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "514d78e9.baa838"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "f6bc9eb4.5cc37",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1065.785732269287,\r
+ "y": 286.17162704467773,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "514d78e9.baa838",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1082.9285774230957,\r
+ "y": 331.8858833312988,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4388ff9d.ce7d6",\r
+ "type": "get-resource",\r
+ "name": "get-resource VF_MODEL",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 639.5476150512695,\r
+ "y": 400.17158603668213,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "512ab575.220ccc",\r
+ "3a1614d2.3eacec"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6dc29919.0f2208",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1080.9760932922363,\r
+ "y": 423.60007190704346,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "512ab575.220ccc",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 840.3333129882812,\r
+ "y": 380.55242347717285,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "d5d2d14c.f67aa"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "3a1614d2.3eacec",\r
+ "type": "not-found",\r
+ "name": "not-found",\r
+ "xml": "<outcome value='not-found'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 848.9047431945801,\r
+ "y": 424.83813667297363,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "6dc29919.0f2208"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "d5d2d14c.f67aa",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1080.333293914795,\r
+ "y": 378.695330619812,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "95465986.653a28",\r
+ "type": "execute",\r
+ "name": "execute PropertiesNode",\r
+ "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",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 635.1190948486328,\r
+ "y": 182.314471244812,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "ce6b8a58.b8d3e8",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 353.41272735595703,\r
+ "y": 309.5079708099365,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "2c8dd484.c334bc",\r
+ "4388ff9d.ce7d6",\r
+ "95465986.653a28",\r
+ "6cdfcbff.124fe4",\r
+ "4f7127f2.481f58"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "6cdfcbff.124fe4",\r
+ "type": "switchNode",\r
+ "name": "switch input cloud-owner",\r
+ "xml": "<switch test='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 635.8333511352539,\r
+ "y": 237.55254077911377,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "fbe3ca5c.624b78",\r
+ "12f9e0f5.d15d1f"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "fbe3ca5c.624b78",\r
+ "type": "other",\r
+ "name": "NULL",\r
+ "xml": "<outcome value=''>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 819.1667251586914,\r
+ "y": 207.55252933502197,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "c50e0e6c.80923"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "12f9e0f5.d15d1f",\r
+ "type": "other",\r
+ "name": "other",\r
+ "xml": "<outcome value='Other'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 818.9286308288574,\r
+ "y": 248.5050230026245,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "6843bdbc.1eb674"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "c50e0e6c.80923",\r
+ "type": "block",\r
+ "name": "block",\r
+ "xml": "<block>\n",\r
+ "atomic": "false",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 954.1666793823242,\r
+ "y": 205.88586902618408,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "6843bdbc.1eb674",\r
+ "type": "set",\r
+ "name": "set prop.cloud-region.cloud-owner",\r
+ "xml": "<set>\n<parameter name='prop.cloud-region.cloud-owner' value='`$pnf-topology-operation-input.pnf-request-input.cloud-owner`' />\n",\r
+ "comments": "",\r
+ "x": 1035.8333358764648,\r
+ "y": 247.55255031585693,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "940a3bec.b79db8",\r
+ "type": "call",\r
+ "name": "call self-serve-pnf-assign",\r
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-assign' mode='sync' >\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 848.5553359985352,\r
+ "y": 596.4128832817078,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "ee11637d.64cc5"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "22ef4f33.3ca9c",\r
+ "type": "returnFailure",\r
+ "name": "return failure",\r
+ "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",\r
+ "comments": "",\r
+ "x": 1232.6267127990723,\r
+ "y": 596.4128336906433,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "d7499e88.a3c54",\r
+ "type": "comment",\r
+ "name": "SELF-SERVE FORK",\r
+ "info": "",\r
+ "comments": "",\r
+ "x": 758.174690246582,\r
+ "y": 547.6151220798492,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "ee11637d.64cc5",\r
+ "type": "failure",\r
+ "name": "failure",\r
+ "xml": "<outcome value='failure'>\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 1053.8529167175293,\r
+ "y": 595.9009146690369,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "22ef4f33.3ca9c"\r
+ ]\r
+ ]\r
+ },\r
+ {\r
+ "id": "8085154e.65e6a8",\r
+ "type": "returnSuccess",\r
+ "name": "return success",\r
+ "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",\r
+ "comments": "",\r
+ "x": 820.9642715454102,\r
+ "y": 750.5674510002136,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "4326ce02.3a255",\r
+ "type": "set",\r
+ "name": "set pnf-level-oper-status to PendingCreate",\r
+ "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`' />",\r
+ "comments": "",\r
+ "x": 959.0277328491211,\r
+ "y": 649.15491771698,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": []\r
+ },\r
+ {\r
+ "id": "b05b3263.f3526",\r
+ "type": "execute",\r
+ "name": "printContext",\r
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/ss-pnf-assign.log' />\n",\r
+ "comments": "",\r
+ "outputs": 1,\r
+ "x": 810.8689994812012,\r
+ "y": 698.3447003364563,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ []\r
+ ]\r
+ },\r
+ {\r
+ "id": "4f7127f2.481f58",\r
+ "type": "block",\r
+ "name": "block : atomic",\r
+ "xml": "<block atomic=\"true\">",\r
+ "atomic": "true",\r
+ "outputs": 1,\r
+ "x": 599.535530090332,\r
+ "y": 667.8531589508057,\r
+ "z": "6dfe2c1.a0003d4",\r
+ "wires": [\r
+ [\r
+ "940a3bec.b79db8",\r
+ "8085154e.65e6a8",\r
+ "b05b3263.f3526"\r
+ ]\r
+ ]\r
+ }\r
+]
\ No newline at end of file