Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_wan-connection-topology-operation-delete.json
1 [{
2         "id": "c81f4d78.b1e6c",
3         "type": "dgstart",
4         "name": "DGSTART",
5         "outputs": 1,
6         "x": 100.01040649414062,
7         "y": 75.99999976158142,
8         "z": "b1682cba.152",
9         "wires": [
10                 ["64b261af.cf184"]
11         ]
12 }, {
13         "id": "64b261af.cf184",
14         "type": "service-logic",
15         "name": "GENERIC-RESOURCE-API ${project.version}",
16         "module": "GENERIC-RESOURCE-API",
17         "version": "${project.version}",
18         "comments": "",
19         "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}'>",
20         "outputs": 1,
21         "x": 312.0104103088379,
22         "y": 148.00001692771912,
23         "z": "b1682cba.152",
24         "wires": [
25                 ["c6b54419.3039a8"]
26         ]
27 }, {
28         "id": "c6b54419.3039a8",
29         "type": "method",
30         "name": "wan-connection-topology-operation-delete",
31         "xml": "<method rpc='wan-connection-topology-operation-delete' mode='sync'>\n",
32         "comments": "",
33         "outputs": 1,
34         "x": 300.0105285644531,
35         "y": 235.99999976158142,
36         "z": "b1682cba.152",
37         "wires": [
38                 ["f3a69c11.4cac9"]
39         ]
40 }, {
41         "id": "140a99be.e1cda6",
42         "type": "execute",
43         "name": "contains FC",
44         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"FC\"/>\n",
45         "comments": "",
46         "outputs": 1,
47         "x": 467.04176330566406,
48         "y": 511.031311750412,
49         "z": "b1682cba.152",
50         "wires": [
51                 ["df506b8a.806268", "5d821249.e9d6cc"]
52         ]
53 }, {
54         "id": "54dc8604.f2ccb8",
55         "type": "execute",
56         "name": "contains FD",
57         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='contains' >\n    <parameter name=\"source\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name`\"/>\n    <parameter name=\"target\" value=\"FD\"/>\n",
58         "comments": "",
59         "outputs": 1,
60         "x": 465.04168701171875,
61         "y": 589.0313127040863,
62         "z": "b1682cba.152",
63         "wires": [
64                 ["1ab6bc40.bffaf4", "7db0c17f.b059"]
65         ]
66 }, {
67         "id": "df506b8a.806268",
68         "type": "outcomeTrue",
69         "name": "true",
70         "xml": "<outcome value='true'>\n",
71         "comments": "",
72         "outputs": 1,
73         "x": 648.0417709350586,
74         "y": 513.0313451290131,
75         "z": "b1682cba.152",
76         "wires": [
77                 ["44c3101c.7b387"]
78         ]
79 }, {
80         "id": "1ab6bc40.bffaf4",
81         "type": "outcomeTrue",
82         "name": "true",
83         "xml": "<outcome value='true'>\n",
84         "comments": "",
85         "outputs": 1,
86         "x": 660.0417709350586,
87         "y": 591.0313451290131,
88         "z": "b1682cba.152",
89         "wires": [
90                 ["44c3101c.7b387"]
91         ]
92 }, {
93         "id": "5d821249.e9d6cc",
94         "type": "outcomeTrue",
95         "name": "false",
96         "xml": "<outcome value='false'>\n",
97         "comments": "",
98         "outputs": 1,
99         "x": 256.0416946411133,
100         "y": 592.0312840938568,
101         "z": "b1682cba.152",
102         "wires": [
103                 ["54dc8604.f2ccb8"]
104         ]
105 }, {
106         "id": "7f76e93c.a850f8",
107         "type": "execute",
108         "name": "execute Properties",
109         "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",
110         "comments": "",
111         "outputs": 1,
112         "x": 491.010498046875,
113         "y": 356.00001883506775,
114         "z": "b1682cba.152",
115         "wires": [
116                 []
117         ]
118 }, {
119         "id": "f3a69c11.4cac9",
120         "type": "block",
121         "name": "block : atomic",
122         "xml": "<block atomic=\"true\">",
123         "atomic": "true",
124         "outputs": 1,
125         "x": 206.0104217529297,
126         "y": 335.99999594688416,
127         "z": "b1682cba.152",
128         "wires": [
129                 ["7f76e93c.a850f8", "99bcb143.6aec8", "30b4304f.e646c", "140a99be.e1cda6"]
130         ]
131 }, {
132         "id": "99bcb143.6aec8",
133         "type": "switchNode",
134         "name": "switch network-id",
135         "xml": "<switch test='`$network-topology-operation-input.network-information.network-id`'>\n",
136         "comments": "",
137         "outputs": 1,
138         "x": 491.0104293823242,
139         "y": 294.0000092983246,
140         "z": "b1682cba.152",
141         "wires": [
142                 ["57d76327.9c63cc", "d50b31e0.e314e"]
143         ]
144 }, {
145         "id": "57d76327.9c63cc",
146         "type": "outcome",
147         "name": "NULL",
148         "xml": "<outcome value=''>",
149         "comments": "",
150         "outputs": 1,
151         "x": 740.0105056762695,
152         "y": 233.00000929832458,
153         "z": "b1682cba.152",
154         "wires": [
155                 ["54153e4c.ec78c"]
156         ]
157 }, {
158         "id": "54153e4c.ec78c",
159         "type": "returnFailure",
160         "name": "return failure",
161         "xml": "<return status='failure'>\n<parameter name='error-code' value='' />\n<parameter name='error-message' value=\"An error occured while generation allotted resource ID\" />\n",
162         "comments": "",
163         "x": 1010.0105209350586,
164         "y": 234.99999809265137,
165         "z": "b1682cba.152",
166         "wires": []
167 }, {
168         "id": "d50b31e0.e314e",
169         "type": "other",
170         "name": "other",
171         "xml": "<outcome value='Other'>\n",
172         "comments": "",
173         "outputs": 1,
174         "x": 737.5104026794434,
175         "y": 281.0000035762787,
176         "z": "b1682cba.152",
177         "wires": [
178                 []
179         ]
180 }, {
181         "id": "30b4304f.e646c",
182         "type": "returnSuccess",
183         "name": "return success",
184         "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",
185         "comments": "",
186         "x": 192.01040649414062,
187         "y": 943.0000705718994,
188         "z": "b1682cba.152",
189         "wires": []
190 }, {
191         "id": "65a3a6ee.c50208",
192         "type": "block",
193         "name": "block",
194         "xml": "<block>\n",
195         "atomic": "false",
196         "comments": "",
197         "outputs": 1,
198         "x": 258.01040267944336,
199         "y": 735.0001106262207,
200         "z": "b1682cba.152",
201         "wires": [
202                 []
203         ]
204 }, {
205         "id": "7db0c17f.b059",
206         "type": "outcomeTrue",
207         "name": "false",
208         "xml": "<outcome value='false'>\n",
209         "comments": "",
210         "outputs": 1,
211         "x": 261.04176330566406,
212         "y": 675.0314900875092,
213         "z": "b1682cba.152",
214         "wires": [
215                 ["65a3a6ee.c50208"]
216         ]
217 }, {
218         "id": "44c3101c.7b387",
219         "type": "block",
220         "name": "block : atomic",
221         "xml": "<block atomic=\"true\">",
222         "atomic": "true",
223         "outputs": 1,
224         "x": 843.010383605957,
225         "y": 542.1214942932129,
226         "z": "b1682cba.152",
227         "wires": [
228                 ["81240f98.0bd24", "51b098fe.5ee238", "e14455de.b9dcd8", "5e6ceda3.d49424", "629880b9.6f91a"]
229         ]
230 }, {
231         "id": "81240f98.0bd24",
232         "type": "delete",
233         "name": "delete wan connection in AAI",
234         "xml": "<delete plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" resource='connectivity' \n        key='connectivity.connectivity-id = $network-topology-operation-input.network-information.network-id'>\n",
235         "comments": "",
236         "outputs": 1,
237         "x": 1139.0104446411133,
238         "y": 492.1214962005615,
239         "z": "b1682cba.152",
240         "wires": [
241                 []
242         ]
243 }, {
244         "id": "51b098fe.5ee238",
245         "type": "set",
246         "name": "set new network length",
247         "xml": "<set>\n\t<parameter name=\"service-data.networks.network_length\" value=\"`$service-data.networks.network_length - 1`\"/>\n\n\t\n",
248         "comments": "",
249         "x": 1116.4549293518066,
250         "y": 556.0104026794434,
251         "z": "b1682cba.152",
252         "wires": []
253 }, {
254         "id": "e14455de.b9dcd8",
255         "type": "set",
256         "name": "Remove networks from ServiceData",
257         "xml": "<set>\n\t<parameter name=\"service-data.networks.network[$tmp.nidx].\" value=\"\"/>\n\n",
258         "comments": "",
259         "x": 1147.0791816711426,
260         "y": 607.9783487319946,
261         "z": "b1682cba.152",
262         "wires": []
263 }, {
264         "id": "5e6ceda3.d49424",
265         "type": "set",
266         "name": "set networkId and network-object-path",
267         "xml": "<set>\n<parameter name='networkId' value='`$network-topology-operation-input.network-information.network-id`' />\n<parameter name='service-object-path' value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $network-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'` \" />",
268         "comments": "",
269         "x": 1157.8222579956055,
270         "y": 678.5394926071167,
271         "z": "b1682cba.152",
272         "wires": []
273 }, {
274         "id": "629880b9.6f91a",
275         "type": "record",
276         "name": "record",
277         "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/svclogic.log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"wan-connection-topology-operation-delete\"/>\n<parameter name=\"field3\" value=\"`$network-topology-operation-input.network-information.onap-model-information.model-name + ' delete'`\"/>\n",
278         "comments": "",
279         "outputs": 1,
280         "x": 1075.0103759765625,
281         "y": 423.34375,
282         "z": "b1682cba.152",
283         "wires": [
284                 []
285         ]
286 }]