3 "id": "88706b6c.d7e8f8",
5 "name": "VNF-TOPOLOGY-ACTIVATE",
10 "z": "bdb7525f.b82ac",
14 "id": "9919a3a0.0db84",
16 "name": "set: order-status = Active",
17 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.order-status\" value=\"Active\"/>",
20 "x": 416.1111373901367,
21 "y": 392.19443130493164,
22 "z": "bdb7525f.b82ac",
28 "id": "c7aef71a.0546b8",
30 "name": "block : atomic",
31 "xml": "<block atomic=\"true\">",
34 "x": 163.1111297607422,
35 "y": 159.6944465637207,
36 "z": "bdb7525f.b82ac",
51 "id": "e1d7f022.0eec5",
53 "name": "method vnf-topology-activate",
54 "xml": "<method rpc='vnf-topology-activate' mode='sync'>\n",
57 "x": 205.77781677246094,
58 "y": 103.86111068725586,
59 "z": "bdb7525f.b82ac",
67 "id": "8ecea6c6.be7228",
68 "type": "service-logic",
69 "name": "VNF-API ${project.version}",
71 "version": "${project.version}",
73 "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='VNF-API' version='${project.version}'>",
75 "x": 297.7777862548828,
76 "y": 56.86111831665039,
77 "z": "bdb7525f.b82ac",
85 "id": "c14838e9.4ff538",
89 "x": 132.6111297607422,
90 "y": 56.6944465637207,
91 "z": "bdb7525f.b82ac",
99 "id": "d2f822b9.c0ba2",
100 "type": "switchNode",
101 "name": "switch: order-status = PendingCreate",
102 "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingCreate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
105 "x": 455.4445114135742,
106 "y": 288.5276527404785,
107 "z": "bdb7525f.b82ac",
115 "id": "7fbf2884.337bd8",
118 "xml": "<outcome value='false'>",
121 "x": 704.7778625488281,
122 "y": 288.8609619140625,
123 "z": "bdb7525f.b82ac",
131 "id": "5ab563ab.d3ac3c",
132 "type": "returnFailure",
133 "name": "return failure",
134 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid last-order-status'/>",
136 "x": 1363.110984802246,
137 "y": 287.8610134124756,
138 "z": "bdb7525f.b82ac",
142 "id": "997d743b.93f348",
143 "type": "switchNode",
144 "name": "switch:vnf-id config == input",
145 "xml": "<switch test=\"`$vnf-topology-operation-input.vnf-request-information.vnf-id == $service-data.vnf-id`\">",
148 "x": 427.88387298583984,
149 "y": 236.73988723754883,
150 "z": "bdb7525f.b82ac",
158 "id": "18372478.ff847c",
159 "type": "outcomeFalse",
161 "xml": "<outcome value='false'>\n",
164 "x": 647.3383483886719,
165 "y": 236.9217071533203,
166 "z": "bdb7525f.b82ac",
174 "id": "a2862881.e98788",
175 "type": "returnFailure",
176 "name": "return failure",
177 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value=\"`'vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' not found in config tree'`\"/>",
179 "x": 825.4292907714844,
180 "y": 236.830810546875,
181 "z": "bdb7525f.b82ac",
185 "id": "cb7a4a21.63f1a8",
186 "type": "returnSuccess",
187 "name": "return success",
188 "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
190 "x": 385.22225189208984,
191 "y": 612.8610877990723,
192 "z": "bdb7525f.b82ac",
196 "id": "6a86c40f.3cacbc",
197 "type": "switchNode",
198 "name": "switch: order-status = PendingUpdate",
199 "xml": "<switch test=\"`$service-data.oper-status.order-status == PendingUpdate`\">\n\n<!--\nleaf order-status {\n\ttype enumeration {\n\t\tenum \"Active\";\n\t\tenum \"PendingAssignment\";\n\t\tenum \"PendingCreate\";\n\t\tenum \"PendingUpdate\";\n\t\tenum \"Deleted\";\n\t}\n}\n-->",
202 "x": 955.7020568847656,
203 "y": 288.2853698730469,
204 "z": "bdb7525f.b82ac",
212 "id": "8c8f2029.ca786",
215 "xml": "<outcome value='false'>",
218 "x": 1198.1564636230469,
219 "y": 288.28533935546875,
220 "z": "bdb7525f.b82ac",
228 "id": "3c6838ea.3c4ff8",
230 "name": "once success is returned, operational-data gets saved",
233 "x": 731.6288452148438,
234 "y": 573.79541015625,
235 "z": "bdb7525f.b82ac",
239 "id": "a2825e7b.f1f5b",
241 "name": "set: last-order-status = order-status",
242 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-order-status\" value=\"`$service-data.oper-status.order-status`\"/>",
245 "x": 449.22481536865234,
246 "y": 340.8081398010254,
247 "z": "bdb7525f.b82ac",
253 "id": "b434395d.5c9488",
255 "name": "request-action = VNFActivateRequest, svc-action = activate",
258 "x": 711.7222137451172,
259 "y": 96.02778053283691,
260 "z": "bdb7525f.b82ac",
264 "id": "4d75942d.b062cc",
266 "name": "set: service-data = input",
267 "xml": "<set>\n\t<parameter name=\"service-data.\" value=\"vnf-topology-operation-input.\" />",
270 "x": 413.1111373901367,
271 "y": 527.2500038146973,
272 "z": "bdb7525f.b82ac",
278 "id": "4d26f461.ab756c",
280 "name": "set: last-action ",
281 "xml": "<set>\n\t<parameter name=\"service-data.oper-status.last-action\" value=\"`$service-data.request-information.request-action`\"/>",
284 "x": 383.1111373901367,
285 "y": 439.25000381469727,
286 "z": "bdb7525f.b82ac",
292 "id": "25f69501.db82ca",
295 "xml": "<outcome value='failure'>\n",
298 "x": 741.5238571166992,
299 "y": 482.2385025024414,
300 "z": "bdb7525f.b82ac",
308 "id": "8b31c6d4.18a8e8",
309 "type": "returnFailure",
310 "name": "return failure",
311 "xml": "<return status='failure'>\n\t<parameter name='error-code' value='500'/>\n\t<parameter name='error-message' value=\"`'Encountered error while updating vf-module orchestration-status in AnAI with vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.vnf-id + ' and generic-vnf-id = ' + $vnf-topology-operation-input.vnf-request-information.generic-vnf-id`\"/>",
313 "x": 909.6667861938477,
314 "y": 482.2385730743408,
315 "z": "bdb7525f.b82ac",
319 "id": "baf5a37d.f9734",
321 "name": "Set final indicator to Y",
322 "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
325 "x": 407.4285888671875,
326 "y": 570.9642486572266,
327 "z": "bdb7525f.b82ac",
333 "id": "be925673.a43ed8",
335 "name": "update AnAI - vf-module.orchestration-status",
336 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"vf-module\" \n\t\tkey=\"vf-module.vf-module-id = $vnf-topology-operation-input.vnf-request-information.vnf-id \n\t\t\tAND generic-vnf.vnf-id = $vnf-topology-operation-input.vnf-request-information.generic-vnf-id\" \n\t\tlocal-only=\"false\" >\n\t<parameter name=\"orchestration-status\" value=\"active\" />",
341 "z": "bdb7525f.b82ac",