Bug fixing in topology discovery as part of CCVPN (Cross-Layer Cross-Domain VPN)...
[sdnc/oam.git] / platform-logic / datachange / src / main / xml / DataChange_validate-esr-thirdparty-sdnc-input.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='validate-esr-thirdparty-sdnc-input' mode='sync'>\r
5         <block atomic="true">\r
6             <switch test='`$data-change-notification-input.aai-event-trigger`'>\r
7                 <outcome value=''>\r
8                     <return status='failure'>\r
9                         <parameter name='ack-final' value='Y'/>\r
10                         <parameter name="error-code" value="500" />\r
11                         <parameter name="error-message" value="data-change-notification-input.aai-event-trigger is a required input" />\r
12                     </return>\r
13                 </outcome>\r
14             </switch>\r
15             <switch test='`$data-change-notification-input.aai-node-type`'>\r
16                 <outcome value=''>\r
17                     <return status='failure'>\r
18                         <parameter name='ack-final' value='Y'/>\r
19                         <parameter name="error-code" value="500" />\r
20                         <parameter name="error-message" value="data-change-notification-input.aai-node-type is a required input" />\r
21                     </return>\r
22                 </outcome>\r
23             </switch>\r
24             <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >\r
25                 <block>\r
26                     <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`">\r
27                         <outcome value=''>\r
28                             <return status='failure'>\r
29                                 <parameter name='ack-final' value='Y'/>\r
30                                 <parameter name="error-code" value="500" />\r
31                                 <parameter name="error-message" value="data-change-notification-input.key-data.key-data.service-url is a required input" />\r
32                             </return>\r
33                         </outcome>\r
34                     </switch>\r
35                     <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`">\r
36                         <outcome value=''>\r
37                             <block></block>\r
38                         </outcome>\r
39                     </switch>\r
40                     <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'password'`">\r
41                         <outcome value=''>\r
42                             <block></block>\r
43                         </outcome>\r
44                     </switch>\r
45                 </block>\r
46             </for>\r
47         </block>\r
48     </method>\r
49 </service-logic>