fix odl patches
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_getNearRT-RICs.json
1 [
2     {
3         "id": "ebd5e816.eb6c78",
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": 193,
12         "y": 88,
13         "z": "e95de38b.bff39",
14         "wires": [
15             [
16                 "456b8690.81ad48"
17             ]
18         ]
19     },
20     {
21         "id": "456b8690.81ad48",
22         "type": "method",
23         "name": "method getNearRT-RICs",
24         "xml": "<method rpc='getNearRT-RICs' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 271,
28         "y": 221,
29         "z": "e95de38b.bff39",
30         "wires": [
31             [
32                 "39b7c428.fbd3fc"
33             ]
34         ]
35     },
36     {
37         "id": "68c6918d.888a2",
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=\"A1 Adapter - get near-RT RIC Info\"/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 718,
44         "y": 23,
45         "z": "e95de38b.bff39",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "39b7c428.fbd3fc",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 459,
59         "y": 162,
60         "z": "e95de38b.bff39",
61         "wires": [
62             [
63                 "68c6918d.888a2",
64                 "97009951.c95b78",
65                 "43ca47a6.582ba8",
66                 "c0535382.92e3b",
67                 "bd60c8d3.9797d8"
68             ]
69         ]
70     },
71     {
72         "id": "6076caf.e61c034",
73         "type": "dgstart",
74         "name": "DGSTART",
75         "outputs": 1,
76         "x": 126,
77         "y": 24,
78         "z": "e95de38b.bff39",
79         "wires": [
80             [
81                 "ebd5e816.eb6c78"
82             ]
83         ]
84     },
85     {
86         "id": "97009951.c95b78",
87         "type": "set",
88         "name": "set default status value",
89         "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Mediator RIC ID available' />",
90         "comments": "",
91         "x": 769,
92         "y": 78,
93         "z": "e95de38b.bff39",
94         "wires": []
95     },
96     {
97         "id": "43ca47a6.582ba8",
98         "type": "execute",
99         "name": "execute Properties",
100         "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",
101         "comments": "",
102         "outputs": 1,
103         "x": 755,
104         "y": 122,
105         "z": "e95de38b.bff39",
106         "wires": [
107             []
108         ]
109     },
110     {
111         "id": "bd60c8d3.9797d8",
112         "type": "switchNode",
113         "name": "A1 Mediator Deployed",
114         "xml": "<switch test='`$prop.ric-plt-A1Mediator-deployed`'>\n",
115         "comments": "",
116         "outputs": 1,
117         "x": 743,
118         "y": 254,
119         "z": "e95de38b.bff39",
120         "wires": [
121             [
122                 "7e402958.8360a8",
123                 "bf086c83.8630a"
124             ]
125         ]
126     },
127     {
128         "id": "bf086c83.8630a",
129         "type": "outcome",
130         "name": "Deployed",
131         "xml": "<outcome value='true'>\n",
132         "comments": "",
133         "outputs": 1,
134         "x": 992.0000457763672,
135         "y": 46.000065326690674,
136         "z": "e95de38b.bff39",
137         "wires": [
138             [
139                 "71655ae6.aa99f4"
140             ]
141         ]
142     },
143     {
144         "id": "71655ae6.aa99f4",
145         "type": "block",
146         "name": "block : atomic",
147         "xml": "<block atomic='true'>",
148         "atomic": "true",
149         "comments": "",
150         "outputs": 1,
151         "x": 1048,
152         "y": 160.00001525878906,
153         "z": "e95de38b.bff39",
154         "wires": [
155             [
156                 "4643c1e7.c59be",
157                 "b912cf6.9ffe93"
158             ]
159         ]
160     },
161     {
162         "id": "7e402958.8360a8",
163         "type": "outcome",
164         "name": "Not Deployed",
165         "xml": "<outcome value='false'>\n",
166         "comments": "",
167         "outputs": 1,
168         "x": 982.0000610351562,
169         "y": 354.00006103515625,
170         "z": "e95de38b.bff39",
171         "wires": [
172             [
173                 "db47880c.68c2b8"
174             ]
175         ]
176     },
177     {
178         "id": "db47880c.68c2b8",
179         "type": "block",
180         "name": "block",
181         "xml": "<block>\n",
182         "atomic": "false",
183         "comments": "",
184         "outputs": 1,
185         "x": 1160.0001068115234,
186         "y": 610.0000143051147,
187         "z": "e95de38b.bff39",
188         "wires": [
189             [
190                 "5f1c2ff4.d89bf",
191                 "f5d19daf.0a21a",
192                 "813bd649.ab9798"
193             ]
194         ]
195     },
196     {
197         "id": "5f1c2ff4.d89bf",
198         "type": "returnFailure",
199         "name": "return failure",
200         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"A1 Mediator Not Deployed. Aborting Health Check\" />",
201         "comments": "",
202         "x": 1284.9998626708984,
203         "y": 690.9999988079071,
204         "z": "e95de38b.bff39",
205         "wires": []
206     },
207     {
208         "id": "4643c1e7.c59be",
209         "type": "record",
210         "name": "record",
211         "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=\"SNear-RT RIC ID\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>",
212         "comments": "",
213         "outputs": 1,
214         "x": 1231,
215         "y": 216,
216         "z": "e95de38b.bff39",
217         "wires": [
218             []
219         ]
220     },
221     {
222         "id": "f5d19daf.0a21a",
223         "type": "block",
224         "name": "DMAAP Reponse Publish",
225         "xml": "<block atomic='true'>",
226         "atomic": "true",
227         "comments": "",
228         "outputs": 1,
229         "x": 1946.0001220703125,
230         "y": 658.0001516342163,
231         "z": "e95de38b.bff39",
232         "wires": [
233             [
234                 "e0c69688.bf48b8",
235                 "51475ed3.5e72a",
236                 "6ac72c6d.c43284"
237             ]
238         ]
239     },
240     {
241         "id": "51475ed3.5e72a",
242         "type": "execute",
243         "name": "execute DmaapMsg",
244         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' +  $prop.restapi.dmaap-publish-generic-response.template`\" />\n    <parameter name='restapiUrl' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />\n    <parameter name='contentType' value='application/json' />\n    <parameter name='responsePrefix' value='dmaap' />",
245         "comments": "",
246         "outputs": 1,
247         "x": 2295.0003204345703,
248         "y": 835.9995563030243,
249         "z": "e95de38b.bff39",
250         "wires": [
251             [
252                 "81c3b061.027dd",
253                 "ad5fd599.0827c8"
254             ]
255         ]
256     },
257     {
258         "id": "e0c69688.bf48b8",
259         "type": "set",
260         "name": "set",
261         "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='getNearRT-RICs'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-code' value='`$response-code`'/>\n<parameter name='tmp.a1Adapter-dmaap-resp.status-value' value='`$response-message`'/>\n<parameter name='tmp.a1Policy-dmaap-resp.payload' value=\"`$tmp.near-rt-ric-id`\" />",
262         "comments": "",
263         "x": 2284.6669921875,
264         "y": 627.0001220703125,
265         "z": "e95de38b.bff39",
266         "wires": []
267     },
268     {
269         "id": "81c3b061.027dd",
270         "type": "failure",
271         "name": "failure",
272         "xml": "<outcome value='failure'>\n",
273         "comments": "",
274         "outputs": 1,
275         "x": 2510.5002059936523,
276         "y": 758.9168601036072,
277         "z": "e95de38b.bff39",
278         "wires": [
279             [
280                 "984b4d6a.16329"
281             ]
282         ]
283     },
284     {
285         "id": "ad5fd599.0827c8",
286         "type": "success",
287         "name": "success",
288         "xml": "<outcome value='success'>\n",
289         "comments": "",
290         "outputs": 1,
291         "x": 2514.5001258850098,
292         "y": 897.916702747345,
293         "z": "e95de38b.bff39",
294         "wires": [
295             [
296                 "933abff8.99ceb"
297             ]
298         ]
299     },
300     {
301         "id": "984b4d6a.16329",
302         "type": "block",
303         "name": "block",
304         "xml": "<block>\n",
305         "atomic": "false",
306         "comments": "",
307         "outputs": 1,
308         "x": 2670.5000400543213,
309         "y": 760.9168610572815,
310         "z": "e95de38b.bff39",
311         "wires": [
312             [
313                 "f7674184.f0207"
314             ]
315         ]
316     },
317     {
318         "id": "f7674184.f0207",
319         "type": "returnFailure",
320         "name": "return failure",
321         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"500\" />\n<parameter name=\"response-message\" value=\"Error publishing DMAAP A1 Policy Response message. \" />",
322         "comments": "",
323         "x": 2852.499771118164,
324         "y": 751.9169368743896,
325         "z": "e95de38b.bff39",
326         "wires": []
327     },
328     {
329         "id": "933abff8.99ceb",
330         "type": "block",
331         "name": "block",
332         "xml": "<block>\n",
333         "atomic": "false",
334         "comments": "",
335         "outputs": 1,
336         "x": 2697.4997692108154,
337         "y": 890.916811466217,
338         "z": "e95de38b.bff39",
339         "wires": [
340             [
341                 "cf6ac156.9eaf8"
342             ]
343         ]
344     },
345     {
346         "id": "cf6ac156.9eaf8",
347         "type": "record",
348         "name": "record",
349         "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=\"DMAAP A1Policy message Successfully Published \"/>",
350         "comments": "",
351         "outputs": 1,
352         "x": 2885.5,
353         "y": 881.9171142578125,
354         "z": "e95de38b.bff39",
355         "wires": [
356             []
357         ]
358     },
359     {
360         "id": "6ac72c6d.c43284",
361         "type": "record",
362         "name": "record",
363         "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=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"Before DMAAP Event - template file name, restapiURL\"/>\n<parameter name='field3' value=\"`$prop.restapi.templateDir + '/' +  $prop.restapi.dmaap-publish-generic-response.template`\" />\n<parameter name='field4' value=\"`$prop.dmaap-message-router.url + $prop.a1Adapter-dmaap-policy-response.topic`\" />\n<parameter name='field5' value=\"Status Code and Status Value to be published\" />\n<parameter name='field6' value=\"`$tmp.a1Adapter-dmaap-resp.status-code`\" />\n<parameter name='field7' value=\"`$tmp.a1Adapter-dmaap-resp.status-value`\" />\n<parameter name='field8' value=\"A1 Adapter DMAAP Response Payload\" />\n<parameter name='field9' value=\"`$tmp.a1Policy-dmaap-resp.payload`\" />\n<parameter name='field10' value=\"RPC Name\" />\n<parameter name='field11' value=\"`$tmp.a1-adapter-api.rpc-name`\" />",
364         "comments": "",
365         "outputs": 1,
366         "x": 2291.5002517700195,
367         "y": 712.4550609588623,
368         "z": "e95de38b.bff39",
369         "wires": [
370             []
371         ]
372     },
373     {
374         "id": "813bd649.ab9798",
375         "type": "set",
376         "name": "set",
377         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
378         "comments": "",
379         "x": 1320.0001220703125,
380         "y": 540,
381         "z": "e95de38b.bff39",
382         "wires": []
383     },
384     {
385         "id": "c0535382.92e3b",
386         "type": "block",
387         "name": "block",
388         "xml": "<block>\n",
389         "atomic": "false",
390         "comments": "",
391         "outputs": 1,
392         "x": 701.7538948059082,
393         "y": 800.0039358139038,
394         "z": "e95de38b.bff39",
395         "wires": [
396             [
397                 "197cd6b3.c3fad9",
398                 "f5d19daf.0a21a"
399             ]
400         ]
401     },
402     {
403         "id": "197cd6b3.c3fad9",
404         "type": "returnSuccess",
405         "name": "return success",
406         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='A1 Mediatpor is available'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",
407         "comments": "",
408         "x": 853.7539672851562,
409         "y": 885.00390625,
410         "z": "e95de38b.bff39",
411         "wires": []
412     },
413     {
414         "id": "b912cf6.9ffe93",
415         "type": "set",
416         "name": "set tmp variables for Near RT RIC ID",
417         "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$prop.near-rt-ric-id`\"/>\n",
418         "comments": "",
419         "x": 1279,
420         "y": 89,
421         "z": "e95de38b.bff39",
422         "wires": []
423     }
424 ]