5 "name": "execute: generateUUID",
6 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-allottedresource-id.id\" />",
9 "x": 538.3333129882812,
10 "y": 515.8333282470703,
11 "z": "4903bad.edade44",
19 "id": "a4997c46.9d57f",
22 "xml": "<outcome value='failure'>\n",
25 "x": 734.0833206176758,
26 "y": 515.8333282470703,
27 "z": "4903bad.edade44",
35 "id": "5525e405.5a720c",
36 "type": "returnFailure",
37 "name": "return failure",
38 "xml": "<return status='failure'>\n\t<!-- Used to work around execute node bug -->\n\t<parameter name=\"execute_failure\" value=\"false\" />\n\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-l3network-network-id\" value=\"An error occured while generating a UUID for L3-NETWORK.\" />",
40 "x": 899.0833206176758,
41 "y": 516.0833253860474,
42 "z": "4903bad.edade44",
46 "id": "66d02173.cfc28",
47 "type": "get-resource",
48 "name": "Query AnAI - allotted-resource",
49 "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\n resource=\"allotted-resource\"\n key=\"customer.global-customer-id = $service-data.service-information.global-customer-id AND\n\t\t\t\t\tservice-subscription.service-type = $cto-api.service-type AND\n\t\t\t\t\tservice-instance.service-instance-id = $cto-api.port-mirror-configuration-instance-id AND\n\t\t\t\t\tallotted-resource.id = $tmp.return.generate-allottedresource-id.id\"\n local-only=\"false\"\n pfx=\"tmp.local-variables.generate-allottedresource-id.ALLOTTEDRESOURCE\" >",
52 "x": 750.2500305175781,
53 "y": 605.4166297912598,
54 "z": "4903bad.edade44",
65 "id": "5835198f.dc0b38",
67 "name": "for n: true",
68 "xml": "<for atomic=\"true\" index=\"n\" start=\"0\" end=\"1\" >",
71 "x": 487.5833206176758,
72 "y": 607.0833253860474,
73 "z": "4903bad.edade44",
81 "id": "954e6938.90cb08",
84 "xml": "<outcome value='success'>\n",
87 "x": 1071.416603088379,
88 "y": 603.7499647140503,
89 "z": "4903bad.edade44",
97 "id": "c3f9027.48ad5",
100 "xml": "<outcome value='failure'>\n",
103 "x": 1067.416603088379,
104 "y": 683.7499647140503,
105 "z": "4903bad.edade44",
113 "id": "88fbf3ed.1e4ec",
116 "xml": "<outcome value='not-found'>\n",
119 "x": 1076.416603088379,
120 "y": 643.7499647140503,
121 "z": "4903bad.edade44",
129 "id": "9a1a9def.d6a4",
130 "type": "returnFailure",
131 "name": "return failure",
132 "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-allottedresource-id\" value=\"`'An error occured while checking if a generated allotted-resource-id was unique. allotted-resource-id = ' + $tmp.local-variables.generate-allottedresource-id.id`\" />",
134 "x": 1233.9166107177734,
135 "y": 708.7499704360962,
136 "z": "4903bad.edade44",
140 "id": "5a93b788.462aa8",
142 "name": "block : atomic",
143 "xml": "<block atomic='true'>",
147 "x": 1229.416603088379,
148 "y": 603.7499647140503,
149 "z": "4903bad.edade44",
158 "id": "42f40b02.0f1b64",
160 "name": "set: ...local...is-unique = 0",
161 "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-allottedresource-id.is-unique\" value=\"0\" />",
163 "x": 1446.9167022705078,
164 "y": 603.7499361038208,
165 "z": "4903bad.edade44",
169 "id": "a99c317d.5b194",
171 "name": "execute: generateUUID",
172 "xml": "<execute plugin=\"org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils\" method=\"generateUUID\" >\n\t<parameter name=\"ctx-destination\" value=\"tmp.return.generate-allottedresource-id.id\" />",
175 "x": 1440.416603088379,
176 "y": 643.7499647140503,
177 "z": "4903bad.edade44",
185 "id": "e5672b.69ed28d8",
188 "xml": "<outcome value='failure'>\n",
191 "x": 1627.416603088379,
192 "y": 643.7499647140503,
193 "z": "4903bad.edade44",
201 "id": "d2e9bf0a.cb123",
202 "type": "returnFailure",
203 "name": "return failure",
204 "xml": "<return status=\"failure\">\n\t<!-- return parameters -->\n\t<parameter name=\"error-message.generate-allottedresource-id\" value=\"An error occured while generating a UUID for ALLOTTED-RESOURCE.\" />",
206 "x": 1779.7499923706055,
207 "y": 643.7499656677246,
208 "z": "4903bad.edade44",
212 "id": "3401c5c.83c4e3a",
219 "x": 1207.416603088379,
220 "y": 643.7499647140503,
221 "z": "4903bad.edade44",
227 "id": "6a875f8d.73cc2",
231 "x": 244.58331680297852,
232 "y": 203.33332443237305,
233 "z": "4903bad.edade44",
241 "id": "20c9128.11698ee",
242 "type": "service-logic",
243 "name": "GENERIC-RESOURCE-API ${project.version}",
244 "module": "GENERIC-RESOURCE-API",
245 "version": "${project.version}",
247 "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}'>",
249 "x": 268.58331298828125,
250 "y": 249.58332443237305,
251 "z": "4903bad.edade44",
259 "id": "c9e0323.6c392d",
261 "name": "method generate-allottedresource-id",
262 "xml": "<method rpc=\"generate-allottedresource-id\" mode=\"sync\">",
265 "x": 354.33331298828125,
266 "y": 302.08332443237305,
267 "z": "4903bad.edade44",
275 "id": "aa4e1446.234628",
277 "name": "GENERIC-RESOURCE-API: GENERATE-L3NETWORK-NETWORK-ID",
280 "x": 796.0833282470703,
281 "y": 209.5833225250244,
282 "z": "4903bad.edade44",
286 "id": "11f29edc.8e12b1",
288 "name": "block : atomic",
289 "xml": "<block atomic=\"true\">",
293 "x": 306.0833206176758,
294 "y": 427.08332538604736,
295 "z": "4903bad.edade44",
306 "id": "5be115d7.3547fc",
308 "name": "LOOP UNTIL GENERATED ALLOTTED-RESOURCE ISN'T FOUND IN A&AI",
311 "x": 707.3333129882812,
312 "y": 563.3333292007446,
313 "z": "4903bad.edade44",
317 "id": "f6ac6a5d.3c4308",
319 "name": "GENERATE A NETWORK-ID",
322 "x": 571.0833129882812,
323 "y": 473.333327293396,
324 "z": "4903bad.edade44",
328 "id": "96991ff7.0c0e5",
330 "name": "unset: local-variables & return",
331 "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-allottedresource-id.\" value=\"\" />\n\t<parameter name=\"tmp.return.generate-allottedresource-id.\" value=\"\" />",
333 "x": 558.7499885559082,
334 "y": 427.083309173584,
335 "z": "4903bad.edade44",
339 "id": "b4d56db.b9ad09",
341 "name": "CLEANUP LOCAL VARIABLES TO BE USED",
344 "x": 641.3333129882812,
345 "y": 383.3333263397217,
346 "z": "4903bad.edade44",
350 "id": "1c2f28d9.80ec27",
352 "name": "GLOBAL VARIABLES USED",
353 "info": "// RETURN VALUES\nerror-message.generate-l3network-network-id\ntmp.return.generate-l3network-network-id.uuid\n\n// LOCAL VARIABLES (erased at beginning & end of DG)\ntmp.local-variables.generate-l3network-network-id.*\ntmp.return.generate-l3network-network-id.*\n",
355 "x": 782.5833435058594,
356 "y": 249.5833225250244,
357 "z": "4903bad.edade44",
361 "id": "8eb23908.bf31d8",
363 "name": "unset: local-variables & return",
364 "xml": "<set>\n\t<parameter name=\"tmp.local-variables.generate-allottedresource-id.\" value=\"\" />",
366 "x": 557.0833206176758,
367 "y": 707.0833253860474,
368 "z": "4903bad.edade44",
372 "id": "13e6bec1.8c1fd1",
374 "name": "CLEANUP LOCAL VARIABLES",
377 "x": 598.5833129882812,
378 "y": 664.583330154419,
379 "z": "4903bad.edade44",
383 "id": "167962db.dfa98d",
386 "xml": "<outcome value=\"Other\">",
389 "x": 1067.416603088379,
390 "y": 723.7499647140503,
391 "z": "4903bad.edade44",