Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_get-data-from-policy.json
1 [\r
2     {\r
3         "id": "b83fc37f.f69e88",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 160,\r
8         "y": 45,\r
9         "z": "9eef7e7e.8f1058",\r
10         "wires": [\r
11             [\r
12                 "78e991f6.6f7c58"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "1dd92dc7.5da5d2",\r
18         "type": "method",\r
19         "name": "method get-data-from-policy",\r
20         "xml": "<method rpc='get-data-from-policy' mode='sync'>\n",\r
21         "comments": "",\r
22         "outputs": 1,\r
23         "x": 750,\r
24         "y": 45,\r
25         "z": "9eef7e7e.8f1058",\r
26         "wires": [\r
27             [\r
28                 "33ec20fb.28aa18"\r
29             ]\r
30         ]\r
31     },\r
32     {\r
33         "id": "78e991f6.6f7c58",\r
34         "type": "service-logic",\r
35         "name": "GENERIC-RESOURCE-API ${project.version}",\r
36         "module": "GENERIC-RESOURCE-API",\r
37         "version": "${project.version}",\r
38         "comments": "",\r
39         "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='GENERIC-RESOURCE-API' version='${project.version}'>",\r
40         "outputs": 1,\r
41         "x": 427.9403991699219,\r
42         "y": 45.32145690917969,\r
43         "z": "9eef7e7e.8f1058",\r
44         "wires": [\r
45             [\r
46                 "1dd92dc7.5da5d2"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "cbf06f1d.725928",\r
52         "type": "comment",\r
53         "name": "Call Policy Manager getPolicy",\r
54         "info": "",\r
55         "comments": "",\r
56         "x": 314,\r
57         "y": 228,\r
58         "z": "9eef7e7e.8f1058",\r
59         "wires": []\r
60     },\r
61     {\r
62         "id": "46375ae1.7b558c",\r
63         "type": "execute",\r
64         "name": "execute RestapiCallNode",\r
65         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.pm.getpolicy.templatefile`\" />\n    <parameter name='restapiUrl' value=\"`$prop.policy-manager.url + '/pdp/api/getConfig'`\" />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='POST' />  \n    <parameter name='customHttpHeaders'\n      value=\"`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `\" />\n\t<parameter name=\"responsePrefix\" value=\"tmp.pm-response\" />",\r
66         "comments": "",\r
67         "outputs": 1,\r
68         "x": 468,\r
69         "y": 352,\r
70         "z": "9eef7e7e.8f1058",\r
71         "wires": [\r
72             [\r
73                 "a789fff2.8e6668",\r
74                 "f694d7c1.52ec1"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "19b66f4d.72dee9",\r
80         "type": "set",\r
81         "name": "set",\r
82         "xml": "<set>\n<parameter name='tmp.policy-name' value=\"`$get-data-from-policy-input.policy-instance-name`\" />\n",\r
83         "comments": "",\r
84         "x": 414,\r
85         "y": 273,\r
86         "z": "9eef7e7e.8f1058",\r
87         "wires": []\r
88     },\r
89     {\r
90         "id": "4ce19c9e.b25124",\r
91         "type": "block",\r
92         "name": "block : atomic",\r
93         "xml": "<block atomic='true'>",\r
94         "atomic": "true",\r
95         "comments": "",\r
96         "outputs": 1,\r
97         "x": 271,\r
98         "y": 271,\r
99         "z": "9eef7e7e.8f1058",\r
100         "wires": [\r
101             [\r
102                 "19b66f4d.72dee9",\r
103                 "46375ae1.7b558c",\r
104                 "ac19e1c6.8e36a8",\r
105                 "d8d1e5cb.101cc",\r
106                 "f617542d.84f16",\r
107                 "a278ba14.2107c8"\r
108             ]\r
109         ]\r
110     },\r
111     {\r
112         "id": "ac19e1c6.8e36a8",\r
113         "type": "record",\r
114         "name": "record",\r
115         "xml": "<record plugin=\"com.att.sdnctl.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: restapi-call-node Call Policy Manager getPolicy\"/>",\r
116         "comments": "",\r
117         "outputs": 1,\r
118         "x": 414,\r
119         "y": 313,\r
120         "z": "9eef7e7e.8f1058",\r
121         "wires": [\r
122             []\r
123         ]\r
124     },\r
125     {\r
126         "id": "d7e1c7cf.a18d1",\r
127         "type": "execute",\r
128         "name": "execute readProperties",\r
129         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",\r
130         "comments": "",\r
131         "outputs": 1,\r
132         "x": 977,\r
133         "y": 117,\r
134         "z": "9eef7e7e.8f1058",\r
135         "wires": [\r
136             [\r
137                 "59fd6138.91c4f8",\r
138                 "d5dccc24.0e693"\r
139             ]\r
140         ]\r
141     },\r
142     {\r
143         "id": "59fd6138.91c4f8",\r
144         "type": "success",\r
145         "name": "success",\r
146         "xml": "<outcome value='success'>\n",\r
147         "comments": "",\r
148         "outputs": 1,\r
149         "x": 1224,\r
150         "y": 95,\r
151         "z": "9eef7e7e.8f1058",\r
152         "wires": [\r
153             [\r
154                 "b5511e69.3d8618"\r
155             ]\r
156         ]\r
157     },\r
158     {\r
159         "id": "d5dccc24.0e693",\r
160         "type": "failure",\r
161         "name": "failure",\r
162         "xml": "<outcome value='failure'>\n",\r
163         "comments": "",\r
164         "outputs": 1,\r
165         "x": 1222,\r
166         "y": 136,\r
167         "z": "9eef7e7e.8f1058",\r
168         "wires": [\r
169             [\r
170                 "947a2b69.ec9398"\r
171             ]\r
172         ]\r
173     },\r
174     {\r
175         "id": "33ec20fb.28aa18",\r
176         "type": "block",\r
177         "name": "block : atomic",\r
178         "xml": "<block atomic='true'>",\r
179         "atomic": "true",\r
180         "comments": "",\r
181         "outputs": 1,\r
182         "x": 162,\r
183         "y": 85,\r
184         "z": "9eef7e7e.8f1058",\r
185         "wires": [\r
186             [\r
187                 "4ce19c9e.b25124",\r
188                 "a8f9fb15.acf4e"\r
189             ]\r
190         ]\r
191     },\r
192     {\r
193         "id": "72af1062.d19fd8",\r
194         "type": "comment",\r
195         "name": "Read properties",\r
196         "info": "",\r
197         "comments": "",\r
198         "x": 952,\r
199         "y": 70,\r
200         "z": "9eef7e7e.8f1058",\r
201         "wires": []\r
202     },\r
203     {\r
204         "id": "f3a9b2ce.918548",\r
205         "type": "comment",\r
206         "name": "Process Policy Manager response",\r
207         "info": "Use the three naming components returned from Policy Manager to build the name\n\nExtract from json response three data components:\n\n1. VNFNAME\n2. CONSTANT_TAG\n3. SEQUENCE",\r
208         "comments": "",\r
209         "x": 498,\r
210         "y": 443,\r
211         "z": "9eef7e7e.8f1058",\r
212         "wires": []\r
213     },\r
214     {\r
215         "id": "d8d1e5cb.101cc",\r
216         "type": "execute",\r
217         "name": "execute jsonStringToCtx",\r
218         "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"jsonStringToCtx\">\n\t<parameter name=\"source\" value=\"policy-config\" />\n\t<parameter name=\"outputPath\" value=\"jsonContextPrefix\" />\n\t<parameter name=\"isEscaped\" value=\"true\" />\n\n",\r
219         "comments": "",\r
220         "outputs": 1,\r
221         "x": 474,\r
222         "y": 523,\r
223         "z": "9eef7e7e.8f1058",\r
224         "wires": [\r
225             [\r
226                 "9bb879f3.58bda",\r
227                 "8ddbc03f.308d9"\r
228             ]\r
229         ]\r
230     },\r
231     {\r
232         "id": "f617542d.84f16",\r
233         "type": "record",\r
234         "name": "record",\r
235         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: call jsonStringToCtx\"/>\n<parameter name='field3' value='`$policy-config`' />",\r
236         "comments": "",\r
237         "outputs": 1,\r
238         "x": 419,\r
239         "y": 481,\r
240         "z": "9eef7e7e.8f1058",\r
241         "wires": [\r
242             []\r
243         ]\r
244     },\r
245     {\r
246         "id": "a789fff2.8e6668",\r
247         "type": "failure",\r
248         "name": "failure",\r
249         "xml": "<outcome value='failure'>\n",\r
250         "comments": "",\r
251         "outputs": 1,\r
252         "x": 671,\r
253         "y": 342,\r
254         "z": "9eef7e7e.8f1058",\r
255         "wires": [\r
256             [\r
257                 "b2b110f6.fc0288"\r
258             ]\r
259         ]\r
260     },\r
261     {\r
262         "id": "9a2680ce.7f8d88",\r
263         "type": "record",\r
264         "name": "record",\r
265         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Error calling Policy Manager getPolicy\"/>\n",\r
266         "comments": "",\r
267         "outputs": 1,\r
268         "x": 932,\r
269         "y": 303,\r
270         "z": "9eef7e7e.8f1058",\r
271         "wires": [\r
272             []\r
273         ]\r
274     },\r
275     {\r
276         "id": "f694d7c1.52ec1",\r
277         "type": "success",\r
278         "name": "success",\r
279         "xml": "<outcome value='success'>\n",\r
280         "comments": "",\r
281         "outputs": 1,\r
282         "x": 673,\r
283         "y": 384,\r
284         "z": "9eef7e7e.8f1058",\r
285         "wires": [\r
286             [\r
287                 "4b6fc822.22489"\r
288             ]\r
289         ]\r
290     },\r
291     {\r
292         "id": "f53edd55.57cb58",\r
293         "type": "record",\r
294         "name": "record",\r
295         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: getPolicy SUCCESS\"/>\n<parameter name='field3' value='`$tmp.pm-response.type`' />\n<parameter name='field4' value='`$tmp.pm-response.matchingConditions`' />\n<parameter name='field5' value='`$tmp.pm-response.config`' />\n<parameter name='field6' value='`$tmp.pm-response.response-code`' />\n<parameter name='field7' value='`$tmp.pm-response.response-message`' />",\r
296         "comments": "",\r
297         "outputs": 1,\r
298         "x": 927,\r
299         "y": 380,\r
300         "z": "9eef7e7e.8f1058",\r
301         "wires": [\r
302             []\r
303         ]\r
304     },\r
305     {\r
306         "id": "bf2f9549.b5432",\r
307         "type": "set",\r
308         "name": "set",\r
309         "xml": "<set>\n<parameter name='policy-config' value=\"`$tmp.pm-response.config`\" />\n",\r
310         "comments": "",\r
311         "x": 928,\r
312         "y": 418,\r
313         "z": "9eef7e7e.8f1058",\r
314         "wires": []\r
315     },\r
316     {\r
317         "id": "9bb879f3.58bda",\r
318         "type": "failure",\r
319         "name": "failure",\r
320         "xml": "<outcome value='failure'>\n",\r
321         "comments": "",\r
322         "outputs": 1,\r
323         "x": 671,\r
324         "y": 524,\r
325         "z": "9eef7e7e.8f1058",\r
326         "wires": [\r
327             [\r
328                 "e4a38d89.8cc9c8"\r
329             ]\r
330         ]\r
331     },\r
332     {\r
333         "id": "bb351685.940688",\r
334         "type": "record",\r
335         "name": "record",\r
336         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Error calling jsonStringToCtx\"/>\n",\r
337         "comments": "",\r
338         "outputs": 1,\r
339         "x": 925,\r
340         "y": 515,\r
341         "z": "9eef7e7e.8f1058",\r
342         "wires": [\r
343             []\r
344         ]\r
345     },\r
346     {\r
347         "id": "8ddbc03f.308d9",\r
348         "type": "success",\r
349         "name": "success",\r
350         "xml": "<outcome value='success'>\n",\r
351         "comments": "",\r
352         "outputs": 1,\r
353         "x": 491,\r
354         "y": 573,\r
355         "z": "9eef7e7e.8f1058",\r
356         "wires": [\r
357             [\r
358                 "3c75d70f.d3c808"\r
359             ]\r
360         ]\r
361     },\r
362     {\r
363         "id": "596244e1.06352c",\r
364         "type": "record",\r
365         "name": "record",\r
366         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: jsonStringToCtx SUCCESS: policyName|policy-data|\"/>\n<parameter name='field3' value='`$jsonContextPrefix.policyName`' />\n<parameter name='field4' value='`$jsonContextPrefix.content.policy-data`' />",\r
367         "comments": "",\r
368         "outputs": 1,\r
369         "x": 674,\r
370         "y": 620,\r
371         "z": "9eef7e7e.8f1058",\r
372         "wires": [\r
373             []\r
374         ]\r
375     },\r
376     {\r
377         "id": "3c75d70f.d3c808",\r
378         "type": "block",\r
379         "name": "block : atomic",\r
380         "xml": "<block atomic='true'>",\r
381         "atomic": "true",\r
382         "comments": "",\r
383         "outputs": 1,\r
384         "x": 502,\r
385         "y": 616,\r
386         "z": "9eef7e7e.8f1058",\r
387         "wires": [\r
388             [\r
389                 "596244e1.06352c",\r
390                 "dd037e4c.c7bb3",\r
391                 "5c9052.5d187fb",\r
392                 "17b1aaaa.debfa5",\r
393                 "11920eb2.868ba1"\r
394             ]\r
395         ]\r
396     },\r
397     {\r
398         "id": "6c8a4a5d.6a7de4",\r
399         "type": "returnFailure",\r
400         "name": "return failure",\r
401         "xml": "<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='get-data-from-policy: getPolicy call to Policy Manger failed' />\n",\r
402         "comments": "",\r
403         "x": 950,\r
404         "y": 341,\r
405         "z": "9eef7e7e.8f1058",\r
406         "wires": []\r
407     },\r
408     {\r
409         "id": "f2b6fd24.7801",\r
410         "type": "returnFailure",\r
411         "name": "return failure",\r
412         "xml": "<return status='failure'>\n<parameter name='error-code' value='504' />\n<parameter name='error-message' value='get-data-from-policy: failed to parse Policy Manger getPolicy response' />\n",\r
413         "comments": "",\r
414         "x": 941,\r
415         "y": 554,\r
416         "z": "9eef7e7e.8f1058",\r
417         "wires": []\r
418     },\r
419     {\r
420         "id": "b2b110f6.fc0288",\r
421         "type": "block",\r
422         "name": "block",\r
423         "xml": "<block>\n",\r
424         "atomic": "false",\r
425         "comments": "",\r
426         "outputs": 1,\r
427         "x": 798,\r
428         "y": 341,\r
429         "z": "9eef7e7e.8f1058",\r
430         "wires": [\r
431             [\r
432                 "9a2680ce.7f8d88",\r
433                 "6c8a4a5d.6a7de4"\r
434             ]\r
435         ]\r
436     },\r
437     {\r
438         "id": "e4a38d89.8cc9c8",\r
439         "type": "block",\r
440         "name": "block",\r
441         "xml": "<block>\n",\r
442         "atomic": "false",\r
443         "comments": "",\r
444         "outputs": 1,\r
445         "x": 799,\r
446         "y": 524,\r
447         "z": "9eef7e7e.8f1058",\r
448         "wires": [\r
449             [\r
450                 "bb351685.940688",\r
451                 "f2b6fd24.7801"\r
452             ]\r
453         ]\r
454     },\r
455     {\r
456         "id": "61c23f62.ad7b28",\r
457         "type": "comment",\r
458         "name": "Validate inputs",\r
459         "info": "",\r
460         "comments": "",\r
461         "x": 948,\r
462         "y": 178,\r
463         "z": "9eef7e7e.8f1058",\r
464         "wires": []\r
465     },\r
466     {\r
467         "id": "392811b2.b8197e",\r
468         "type": "switchNode",\r
469         "name": "switch input.policy-instance-name",\r
470         "xml": "<switch test='`$get-data-from-policy-input.policy-instance-name`'>\n",\r
471         "comments": "",\r
472         "outputs": 1,\r
473         "x": 1007,\r
474         "y": 226,\r
475         "z": "9eef7e7e.8f1058",\r
476         "wires": [\r
477             [\r
478                 "71c6380.f2d7cc8"\r
479             ]\r
480         ]\r
481     },\r
482     {\r
483         "id": "71c6380.f2d7cc8",\r
484         "type": "other",\r
485         "name": "Blank",\r
486         "xml": "<outcome value=''>\n",\r
487         "comments": "",\r
488         "outputs": 1,\r
489         "x": 1224,\r
490         "y": 229,\r
491         "z": "9eef7e7e.8f1058",\r
492         "wires": [\r
493             [\r
494                 "ac7758e6.06c038"\r
495             ]\r
496         ]\r
497     },\r
498     {\r
499         "id": "a8f9fb15.acf4e",\r
500         "type": "block",\r
501         "name": "block : atomic",\r
502         "xml": "<block atomic='true'>",\r
503         "atomic": "true",\r
504         "comments": "",\r
505         "outputs": 1,\r
506         "x": 270,\r
507         "y": 178,\r
508         "z": "9eef7e7e.8f1058",\r
509         "wires": [\r
510             [\r
511                 "d7e1c7cf.a18d1",\r
512                 "392811b2.b8197e"\r
513             ]\r
514         ]\r
515     },\r
516     {\r
517         "id": "d0858194.bb868",\r
518         "type": "comment",\r
519         "name": "Read properties and validate inputs",\r
520         "info": "",\r
521         "comments": "",\r
522         "x": 341,\r
523         "y": 132,\r
524         "z": "9eef7e7e.8f1058",\r
525         "wires": []\r
526     },\r
527     {\r
528         "id": "4b6fc822.22489",\r
529         "type": "block",\r
530         "name": "block",\r
531         "xml": "<block>\n",\r
532         "atomic": "false",\r
533         "comments": "",\r
534         "outputs": 1,\r
535         "x": 799,\r
536         "y": 385,\r
537         "z": "9eef7e7e.8f1058",\r
538         "wires": [\r
539             [\r
540                 "f53edd55.57cb58",\r
541                 "bf2f9549.b5432",\r
542                 "9c6a1592.fb19c8"\r
543             ]\r
544         ]\r
545     },\r
546     {\r
547         "id": "9c6a1592.fb19c8",\r
548         "type": "switchNode",\r
549         "name": "switch response-code",\r
550         "xml": "<switch test='`$tmp.pm-response.response-code`'>\n",\r
551         "comments": "",\r
552         "outputs": 1,\r
553         "x": 983,\r
554         "y": 462,\r
555         "z": "9eef7e7e.8f1058",\r
556         "wires": [\r
557             [\r
558                 "6e86997d.26955"\r
559             ]\r
560         ]\r
561     },\r
562     {\r
563         "id": "6e86997d.26955",\r
564         "type": "outcome",\r
565         "name": "500",\r
566         "xml": "<outcome value='500'>\n",\r
567         "comments": "",\r
568         "outputs": 1,\r
569         "x": 1165,\r
570         "y": 463,\r
571         "z": "9eef7e7e.8f1058",\r
572         "wires": [\r
573             [\r
574                 "659860d.dc39e2"\r
575             ]\r
576         ]\r
577     },\r
578     {\r
579         "id": "659860d.dc39e2",\r
580         "type": "block",\r
581         "name": "block",\r
582         "xml": "<block>\n",\r
583         "atomic": "false",\r
584         "comments": "",\r
585         "outputs": 1,\r
586         "x": 1168,\r
587         "y": 511,\r
588         "z": "9eef7e7e.8f1058",\r
589         "wires": [\r
590             [\r
591                 "10b87f4.b81b681",\r
592                 "cb7b17e7.127258"\r
593             ]\r
594         ]\r
595     },\r
596     {\r
597         "id": "10b87f4.b81b681",\r
598         "type": "record",\r
599         "name": "record",\r
600         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Error calling Policy Manager getPolicy\"/>\n",\r
601         "comments": "",\r
602         "outputs": 1,\r
603         "x": 1316,\r
604         "y": 489,\r
605         "z": "9eef7e7e.8f1058",\r
606         "wires": [\r
607             []\r
608         ]\r
609     },\r
610     {\r
611         "id": "cb7b17e7.127258",\r
612         "type": "returnFailure",\r
613         "name": "return failure",\r
614         "xml": "<return status='failure'>\n<parameter name='error-code' value='502' />\n<parameter name='error-message' value='get-data-from-policy: getPolicy call to Policy Manger failed' />\n",\r
615         "comments": "",\r
616         "x": 1336,\r
617         "y": 528,\r
618         "z": "9eef7e7e.8f1058",\r
619         "wires": []\r
620     },\r
621     {\r
622         "id": "b5511e69.3d8618",\r
623         "type": "block",\r
624         "name": "block : atomic",\r
625         "xml": "<block atomic='true'>",\r
626         "atomic": "true",\r
627         "comments": "",\r
628         "outputs": 1,\r
629         "x": 1380,\r
630         "y": 95,\r
631         "z": "9eef7e7e.8f1058",\r
632         "wires": [\r
633             [\r
634                 "4f062576.7b6584"\r
635             ]\r
636         ]\r
637     },\r
638     {\r
639         "id": "947a2b69.ec9398",\r
640         "type": "block",\r
641         "name": "block",\r
642         "xml": "<block>\n",\r
643         "atomic": "false",\r
644         "comments": "",\r
645         "outputs": 1,\r
646         "x": 1359,\r
647         "y": 138,\r
648         "z": "9eef7e7e.8f1058",\r
649         "wires": [\r
650             [\r
651                 "24195f46.ca98f8",\r
652                 "566a8d54.f462dc"\r
653             ]\r
654         ]\r
655     },\r
656     {\r
657         "id": "4f062576.7b6584",\r
658         "type": "GenericXML",\r
659         "name": "record",\r
660         "xml": "<record  plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: read properties file.\"/>",\r
661         "comments": "",\r
662         "outputs": 1,\r
663         "x": 1527,\r
664         "y": 95,\r
665         "z": "9eef7e7e.8f1058",\r
666         "wires": [\r
667             []\r
668         ]\r
669     },\r
670     {\r
671         "id": "24195f46.ca98f8",\r
672         "type": "GenericXML",\r
673         "name": "record",\r
674         "xml": "<record  plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: Could not read properties file.\"/>\n<parameter name=\"field3\" value='`$prop.restapi.pm.getpolicy.templatefile`'/>",\r
675         "comments": "",\r
676         "outputs": 1,\r
677         "x": 1528,\r
678         "y": 135,\r
679         "z": "9eef7e7e.8f1058",\r
680         "wires": [\r
681             []\r
682         ]\r
683     },\r
684     {\r
685         "id": "566a8d54.f462dc",\r
686         "type": "returnFailure",\r
687         "name": "return failure",\r
688         "xml": "<return status='failure'>\n<parameter name='error-code' value='501' />\n<parameter name='error-message' value='get-data-from-policy: could not read generic-resource-api properties' />\n",\r
689         "comments": "",\r
690         "x": 1547,\r
691         "y": 176,\r
692         "z": "9eef7e7e.8f1058",\r
693         "wires": []\r
694     },\r
695     {\r
696         "id": "ac7758e6.06c038",\r
697         "type": "block",\r
698         "name": "block",\r
699         "xml": "<block>\n",\r
700         "atomic": "false",\r
701         "comments": "",\r
702         "outputs": 1,\r
703         "x": 1368,\r
704         "y": 229,\r
705         "z": "9eef7e7e.8f1058",\r
706         "wires": [\r
707             [\r
708                 "d28d8a99.9ae948",\r
709                 "3c7d35d5.15560a"\r
710             ]\r
711         ]\r
712     },\r
713     {\r
714         "id": "d28d8a99.9ae948",\r
715         "type": "GenericXML",\r
716         "name": "record",\r
717         "xml": "<record  plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: input.policy-instance-name is not set\"/>",\r
718         "comments": "",\r
719         "outputs": 1,\r
720         "x": 1530,\r
721         "y": 228,\r
722         "z": "9eef7e7e.8f1058",\r
723         "wires": [\r
724             []\r
725         ]\r
726     },\r
727     {\r
728         "id": "3c7d35d5.15560a",\r
729         "type": "returnFailure",\r
730         "name": "return failure",\r
731         "xml": "<return status='failure'>\n<parameter name='error-code' value='507' />\n<parameter name='error-message' value='get-data-from-policy: input.policy-instance-name is not set' />\n",\r
732         "comments": "",\r
733         "x": 1545,\r
734         "y": 264,\r
735         "z": "9eef7e7e.8f1058",\r
736         "wires": []\r
737     },\r
738     {\r
739         "id": "925a65d4.ac3ab8",\r
740         "type": "comment",\r
741         "name": "Loop thru policy-data when it is a list",\r
742         "info": "",\r
743         "comments": "",\r
744         "x": 588,\r
745         "y": 691,\r
746         "z": "9eef7e7e.8f1058",\r
747         "wires": []\r
748     },\r
749     {\r
750         "id": "c1f590f5.8f2c5",\r
751         "type": "for",\r
752         "name": "for each policy-data element",\r
753         "xml": "<for index='policyDataIndex' start='0' end='`$jsonContextPrefix.content.policy-data_length`' >\n",\r
754         "comments": "",\r
755         "outputs": 1,\r
756         "x": 1014,\r
757         "y": 737,\r
758         "z": "9eef7e7e.8f1058",\r
759         "wires": [\r
760             [\r
761                 "e9c505d9.7641f8",\r
762                 "27b7d1c2.c574de"\r
763             ]\r
764         ]\r
765     },\r
766     {\r
767         "id": "56f2caaf.a21404",\r
768         "type": "block",\r
769         "name": "block : atomic",\r
770         "xml": "<block atomic='true'>",\r
771         "atomic": "true",\r
772         "comments": "",\r
773         "outputs": 1,\r
774         "x": 793,\r
775         "y": 737,\r
776         "z": "9eef7e7e.8f1058",\r
777         "wires": [\r
778             [\r
779                 "c1f590f5.8f2c5"\r
780             ]\r
781         ]\r
782     },\r
783     {\r
784         "id": "e9c505d9.7641f8",\r
785         "type": "record",\r
786         "name": "record",\r
787         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: policyDataIndex|nf-role|rule-1|rule-2:\"/>\n<parameter name='field3' value='`$policyDataIndex`' />\n<parameter name='field4' value='`$jsonContextPrefix.content.policy-data[$policyDataIndex].nf-role`' />\n<parameter name='field5' value='`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-1`' />\n<parameter name='field6' value='`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-2`' />",\r
788         "comments": "",\r
789         "outputs": 1,\r
790         "x": 987,\r
791         "y": 837,\r
792         "z": "9eef7e7e.8f1058",\r
793         "wires": [\r
794             []\r
795         ]\r
796     },\r
797     {\r
798         "id": "5c9052.5d187fb",\r
799         "type": "set",\r
800         "name": "set known policy-data element name and value",\r
801         "xml": "<set>\n<parameter name='get-data-from-policy-output.' value='`$jsonContextPrefix.content.policy-data.`'  />",\r
802         "comments": "",\r
803         "x": 619,\r
804         "y": 1187,\r
805         "z": "9eef7e7e.8f1058",\r
806         "wires": []\r
807     },\r
808     {\r
809         "id": "3f8ba63d.63076a",\r
810         "type": "for",\r
811         "name": "for each nested extended-params element extract name and value",\r
812         "xml": "<for index='policyDataExtendedParamsIndex' start='0' end='`$jsonContextPrefix.content.policy-data.extended-params_length`' >",\r
813         "comments": "",\r
814         "outputs": 1,\r
815         "x": 1125,\r
816         "y": 947,\r
817         "z": "9eef7e7e.8f1058",\r
818         "wires": [\r
819             [\r
820                 "46e505f4.b9ba4c",\r
821                 "f735acce.c6ff4",\r
822                 "478129ad.d071b8"\r
823             ]\r
824         ]\r
825     },\r
826     {\r
827         "id": "a2112800.e14638",\r
828         "type": "comment",\r
829         "name": "Get extended-params when policy-data is not a list",\r
830         "info": "",\r
831         "comments": "",\r
832         "x": 627,\r
833         "y": 893,\r
834         "z": "9eef7e7e.8f1058",\r
835         "wires": []\r
836     },\r
837     {\r
838         "id": "dff4e845.8c2d38",\r
839         "type": "block",\r
840         "name": "block : atomic",\r
841         "xml": "<block atomic='true'>",\r
842         "atomic": "true",\r
843         "comments": "",\r
844         "outputs": 1,\r
845         "x": 792,\r
846         "y": 947,\r
847         "z": "9eef7e7e.8f1058",\r
848         "wires": [\r
849             [\r
850                 "3f8ba63d.63076a"\r
851             ]\r
852         ]\r
853     },\r
854     {\r
855         "id": "46e505f4.b9ba4c",\r
856         "type": "set",\r
857         "name": "set name and value from extended params element",\r
858         "xml": "<set>\n<parameter name='output-param-name' value='`$jsonContextPrefix.content.policy-data.extended-params[$policyDataExtendedParamsIndex].param-name`'  />\n<parameter name='output-param-value' value='`$jsonContextPrefix.content.policy-data.extended-params[$policyDataExtendedParamsIndex].param-value`'  />",\r
859         "comments": "",\r
860         "x": 1115,\r
861         "y": 1000,\r
862         "z": "9eef7e7e.8f1058",\r
863         "wires": []\r
864     },\r
865     {\r
866         "id": "dd037e4c.c7bb3",\r
867         "type": "switchNode",\r
868         "name": "switch",\r
869         "xml": "<switch test='`$jsonContextPrefix.content.policy-data_length > 0`'>",\r
870         "comments": "",\r
871         "outputs": 1,\r
872         "x": 505,\r
873         "y": 737,\r
874         "z": "9eef7e7e.8f1058",\r
875         "wires": [\r
876             [\r
877                 "72c5a068.2a844"\r
878             ]\r
879         ]\r
880     },\r
881     {\r
882         "id": "72c5a068.2a844",\r
883         "type": "outcomeTrue",\r
884         "name": "true",\r
885         "xml": "<outcome value='true'>\n",\r
886         "comments": "",\r
887         "outputs": 1,\r
888         "x": 634,\r
889         "y": 737,\r
890         "z": "9eef7e7e.8f1058",\r
891         "wires": [\r
892             [\r
893                 "56f2caaf.a21404"\r
894             ]\r
895         ]\r
896     },\r
897     {\r
898         "id": "1414756.a77f98b",\r
899         "type": "comment",\r
900         "name": "Set known output params",\r
901         "info": "",\r
902         "comments": "",\r
903         "x": 550,\r
904         "y": 1140,\r
905         "z": "9eef7e7e.8f1058",\r
906         "wires": []\r
907     },\r
908     {\r
909         "id": "17b1aaaa.debfa5",\r
910         "type": "record",\r
911         "name": "record",\r
912         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: get-data-from-policy-output.:\"/>\n<parameter name='field3' value='`$get-data-from-policy-output.`' />",\r
913         "comments": "",\r
914         "outputs": 1,\r
915         "x": 499,\r
916         "y": 1232,\r
917         "z": "9eef7e7e.8f1058",\r
918         "wires": [\r
919             []\r
920         ]\r
921     },\r
922     {\r
923         "id": "11920eb2.868ba1",\r
924         "type": "switchNode",\r
925         "name": "switch",\r
926         "xml": "<switch test='`$jsonContextPrefix.content.policy-data.extended-params_length > 0`'>",\r
927         "comments": "",\r
928         "outputs": 1,\r
929         "x": 504,\r
930         "y": 947,\r
931         "z": "9eef7e7e.8f1058",\r
932         "wires": [\r
933             [\r
934                 "6f485d54.b981f4"\r
935             ]\r
936         ]\r
937     },\r
938     {\r
939         "id": "6f485d54.b981f4",\r
940         "type": "outcomeTrue",\r
941         "name": "true",\r
942         "xml": "<outcome value='true'>\n",\r
943         "comments": "",\r
944         "outputs": 1,\r
945         "x": 633,\r
946         "y": 947,\r
947         "z": "9eef7e7e.8f1058",\r
948         "wires": [\r
949             [\r
950                 "dff4e845.8c2d38"\r
951             ]\r
952         ]\r
953     },\r
954     {\r
955         "id": "f7e9500f.a774f",\r
956         "type": "execute",\r
957         "name": "printContext",\r
958         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='printContext' >\n<parameter name='filename' value='/var/tmp/get-data-from-policy.log' />\n",\r
959         "comments": "",\r
960         "outputs": 1,\r
961         "x": 516,\r
962         "y": 1305,\r
963         "z": "9eef7e7e.8f1058",\r
964         "wires": [\r
965             []\r
966         ]\r
967     },\r
968     {\r
969         "id": "a278ba14.2107c8",\r
970         "type": "returnSuccess",\r
971         "name": "return success",\r
972         "xml": "<return status='success'>",\r
973         "comments": "",\r
974         "x": 473,\r
975         "y": 1413,\r
976         "z": "9eef7e7e.8f1058",\r
977         "wires": []\r
978     },\r
979     {\r
980         "id": "f735acce.c6ff4",\r
981         "type": "record",\r
982         "name": "record",\r
983         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"LAINA: get-data-from-policy: policyDataExtendedParamsIndex|output-param-name|output-param-value:\"/>\n<parameter name='field3' value='`$policyDataExtendedParamsIndex`' />\n<parameter name='field4' value='`$output-param-name`' />\n<parameter name='field5' value='`$output-param-value`' />",\r
984         "comments": "",\r
985         "outputs": 1,\r
986         "x": 977,\r
987         "y": 1100,\r
988         "z": "9eef7e7e.8f1058",\r
989         "wires": [\r
990             []\r
991         ]\r
992     },\r
993     {\r
994         "id": "478129ad.d071b8",\r
995         "type": "set",\r
996         "name": "set output name and value pair from extended params",\r
997         "xml": "<set>\n<parameter name=\"`'get-data-from-policy-output.' + $output-param-name`\" value=\"`$output-param-value`\" />",\r
998         "comments": "",\r
999         "x": 1119,\r
1000         "y": 1048,\r
1001         "z": "9eef7e7e.8f1058",\r
1002         "wires": []\r
1003     },\r
1004     {\r
1005         "id": "56f0abfe.71e324",\r
1006         "type": "set",\r
1007         "name": "set output element for name and values",\r
1008         "xml": "<set>\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + '].nf-role'`\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].nf-role`' />\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + '].rule-1'`\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-1`' />\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + '].rule-2'`\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].rule-2`' />",\r
1009         "comments": "",\r
1010         "x": 1350,\r
1011         "y": 737,\r
1012         "z": "9eef7e7e.8f1058",\r
1013         "wires": []\r
1014     },\r
1015     {\r
1016         "id": "27b7d1c2.c574de",\r
1017         "type": "set",\r
1018         "name": "set known policy-data element name and value",\r
1019         "xml": "<set>\n<parameter name=\"`'get-data-from-policy-output[' + $policyDataIndex + ']'`.\" value= '`$jsonContextPrefix.content.policy-data[$policyDataIndex].`' />",\r
1020         "comments": "",\r
1021         "x": 1107,\r
1022         "y": 789,\r
1023         "z": "9eef7e7e.8f1058",\r
1024         "wires": []\r
1025     }\r
1026 ]