Bug fixes in A1 Adapter DG's
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_getPolicyType.json
1 [
2     {
3         "id": "5b092693.8b31a8",
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": 184,
12         "y": 97.00000095367432,
13         "z": "b55eea1d.a59fe8",
14         "wires": [
15             [
16                 "afc11ca.4c58de"
17             ]
18         ]
19     },
20     {
21         "id": "afc11ca.4c58de",
22         "type": "method",
23         "name": "method getPolicyType",
24         "xml": "<method rpc='getPolicyType' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 247.00000762939453,
28         "y": 220.00001049041748,
29         "z": "b55eea1d.a59fe8",
30         "wires": [
31             [
32                 "3ad9b2ad.8bd4de"
33             ]
34         ]
35     },
36     {
37         "id": "6646c270.0174cc",
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 from Near RT RIC ID\"/>\n<parameter name=\"field2\" value=\"`$get-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$get-policy-type-input.policy-type-id`\"/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 712.0000267028809,
44         "y": 33,
45         "z": "b55eea1d.a59fe8",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "3ad9b2ad.8bd4de",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 450,
59         "y": 171.00000095367432,
60         "z": "b55eea1d.a59fe8",
61         "wires": [
62             [
63                 "6646c270.0174cc",
64                 "1372436.3cfc4bd",
65                 "48c86cd1.d4ec04",
66                 "7589e079.778f",
67                 "610eb9a7.c191a8"
68             ]
69         ]
70     },
71     {
72         "id": "217182fc.bc476e",
73         "type": "dgstart",
74         "name": "DGSTART",
75         "outputs": 1,
76         "x": 117,
77         "y": 33.000000953674316,
78         "z": "b55eea1d.a59fe8",
79         "wires": [
80             [
81                 "5b092693.8b31a8"
82             ]
83         ]
84     },
85     {
86         "id": "1372436.3cfc4bd",
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='getPolicyTypes executed successfully' />",
90         "comments": "",
91         "x": 749.0001068115234,
92         "y": 85.99999904632568,
93         "z": "b55eea1d.a59fe8",
94         "wires": []
95     },
96     {
97         "id": "48c86cd1.d4ec04",
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": 749,
104         "y": 139.00000095367432,
105         "z": "b55eea1d.a59fe8",
106         "wires": [
107             []
108         ]
109     },
110     {
111         "id": "7589e079.778f",
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": 699,
118         "y": 195.00000095367432,
119         "z": "b55eea1d.a59fe8",
120         "wires": [
121             [
122                 "4960c05e.4a48e",
123                 "9d487d40.76962"
124             ]
125         ]
126     },
127     {
128         "id": "9d487d40.76962",
129         "type": "outcome",
130         "name": "Deployed",
131         "xml": "<outcome value='true'>\n",
132         "comments": "",
133         "outputs": 1,
134         "x": 983.0000457763672,
135         "y": 55.00006628036499,
136         "z": "b55eea1d.a59fe8",
137         "wires": [
138             [
139                 "fae15a24.468558"
140             ]
141         ]
142     },
143     {
144         "id": "fae15a24.468558",
145         "type": "block",
146         "name": "block : atomic",
147         "xml": "<block atomic='true'>",
148         "atomic": "true",
149         "comments": "",
150         "outputs": 1,
151         "x": 960.0000953674316,
152         "y": 201.00001859664917,
153         "z": "b55eea1d.a59fe8",
154         "wires": [
155             [
156                 "8adeeb48.5c34c8"
157             ]
158         ]
159     },
160     {
161         "id": "4960c05e.4a48e",
162         "type": "outcome",
163         "name": "Not Deployed",
164         "xml": "<outcome value='false'>\n",
165         "comments": "",
166         "outputs": 1,
167         "x": 936.0000686645508,
168         "y": 490.0000624656677,
169         "z": "b55eea1d.a59fe8",
170         "wires": [
171             [
172                 "cafd16f3.2ead98"
173             ]
174         ]
175     },
176     {
177         "id": "cafd16f3.2ead98",
178         "type": "block",
179         "name": "block",
180         "xml": "<block>\n",
181         "atomic": "false",
182         "comments": "",
183         "outputs": 1,
184         "x": 1151.0001068115234,
185         "y": 619.0000152587891,
186         "z": "b55eea1d.a59fe8",
187         "wires": [
188             [
189                 "e3d060c0.b81ec",
190                 "944ee6aa.e0ceb8",
191                 "77b3dd76.a3cb44"
192             ]
193         ]
194     },
195     {
196         "id": "e3d060c0.b81ec",
197         "type": "returnFailure",
198         "name": "return failure",
199         "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 in Getting A1 Policy Type. Aborting\" />",
200         "comments": "",
201         "x": 1275.9998626708984,
202         "y": 699.9999997615814,
203         "z": "b55eea1d.a59fe8",
204         "wires": []
205     },
206     {
207         "id": "8adeeb48.5c34c8",
208         "type": "block",
209         "name": "A1 Mediator RestAPI Invocation",
210         "xml": "<block atomic='true'>",
211         "atomic": "true",
212         "comments": "",
213         "outputs": 1,
214         "x": 1154.0001068115234,
215         "y": 312.0000054240227,
216         "z": "b55eea1d.a59fe8",
217         "wires": [
218             [
219                 "38afaf12.aee1f",
220                 "3a82d4a7.de542c",
221                 "c33b0782.69bf48",
222                 "77404dcb.5cb384",
223                 "de061428.e131a8"
224             ]
225         ]
226     },
227     {
228         "id": "3a82d4a7.de542c",
229         "type": "set",
230         "name": "set tmp variables for A1 Mediator REST API call",
231         "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$get-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$get-policy-type-input.policy-type-id`\"/>",
232         "comments": "",
233         "x": 1489.0014953613281,
234         "y": 151.88913679122925,
235         "z": "b55eea1d.a59fe8",
236         "wires": []
237     },
238     {
239         "id": "38afaf12.aee1f",
240         "type": "record",
241         "name": "record",
242         "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-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.restapi.policytype-url`\"/>",
243         "comments": "",
244         "outputs": 1,
245         "x": 1418.0001220703125,
246         "y": 305,
247         "z": "b55eea1d.a59fe8",
248         "wires": [
249             []
250         ]
251     },
252     {
253         "id": "c33b0782.69bf48",
254         "type": "execute",
255         "name": "Get Policy Types",
256         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"restapiUrl\" value=\"`$prop.a1Mediator.url + '/' + $tmp.restapi.policytype-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\"/>",
257         "comments": "",
258         "outputs": 1,
259         "x": 1443.0006065368652,
260         "y": 375.01036834716797,
261         "z": "b55eea1d.a59fe8",
262         "wires": [
263             [
264                 "e4055a3f.3f1948",
265                 "d16bd1ec.d9d41"
266             ]
267         ]
268     },
269     {
270         "id": "e4055a3f.3f1948",
271         "type": "failure",
272         "name": "failure",
273         "xml": "<outcome value='failure'>\n",
274         "comments": "",
275         "outputs": 1,
276         "x": 1407.0000305175781,
277         "y": 463.00011444091797,
278         "z": "b55eea1d.a59fe8",
279         "wires": [
280             [
281                 "75a0dbe4.4e34d4"
282             ]
283         ]
284     },
285     {
286         "id": "d16bd1ec.d9d41",
287         "type": "success",
288         "name": "success",
289         "xml": "<outcome value='success'>\n",
290         "comments": "",
291         "outputs": 1,
292         "x": 1651.0002746582031,
293         "y": 334.0000228881836,
294         "z": "b55eea1d.a59fe8",
295         "wires": [
296             [
297                 "670e82ec.e25a0c"
298             ]
299         ]
300     },
301     {
302         "id": "c041efea.9ebb8",
303         "type": "returnFailure",
304         "name": "return failure",
305         "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\" />",
306         "comments": "",
307         "x": 1567.0006103515625,
308         "y": 570.0000839233398,
309         "z": "b55eea1d.a59fe8",
310         "wires": []
311     },
312     {
313         "id": "670e82ec.e25a0c",
314         "type": "block",
315         "name": "block",
316         "xml": "<block>\n",
317         "atomic": "false",
318         "comments": "",
319         "outputs": 1,
320         "x": 1800.9998798370361,
321         "y": 298.00005292892456,
322         "z": "b55eea1d.a59fe8",
323         "wires": [
324             [
325                 "a67a8a02.c4eee8",
326                 "ae1fa477.a961e8",
327                 "4e22b738.909c78",
328                 "d3650671.cbdc18"
329             ]
330         ]
331     },
332     {
333         "id": "a67a8a02.c4eee8",
334         "type": "record",
335         "name": "record",
336         "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=\"`$a1MediatorRsp.httpResponse`\"/>",
337         "comments": "",
338         "outputs": 1,
339         "x": 1991,
340         "y": 279,
341         "z": "b55eea1d.a59fe8",
342         "wires": [
343             []
344         ]
345     },
346     {
347         "id": "944ee6aa.e0ceb8",
348         "type": "block",
349         "name": "DMAAP Reponse Publish",
350         "xml": "<block atomic='true'>",
351         "atomic": "true",
352         "comments": "",
353         "outputs": 1,
354         "x": 1937.0001220703125,
355         "y": 667.0001525878906,
356         "z": "b55eea1d.a59fe8",
357         "wires": [
358             [
359                 "fc69fb2.0d81f08",
360                 "4306b6e3.228028",
361                 "7c10f260.44e35c"
362             ]
363         ]
364     },
365     {
366         "id": "4306b6e3.228028",
367         "type": "execute",
368         "name": "execute DmaapMsg",
369         "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' />",
370         "comments": "",
371         "outputs": 1,
372         "x": 2286.0003204345703,
373         "y": 844.9995572566986,
374         "z": "b55eea1d.a59fe8",
375         "wires": [
376             [
377                 "a20937dd.f06898",
378                 "afcdec04.54575"
379             ]
380         ]
381     },
382     {
383         "id": "fc69fb2.0d81f08",
384         "type": "set",
385         "name": "set",
386         "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='getPolicyType'/>\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.a1-mediator-restapi.payload`' />",
387         "comments": "",
388         "x": 2276.6669921875,
389         "y": 637.0001220703125,
390         "z": "b55eea1d.a59fe8",
391         "wires": []
392     },
393     {
394         "id": "a20937dd.f06898",
395         "type": "failure",
396         "name": "failure",
397         "xml": "<outcome value='failure'>\n",
398         "comments": "",
399         "outputs": 1,
400         "x": 2501.5002059936523,
401         "y": 767.9168610572815,
402         "z": "b55eea1d.a59fe8",
403         "wires": [
404             [
405                 "6180ced9.26a6c"
406             ]
407         ]
408     },
409     {
410         "id": "afcdec04.54575",
411         "type": "success",
412         "name": "success",
413         "xml": "<outcome value='success'>\n",
414         "comments": "",
415         "outputs": 1,
416         "x": 2505.5001258850098,
417         "y": 906.9167037010193,
418         "z": "b55eea1d.a59fe8",
419         "wires": [
420             [
421                 "e35e575c.da5738"
422             ]
423         ]
424     },
425     {
426         "id": "6180ced9.26a6c",
427         "type": "block",
428         "name": "block",
429         "xml": "<block>\n",
430         "atomic": "false",
431         "comments": "",
432         "outputs": 1,
433         "x": 2661.5000400543213,
434         "y": 769.9168620109558,
435         "z": "b55eea1d.a59fe8",
436         "wires": [
437             [
438                 "2c8065c6.6dbfda"
439             ]
440         ]
441     },
442     {
443         "id": "2c8065c6.6dbfda",
444         "type": "returnFailure",
445         "name": "return failure",
446         "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. \" />",
447         "comments": "",
448         "x": 2843.499771118164,
449         "y": 760.916937828064,
450         "z": "b55eea1d.a59fe8",
451         "wires": []
452     },
453     {
454         "id": "e35e575c.da5738",
455         "type": "block",
456         "name": "block",
457         "xml": "<block>\n",
458         "atomic": "false",
459         "comments": "",
460         "outputs": 1,
461         "x": 2688.4997692108154,
462         "y": 899.9168124198914,
463         "z": "b55eea1d.a59fe8",
464         "wires": [
465             [
466                 "b0aef6ff.309868"
467             ]
468         ]
469     },
470     {
471         "id": "b0aef6ff.309868",
472         "type": "record",
473         "name": "record",
474         "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 \"/>",
475         "comments": "",
476         "outputs": 1,
477         "x": 2874.4999237060547,
478         "y": 887.9171361923218,
479         "z": "b55eea1d.a59fe8",
480         "wires": [
481             []
482         ]
483     },
484     {
485         "id": "7c10f260.44e35c",
486         "type": "record",
487         "name": "record",
488         "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`\" />",
489         "comments": "",
490         "outputs": 1,
491         "x": 2287.500244140625,
492         "y": 727.455078125,
493         "z": "b55eea1d.a59fe8",
494         "wires": [
495             []
496         ]
497     },
498     {
499         "id": "77b3dd76.a3cb44",
500         "type": "set",
501         "name": "set",
502         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='A1 Mediator Not Deployed'/>\n",
503         "comments": "",
504         "x": 1354.0002212524414,
505         "y": 553.0000228881836,
506         "z": "b55eea1d.a59fe8",
507         "wires": []
508     },
509     {
510         "id": "c52c6d9d.59628",
511         "type": "set",
512         "name": "set",
513         "xml": "<set>\n<parameter name='response-code' value='500'/>\n<parameter name='response-message' value='Seems A1 Mediator Not Healthy'/>\n",
514         "comments": "",
515         "x": 1730.7539443969727,
516         "y": 403.00392150878906,
517         "z": "b55eea1d.a59fe8",
518         "wires": []
519     },
520     {
521         "id": "610eb9a7.c191a8",
522         "type": "block",
523         "name": "block",
524         "xml": "<block>\n",
525         "atomic": "false",
526         "comments": "",
527         "outputs": 1,
528         "x": 692.7538948059082,
529         "y": 809.0039367675781,
530         "z": "b55eea1d.a59fe8",
531         "wires": [
532             [
533                 "e54fca82.f54998",
534                 "944ee6aa.e0ceb8"
535             ]
536         ]
537     },
538     {
539         "id": "e54fca82.f54998",
540         "type": "returnSuccess",
541         "name": "return success",
542         "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",
543         "comments": "",
544         "x": 842.7539386749268,
545         "y": 891.00390625,
546         "z": "b55eea1d.a59fe8",
547         "wires": []
548     },
549     {
550         "id": "75a0dbe4.4e34d4",
551         "type": "block",
552         "name": "block",
553         "xml": "<block>\n",
554         "atomic": "false",
555         "comments": "",
556         "outputs": 1,
557         "x": 1555.0039405822754,
558         "y": 469.00392866134644,
559         "z": "b55eea1d.a59fe8",
560         "wires": [
561             [
562                 "c52c6d9d.59628",
563                 "944ee6aa.e0ceb8",
564                 "c041efea.9ebb8"
565             ]
566         ]
567     },
568     {
569         "id": "e78926ee.e57698",
570         "type": "set",
571         "name": "set tmp variables for input RPC parms",
572         "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$create-policy-type-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$create-policy-type-input.policy-type-id`\"/>\n<parameter name=\"tmp.name\" value=\"`$create-policy-type-input.name`\"/>\n<parameter name=\"tmp.description\" value=\"`$create-policy-type-input.description`\"/>",
573         "comments": "",
574         "x": 176,
575         "y": 462.0000009536743,
576         "z": "b55eea1d.a59fe8",
577         "wires": []
578     },
579     {
580         "id": "77404dcb.5cb384",
581         "type": "execute",
582         "name": "generate A1 Mediator URL",
583         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.policytype`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.restapi.policytype-url\"/>\n    <parameter name=\"target\" value=\"{policy_type_id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.policy-type-id`\"/>",
584         "comments": "",
585         "outputs": 1,
586         "x": 1483.9994506835938,
587         "y": 251.12139892578125,
588         "z": "b55eea1d.a59fe8",
589         "wires": [
590             []
591         ]
592     },
593     {
594         "id": "4ee7bbbd.0e4a04",
595         "type": "record",
596         "name": "record",
597         "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 Create Policy Type.\"/>\n<parameter name=\"field2\" value=\"`$tmp.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$tmp.name`\"/>\n<parameter name=\"field5\" value=\"`$tmp.restapi.policytype-url`\"/>\n<parameter name=\"field6\" value=\"`$a1-mediator.restapi-payload`\"/>\n<parameter name=\"field7\" value=\"Temporary A1 Mediatory Payload\"/>\n<parameter name=\"field8\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>",
598         "comments": "",
599         "outputs": 1,
600         "x": 130.9990234375,
601         "y": 635.1109018325806,
602         "z": "b55eea1d.a59fe8",
603         "wires": [
604             []
605         ]
606     },
607     {
608         "id": "84be517a.aeb94",
609         "type": "set",
610         "name": "set A1Mediator payload manually",
611         "xml": "<set>\n<parameter name=\"tmp.a1-mediator-restapi.payload\" value='{\"blocking_rate\": 20,\"enforce\": true,\"trigger_threshold\": 10,\"window_length\": 10}'/>",
612         "comments": "",
613         "x": 177.9990234375,
614         "y": 578.1109018325806,
615         "z": "b55eea1d.a59fe8",
616         "wires": []
617     },
618     {
619         "id": "de061428.e131a8",
620         "type": "record",
621         "name": "record",
622         "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-id`\"/>\n<parameter name=\"field3\" value=\"`$tmp.policy-type-id`\"/>",
623         "comments": "",
624         "outputs": 1,
625         "x": 1419.9999656677246,
626         "y": 202.00000762939453,
627         "z": "b55eea1d.a59fe8",
628         "wires": [
629             []
630         ]
631     },
632     {
633         "id": "347044de.5be97c",
634         "type": "execute",
635         "name": "Object to string - ctxSetAttribute",
636         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='ctxSetAttribute'>\n\t<parameter name='object' value=\t\"`$a1MediatorRsp.httpResponse`\" />\n\t<parameter name='key' value='a1MediatorRsp.unescaped.httpResponse' />",
637         "comments": "",
638         "outputs": 1,
639         "x": 2524,
640         "y": 235,
641         "z": "b55eea1d.a59fe8",
642         "wires": [
643             []
644         ]
645     },
646     {
647         "id": "ae1fa477.a961e8",
648         "type": "execute",
649         "name": "printContext",
650         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/opt/opendaylight/current/data/log/A1-Adapter-getPolicytype-specific-context.log' />\n\n\n",
651         "comments": "",
652         "outputs": 1,
653         "x": 1962,
654         "y": 522,
655         "z": "b55eea1d.a59fe8",
656         "wires": [
657             []
658         ]
659     },
660     {
661         "id": "dc58bba7.2a8c48",
662         "type": "execute",
663         "name": "Unescape http response",
664         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='unescapeJsonString'>\n\t<parameter name='source' value=\t\"`$a1MediatorRsp.httpResponse`\" />\n\t<parameter name='target' value='a1MediatorRsp.unescaped.httpResponse' />",
665         "comments": "",
666         "outputs": 1,
667         "x": 2541,
668         "y": 297,
669         "z": "b55eea1d.a59fe8",
670         "wires": [
671             []
672         ]
673     },
674     {
675         "id": "178332cc.70a4dd",
676         "type": "execute",
677         "name": "execute TemplateNode",
678         "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.template.TemplateNode\" method=\"evaluateTemplate\" >\n    <parameter name='templatePath' value='a1Mediator-get-policy.vtl' />\n    <parameter name='output' value='policy' />\n    <parameter name='prefix' value='a1-mediator' />",
679         "comments": "",
680         "outputs": 1,
681         "x": 2061,
682         "y": 341,
683         "z": "b55eea1d.a59fe8",
684         "wires": [
685             [
686                 "71224d76.822194"
687             ]
688         ]
689     },
690     {
691         "id": "71224d76.822194",
692         "type": "success",
693         "name": "success",
694         "xml": "<outcome value='success'>\n",
695         "comments": "",
696         "outputs": 1,
697         "x": 2283,
698         "y": 348,
699         "z": "b55eea1d.a59fe8",
700         "wires": [
701             [
702                 "651f0c08.1762d4"
703             ]
704         ]
705     },
706     {
707         "id": "651f0c08.1762d4",
708         "type": "block",
709         "name": "block : atomic",
710         "xml": "<block atomic='true'>",
711         "atomic": "true",
712         "comments": "",
713         "outputs": 1,
714         "x": 2442,
715         "y": 384,
716         "z": "b55eea1d.a59fe8",
717         "wires": [
718             [
719                 "410a16ab.2db198"
720             ]
721         ]
722     },
723     {
724         "id": "410a16ab.2db198",
725         "type": "record",
726         "name": "record",
727         "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=\"A1 Policy Info: a1-mediator.policy\"/>\n<parameter name='field3' value='`$a1-mediator.policy`' />",
728         "comments": "",
729         "outputs": 1,
730         "x": 2629,
731         "y": 400,
732         "z": "b55eea1d.a59fe8",
733         "wires": [
734             []
735         ]
736     },
737     {
738         "id": "568eaf0f.6c1b8",
739         "type": "execute",
740         "name": "execute jsonStringToCtx",
741         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='a1MediatorRsp.httpResponse' />\n\t<parameter name='outputPath' value='a1MediatorgetPolicyType' />\n\t<parameter name='isEscaped' value='false' />",
742         "comments": "",
743         "outputs": 1,
744         "x": 2039,
745         "y": 199,
746         "z": "b55eea1d.a59fe8",
747         "wires": [
748             []
749         ]
750     },
751     {
752         "id": "4e22b738.909c78",
753         "type": "execute",
754         "name": "remove new lines",
755         "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.payload\"/>\n    <parameter name=\"target\" value=\"\\n\"/>\n    <parameter name=\"replacement\" value=\"\"/>\n",
756         "comments": "",
757         "outputs": 1,
758         "x": 2055,
759         "y": 398,
760         "z": "b55eea1d.a59fe8",
761         "wires": [
762             [
763                 "858d973a.bd78e8",
764                 "2a34ede9.f48572"
765             ]
766         ]
767     },
768     {
769         "id": "858d973a.bd78e8",
770         "type": "success",
771         "name": "success",
772         "xml": "<outcome value='success'>\n",
773         "comments": "",
774         "outputs": 1,
775         "x": 2550.5001068115234,
776         "y": 477.0000033378601,
777         "z": "b55eea1d.a59fe8",
778         "wires": [
779             [
780                 "416d5516.42b47c"
781             ]
782         ]
783     },
784     {
785         "id": "416d5516.42b47c",
786         "type": "block",
787         "name": "block : atomic",
788         "xml": "<block atomic='true'>",
789         "atomic": "true",
790         "comments": "",
791         "outputs": 1,
792         "x": 2685.500259399414,
793         "y": 547.0000357627869,
794         "z": "b55eea1d.a59fe8",
795         "wires": [
796             [
797                 "9fd68ab6.cc7f68"
798             ]
799         ]
800     },
801     {
802         "id": "9fd68ab6.cc7f68",
803         "type": "record",
804         "name": "record",
805         "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=\"Redndred template with lines removed \\r\"/>\n<parameter name='field3' value='`$tmp.a1-mediator-restapi.payload`' />",
806         "comments": "",
807         "outputs": 1,
808         "x": 2757.500198364258,
809         "y": 465.9999976158142,
810         "z": "b55eea1d.a59fe8",
811         "wires": [
812             []
813         ]
814     },
815     {
816         "id": "2a34ede9.f48572",
817         "type": "failure",
818         "name": "failure",
819         "xml": "<outcome value='failure'>\n",
820         "comments": "",
821         "outputs": 1,
822         "x": 2560.5000762939453,
823         "y": 637.0000382959843,
824         "z": "b55eea1d.a59fe8",
825         "wires": [
826             [
827                 "c19e3ee9.36685"
828             ]
829         ]
830     },
831     {
832         "id": "c19e3ee9.36685",
833         "type": "block",
834         "name": "block",
835         "xml": "<block>\n",
836         "atomic": "false",
837         "comments": "",
838         "outputs": 1,
839         "x": 2713.4999237060547,
840         "y": 613.0000309944153,
841         "z": "b55eea1d.a59fe8",
842         "wires": [
843             []
844         ]
845     },
846     {
847         "id": "d3650671.cbdc18",
848         "type": "execute",
849         "name": "remove tabs",
850         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replaceAll' >\n    <parameter name=\"source\" value=\"`$tmp.a1-mediator-restapi.payload`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.a1-mediator-restapi.payload\"/>\n    <parameter name=\"target\" value=\"\\t\"/>\n    <parameter name=\"replacement\" value=\"\"/>",
851         "comments": "",
852         "outputs": 1,
853         "x": 2033,
854         "y": 470,
855         "z": "b55eea1d.a59fe8",
856         "wires": [
857             []
858         ]
859     }
860 ]