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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
[
{
"id": "55167d1e.ed2dbc",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
"x": 142,
"y": 118,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"4fe16795.505a68"
]
]
},
{
"id": "12fd478e.613338",
"type": "method",
"name": "method send-so-response",
"xml": "<method rpc='send-so-response' mode='sync'>\n",
"comments": "",
"outputs": 1,
"x": 287.0119171142578,
"y": 182.70635414123535,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"91e959be.0046b8"
]
]
},
{
"id": "4fe16795.505a68",
"type": "service-logic",
"name": "GENERIC-RESOURCE-API ${project.version}",
"module": "GENERIC-RESOURCE-API",
"version": "${project.version}",
"comments": "",
"xml": "<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}'>",
"outputs": 1,
"x": 404.23819732666016,
"y": 118.19049263000488,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"12fd478e.613338"
]
]
},
{
"id": "153e93ce.9ebf4c",
"type": "execute",
"name": "execute RestApiCallNode - POST ack-final to SO",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + 'so-response.xml'`\" />\n <parameter name='restapiUrl' value=\"`$so.notification-url`\" />\n <parameter name='restapiUser' value='`$prop.so.user`' />\n <parameter name='restapiPassword' value='`$prop.so.pwd`' />\n <parameter name='accept' value='text/plain' />\n <parameter name='format' value='xml' />\n <parameter name='contentType' value='application/xml' />\n <parameter name='httpMethod' value='POST' />\n <parameter name=\"responsePrefix\" value=\"soResponse-vnf-assign\" />\n\n",
"comments": "",
"outputs": 1,
"x": 744.5463409423828,
"y": 327.97048711776733,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"10150aac.baf595",
"7abea62f.e688e"
]
]
},
{
"id": "10150aac.baf595",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
"x": 1031.4377250671387,
"y": 304.55121183395386,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"c2af9654.82f04"
]
]
},
{
"id": "1138f7b0.eeb818",
"type": "configure",
"name": "set error-message",
"xml": "<set>\n<parameter name=\"error-message\" value=\"`'Error sending SO response. ' + $error-message`\" />\n",
"comments": "",
"outputs": 1,
"x": 1485.2489471435547,
"y": 281.6962089538574,
"z": "4c84aa17.c3c6dc",
"wires": [
[]
]
},
{
"id": "7abea62f.e688e",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
"x": 1042.796287536621,
"y": 351.7203230857849,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"c2af9654.82f04"
]
]
},
{
"id": "91e959be.0046b8",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
"x": 424.7499771118164,
"y": 297.9999542236328,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"153e93ce.9ebf4c",
"de88f47c.4b8e38"
]
]
},
{
"id": "de88f47c.4b8e38",
"type": "set",
"name": "set so.response-message",
"xml": "<set>\n<parameter name=\"so.response-message\" value=\"`$error-message`\" />",
"comments": "",
"x": 670.7499923706055,
"y": 277.9999499320984,
"z": "4c84aa17.c3c6dc",
"wires": []
},
{
"id": "aed75eca.5a9ad",
"type": "comment",
"name": "Caller must set all the params required for SO response",
"info": "so.ack-final-indicator\nso.notification-url\nso.response-code\nso.response-message\nso.svc-request-id\nso.service-instance-id\nso.service-type",
"comments": "",
"x": 893.2499923706055,
"y": 186.75000190734863,
"z": "4c84aa17.c3c6dc",
"wires": []
},
{
"id": "d3ee031.03b0d8",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`$error-message`\" />\n",
"comments": "",
"x": 1465.8334617614746,
"y": 351.90866470336914,
"z": "4c84aa17.c3c6dc",
"wires": []
},
{
"id": "c2af9654.82f04",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic=\"true\">",
"atomic": "true",
"outputs": 1,
"x": 1259.4999237060547,
"y": 322.99997329711914,
"z": "4c84aa17.c3c6dc",
"wires": [
[
"1138f7b0.eeb818",
"d3ee031.03b0d8"
]
]
}
]
|