summaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/xml/optical-service_optical-validate-input-params.xml
blob: b6517f9906e09f9ff4f2c10fe51d4e1084c1c900 (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='optical-service' version='${project.version}'>
    <method rpc='optical-validate-input-params' mode='sync'>
        <block atomic='true'>
            <switch test='`$optical-service-create-input.request-id`'>
                <outcome value='``'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='request-id is a mandatory field' />
                    </return>
                </outcome>
                <outcome value='Other'>
                    <block atomic='true'></block>
                </outcome>
            </switch>
            <switch test='`$optical-service-create-input.service-type`'>
                <outcome value='``'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='service-type is a mandatory field' />
                    </return>
                </outcome>
                <outcome value='Other'>
                    <block atomic='true'></block>
                </outcome>
            </switch>
            <switch test='`$optical-service-create-input.global-customer-id`'>
                <outcome value='``'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='global-customer-id is a mandatory field' />
                    </return>
                </outcome>
                <outcome value='Other'>
                    <block atomic='true'></block>
                </outcome>
            </switch>
            <switch test='`$optical-service-create-input.service-id`'>
                <outcome value='``'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='service-id is a mandatory field' />
                    </return>
                </outcome>
                <outcome value='Other'>
                    <block atomic='true'></block>
                </outcome>
            </switch>
            <switch test='`$optical-service-create-input.source`'>
                <outcome value='SO'>
                    <block atomic='true'></block>
                </outcome>
                <outcome value='Other'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='source must be SO' />
                    </return>
                </outcome>
            </switch>
        </block>
    </method>
</service-logic>