fix odl patches
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_getA1PolicyStatus.json
1 [
2     {
3         "id": "792b8892.64457",
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": 167,
12         "y": 179,
13         "z": "6c2cfe41.61b868",
14         "wires": [
15             [
16                 "11f7d7b8.1b7cb8"
17             ]
18         ]
19     },
20     {
21         "id": "11f7d7b8.1b7cb8",
22         "type": "method",
23         "name": "method getA1PolicyStatus",
24         "xml": "<method rpc='getA1PolicyStatus' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 226,
28         "y": 300,
29         "z": "6c2cfe41.61b868",
30         "wires": [
31             [
32                 "ea8cdc1c.7ad76"
33             ]
34         ]
35     },
36     {
37         "id": "606404ab.821cbc",
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 A1 Policy Status:\"/>\n<parameter name=\"field2\" value=\"`$get-a1-policy-status-input.near-rt-ric-url`\"/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 690,
44         "y": 114,
45         "z": "6c2cfe41.61b868",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "ea8cdc1c.7ad76",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 431,
59         "y": 254,
60         "z": "6c2cfe41.61b868",
61         "wires": [
62             [
63                 "606404ab.821cbc",
64                 "722eabeb.6d1a7c",
65                 "1786ef85.c617a8",
66                 "9795ae5f.c333",
67                 "1c69a7a7.5059e"
68             ]
69         ]
70     },
71     {
72         "id": "90a09247.4437",
73         "type": "dgstart",
74         "name": "DGSTART",
75         "outputs": 1,
76         "x": 98,
77         "y": 116,
78         "z": "6c2cfe41.61b868",
79         "wires": [
80             [
81                 "792b8892.64457"
82             ]
83         ]
84     },
85     {
86         "id": "722eabeb.6d1a7c",
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='Get A1 Policy executed successfully' />",
90         "comments": "",
91         "x": 731.0000610351562,
92         "y": 169,
93         "z": "6c2cfe41.61b868",
94         "wires": []
95     },
96     {
97         "id": "1786ef85.c617a8",
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": 730,
104         "y": 222,
105         "z": "6c2cfe41.61b868",
106         "wires": [
107             []
108         ]
109     },
110     {
111         "id": "1c69a7a7.5059e",
112         "type": "block",
113         "name": "A1 Mediator RestAPI Invocation",
114         "xml": "<block atomic='true'>",
115         "atomic": "true",
116         "comments": "",
117         "outputs": 1,
118         "x": 760.0001220703125,
119         "y": 306,
120         "z": "6c2cfe41.61b868",
121         "wires": [
122             [
123                 "350bef62.ead7a",
124                 "42b67c54.7a5fc4",
125                 "3c854250.ea03ce"
126             ]
127         ]
128     },
129     {
130         "id": "42b67c54.7a5fc4",
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-status-input.near-rt-ric-url`\"/>",
134         "comments": "",
135         "x": 1122.00146484375,
136         "y": 198.88912963867188,
137         "z": "6c2cfe41.61b868",
138         "wires": []
139     },
140     {
141         "id": "350bef62.ead7a",
142         "type": "record",
143         "name": "record",
144         "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 Status.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>",
145         "comments": "",
146         "outputs": 1,
147         "x": 1009.0001220703125,
148         "y": 289,
149         "z": "6c2cfe41.61b868",
150         "wires": [
151             []
152         ]
153     },
154     {
155         "id": "3c854250.ea03ce",
156         "type": "execute",
157         "name": "Get Policy Instance Status",
158         "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\"/>",
159         "comments": "",
160         "outputs": 1,
161         "x": 1055.0006103515625,
162         "y": 370.0104064941406,
163         "z": "6c2cfe41.61b868",
164         "wires": [
165             [
166                 "db967cfd.662b5",
167                 "f7373336.a9f2d8"
168             ]
169         ]
170     },
171     {
172         "id": "db967cfd.662b5",
173         "type": "failure",
174         "name": "failure",
175         "xml": "<outcome value='failure'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 1282,
179         "y": 439.0001220703125,
180         "z": "6c2cfe41.61b868",
181         "wires": [
182             [
183                 "e83b2b7e.0baf9"
184             ]
185         ]
186     },
187     {
188         "id": "f7373336.a9f2d8",
189         "type": "success",
190         "name": "success",
191         "xml": "<outcome value='success'>\n",
192         "comments": "",
193         "outputs": 1,
194         "x": 1273.000244140625,
195         "y": 283.0000305175781,
196         "z": "6c2cfe41.61b868",
197         "wires": [
198             [
199                 "ff2d7ebe.e41298"
200             ]
201         ]
202     },
203     {
204         "id": "9eba774e.8b338",
205         "type": "returnFailure",
206         "name": "return failure",
207         "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 Status. Aborting\" />",
208         "comments": "",
209         "x": 1605.0006103515625,
210         "y": 493.00006103515625,
211         "z": "6c2cfe41.61b868",
212         "wires": []
213     },
214     {
215         "id": "ff2d7ebe.e41298",
216         "type": "block",
217         "name": "block",
218         "xml": "<block>\n",
219         "atomic": "false",
220         "comments": "",
221         "outputs": 1,
222         "x": 1445.9998779296875,
223         "y": 284.00006103515625,
224         "z": "6c2cfe41.61b868",
225         "wires": [
226             [
227                 "a55d0be.aa42678",
228                 "73d80df5.3d29b4",
229                 "49aaac04.dffde4"
230             ]
231         ]
232     },
233     {
234         "id": "a55d0be.aa42678",
235         "type": "record",
236         "name": "record",
237         "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 Get Policy Status \"/>\n<parameter name=\"field2\" value=\"`$tmp.a1-mediator-restapi.httpResponse`\"/>",
238         "comments": "",
239         "outputs": 1,
240         "x": 1604,
241         "y": 230,
242         "z": "6c2cfe41.61b868",
243         "wires": [
244             []
245         ]
246     },
247     {
248         "id": "1979a6a.06a3759",
249         "type": "set",
250         "name": "set",
251         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
252         "comments": "",
253         "x": 1578.75390625,
254         "y": 386.00390625,
255         "z": "6c2cfe41.61b868",
256         "wires": []
257     },
258     {
259         "id": "9795ae5f.c333",
260         "type": "block",
261         "name": "block",
262         "xml": "<block>\n",
263         "atomic": "false",
264         "comments": "",
265         "outputs": 1,
266         "x": 693.75390625,
267         "y": 478.00390625,
268         "z": "6c2cfe41.61b868",
269         "wires": [
270             [
271                 "d253316a.832ce"
272             ]
273         ]
274     },
275     {
276         "id": "d253316a.832ce",
277         "type": "returnSuccess",
278         "name": "return success",
279         "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='Get Policy Status executed successfully'/>\n<parameter name='ack-final' value='Y'/>\n",
280         "comments": "",
281         "x": 854.7539672851562,
282         "y": 478.00396728515625,
283         "z": "6c2cfe41.61b868",
284         "wires": []
285     },
286     {
287         "id": "e83b2b7e.0baf9",
288         "type": "block",
289         "name": "block",
290         "xml": "<block>\n",
291         "atomic": "false",
292         "comments": "",
293         "outputs": 1,
294         "x": 1437.00390625,
295         "y": 438.0039367675781,
296         "z": "6c2cfe41.61b868",
297         "wires": [
298             [
299                 "1979a6a.06a3759",
300                 "9eba774e.8b338"
301             ]
302         ]
303     },
304     {
305         "id": "73d80df5.3d29b4",
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": 1609,
312         "y": 334,
313         "z": "6c2cfe41.61b868",
314         "wires": [
315             []
316         ]
317     },
318     {
319         "id": "49aaac04.dffde4",
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": 1602,
326         "y": 155,
327         "z": "6c2cfe41.61b868",
328         "wires": [
329             []
330         ]
331     }
332 ]