aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/datachange/src/main/xml/DataChange_esr-thirdparty-sdnc.xml
blob: 46d850600e27165084ac6106974431c899aa5374 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<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' mode='sync'>
        <block atomic="true">
            <call module='DataChange' rpc='validate-esr-thirdparty-sdnc-input' mode='sync' ></call>
            <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='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.thirdpartySdnc.url' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'user-name'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.thirdpartySdnc.user' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'password'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.thirdpartySdnc.password' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'esr-system-info-id'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.thirdpartySdnc.system-info-id' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'thirdparty-sdnc-id'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.thirdpartySdnc.id' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'type'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.type' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                    <switch test="`$data-change-notification-input.key-data[$idx].key-name == 'vendor'`">
                        <outcome value='true'>
                            <set>
                                <parameter name='prop.sdncRestApi.vendor' value='`$data-change-notification-input.key-data[$idx].key-value`' />
                            </set>
                        </outcome>
                    </switch>
                </block>
            </for>
            <call module='DataChange' rpc='esr-thirdparty-sdnc-discovery' mode='sync' ></call>
        </block>
    </method>
</service-logic>