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