Code fix for attach and detach volumes
[appc.git] / appc-directed-graph / appc-dgraph / provider / src / main / resources / json / APPC / APPC_DetachVolumeVM.json
index 32fe9c2..2fbca8f 100644 (file)
-[
-    {
-        "id": "eeae9def.4d566",
-        "type": "dgstart",
-        "name": "DGSTART",
-        "outputs": 1,
-        "x": 93,
-        "y": 92,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "f51d1b93.7d168"
-            ]
-        ]
-    },
-    {
-        "id": "f51d1b93.7d168",
-        "type": "service-logic",
-        "name": "APPC 4.0.0",
-        "module": "APPC",
-        "version": "4.0.0",
-        "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='APPC' version='4.0.0'>",
-        "outputs": 1,
-        "x": 250,
-        "y": 92,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "10439b1c.b0fbc5"
-            ]
-        ]
-    },
-    {
-        "id": "10439b1c.b0fbc5",
-        "type": "method",
-        "name": "DetachVolume",
-        "xml": "<method rpc='DetachVolumeVM' mode='sync'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 448,
-        "y": 94,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "cf4fac38.3b932"
-            ]
-        ]
-    },
-    {
-        "id": "6f1b4f51.cab76",
-        "type": "success",
-        "name": "success",
-        "xml": "<outcome value='success'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 815.9999694824219,
-        "y": 303.9999694824219,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "f6364905.533518"
-            ]
-        ]
-    },
-    {
-        "id": "eda3e619.a190e",
-        "type": "other",
-        "name": "other",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 824.9999694824219,
-        "y": 182.99996948242188,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "b81aef23.ced6e8"
-            ]
-        ]
-    },
-    {
-        "id": "361abfaa.ca34b8",
-        "type": "returnSuccess",
-        "name": "return success",
-        "xml": "<return status='success'>",
-        "comments": "",
-        "x": 1371.9999694824219,
-        "y": 275.9999694824219,
-        "z": "65f0ae97.bfd7e8",
-        "wires": []
-    },
-    {
-        "id": "5b028b69.7d6af4",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC dettachVolume not found' />",
-        "comments": "",
-        "x": 1132.9999694824219,
-        "y": 182.99996948242188,
-        "z": "65f0ae97.bfd7e8",
-        "wires": []
-    },
-    {
-        "id": "f6364905.533518",
-        "type": "switchNode",
-        "name": "switch error-code",
-        "xml": "<switch test='`$error_code`'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1008.9999694824219,
-        "y": 304.9999694824219,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "567026e7.afed6",
-                "ee60ee08.fb232"
-            ]
-        ]
-    },
-    {
-        "id": "567026e7.afed6",
-        "type": "success",
-        "name": "SUCCESS 200",
-        "xml": "<outcome value='200'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1190.9999694824219,
-        "y": 274.9999694824219,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "361abfaa.ca34b8"
-            ]
-        ]
-    },
-    {
-        "id": "ee60ee08.fb232",
-        "type": "outcome",
-        "name": "ERROR",
-        "xml": "<outcome value='Other'>\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 1182.9999694824219,
-        "y": 433.9999694824219,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "285baaf0.7d06de"
-            ]
-        ]
-    },
-    {
-        "id": "285baaf0.7d06de",
-        "type": "block",
-        "name": "block",
-        "xml": "<block>\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 1315.9999694824219,
-        "y": 434.9999694824219,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "44fe2b94.9c5d94",
-                "961f42bf.beb62"
-            ]
-        ]
-    },
-    {
-        "id": "44fe2b94.9c5d94",
-        "type": "returnFailure",
-        "name": "return failure",
-        "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",
-        "comments": "",
-        "x": 1450.9999694824219,
-        "y": 476,
-        "z": "65f0ae97.bfd7e8",
-        "wires": []
-    },
-    {
-        "id": "b81aef23.ced6e8",
-        "type": "block",
-        "name": "block",
-        "xml": "<block>\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 980.9999694824219,
-        "y": 182.99996948242188,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "5b028b69.7d6af4"
-            ]
-        ]
-    },
-    {
-        "id": "34472fd1.b14ab",
-        "type": "record",
-        "name": "record",
-        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />\n<parameter name=\"field4\" value=\"`'volumeId in context=' + $volumeId`\" />\n",
-        "comments": "",
-        "outputs": 1,
-        "x": 815.11669921875,
-        "y": 124,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "cf4fac38.3b932",
-        "type": "block",
-        "name": "block",
-        "xml": "<block>\n",
-        "atomic": "false",
-        "comments": "",
-        "outputs": 1,
-        "x": 636.8666687011719,
-        "y": 152.86666870117188,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "34472fd1.b14ab",
-                "e021eba0.2f5b7"
-            ]
-        ]
-    },
-    {
-        "id": "961f42bf.beb62",
-        "type": "record",
-        "name": "record",
-        "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n<parameter name=\"field4\" value=\"`'error-code = ' + $error_code`\" />",
-        "comments": "",
-        "outputs": 1,
-        "x": 1440.8666687011719,
-        "y": 406.8666687011719,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            []
-        ]
-    },
-    {
-        "id": "e021eba0.2f5b7",
-        "type": "execute",
-        "name": "DetachVolume",
-        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='dettachVolume'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.onap.appc.volumeid\" value=\"`$volumeAttachment.volumeId`\" />\n<parameter name=\"org.onap.appc.device\" value=\"`$volumeAttachment.device`\" />\n<parameter name=\"org.onap.appc.tag\" value=\"`$volumeAttachment.tag`\"/>",
-        "comments": "",
-        "outputs": 1,
-        "x": 652.9999694824219,
-        "y": 238,
-        "z": "65f0ae97.bfd7e8",
-        "wires": [
-            [
-                "eda3e619.a190e",
-                "6f1b4f51.cab76"
-            ]
-        ]
-    }
-]
+[\r
+    {\r
+        "id": "d54b463c.a823b8",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 93.11666870117188,\r
+        "y": 41,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "a2bb678c.5e00c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a2bb678c.5e00c",\r
+        "type": "service-logic",\r
+        "name": "APPC 4.0.0",\r
+        "module": "APPC",\r
+        "version": "4.0.0",\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='APPC' version='4.0.0'>",\r
+        "outputs": 1,\r
+        "x": 250.11666870117188,\r
+        "y": 41,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "e60f98b3.977f1"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "e60f98b3.977f1",\r
+        "type": "method",\r
+        "name": "DetachVolume",\r
+        "xml": "<method rpc='DetachVolumeVM' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 448.1166687011719,\r
+        "y": 43,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "e8d72dbd.c9baa"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f548774.5415008",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 816.1166381835938,\r
+        "y": 252.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "329389c7.ceb186"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "efa29456.b2b9e",\r
+        "type": "other",\r
+        "name": "other",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 825.1166381835938,\r
+        "y": 131.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "26584913.762376"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "85b565d0.ef33d8",\r
+        "type": "returnSuccess",\r
+        "name": "return success",\r
+        "xml": "<return status='success'>",\r
+        "comments": "",\r
+        "x": 1372.1166381835938,\r
+        "y": 224.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "8cb513a7.354458",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC dettachVolume not found' />",\r
+        "comments": "",\r
+        "x": 1133.1166381835938,\r
+        "y": 131.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "329389c7.ceb186",\r
+        "type": "switchNode",\r
+        "name": "switch status",\r
+        "xml": "<switch test='`$VOLUME_STATUS`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1009.1166381835938,\r
+        "y": 253.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "720cbf6d.f49518",\r
+                "1de7a2bc.3c680d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "720cbf6d.f49518",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='SUCCESS'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1191.1166381835938,\r
+        "y": 223.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "85b565d0.ef33d8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "1de7a2bc.3c680d",\r
+        "type": "outcome",\r
+        "name": "ERROR",\r
+        "xml": "<outcome value='Other'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1183.1166381835938,\r
+        "y": 382.9999694824219,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "83ea6cce.ef1b58"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "83ea6cce.ef1b58",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1316.1166381835938,\r
+        "y": 383.9999694824219,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "115510d5.27d387",\r
+                "6be0b92f.7a4028"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "115510d5.27d387",\r
+        "type": "returnFailure",\r
+        "name": "return failure",\r
+        "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",\r
+        "comments": "",\r
+        "x": 1451.1166381835938,\r
+        "y": 425,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "26584913.762376",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 981.1166381835938,\r
+        "y": 131.99996948242188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "8cb513a7.354458"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "88de342c.a6a72",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />\n<parameter name=\"field4\" value=\"`'volumeId in context=' + $volumeId`\" />\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 815.2333679199219,\r
+        "y": 73,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "e8d72dbd.c9baa",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 636.9833374023438,\r
+        "y": 101.86666870117188,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "88de342c.a6a72",\r
+                "62735c5f.2a9b9c"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "6be0b92f.7a4028",\r
+        "type": "record",\r
+        "name": "record",\r
+        "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n<parameter name=\"field4\" value=\"`'error-code = ' + $error_code`\" />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1440.9833374023438,\r
+        "y": 355.8666687011719,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "62735c5f.2a9b9c",\r
+        "type": "execute",\r
+        "name": "DetachVolume",\r
+        "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='dettachVolume'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.onap.appc.volumeid\" value=\"`$volumeAttachment.volumeId`\" />\n<parameter name=\"org.onap.appc.device\" value=\"`$volumeAttachment.device`\" />\n<parameter name=\"org.onap.appc.tag\" value=\"`$volumeAttachment.tag`\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 653.1166381835938,\r
+        "y": 187,\r
+        "z": "9904acd2.cfae1",\r
+        "wires": [\r
+            [\r
+                "efa29456.b2b9e",\r
+                "f548774.5415008"\r
+            ]\r
+        ]\r
+    }\r
+]\r