blob: aee8febbaeb15d2a3233936e0971037f0d770f3b (
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
|
<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='GENERIC-RESOURCE-API' version='${project.version}'>
<method rpc='send-so-response' mode='sync'>
<block atomic="true">
<set>
<parameter name="so.response-message" value="`$error-message`" />
</set>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + 'so-response.xml'`" />
<parameter name='restapiUrl' value="`$so.notification-url`" />
<parameter name='restapiUser' value='`$prop.so.user`' />
<parameter name='restapiPassword' value='`$prop.so.pwd`' />
<parameter name='accept' value='text/plain' />
<parameter name='format' value='xml' />
<parameter name='contentType' value='application/xml' />
<parameter name='httpMethod' value='POST' />
<parameter name="responsePrefix" value="soResponse-vnf-assign" />
<outcome value='failure'>
<block atomic="true">
<set>
<parameter name="error-message" value="`'Error sending SO response. ' + $error-message`" />
</set>
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
<parameter name="error-message" value="`$error-message`" />
</return>
</block>
</outcome>
<outcome value='not-found'>
<block atomic="true">
<set>
<parameter name="error-message" value="`'Error sending SO response. ' + $error-message`" />
</set>
<return status='failure'>
<parameter name='ack-final' value='Y'/>
<parameter name="error-code" value="500" />
<parameter name="error-message" value="`$error-message`" />
</return>
</block>
</outcome>
</execute>
</block>
</method>
</service-logic>
|