ORAN A1 Adapter DG Updates
[ccsdk/distribution.git] / platform-logic / a1Adapter-api / src / main / json / A1-ADAPTER-API_notifyPolicyEnforcementUpdate.json
1 [
2     {
3         "id": "d607a46.e92cb58",
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": 174,
12         "y": 115,
13         "z": "fcb09084.b4e08",
14         "wires": [
15             [
16                 "2e999e7.6f2df62"
17             ]
18         ]
19     },
20     {
21         "id": "2e999e7.6f2df62",
22         "type": "method",
23         "name": "method notifyPolicyEnforcementUpdate",
24         "xml": "<method rpc='notifyPolicyEnforcementUpdate' mode='sync'>\n",
25         "comments": "",
26         "outputs": 1,
27         "x": 256,
28         "y": 249,
29         "z": "fcb09084.b4e08",
30         "wires": [
31             [
32                 "5f8adea.c825d2"
33             ]
34         ]
35     },
36     {
37         "id": "f3f643f9.0b58f",
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=\"A1 Adapter - notify policy enforcement update\"/>\n<parameter name=\"field2\" value=\"`$notify-policy-enforcement-update-input.near-rt-ric-id`\"/>\n<parameter name=\"field3\" value=\"`$notify-policy-enforcement-update-input.policy-type-id`\"/>\n<parameter name=\"field4\" value=\"`$notify-policy-enforcement-update-input.policy-instance-id`\"/>\n",
41         "comments": "",
42         "outputs": 1,
43         "x": 714,
44         "y": 58,
45         "z": "fcb09084.b4e08",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "5f8adea.c825d2",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic='true'>",
55         "atomic": "true",
56         "comments": "",
57         "outputs": 1,
58         "x": 440,
59         "y": 189,
60         "z": "fcb09084.b4e08",
61         "wires": [
62             [
63                 "f3f643f9.0b58f",
64                 "1d7cdc6d.ec16a4",
65                 "fa6b1b92.347cc8",
66                 "11dff310.728f7d",
67                 "28b301ee.8e0efe",
68                 "cee75651.1a7348",
69                 "f216c1e8.790c3"
70             ]
71         ]
72     },
73     {
74         "id": "2e00adb0.ee7092",
75         "type": "dgstart",
76         "name": "DGSTART",
77         "outputs": 1,
78         "x": 107,
79         "y": 51,
80         "z": "fcb09084.b4e08",
81         "wires": [
82             [
83                 "d607a46.e92cb58"
84             ]
85         ]
86     },
87     {
88         "id": "1d7cdc6d.ec16a4",
89         "type": "set",
90         "name": "set default status value",
91         "xml": "<set>\n<parameter name='response-code' value='200' />\n<parameter name='response-message' value='Policy Enforcement Update Received' />",
92         "comments": "",
93         "x": 750,
94         "y": 105,
95         "z": "fcb09084.b4e08",
96         "wires": []
97     },
98     {
99         "id": "fa6b1b92.347cc8",
100         "type": "execute",
101         "name": "execute Properties",
102         "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",
103         "comments": "",
104         "outputs": 1,
105         "x": 736,
106         "y": 149,
107         "z": "fcb09084.b4e08",
108         "wires": [
109             []
110         ]
111     },
112     {
113         "id": "28b301ee.8e0efe",
114         "type": "record",
115         "name": "record",
116         "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=\"SNear-RT RIC ID\"/>\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.policy-instance-id`\"/>",
117         "comments": "",
118         "outputs": 1,
119         "x": 737,
120         "y": 267,
121         "z": "fcb09084.b4e08",
122         "wires": [
123             []
124         ]
125     },
126     {
127         "id": "cee75651.1a7348",
128         "type": "block",
129         "name": "DMAAP Reponse Publish",
130         "xml": "<block atomic='true'>",
131         "atomic": "true",
132         "comments": "",
133         "outputs": 1,
134         "x": 756.0001220703125,
135         "y": 342.0001220703125,
136         "z": "fcb09084.b4e08",
137         "wires": [
138             [
139                 "f50bdebd.3de09",
140                 "6575ab06.dda994",
141                 "320829fe.db34f6"
142             ]
143         ]
144     },
145     {
146         "id": "6575ab06.dda994",
147         "type": "execute",
148         "name": "execute DmaapMsg",
149         "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' />",
150         "comments": "",
151         "outputs": 1,
152         "x": 1041.0003204345703,
153         "y": 486.9995563030243,
154         "z": "fcb09084.b4e08",
155         "wires": [
156             [
157                 "4e1391bd.8d447",
158                 "3c57dd0f.634742"
159             ]
160         ]
161     },
162     {
163         "id": "f50bdebd.3de09",
164         "type": "set",
165         "name": "set",
166         "xml": "<set>\n<parameter name='tmp.a1-adapter-api.rpc-name' value='notifyPolicyEnforcementUpdate'/>\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=\"Policy Enforcement Update - Policies Applied\" />",
167         "comments": "",
168         "x": 1030.6669921875,
169         "y": 278.0001220703125,
170         "z": "fcb09084.b4e08",
171         "wires": []
172     },
173     {
174         "id": "4e1391bd.8d447",
175         "type": "failure",
176         "name": "failure",
177         "xml": "<outcome value='failure'>\n",
178         "comments": "",
179         "outputs": 1,
180         "x": 1256.5002059936523,
181         "y": 409.9168601036072,
182         "z": "fcb09084.b4e08",
183         "wires": [
184             [
185                 "4ae10a72.001ec4"
186             ]
187         ]
188     },
189     {
190         "id": "3c57dd0f.634742",
191         "type": "success",
192         "name": "success",
193         "xml": "<outcome value='success'>\n",
194         "comments": "",
195         "outputs": 1,
196         "x": 1260.5001258850098,
197         "y": 548.916702747345,
198         "z": "fcb09084.b4e08",
199         "wires": [
200             [
201                 "67e3a637.e66228"
202             ]
203         ]
204     },
205     {
206         "id": "4ae10a72.001ec4",
207         "type": "block",
208         "name": "block",
209         "xml": "<block>\n",
210         "atomic": "false",
211         "comments": "",
212         "outputs": 1,
213         "x": 1416.5000400543213,
214         "y": 411.9168610572815,
215         "z": "fcb09084.b4e08",
216         "wires": [
217             [
218                 "36a5b080.f013b"
219             ]
220         ]
221     },
222     {
223         "id": "36a5b080.f013b",
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=\"500\" />\n<parameter name=\"response-message\" value=\"Error publishing DMAAP A1 Policy Response message. \" />",
227         "comments": "",
228         "x": 1598.499771118164,
229         "y": 402.91693687438965,
230         "z": "fcb09084.b4e08",
231         "wires": []
232     },
233     {
234         "id": "67e3a637.e66228",
235         "type": "block",
236         "name": "block",
237         "xml": "<block>\n",
238         "atomic": "false",
239         "comments": "",
240         "outputs": 1,
241         "x": 1443.4997692108154,
242         "y": 541.916811466217,
243         "z": "fcb09084.b4e08",
244         "wires": [
245             [
246                 "aaed77f7.aba678"
247             ]
248         ]
249     },
250     {
251         "id": "aaed77f7.aba678",
252         "type": "record",
253         "name": "record",
254         "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 \"/>",
255         "comments": "",
256         "outputs": 1,
257         "x": 1631.5,
258         "y": 532.9171142578125,
259         "z": "fcb09084.b4e08",
260         "wires": [
261             []
262         ]
263     },
264     {
265         "id": "320829fe.db34f6",
266         "type": "record",
267         "name": "record",
268         "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`\" />",
269         "comments": "",
270         "outputs": 1,
271         "x": 1037.5002517700195,
272         "y": 363.4550609588623,
273         "z": "fcb09084.b4e08",
274         "wires": [
275             []
276         ]
277     },
278     {
279         "id": "f216c1e8.790c3",
280         "type": "returnSuccess",
281         "name": "return success",
282         "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='Policy Enforcement Update Received'/>\n<parameter name='health-status' value='200'/>\n<parameter name='ack-final' value='Y'/>\n",
283         "comments": "",
284         "x": 674.7539672851562,
285         "y": 442.00390625,
286         "z": "fcb09084.b4e08",
287         "wires": []
288     },
289     {
290         "id": "11dff310.728f7d",
291         "type": "set",
292         "name": "set tmp variables for Near RT RIC ID",
293         "xml": "<set>\n<parameter name=\"tmp.near-rt-ric-id\" value=\"`$notify-policy-enforcement-update-input.near-rt-ric-id`\"/>\n<parameter name=\"tmp.policy-type-id\" value=\"`$notify-policy-enforcement-update-input.policy-type-id`\"/>\n<parameter name=\"tmp.policy-instance-id\" value=\"`$notify-policy-enforcement-update-input.policy-instance-id`\"/>",
294         "comments": "",
295         "x": 843,
296         "y": 214,
297         "z": "fcb09084.b4e08",
298         "wires": []
299     }
300 ]

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use