self-serve DG for Casablanca
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_self-serve-vnf-changeassign.json
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_self-serve-vnf-changeassign.json
new file mode 100644 (file)
index 0000000..db153ff
--- /dev/null
@@ -0,0 +1,341 @@
+[
+    {
+        "id": "57248231.a7bfcc",
+        "type": "dgstart",
+        "name": "DGSTART",
+        "outputs": 1,
+        "x": 108.75,
+        "y": 47.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "1d542904.ad727f"
+            ]
+        ]
+    },
+    {
+        "id": "1d542904.ad727f",
+        "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": 384.75,
+        "y": 48.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "e103515d.6bcd18"
+            ]
+        ]
+    },
+    {
+        "id": "e103515d.6bcd18",
+        "type": "method",
+        "name": "self-serve-vnf-changeassign ",
+        "xml": "<method rpc='self-serve-vnf-changeassign' mode='sync'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 701.75,
+        "y": 48.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "42a27363.ddaeac"
+            ]
+        ]
+    },
+    {
+        "id": "42a27363.ddaeac",
+        "type": "block",
+        "name": "block atomic",
+        "xml": "<block atomic=\"true\">\n",
+        "atomic": "false",
+        "comments": "",
+        "outputs": 1,
+        "x": 127.25,
+        "y": 130.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "1c0659a3.13cfde",
+                "ec3506ba.e14a98"
+            ]
+        ]
+    },
+    {
+        "id": "30d6be53.aefb4a",
+        "type": "set",
+        "name": "set",
+        "xml": "<set>\n   <parameter name='`service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$j].resource-resolution-data.status`' value='PENDING'/>\n   <parameter name='ss.input.param.index' value='`$i`' />\n   <parameter name='ss.service-data.param.index' value='`$j`' />",
+        "comments": "",
+        "x": 1343.75,
+        "y": 548.5,
+        "z": "484e90dc.3bd078",
+        "wires": []
+    },
+    {
+        "id": "1c0659a3.13cfde",
+        "type": "switchNode",
+        "name": "switch vnf-input-parameters",
+        "xml": "<switch test='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 369.75,
+        "y": 173.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "8a1cd82.5d583a8"
+            ]
+        ]
+    },
+    {
+        "id": "8a1cd82.5d583a8",
+        "type": "outcome",
+        "name": "null",
+        "xml": "<outcome value=''>",
+        "comments": "",
+        "outputs": 1,
+        "x": 599.8928833007812,
+        "y": 173.35714721679688,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "37bbdbba.52315c"
+            ]
+        ]
+    },
+    {
+        "id": "37bbdbba.52315c",
+        "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 param name/value provided in vnf-request-input\" />\n",
+        "comments": "",
+        "x": 772.75,
+        "y": 173.5,
+        "z": "484e90dc.3bd078",
+        "wires": []
+    },
+    {
+        "id": "ec3506ba.e14a98",
+        "type": "for",
+        "name": "for vnf-input-parameters.param index i",
+        "xml": "<for index='i' start='0' end='`$vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param_length`' >",
+        "comments": "",
+        "outputs": 1,
+        "x": 396.75,
+        "y": 297.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "14eea10b.aad3ff"
+            ]
+        ]
+    },
+    {
+        "id": "14eea10b.aad3ff",
+        "type": "block",
+        "name": "block : atomic",
+        "xml": "<block atomic='true'>",
+        "atomic": "true",
+        "comments": "",
+        "outputs": 1,
+        "x": 640.75,
+        "y": 297.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "ca4e5f29.4175a8"
+            ]
+        ]
+    },
+    {
+        "id": "ca4e5f29.4175a8",
+        "type": "switchNode",
+        "name": "switch",
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`'>\n\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 811.75,
+        "y": 297.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "3da72d90.fc11a2"
+            ]
+        ]
+    },
+    {
+        "id": "3da72d90.fc11a2",
+        "type": "other",
+        "name": "other",
+        "xml": "<outcome value='Other'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 559.75,
+        "y": 381.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "c490ce0.767473"
+            ]
+        ]
+    },
+    {
+        "id": "c490ce0.767473",
+        "type": "for",
+        "name": "for service-data.vnf-parameters-data.param index j",
+        "xml": "<for index='j' start='0' end='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param_length`' >",
+        "comments": "",
+        "outputs": 1,
+        "x": 851.75,
+        "y": 381.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "1937b752.ee7f01"
+            ]
+        ]
+    },
+    {
+        "id": "1937b752.ee7f01",
+        "type": "switchNode",
+        "name": "switch input vnf-name",
+        "xml": "<switch test='`$service-data.vnfs.vnf[$vnf-index].vnf-data.vnf-topology.vnf-parameters-data.param[$j].name == $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name`'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 794.75,
+        "y": 475.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "c29b5f3e.26a9e",
+                "7e31cc58.38af8c"
+            ]
+        ]
+    },
+    {
+        "id": "7e31cc58.38af8c",
+        "type": "not-found",
+        "name": "true",
+        "xml": "<outcome value='true'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1007.75,
+        "y": 548.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "380d4f5a.84c61"
+            ]
+        ]
+    },
+    {
+        "id": "c29b5f3e.26a9e",
+        "type": "not-found",
+        "name": "false",
+        "xml": "<outcome value='false'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1015.75,
+        "y": 430.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "97ff5a7e.916158"
+            ]
+        ]
+    },
+    {
+        "id": "97ff5a7e.916158",
+        "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 param with param[].name = ' +  $vnf-topology-operation-input.vnf-request-input.vnf-input-parameters.param[$i].name + ' found in service-data.'`\" />\n",
+        "comments": "",
+        "x": 1220.75,
+        "y": 429.5,
+        "z": "484e90dc.3bd078",
+        "wires": []
+    },
+    {
+        "id": "380d4f5a.84c61",
+        "type": "block",
+        "name": "block : atomic",
+        "xml": "<block atomic='true'>",
+        "atomic": "true",
+        "comments": "",
+        "outputs": 1,
+        "x": 1168.75,
+        "y": 547.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "30d6be53.aefb4a",
+                "e0135d7c.04a028"
+            ]
+        ]
+    },
+    {
+        "id": "e0135d7c.04a028",
+        "type": "call",
+        "name": "call self-serve-generate-name-changeassign",
+        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-generate-name-changeassign' mode='sync' >\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1460.75,
+        "y": 624.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "f8df579c.55d728",
+                "5a6cefeb.f45dc"
+            ]
+        ]
+    },
+    {
+        "id": "f8df579c.55d728",
+        "type": "failure",
+        "name": "failure",
+        "xml": "<outcome value='failure'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1710.75,
+        "y": 596.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "11426210.f443de"
+            ]
+        ]
+    },
+    {
+        "id": "5a6cefeb.f45dc",
+        "type": "failure",
+        "name": "not-found",
+        "xml": "<outcome value='not-found'>\n",
+        "comments": "",
+        "outputs": 1,
+        "x": 1720.75,
+        "y": 664.5,
+        "z": "484e90dc.3bd078",
+        "wires": [
+            [
+                "11426210.f443de"
+            ]
+        ]
+    },
+    {
+        "id": "11426210.f443de",
+        "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 self-service-generate-name-changeassign\" />\n",
+        "comments": "",
+        "x": 1909.75,
+        "y": 595.5,
+        "z": "484e90dc.3bd078",
+        "wires": []
+    }
+]
\ No newline at end of file