fix odl patches
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_deleteA1Policy.json
1 [
2     {
3         "id": "7c435ae3.69565c",
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": 188,
12         "y": 153,
13         "z": "cb244f73.c06648",
14         "wires": [
15             [
16                 "710b1a71.cbae84"
17             ]
18         ]
19     },
20     {
21         "id": "710b1a71.cbae84",
22         "type": "method",
23         "name": "method deleteA1Policy",
24         "xml": "<method rpc='deleteA1Policy' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 248,
28         "y": 273,
29         "z": "cb244f73.c06648",
30         "wires": [
31             [
32                 "4378a18e.7f739"
33             ]
34         ]
35     },
36     {
37         "id": "6ce20bdf.ad9a1c",
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=\"Delete Policy:\"/>\n<parameter name=\"field2\" value=\"`$delete-a1-policy-input.near-rt-ric-url`\"/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 712,
44         "y": 87,
45         "z": "cb244f73.c06648",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "4378a18e.7f739",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 453,
59         "y": 227,
60         "z": "cb244f73.c06648",
61         "wires": [
62             [
63                 "6ce20bdf.ad9a1c",
64                 "e5238148.fd374",
65                 "bdf5754e.9b53f8",
66                 "7e804e03.9c90b",
67                 "fb64d04f.8f7d68"
68             ]
69         ]
70     },
71     {
72         "id": "ee4edddb.f32858",
73         "type": "dgstart",
74         "name": "DGSTART",
75         "outputs": 1,
76         "x": 120,
77         "y": 89,
78         "z": "cb244f73.c06648",
79         "wires": [
80             [
81                 "7c435ae3.69565c"
82             ]
83         ]
84     },
85     {
86         "id": "e5238148.fd374",
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='deletePolicy executed successfully' />",
90         "comments": "",
91         "x": 753.0000610351562,
92         "y": 142,
93         "z": "cb244f73.c06648",
94         "wires": []
95     },
96     {
97         "id": "bdf5754e.9b53f8",
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": 752,
104         "y": 195,
105         "z": "cb244f73.c06648",
106         "wires": [
107             []
108         ]
109     },
110     {
111         "id": "fb64d04f.8f7d68",
112         "type": "block",
113         "name": "A1 Mediator RestAPI Invocation",
114         "xml": "<block atomic='true'>",
115         "atomic": "true",
116         "comments": "",
117         "outputs": 1,
118         "x": 782.0001220703125,
119         "y": 279,
120         "z": "cb244f73.c06648",
121         "wires": [
122             [
123                 "3f182409.0c3914",
124                 "e320e99b.0be3e",
125                 "a9c27d26.b87628"
126             ]
127         ]
128     },
129     {
130         "id": "e320e99b.0be3e",
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=\"`$delete-a1-policy-input.near-rt-ric-url`\"/>",
134         "comments": "",
135         "x": 1144.00146484375,
136         "y": 171.88912963867188,
137         "z": "cb244f73.c06648",
138         "wires": []
139     },
140     {
141         "id": "3f182409.0c3914",
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 Delete Policy Instance.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-url`\"/>",
145         "comments": "",
146         "outputs": 1,
147         "x": 1032.0001220703125,
148         "y": 261,
149         "z": "cb244f73.c06648",
150         "wires": [
151             []
152         ]
153     },
154     {
155         "id": "a9c27d26.b87628",
156         "type": "execute",
157         "name": "Delete Policy Instance",
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=\"DELETE\"/>\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=\"false\"/>",
159         "comments": "",
160         "outputs": 1,
161         "x": 1077.0006103515625,
162         "y": 343.0104064941406,
163         "z": "cb244f73.c06648",
164         "wires": [
165             [
166                 "17d809ef.941376",
167                 "c9c13643.42fb78"
168             ]
169         ]
170     },
171     {
172         "id": "17d809ef.941376",
173         "type": "failure",
174         "name": "failure",
175         "xml": "<outcome value='failure'>\n",
176         "comments": "",
177         "outputs": 1,
178         "x": 1304,
179         "y": 412.0001220703125,
180         "z": "cb244f73.c06648",
181         "wires": [
182             [
183                 "8a649ed7.63deb"
184             ]
185         ]
186     },
187     {
188         "id": "c9c13643.42fb78",
189         "type": "success",
190         "name": "success",
191         "xml": "<outcome value='success'>\n",
192         "comments": "",
193         "outputs": 1,
194         "x": 1294.000244140625,
195         "y": 257.0000305175781,
196         "z": "cb244f73.c06648",
197         "wires": [
198             [
199                 "d953eb99.f4fcc"
200             ]
201         ]
202     },
203     {
204         "id": "cafd39a2.e592f",
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 Deleting A1 Policy Instance. Aborting\" />",
208         "comments": "",
209         "x": 1627.0006103515625,
210         "y": 467.00006103515625,
211         "z": "cb244f73.c06648",
212         "wires": []
213     },
214     {
215         "id": "d953eb99.f4fcc",
216         "type": "block",
217         "name": "block",
218         "xml": "<block>\n",
219         "atomic": "false",
220         "comments": "",
221         "outputs": 1,
222         "x": 1467.9998779296875,
223         "y": 257.00006103515625,
224         "z": "cb244f73.c06648",
225         "wires": [
226             [
227                 "b7919ed2.bc4b8",
228                 "76b0ec4a.812af4"
229             ]
230         ]
231     },
232     {
233         "id": "b7919ed2.bc4b8",
234         "type": "record",
235         "name": "record",
236         "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 Delete Policy Information \"/>\n<parameter name=\"field2\" value=\"`$a1MediatorRsp.httpResponse`\"/>",
237         "comments": "",
238         "outputs": 1,
239         "x": 1625,
240         "y": 203,
241         "z": "cb244f73.c06648",
242         "wires": [
243             []
244         ]
245     },
246     {
247         "id": "2d7fa547.79bee2",
248         "type": "set",
249         "name": "set",
250         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
251         "comments": "",
252         "x": 1600.75390625,
253         "y": 360.00390625,
254         "z": "cb244f73.c06648",
255         "wires": []
256     },
257     {
258         "id": "7e804e03.9c90b",
259         "type": "block",
260         "name": "block",
261         "xml": "<block>\n",
262         "atomic": "false",
263         "comments": "",
264         "outputs": 1,
265         "x": 715.75390625,
266         "y": 451.00390625,
267         "z": "cb244f73.c06648",
268         "wires": [
269             [
270                 "23ec5862.ce8f7"
271             ]
272         ]
273     },
274     {
275         "id": "23ec5862.ce8f7",
276         "type": "returnSuccess",
277         "name": "return success",
278         "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='deletePolicyInstance executed successfully'/>\n<parameter name='ack-final' value='Y'/>\n",
279         "comments": "",
280         "x": 876.7539672851562,
281         "y": 451.00396728515625,
282         "z": "cb244f73.c06648",
283         "wires": []
284     },
285     {
286         "id": "8a649ed7.63deb",
287         "type": "block",
288         "name": "block",
289         "xml": "<block>\n",
290         "atomic": "false",
291         "comments": "",
292         "outputs": 1,
293         "x": 1459.00390625,
294         "y": 411.0039367675781,
295         "z": "cb244f73.c06648",
296         "wires": [
297             [
298                 "2d7fa547.79bee2",
299                 "cafd39a2.e592f"
300             ]
301         ]
302     },
303     {
304         "id": "76b0ec4a.812af4",
305         "type": "execute",
306         "name": "set",
307         "xml": "<set>\n<parameter name='body' value='`$a1MediatorRsp.httpResponse`'/>",
308         "comments": "",
309         "outputs": 1,
310         "x": 1631,
311         "y": 307,
312         "z": "cb244f73.c06648",
313         "wires": [
314             []
315         ]
316     }
317 ]