fix odl patches
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_putA1Policy.json
1 [
2     {
3         "id": "6fe6315.c6a1bd",
4         "type": "service-logic",
5         "name": "A1-ADAPTER-API ${project.version}",
6         "module": "A1-ADAPTER-API",
7         "version": "${project.version}",
8         "comments": "",
9         "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='A1-ADAPTER-API' version='${project.version}'>",
10         "outputs": 1,
11         "x": 177,
12         "y": 269.11090087890625,
13         "z": "ef1ae006.6efce",
14         "wires": [
15             [
16                 "fb2e5825.9a3128"
17             ]
18         ]
19     },
20     {
21         "id": "fb2e5825.9a3128",
22         "type": "method",
23         "name": "method putA1Policy",
24         "xml": "<method rpc='putA1Policy' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 164,
28         "y": 338.11090087890625,
29         "z": "ef1ae006.6efce",
30         "wires": [
31             [
32                 "df682f6a.462ce"
33             ]
34         ]
35     },
36     {
37         "id": "915488d9.7845e8",
38         "type": "record",
39         "name": "record",
40         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Put A1 Policy :\"/>\n<parameter name=\"field2\" value=\"`$put-a1-policy-input.near-rt-ric-url`\"/>\n<parameter name=\"field3\" value=\"`$put-a1-policy-input.body`\"/>\n",
41         "comments": "",
42         "outputs": 1,
43         "x": 478,
44         "y": 306.11090087890625,
45         "z": "ef1ae006.6efce",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "df682f6a.462ce",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 228,
59         "y": 405.11090087890625,
60         "z": "ef1ae006.6efce",
61         "wires": [
62             [
63                 "915488d9.7845e8",
64                 "e2505a8d.6cb778",
65                 "a9158c4b.092d",
66                 "d3227515.2a39c8"
67             ]
68         ]
69     },
70     {
71         "id": "7b9fa46b.caaa3c",
72         "type": "dgstart",
73         "name": "DGSTART",
74         "outputs": 1,
75         "x": 105,
76         "y": 207.11090087890625,
77         "z": "ef1ae006.6efce",
78         "wires": [
79             [
80                 "6fe6315.c6a1bd"
81             ]
82         ]
83     },
84     {
85         "id": "e2505a8d.6cb778",
86         "type": "execute",
87         "name": "execute Properties",
88         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/a1-adapter-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
89         "comments": "",
90         "outputs": 1,
91         "x": 512,
92         "y": 404.11090087890625,
93         "z": "ef1ae006.6efce",
94         "wires": [
95             []
96         ]
97     },
98     {
99         "id": "895a1021.a1ea2",
100         "type": "failure",
101         "name": "failure",
102         "xml": "<outcome value='failure'>\n",
103         "comments": "",
104         "outputs": 1,
105         "x": 994.0001220703125,
106         "y": 482.1109619140625,
107         "z": "ef1ae006.6efce",
108         "wires": [
109             [
110                 "43219d41.f548b4"
111             ]
112         ]
113     },
114     {
115         "id": "75925e3d.bab",
116         "type": "success",
117         "name": "success",
118         "xml": "<outcome value='success'>\n",
119         "comments": "",
120         "outputs": 1,
121         "x": 1001.0003051757812,
122         "y": 572.1109466552734,
123         "z": "ef1ae006.6efce",
124         "wires": [
125             [
126                 "1675a1d6.64adbe"
127             ]
128         ]
129     },
130     {
131         "id": "1675a1d6.64adbe",
132         "type": "block",
133         "name": "block",
134         "xml": "<block>\n",
135         "atomic": "false",
136         "comments": "",
137         "outputs": 1,
138         "x": 1143.9998779296875,
139         "y": 572.1109619140625,
140         "z": "ef1ae006.6efce",
141         "wires": [
142             [
143                 "c6e4bee1.82c53",
144                 "d89555ac.557618"
145             ]
146         ]
147     },
148     {
149         "id": "f498cd2f.096d9",
150         "type": "set",
151         "name": "set tmp variables for input RPC parms",
152         "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-url\" value=\"`$put-a1-policy-input.near-rt-ric-url`\"/>\n<parameter name=\"tmp.body\" value=\"`$put-a1-policy-input.body`\"/>\n<parameter name=\"tmp.proxy-url\" value=\"`$prop.a1Mediator.proxy.url`\"/>",
153         "comments": "",
154         "x": 922.0010375976562,
155         "y": 254,
156         "z": "ef1ae006.6efce",
157         "wires": []
158     },
159     {
160         "id": "adc43a9e.a48a18",
161         "type": "execute",
162         "name": "Put A1 Policy",
163         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$tmp.near-rt-ric-url`\"/>\n<parameter name=\"format\" value=\"json\"/>\n<parameter name=\"httpMethod\" value=\"PUT\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"requestBody\" value=\"`$tmp.body`\"/>\n<parameter name=\"convertResponse\" value=\"false\"/>\n<parameter name=\"proxyUrl\" value=\"`$tmp.proxy-url`\"/>\n",
164         "comments": "",
165         "outputs": 1,
166         "x": 817.00048828125,
167         "y": 530.1212768554688,
168         "z": "ef1ae006.6efce",
169         "wires": [
170             [
171                 "895a1021.a1ea2",
172                 "75925e3d.bab"
173             ]
174         ]
175     },
176     {
177         "id": "d3227515.2a39c8",
178         "type": "block",
179         "name": "A1 Mediator RestAPI Invocation",
180         "xml": "<block atomic='true'>",
181         "atomic": "true",
182         "comments": "",
183         "outputs": 1,
184         "x": 548.0000305175781,
185         "y": 469.1109619140625,
186         "z": "ef1ae006.6efce",
187         "wires": [
188             [
189                 "65624437.a307ac",
190                 "f498cd2f.096d9",
191                 "adc43a9e.a48a18",
192                 "72384bae.e338a4"
193             ]
194         ]
195     },
196     {
197         "id": "65624437.a307ac",
198         "type": "record",
199         "name": "record",
200         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Setting variables for Put A1 Policy.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>\n<parameter name=\"field3\" value=\"`$tmp.body`\"/>",
201         "comments": "",
202         "outputs": 1,
203         "x": 820.0000610351562,
204         "y": 419.11090087890625,
205         "z": "ef1ae006.6efce",
206         "wires": [
207             []
208         ]
209     },
210     {
211         "id": "c6e4bee1.82c53",
212         "type": "record",
213         "name": "record",
214         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"A1 Policy Instance Created.\"/>\n<parameter name='field2' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='field3' value='`$a1MediatorRsp.response-message`'/>",
215         "comments": "",
216         "outputs": 1,
217         "x": 1282,
218         "y": 550.1109619140625,
219         "z": "ef1ae006.6efce",
220         "wires": [
221             []
222         ]
223     },
224     {
225         "id": "4aa855d3.13558c",
226         "type": "returnFailure",
227         "name": "return failure",
228         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name='response-code' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='response-message' value='`$a1MediatorRsp.response-message`'/>",
229         "comments": "",
230         "x": 1292,
231         "y": 509.11090087890625,
232         "z": "ef1ae006.6efce",
233         "wires": []
234     },
235     {
236         "id": "a9158c4b.092d",
237         "type": "set",
238         "name": "set default status value",
239         "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='Put A1 Policy executed successfully' />",
240         "comments": "",
241         "x": 523,
242         "y": 359.11090087890625,
243         "z": "ef1ae006.6efce",
244         "wires": []
245     },
246     {
247         "id": "43219d41.f548b4",
248         "type": "block",
249         "name": "block",
250         "xml": "<block>\n",
251         "atomic": "false",
252         "comments": "",
253         "outputs": 1,
254         "x": 1133,
255         "y": 482.11090087890625,
256         "z": "ef1ae006.6efce",
257         "wires": [
258             [
259                 "20980396.38371c",
260                 "4aa855d3.13558c"
261             ]
262         ]
263     },
264     {
265         "id": "20980396.38371c",
266         "type": "set",
267         "name": "set",
268         "xml": "<set>\n<parameter name='response-code' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='response-message' value='`$a1MediatorRsp.response-message`'/>\n",
269         "comments": "",
270         "x": 1278,
271         "y": 447.11090087890625,
272         "z": "ef1ae006.6efce",
273         "wires": []
274     },
275     {
276         "id": "ebc637df.f0ef88",
277         "type": "record",
278         "name": "record",
279         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Put A1 Policy: No proxy found on properties file \"/>\n",
280         "comments": "",
281         "outputs": 1,
282         "x": 1616,
283         "y": 283.11090087890625,
284         "z": "ef1ae006.6efce",
285         "wires": [
286             []
287         ]
288     },
289     {
290         "id": "b876b8ea.d136b8",
291         "type": "outcome",
292         "name": "No proxy URL",
293         "xml": "<outcome value=''>\n",
294         "comments": "",
295         "outputs": 1,
296         "x": 1448,
297         "y": 283.11090087890625,
298         "z": "ef1ae006.6efce",
299         "wires": [
300             [
301                 "ebc637df.f0ef88"
302             ]
303         ]
304     },
305     {
306         "id": "dfb1d01a.73a1e",
307         "type": "outcome",
308         "name": "Otherwise",
309         "xml": "<outcome value='Other'>\n",
310         "comments": "",
311         "outputs": 1,
312         "x": 1444,
313         "y": 351.11090087890625,
314         "z": "ef1ae006.6efce",
315         "wires": [
316             [
317                 "d9a8bda2.1b53c"
318             ]
319         ]
320     },
321     {
322         "id": "d9a8bda2.1b53c",
323         "type": "record",
324         "name": "record",
325         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/A1-Adapter.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Put A1 Policy: Proxy url: \"/>\n<parameter name=\"field2\" value=\"`$tmp.proxy-url`\"/>\n\n",
326         "comments": "",
327         "outputs": 1,
328         "x": 1609,
329         "y": 352.11090087890625,
330         "z": "ef1ae006.6efce",
331         "wires": [
332             []
333         ]
334     },
335     {
336         "id": "7cba1ce8.66a944",
337         "type": "switchNode",
338         "name": "switch",
339         "xml": "<switch test='`$tmp.proxy-url`'>\n",
340         "comments": "",
341         "outputs": 1,
342         "x": 1269,
343         "y": 317.11090087890625,
344         "z": "ef1ae006.6efce",
345         "wires": [
346             [
347                 "b876b8ea.d136b8",
348                 "dfb1d01a.73a1e"
349             ]
350         ]
351     },
352     {
353         "id": "72384bae.e338a4",
354         "type": "block",
355         "name": "block check if proxy address is available",
356         "xml": "<block>\n",
357         "atomic": "false",
358         "comments": "",
359         "outputs": 1,
360         "x": 932,
361         "y": 316.11090087890625,
362         "z": "ef1ae006.6efce",
363         "wires": [
364             [
365                 "7cba1ce8.66a944"
366             ]
367         ]
368     },
369     {
370         "id": "d89555ac.557618",
371         "type": "set",
372         "name": "set",
373         "xml": "<set>\n<parameter name='response-code' value='`$a1MediatorRsp.response-code`'/>\n<parameter name='response-message' value='`$a1MediatorRsp.response-message`'/>",
374         "comments": "",
375         "x": 1281,
376         "y": 598,
377         "z": "ef1ae006.6efce",
378         "wires": []
379     }
380 ]