fix odl patches
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_putA1Policy.json
1 [
2     {
3         "id": "270a5aa5.bc52d6",
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": 171,
12         "y": 150,
13         "z": "33919dc9.0e17ba",
14         "wires": [
15             [
16                 "187cb7f8.135d08"
17             ]
18         ]
19     },
20     {
21         "id": "187cb7f8.135d08",
22         "type": "method",
23         "name": "method putA1Policy",
24         "xml": "<method rpc='putA1Policy' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 158,
28         "y": 219,
29         "z": "33919dc9.0e17ba",
30         "wires": [
31             [
32                 "60165fbc.5b22d8"
33             ]
34         ]
35     },
36     {
37         "id": "ca1b73bb.bd73a",
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": 472,
44         "y": 187,
45         "z": "33919dc9.0e17ba",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "60165fbc.5b22d8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 222,
59         "y": 286,
60         "z": "33919dc9.0e17ba",
61         "wires": [
62             [
63                 "ca1b73bb.bd73a",
64                 "3bda5968.b55f7e",
65                 "a7fa8c3e.f91198",
66                 "d671108f.2dd19"
67             ]
68         ]
69     },
70     {
71         "id": "86499c8c.9221c",
72         "type": "dgstart",
73         "name": "DGSTART",
74         "outputs": 1,
75         "x": 99,
76         "y": 88,
77         "z": "33919dc9.0e17ba",
78         "wires": [
79             [
80                 "270a5aa5.bc52d6"
81             ]
82         ]
83     },
84     {
85         "id": "3bda5968.b55f7e",
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": 506,
92         "y": 285,
93         "z": "33919dc9.0e17ba",
94         "wires": [
95             []
96         ]
97     },
98     {
99         "id": "f71250c1.d2e79",
100         "type": "failure",
101         "name": "failure",
102         "xml": "<outcome value='failure'>\n",
103         "comments": "",
104         "outputs": 1,
105         "x": 988.0001220703125,
106         "y": 363.00006103515625,
107         "z": "33919dc9.0e17ba",
108         "wires": [
109             [
110                 "424bcc5a.68059c"
111             ]
112         ]
113     },
114     {
115         "id": "678803c.a1c0efc",
116         "type": "success",
117         "name": "success",
118         "xml": "<outcome value='success'>\n",
119         "comments": "",
120         "outputs": 1,
121         "x": 995.0003051757812,
122         "y": 453.0000457763672,
123         "z": "33919dc9.0e17ba",
124         "wires": [
125             [
126                 "d61f47fe.10e5e8"
127             ]
128         ]
129     },
130     {
131         "id": "d61f47fe.10e5e8",
132         "type": "block",
133         "name": "block",
134         "xml": "<block>\n",
135         "atomic": "false",
136         "comments": "",
137         "outputs": 1,
138         "x": 1136.9999389648438,
139         "y": 449.00006103515625,
140         "z": "33919dc9.0e17ba",
141         "wires": [
142             [
143                 "44bf0d67.60023c"
144             ]
145         ]
146     },
147     {
148         "id": "b1b2cbaf.574838",
149         "type": "set",
150         "name": "set tmp variables for input RPC parms",
151         "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`\"/>",
152         "comments": "",
153         "x": 884.0010375976562,
154         "y": 239.88909912109375,
155         "z": "33919dc9.0e17ba",
156         "wires": []
157     },
158     {
159         "id": "1fe61572.90f523",
160         "type": "execute",
161         "name": "Put A1 Policy",
162         "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",
163         "comments": "",
164         "outputs": 1,
165         "x": 811.00048828125,
166         "y": 411.0103759765625,
167         "z": "33919dc9.0e17ba",
168         "wires": [
169             [
170                 "f71250c1.d2e79",
171                 "678803c.a1c0efc"
172             ]
173         ]
174     },
175     {
176         "id": "d671108f.2dd19",
177         "type": "block",
178         "name": "A1 Mediator RestAPI Invocation",
179         "xml": "<block atomic='true'>",
180         "atomic": "true",
181         "comments": "",
182         "outputs": 1,
183         "x": 542.0000305175781,
184         "y": 350.00006103515625,
185         "z": "33919dc9.0e17ba",
186         "wires": [
187             [
188                 "8d62fd00.aa56e",
189                 "b1b2cbaf.574838",
190                 "1fe61572.90f523"
191             ]
192         ]
193     },
194     {
195         "id": "8d62fd00.aa56e",
196         "type": "record",
197         "name": "record",
198         "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`\"/>",
199         "comments": "",
200         "outputs": 1,
201         "x": 807.0000610351562,
202         "y": 335,
203         "z": "33919dc9.0e17ba",
204         "wires": [
205             []
206         ]
207     },
208     {
209         "id": "44bf0d67.60023c",
210         "type": "record",
211         "name": "record",
212         "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.\"/>",
213         "comments": "",
214         "outputs": 1,
215         "x": 1293,
216         "y": 448.00006103515625,
217         "z": "33919dc9.0e17ba",
218         "wires": [
219             []
220         ]
221     },
222     {
223         "id": "a0360147.468f3",
224         "type": "returnFailure",
225         "name": "return failure",
226         "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 creating A1 Policy. Aborting A1 Policy creation\" />",
227         "comments": "",
228         "x": 1286,
229         "y": 401,
230         "z": "33919dc9.0e17ba",
231         "wires": []
232     },
233     {
234         "id": "a7fa8c3e.f91198",
235         "type": "set",
236         "name": "set default status value",
237         "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='Put A1 Policy executed successfully' />",
238         "comments": "",
239         "x": 517,
240         "y": 240,
241         "z": "33919dc9.0e17ba",
242         "wires": []
243     },
244     {
245         "id": "424bcc5a.68059c",
246         "type": "block",
247         "name": "block",
248         "xml": "<block>\n",
249         "atomic": "false",
250         "comments": "",
251         "outputs": 1,
252         "x": 1124,
253         "y": 361,
254         "z": "33919dc9.0e17ba",
255         "wires": [
256             [
257                 "b8ca1bb9.7870e",
258                 "a0360147.468f3"
259             ]
260         ]
261     },
262     {
263         "id": "b8ca1bb9.7870e",
264         "type": "set",
265         "name": "set",
266         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
267         "comments": "",
268         "x": 1268,
269         "y": 307,
270         "z": "33919dc9.0e17ba",
271         "wires": []
272     }
273 ]