Notification Sub-DG with Restconf discovery node
[sdnc/oam.git] / platform-logic / datachange / src / main / json / DataChange_sotn-notification-handler.json
diff --git a/platform-logic/datachange/src/main/json/DataChange_sotn-notification-handler.json b/platform-logic/datachange/src/main/json/DataChange_sotn-notification-handler.json
new file mode 100644 (file)
index 0000000..3afacd3
--- /dev/null
@@ -0,0 +1,234 @@
+[\r
+    {\r
+        "id": "d2908135.0d5d4",\r
+        "type": "dgstart",\r
+        "name": "DGSTART",\r
+        "outputs": 1,\r
+        "x": 97,\r
+        "y": 79,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "5471a4fa.5564ec"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "5471a4fa.5564ec",\r
+        "type": "service-logic",\r
+        "name": "DataChange ${project.version}",\r
+        "module": "DataChange",\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='DataChange' version='${project.version}'>",\r
+        "outputs": 1,\r
+        "x": 297.5,\r
+        "y": 79,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "41ad4a7a.dfb5f4"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "41ad4a7a.dfb5f4",\r
+        "type": "method",\r
+        "name": "method sotn-notification-handler",\r
+        "xml": "<method rpc='sotn-notification-handler' mode='sync'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 268.5,\r
+        "y": 160,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "58822b09.726d74"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "3b461d1c.951192",\r
+        "type": "execute",\r
+        "name": "execute parseIdFromTarget",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$notification.push-change-update.datastore-changes.yang-patch.edit[0].target`'/>\n<parameter name=\"regex\" value=\"/\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"yang-nodes\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 254,\r
+        "y": 220,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "a4b6ea60.fbfc48",\r
+        "type": "execute",\r
+        "name": "execute last node",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$yang-nodes[$yang-nodes_length -1]`'/>\n<parameter name=\"regex\" value=\"=\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"last-node\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 223.5,\r
+        "y": 280,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "4fda0bd8.3d5334",\r
+                "a280007a.e935d"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4e95c5c1.30f36c",\r
+        "type": "execute",\r
+        "name": "execute parse topo node",\r
+        "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$yang-nodes[$yang-nodes_length -2]`'/>\n<parameter name=\"regex\" value=\"=\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"node-prefix\"/>",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1185.5,\r
+        "y": 280,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "4b491788.1b21b8",\r
+        "type": "set",\r
+        "name": "set unique-ltpId",\r
+        "xml": "<set>\n<parameter name='unique-ltpId' value=\"`'nodeId-' + $node-prefix[$node-prefix_length -1] + '-ltpId-' + $last-node[$last-node_length -1]`\" />\n",\r
+        "comments": "",\r
+        "x": 1156.5,\r
+        "y": 320,\r
+        "z": "a630608e.55155",\r
+        "wires": []\r
+    },\r
+    {\r
+        "id": "f935a561.72ecd8",\r
+        "type": "update",\r
+        "name": "update p-interface",\r
+        "xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='p-interface' \n      key='pnf.pnf-name = $node.node-id\n      AND p-interface.interface-name = $unique-ltpId' >      \n<parameter name='interface-name' value='`$unique-ltpId`' />\n<parameter name='operational-status' value='`$notification.push-change-update.datastore-changes.yang-patch.edit[0].value.termination-point[0].te.oper-status`' />",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 1165,\r
+        "y": 360,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            []\r
+        ]\r
+    },\r
+    {\r
+        "id": "58822b09.726d74",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 491,\r
+        "y": 160,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "3b461d1c.951192",\r
+                "a4b6ea60.fbfc48"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "8ad7a79a.b1d9a8",\r
+        "type": "switchNode",\r
+        "name": "switch last-node type",\r
+        "xml": "<switch test='`$last-node[0]`'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 734,\r
+        "y": 260,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "4f529877.c2c438"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4f529877.c2c438",\r
+        "type": "outcome",\r
+        "name": "outcome ietf-network-topology:termination-point",\r
+        "xml": "<outcome value='ietf-network-topology:termination-point'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 696,\r
+        "y": 320,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "33395266.1d862e"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "33395266.1d862e",\r
+        "type": "block",\r
+        "name": "block : atomic",\r
+        "xml": "<block atomic=\"true\">",\r
+        "atomic": "true",\r
+        "outputs": 1,\r
+        "x": 971,\r
+        "y": 320,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "4e95c5c1.30f36c",\r
+                "4b491788.1b21b8",\r
+                "f935a561.72ecd8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "f7127d7b.6e386",\r
+        "type": "block",\r
+        "name": "block",\r
+        "xml": "<block>\n",\r
+        "atomic": "false",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 550,\r
+        "y": 260,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "8ad7a79a.b1d9a8"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "4fda0bd8.3d5334",\r
+        "type": "success",\r
+        "name": "success",\r
+        "xml": "<outcome value='success'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 414,\r
+        "y": 260,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            [\r
+                "f7127d7b.6e386"\r
+            ]\r
+        ]\r
+    },\r
+    {\r
+        "id": "a280007a.e935d",\r
+        "type": "failure",\r
+        "name": "failure",\r
+        "xml": "<outcome value='failure'>\n",\r
+        "comments": "",\r
+        "outputs": 1,\r
+        "x": 410,\r
+        "y": 300,\r
+        "z": "a630608e.55155",\r
+        "wires": [\r
+            []\r
+        ]\r
+    }\r
+]
\ No newline at end of file