Merge "Fix ansible server path"
[sdnc/oam.git] / platform-logic / datachange / src / main / xml / DataChange_data-change-notification.xml
1 <service-logic\r
2   xmlns='http://www.onap.org/sdnc/svclogic'\r
3   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
4   <method rpc='data-change-notification' mode='sync'> \r
5     <block atomic="true"> \r
6       <switch test='`$data-change-notification-input.aai-node-type`'> \r
7         <outcome value='esr-thirdparty-sdnc'> \r
8           <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`'> \r
9             <switch test="`$data-change-notification-input.key-data[$idx].key-value == 'ZTE'`"> \r
10               <outcome value='true'> \r
11                 <call module='DataChange' rpc='esr-thirdparty-sdnc-of-zte' mode='sync'></call>\r
12               </outcome>\r
13               <outcome value='false'> \r
14                 <block atomic="true"> \r
15                   <call module='DataChange' rpc='esr-thirdparty-sdnc' mode='sync'></call>\r
16                 </block>\r
17               </outcome>\r
18             </switch>\r
19           </for>\r
20         </outcome>\r
21         <outcome value='Other'> \r
22           <return status='failure'> \r
23             <parameter name='ack-final' value='Y'/>  \r
24             <parameter name="error-code" value="500"/>  \r
25             <parameter name="error-message" value="AAI node type not supported"/>\r
26           </return>\r
27         </outcome>\r
28       </switch>\r
29       <return status='success'> \r
30         <parameter name="ack-final-indicator" value="Y"/>  \r
31         <parameter name="error-code" value="200"/>  \r
32         <parameter name="error-message" value="`$error-message`"/> \r
33       </return>\r
34     </block>\r
35   </method>\r
36 </service-logic>