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
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
15 <switch test='`$data-change-notification-input.aai-node-type`'>
\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
24 <for index='idx' start='0' end='`$data-change-notification-input.key-data_length`' >
\r
26 <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'service-url'`">
\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
35 <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`">
\r
40 <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'password'`">
\r