fix odl patches
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_getA1PolicyType.json
1 [
2     {
3         "id": "5a3c07ae.e366b8",
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": 175,
12         "y": 157.00000095367432,
13         "z": "4a015e5c.e4da6",
14         "wires": [
15             [
16                 "b7bd1ba7.d04778"
17             ]
18         ]
19     },
20     {
21         "id": "b7bd1ba7.d04778",
22         "type": "method",
23         "name": "method getA1PolicyType",
24         "xml": "<method rpc='getA1PolicyType' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 238.00000762939453,
28         "y": 280.0000104904175,
29         "z": "4a015e5c.e4da6",
30         "wires": [
31             [
32                 "3f32665d.c1c8ba"
33             ]
34         ]
35     },
36     {
37         "id": "f83e0069.d60a28",
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=\"Get Policy Type:\"/>\n<parameter name=\"field2\" value=\"`$get-a1-policy-type-input.near-rt-ric-url`\"/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 703.0000267028809,
44         "y": 93,
45         "z": "4a015e5c.e4da6",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "3f32665d.c1c8ba",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 441,
59         "y": 231.00000095367432,
60         "z": "4a015e5c.e4da6",
61         "wires": [
62             [
63                 "f83e0069.d60a28",
64                 "ece1263.0cc9bd8",
65                 "c4f19376.cb13b",
66                 "644e8ac.a2fb1f4",
67                 "479ab38c.15d78c"
68             ]
69         ]
70     },
71     {
72         "id": "e311365b.05491",
73         "type": "dgstart",
74         "name": "DGSTART",
75         "outputs": 1,
76         "x": 108,
77         "y": 93.00000095367432,
78         "z": "4a015e5c.e4da6",
79         "wires": [
80             [
81                 "5a3c07ae.e366b8"
82             ]
83         ]
84     },
85     {
86         "id": "ece1263.0cc9bd8",
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='getA1PolicyType executed successfully' />",
90         "comments": "",
91         "x": 740.0001068115234,
92         "y": 145.99999904632568,
93         "z": "4a015e5c.e4da6",
94         "wires": []
95     },
96     {
97         "id": "c4f19376.cb13b",
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": 740,
104         "y": 199.00000095367432,
105         "z": "4a015e5c.e4da6",
106         "wires": [
107             []
108         ]
109     },
110     {
111         "id": "479ab38c.15d78c",
112         "type": "block",
113         "name": "A1 Mediator RestAPI Invocation",
114         "xml": "<block atomic='true'>",
115         "atomic": "true",
116         "comments": "",
117         "outputs": 1,
118         "x": 764.0001525878906,
119         "y": 284.99999475479126,
120         "z": "4a015e5c.e4da6",
121         "wires": [
122             [
123                 "72ae0a37.799b94",
124                 "56399f4b.cae578",
125                 "40012c04.89442c"
126             ]
127         ]
128     },
129     {
130         "id": "72ae0a37.799b94",
131         "type": "set",
132         "name": "set tmp variables for A1 Mediator REST API call",
133         "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-url\" value=\"`$get-a1-policy-type-input.near-rt-ric-url`\"/>",
134         "comments": "",
135         "x": 1214.00146484375,
136         "y": 217.88914251327515,
137         "z": "4a015e5c.e4da6",
138         "wires": []
139     },
140     {
141         "id": "56399f4b.cae578",
142         "type": "execute",
143         "name": "Get Policy Types",
144         "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=\"GET\"/>\n<parameter name=\"responsePrefix\" value=\"a1MediatorRsp\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='accept' value='application/json' />\n<parameter name=\"convertResponse\" value=\"true\"/>",
145         "comments": "",
146         "outputs": 1,
147         "x": 1021.000602722168,
148         "y": 346.010377407074,
149         "z": "4a015e5c.e4da6",
150         "wires": [
151             [
152                 "90458ba.4afa9f8",
153                 "901d354.b45acc8"
154             ]
155         ]
156     },
157     {
158         "id": "90458ba.4afa9f8",
159         "type": "failure",
160         "name": "failure",
161         "xml": "<outcome value='failure'>\n",
162         "comments": "",
163         "outputs": 1,
164         "x": 1125.0000610351562,
165         "y": 431.0001196861267,
166         "z": "4a015e5c.e4da6",
167         "wires": [
168             [
169                 "774aa433.0336b4"
170             ]
171         ]
172     },
173     {
174         "id": "901d354.b45acc8",
175         "type": "success",
176         "name": "success",
177         "xml": "<outcome value='success'>\n",
178         "comments": "",
179         "outputs": 1,
180         "x": 1257.000244140625,
181         "y": 330.0000305175781,
182         "z": "4a015e5c.e4da6",
183         "wires": [
184             [
185                 "45b9b49f.441fbc"
186             ]
187         ]
188     },
189     {
190         "id": "69c58cb1.928354",
191         "type": "returnFailure",
192         "name": "return failure",
193         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"response-code\" value=\"404\" />\n<parameter name=\"response-message\" value=\"Error in Getting A1 Policy Type. Aborting\" />",
194         "comments": "",
195         "x": 1397.0006103515625,
196         "y": 484.0001196861267,
197         "z": "4a015e5c.e4da6",
198         "wires": []
199     },
200     {
201         "id": "45b9b49f.441fbc",
202         "type": "block",
203         "name": "block",
204         "xml": "<block>\n",
205         "atomic": "false",
206         "comments": "",
207         "outputs": 1,
208         "x": 1420.9999084472656,
209         "y": 304.00007343292236,
210         "z": "4a015e5c.e4da6",
211         "wires": [
212             [
213                 "3592b1c6.fc7b6e",
214                 "6af8fc5a.b2bd5c",
215                 "2c18e75d.32018"
216             ]
217         ]
218     },
219     {
220         "id": "3592b1c6.fc7b6e",
221         "type": "record",
222         "name": "record",
223         "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 Type Information \"/>\n<parameter name=\"field2\" value=\"`$tmp.a1-mediator-restapi.httpResponse`\"/>",
224         "comments": "",
225         "outputs": 1,
226         "x": 1660,
227         "y": 212,
228         "z": "4a015e5c.e4da6",
229         "wires": [
230             []
231         ]
232     },
233     {
234         "id": "a14ef7ef.d0bba8",
235         "type": "set",
236         "name": "set",
237         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
238         "comments": "",
239         "x": 1378.75390625,
240         "y": 382.0039367675781,
241         "z": "4a015e5c.e4da6",
242         "wires": []
243     },
244     {
245         "id": "644e8ac.a2fb1f4",
246         "type": "block",
247         "name": "block",
248         "xml": "<block>\n",
249         "atomic": "false",
250         "comments": "",
251         "outputs": 1,
252         "x": 701.7539405822754,
253         "y": 407.0039954185486,
254         "z": "4a015e5c.e4da6",
255         "wires": [
256             [
257                 "17123f41.a49541"
258             ]
259         ]
260     },
261     {
262         "id": "17123f41.a49541",
263         "type": "returnSuccess",
264         "name": "return success",
265         "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 Adapter is healthy'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",
266         "comments": "",
267         "x": 916.7540321350098,
268         "y": 407.00393438339233,
269         "z": "4a015e5c.e4da6",
270         "wires": []
271     },
272     {
273         "id": "774aa433.0336b4",
274         "type": "block",
275         "name": "block",
276         "xml": "<block>\n",
277         "atomic": "false",
278         "comments": "",
279         "outputs": 1,
280         "x": 1253.0039367675781,
281         "y": 433.00391912460327,
282         "z": "4a015e5c.e4da6",
283         "wires": [
284             [
285                 "69c58cb1.928354",
286                 "a14ef7ef.d0bba8"
287             ]
288         ]
289     },
290     {
291         "id": "40012c04.89442c",
292         "type": "record",
293         "name": "record",
294         "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 A1 Adapter Get Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>",
295         "comments": "",
296         "outputs": 1,
297         "x": 1144.9999351501465,
298         "y": 268.00001335144043,
299         "z": "4a015e5c.e4da6",
300         "wires": [
301             []
302         ]
303     },
304     {
305         "id": "6af8fc5a.b2bd5c",
306         "type": "execute",
307         "name": "set",
308         "xml": "<set>\n<parameter name='responseBody' value=\"`$tmp.a1-mediator-restapi.httpResponse`\"/>",
309         "comments": "",
310         "outputs": 1,
311         "x": 1709.0001220703125,
312         "y": 282.0000104904175,
313         "z": "4a015e5c.e4da6",
314         "wires": [
315             []
316         ]
317     },
318     {
319         "id": "2c18e75d.32018",
320         "type": "execute",
321         "name": "execute",
322         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n    <parameter name=\"source\" value=\"`$a1MediatorRsp.httpResponse`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.httpResponse\"/>\n    <parameter name=\"target\" value=\"\\n\"/>\n    <parameter name=\"replacement\" value=\"\"/>",
323         "comments": "",
324         "outputs": 1,
325         "x": 1663,
326         "y": 163,
327         "z": "4a015e5c.e4da6",
328         "wires": [
329             []
330         ]
331     }
332 ]