3 "id": "39e8a74f.00d7a8",
5 "name": "set: order-status = Active",
6 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.order-status\" value=\"Active\"/>",
9 "x": 432.8571472167969,
10 "y": 392.8571472167969,
11 "z": "99edc426.381898",
17 "id": "74e6fd2f.dee3c4",
19 "name": "block : atomic",
20 "xml": "<block atomic=\"true\">",
23 "x": 179.85713958740234,
24 "y": 160.35716247558594,
25 "z": "99edc426.381898",
42 "id": "dfa6e2c6.49745",
44 "name": "method vf-module-topology-activate",
45 "xml": "<method rpc='vf-module-topology-activate' mode='sync'>\n",
48 "x": 222.5238265991211,
49 "y": 104.5238265991211,
50 "z": "99edc426.381898",
58 "id": "daef36a1.fa1368",
59 "type": "service-logic",
60 "name": "VNF-API ${project.version}",
62 "version": "${project.version}",
64 "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='VNF-API' version='${project.version}'>",
66 "x": 314.52379608154297,
67 "y": 57.523834228515625,
68 "z": "99edc426.381898",
76 "id": "1253e5b0.3e31fa",
80 "x": 149.35713958740234,
81 "y": 57.35716247558594,
82 "z": "99edc426.381898",
90 "id": "83f09b75.461298",
92 "name": "switch: order-status = PendingCreate",
93 "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == PendingCreate`\">",
96 "x": 472.1905212402344,
97 "y": 289.19036865234375,
98 "z": "99edc426.381898",
106 "id": "32730681.fc526a",
109 "xml": "<outcome value='false'>",
112 "x": 721.5238723754883,
113 "y": 288.52367782592773,
114 "z": "99edc426.381898",
122 "id": "86ef0554.fbc0a8",
123 "type": "returnFailure",
124 "name": "return failure",
125 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
127 "x": 1379.8569946289062,
128 "y": 288.5237293243408,
129 "z": "99edc426.381898",
133 "id": "e0967d0e.757cc",
134 "type": "switchNode",
135 "name": "switch:vf-module-id config == input",
136 "xml": "<switch test=\"`$vf-module-topology-operation-input.vf-module-request-information.vf-module-id == $vf-module-service-data.vf-module-id`\">",
140 "y": 237.40260314941406,
141 "z": "99edc426.381898",
149 "id": "f8c73b3a.1a2af8",
150 "type": "outcomeFalse",
152 "xml": "<outcome value='false'>\n",
155 "x": 694.084358215332,
156 "y": 237.58442306518555,
157 "z": "99edc426.381898",
165 "id": "6bcf58a9.7508d8",
166 "type": "returnFailure",
167 "name": "return failure",
168 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' not found in SDNC'`\"/>",
170 "x": 847.1753005981445,
171 "y": 237.49352645874023,
172 "z": "99edc426.381898",
176 "id": "b65a1681.7c1c38",
177 "type": "returnSuccess",
178 "name": "return success",
179 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
181 "x": 400.96826171875,
182 "y": 705.5238037109375,
183 "z": "99edc426.381898",
187 "id": "94496491.8e1268",
188 "type": "switchNode",
189 "name": "switch: order-status = PendingUpdate",
190 "xml": "<switch test=\"`$vf-module-service-data.oper-status.order-status == PendingUpdate`\">",
193 "x": 972.4480667114258,
194 "y": 288.9480857849121,
195 "z": "99edc426.381898",
203 "id": "b04177c6.257fd8",
206 "xml": "<outcome value='false'>",
209 "x": 1214.902473449707,
210 "y": 288.948055267334,
211 "z": "99edc426.381898",
219 "id": "ca5aa154.d8ea2",
221 "name": "set: last-order-status = order-status",
222 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-order-status\" value=\"`$vf-module-service-data.oper-status.order-status`\"/>",
225 "x": 465.9708251953125,
226 "y": 341.4708557128906,
227 "z": "99edc426.381898",
233 "id": "a84acf1a.f3c8c",
235 "name": "request-action = VNFActivateRequest, svc-action = activate",
238 "x": 728.4682235717773,
239 "y": 96.69049644470215,
240 "z": "99edc426.381898",
244 "id": "91c8fd96.73034",
246 "name": "set: service-data = input",
247 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.\" value=\"vf-module-topology-operation-input.\" />",
250 "x": 429.8571472167969,
251 "y": 527.9127197265625,
252 "z": "99edc426.381898",
258 "id": "ef986c0d.9506",
260 "name": "set: last-action ",
261 "xml": "<set>\n\t<parameter name=\"vf-module-service-data.oper-status.last-action\" value=\"`$vf-module-service-data.request-information.request-action`\"/>",
264 "x": 399.8571472167969,
265 "y": 439.9127197265625,
266 "z": "99edc426.381898",
272 "id": "cba23ed7.a7888",
275 "xml": "<outcome value='failure'>\n",
278 "x": 758.2698669433594,
279 "y": 482.90121841430664,
280 "z": "99edc426.381898",
288 "id": "b1d53231.032d9",
289 "type": "returnFailure",
290 "name": "return failure",
291 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'An error occurred while updating vf-module orchestration-status in AnAI with vf-module-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vf-module-id + ' and vnf-instance-id = ' + $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id`\"/>",
293 "x": 941.4127960205078,
294 "y": 482.90128898620605,
295 "z": "99edc426.381898",
299 "id": "d71b0b9.a2878f8",
301 "name": "Set final indicator to Y",
302 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
305 "x": 423.17459869384766,
306 "y": 663.6269645690918,
307 "z": "99edc426.381898",
313 "id": "3041a9ae.a8b0d6",
315 "name": "update AnAI - vf-module.orchestration-status",
316 "xml": "<update plugin=\"org.openecomp.sdnc.sli.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vf-module-topology-operation-input.vf-module-request-information.vf-module-id \n\t\t\tAND generic-vnf.vnf-id = $vf-module-topology-operation-input.vf-module-request-information.vnf-instance-id\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />",
319 "x": 493.74600982666016,
320 "y": 482.91271591186523,
321 "z": "99edc426.381898",
330 "id": "324dd0a1.e8559",
333 "xml": "<outcome value='not-found'>\n",
336 "x": 765.4960327148438,
337 "y": 525.66273021698,
338 "z": "99edc426.381898",
346 "id": "38723ef.e0f7bc2",
348 "name": "set: vnf-instance-service-data.vf-module-relationship-list[]",
349 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.vf-module-relationship-list[$vnf-instance-service-data.vf-module-relationship-list_length].vf-module-id\" value=\"`$vf-module-topology-operation-input.vf-module-request-information.vf-module-id`\" />",
352 "x": 532.2460098266602,
353 "y": 619.1627159118652,
354 "z": "99edc426.381898",
360 "id": "d97e99d0.9e7e48",
362 "name": "set: vnf-instance-service-data.vf-module-relationship-list[] = 0",
363 "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.vf-module-relationship-list_length\" value=\"0\" />",
366 "x": 1149.773796081543,
367 "y": 575.0516405105591,
368 "z": "99edc426.381898",
374 "id": "7646ab3a.7636e4",
375 "type": "switchNode",
376 "name": "switch: vnf-instance-service-data.vf-module-relationship-list[]",
377 "xml": "<switch test=\"`$vnf-instance-service-data.vf-module-relationship-list_length`\">",
380 "x": 543.4960098266602,
381 "y": 574.4127254486084,
382 "z": "99edc426.381898",
390 "id": "f9261340.ae80b",
393 "xml": "<outcome value=''>",
395 "x": 844.7460098266602,
396 "y": 574.4127254486084,
397 "z": "99edc426.381898",