zte data change process 53/66853/1
author黄卓垚10112215 <huang.zhuoyao@zte.com.cn>
Mon, 17 Sep 2018 01:31:37 +0000 (09:31 +0800)
committerZhuoyao Huang <10112215@zte.com.cn>
Mon, 17 Sep 2018 01:49:42 +0000 (09:49 +0800)
Issue-ID: SDNC-354

Change-Id: I8a8c5047f86a726bdba6285c891ec200848a160d
Signed-off-by: Zhuoyao Huang <10112215@zte.com.cn>
Former-commit-id: 4f65afc077b3bd25a19e56be96c4aa607eee2e77

platform-logic/datachange/src/main/json/DataChange_data-change-notification.json
platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-of-zte.json [new file with mode: 0644]
platform-logic/datachange/src/main/resources/graph.versions
platform-logic/datachange/src/main/xml/DataChange_data-change-notification.xml
platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-of-zte.xml [new file with mode: 0644]

index a68422e..c4df22a 100644 (file)
@@ -1,170 +1 @@
-[\r
-    {\r
-        "id": "14de9b29.eb77a5",\r
-        "type": "dgstart",\r
-        "name": "DGSTART",\r
-        "outputs": 1,\r
-        "x": 116.00390625,\r
-        "y": 67.9999988079071,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "1630f686.0be599"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "1630f686.0be599",\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": 302.1150550842285,\r
-        "y": 172.44447016716003,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "8b5ae719.a8f008"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "8b5ae719.a8f008",\r
-        "type": "method",\r
-        "name": "method data-change-notification",\r
-        "xml": "<method rpc='data-change-notification' mode='sync'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 299.5596046447754,\r
-        "y": 336.22225546836853,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "d99c1956.418f78"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "d99c1956.418f78",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 344.7818908691406,\r
-        "y": 451.1113257408142,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "fa034db9.8bac4",\r
-                "1981ae.01d4be53"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "fa034db9.8bac4",\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": 552.3377494812012,\r
-        "y": 538.5561301708221,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "560d6ca1.0b4dd4",\r
-        "type": "call",\r
-        "name": "call esr-thirdparty-sdnc",\r
-        "xml": "<call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' >\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1316.3379707336426,\r
-        "y": 346.66678977012634,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            []\r
-        ]\r
-    },\r
-    {\r
-        "id": "1981ae.01d4be53",\r
-        "type": "switchNode",\r
-        "name": "switch aai-node-type",\r
-        "xml": "<switch test='`$data-change-notification-input.aai-node-type`'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 555.8866271972656,\r
-        "y": 414.88262701034546,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "3eac43c0.8ab16c",\r
-                "935a0267.cd419"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "3eac43c0.8ab16c",\r
-        "type": "other",\r
-        "name": "esr-thirdparty-sdnc",\r
-        "xml": "<outcome value='esr-thirdparty-sdnc'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 837.9185485839844,\r
-        "y": 346.05725717544556,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "43f3171.d9a25e8"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "935a0267.cd419",\r
-        "type": "other",\r
-        "name": "other",\r
-        "xml": "<outcome value='Other'>\n",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 795.8866920471191,\r
-        "y": 413.8826596736908,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "b093dd51.fe287"\r
-            ]\r
-        ]\r
-    },\r
-    {\r
-        "id": "b093dd51.fe287",\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=\"AAI node type not supported\" />",\r
-        "comments": "",\r
-        "x": 951.3312110900879,\r
-        "y": 413.99375891685486,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": []\r
-    },\r
-    {\r
-        "id": "43f3171.d9a25e8",\r
-        "type": "block",\r
-        "name": "block : atomic",\r
-        "xml": "<block atomic=\"true\">\n",\r
-        "atomic": "false",\r
-        "comments": "",\r
-        "outputs": 1,\r
-        "x": 1040.0042114257812,\r
-        "y": 346.8262984752655,\r
-        "z": "bf7c0729.dcd628",\r
-        "wires": [\r
-            [\r
-                "560d6ca1.0b4dd4"\r
-            ]\r
-        ]\r
-    }\r
-]
\ No newline at end of file
+[{"id":"2abb63ad.3df404","type":"dgstart","name":"DGSTART","outputs":1,"x":97,"y":89,"z":"bbab5cc4.c9cbd","wires":[["cec5984a.941728"]]},{"id":"cec5984a.941728","type":"service-logic","name":"DataChange ${project.version}","module":"DataChange","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='DataChange' version='${project.version}'>","outputs":1,"x":283.1111488342285,"y":193.44447135925293,"z":"bbab5cc4.c9cbd","wires":[["6f601264.f5fb8c"]]},{"id":"6f601264.f5fb8c","type":"method","name":"method data-change-notification","xml":"<method rpc='data-change-notification' mode='sync'>\n","comments":"","outputs":1,"x":280.5556983947754,"y":357.2222566604614,"z":"bbab5cc4.c9cbd","wires":[["b8bb57bd.6c8f88"]]},{"id":"b8bb57bd.6c8f88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":325.7779846191406,"y":472.1113269329071,"z":"bbab5cc4.c9cbd","wires":[["97cb17d6.992f9","3b4bb8da.ca8bd8"]]},{"id":"97cb17d6.992f9","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":533.3338432312012,"y":559.556131362915,"z":"bbab5cc4.c9cbd","wires":[]},{"id":"c1961812.103ba","type":"call","name":"call esr-thirdparty-sdnc","xml":"<call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' >\n","comments":"","outputs":1,"x":1454.3341064453125,"y":336.6667785644531,"z":"bbab5cc4.c9cbd","wires":[[]]},{"id":"3b4bb8da.ca8bd8","type":"switchNode","name":"switch aai-node-type","xml":"<switch test='`$data-change-notification-input.aai-node-type`'>\n","comments":"","outputs":1,"x":536.8827209472656,"y":435.88262820243835,"z":"bbab5cc4.c9cbd","wires":[["8187ec02.edc438","e44a9744.783fc8"]]},{"id":"8187ec02.edc438","type":"other","name":"esr-thirdparty-sdnc","xml":"<outcome value='esr-thirdparty-sdnc'>\n","comments":"","outputs":1,"x":711.9146728515625,"y":194.0572509765625,"z":"bbab5cc4.c9cbd","wires":[["b5d44440.30e84"]]},{"id":"e44a9744.783fc8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":776.8827857971191,"y":434.8826608657837,"z":"bbab5cc4.c9cbd","wires":[["62e87f0f.63e3e"]]},{"id":"62e87f0f.63e3e","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=\"AAI node type not supported\" />","comments":"","x":932.3273048400879,"y":434.99376010894775,"z":"bbab5cc4.c9cbd","wires":[]},{"id":"9f25a183.327f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1358.000244140625,"y":252.8262939453125,"z":"bbab5cc4.c9cbd","wires":[["c1961812.103ba"]]},{"id":"b5d44440.30e84","type":"for","name":"for","xml":"<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\n","comments":"","outputs":1,"x":899,"y":194,"z":"bbab5cc4.c9cbd","wires":[["b63e0c35.6e5668"]]},{"id":"b63e0c35.6e5668","type":"switchNode","name":"switch","xml":"<switch test=\"`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`\">\n","comments":"","outputs":1,"x":1039,"y":194,"z":"bbab5cc4.c9cbd","wires":[["4a9c78f7.44a98","ed07b87c.5778b8"]]},{"id":"14dce58a.e0a96a","type":"call","name":"call","xml":"<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\n","comments":"","outputs":1,"x":1342,"y":194,"z":"bbab5cc4.c9cbd","wires":[[]]},{"id":"4a9c78f7.44a98","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":1193,"y":194,"z":"bbab5cc4.c9cbd","wires":[["14dce58a.e0a96a"]]},{"id":"ed07b87c.5778b8","type":"outcomeFalse","name":"false","xml":"<outcome value='false'>\n","comments":"","outputs":1,"x":1193,"y":253,"z":"bbab5cc4.c9cbd","wires":[["9f25a183.327f8"]]}]
\ No newline at end of file
diff --git a/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-of-zte.json b/platform-logic/datachange/src/main/json/DataChange_esr-thirdparty-sdnc-of-zte.json
new file mode 100644 (file)
index 0000000..23c13fe
--- /dev/null
@@ -0,0 +1 @@
+[{"id":"c4dfa871.acfb38","type":"dgstart","name":"DGSTART","outputs":1,"x":131,"y":100,"z":"b1682cba.152","wires":[["b06bc6e2.9ba258"]]},{"id":"b06bc6e2.9ba258","type":"service-logic","name":"DataChange ${project.version}","module":"DataChange","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='DataChange' version='${project.version}'>","outputs":1,"x":275,"y":213,"z":"b1682cba.152","wires":[["94182378.e4944"]]},{"id":"94182378.e4944","type":"method","name":"method esr-thirdparty-sdnc-of-zte","xml":"<method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>\n","comments":"","outputs":1,"x":200,"y":327,"z":"b1682cba.152","wires":[[]]}]
\ No newline at end of file
index 5c1b088..37211fe 100644 (file)
@@ -1,5 +1,6 @@
 DataChange data-change-notification ${project.version} sync
 DataChange esr-thirdparty-sdnc ${project.version} sync
+DataChange esr-thirdparty-sdnc-of-zte ${project.version} sync
 DataChange validate-esr-thirdparty-sdnc-input ${project.version} sync
 DataChange esr-thirdparty-sdnc-discovery ${project.version} sync
 DataChange update-network-to-aai ${project.version} sync
index 76f2fe8..8f05c4a 100644 (file)
@@ -1,27 +1,20 @@
-<service-logic\r
-    xmlns='http://www.onap.org/sdnc/svclogic'\r
-    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
-    <method rpc='data-change-notification' mode='sync'>\r
-        <block atomic="true">\r
-            <switch test='`$data-change-notification-input.aai-node-type`'>\r
-                <outcome value='esr-thirdparty-sdnc'>\r
-                    <block atomic="true">\r
-                        <call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' ></call>\r
-                    </block>\r
-                </outcome>\r
-                <outcome value='Other'>\r
-                    <return status='failure'>\r
-                        <parameter name='ack-final' value='Y'/>\r
-                        <parameter name="error-code" value="500" />\r
-                        <parameter name="error-message" value="AAI node type not supported" />\r
-                    </return>\r
-                </outcome>\r
-            </switch>\r
-            <return status='success'>\r
-                <parameter name="ack-final-indicator" value="Y" />\r
-                <parameter name="error-code" value="200" />\r
-                <parameter name="error-message" value="`$error-message`" />\r
-            </return>\r
-        </block>\r
-    </method>\r
-</service-logic>
\ No newline at end of file
+<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}'><method rpc='data-change-notification' mode='sync'>\r
+<block atomic="true">\r
+<switch test='`$data-change-notification-input.aai-node-type`'>\r
+<outcome value='esr-thirdparty-sdnc'>\r
+<for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\r
+<switch test="`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`">\r
+<outcome value='true'>\r
+<call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync' >\r
+</call></outcome><outcome value='false'>\r
+<block atomic="true">\r
+<call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync' >\r
+</call></block></outcome></switch></for></outcome><outcome value='Other'>\r
+<return status='failure'>\r
+       <parameter name='ack-final' value='Y'/>\r
+       <parameter name="error-code" value="500" />\r
+    <parameter name="error-message" value="AAI node type not supported" /></return></outcome></switch><return status='success'>\r
+<parameter name="ack-final-indicator" value="Y" />\r
+<parameter name="error-code" value="200" />\r
+<parameter name="error-message" value="`$error-message`" />\r
+</return></block></method></service-logic>
\ No newline at end of file
diff --git a/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-of-zte.xml b/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc-of-zte.xml
new file mode 100644 (file)
index 0000000..5765a04
--- /dev/null
@@ -0,0 +1,2 @@
+<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}'><method rpc='esr-thirdparty-sdnc-of-zte' mode='sync'>
+</method></service-logic>
\ No newline at end of file