3 "id": "604b70a8.30f9f",
5 "name": "switch request-action",
6 "xml": "<switch test='`$service-topology-operation-input.request-information.request-action`'>\n",
9 "x": 536.1904602050781,
10 "y": 314.5237846374512,
11 "z": "62cfcbc6.1804e4",
20 "id": "9c181b3f.092838",
22 "name": "DeleteServiceInstance",
23 "xml": "<outcome value='DeleteServiceInstance'>\n",
26 "x": 773.3332748413086,
27 "y": 288.80949306488037,
28 "z": "62cfcbc6.1804e4",
36 "id": "2760d61f.58392a",
39 "xml": "<outcome value='Other'>\n",
42 "x": 723.3332405090332,
43 "y": 334.5238208770752,
44 "z": "62cfcbc6.1804e4",
52 "id": "1a68151d.2ac4eb",
59 "x": 951.9047317504883,
60 "y": 288.8095283508301,
61 "z": "62cfcbc6.1804e4",
67 "id": "a78d0f9e.d329f",
68 "type": "returnFailure",
69 "name": "return failure",
70 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"If svc-action is 'deactivate' then request-action must be 'DeleteServiceInstance'\" />\n",
72 "x": 969.0475769042969,
73 "y": 334.5237846374512,
74 "z": "62cfcbc6.1804e4",
78 "id": "ee30906.f78157",
80 "name": "block : atomic",
81 "xml": "<block atomic=\"true\">",
84 "x": 262.1427879333496,
85 "y": 405.2380313873291,
86 "z": "62cfcbc6.1804e4",
98 "id": "d424f27.d8ceb1",
102 "x": 99.99999237060547,
103 "y": 81.66666412353516,
104 "z": "62cfcbc6.1804e4",
112 "id": "e272ce64.f9ac",
113 "type": "service-logic",
114 "name": "GENERIC-RESOURCE-API ${project.version}",
115 "module": "GENERIC-RESOURCE-API",
116 "version": "${project.version}",
118 "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}'>",
120 "x": 175.28569793701172,
121 "y": 121.90477561950684,
122 "z": "62cfcbc6.1804e4",
130 "id": "f939e6bb.1b9ce8",
132 "name": "method service-topology-operation-deactivate",
133 "xml": "<method rpc='service-topology-operation-deactivate' mode='sync'>\n",
136 "x": 216.09528350830078,
137 "y": 163.33332443237305,
138 "z": "62cfcbc6.1804e4",
146 "id": "d253a6a8.6c8668",
148 "name": "service-topology-operation-deactivate",
151 "x": 494.3448486328125,
152 "y": 29.253007888793945,
153 "z": "62cfcbc6.1804e4",
157 "id": "b7ce906b.bd1c6",
158 "type": "switchNode",
159 "name": "switch service-data service-instance-id",
160 "xml": "<switch test='`$service-data.service-topology.service-topology-identifier.service-instance-id`'>\n",
163 "x": 591.6666564941406,
164 "y": 239.7618865966797,
165 "z": "62cfcbc6.1804e4",
173 "id": "fbf7b015.33a16",
176 "xml": "<outcome value=''>",
179 "x": 821.4285621643066,
180 "y": 239.76190662384033,
181 "z": "62cfcbc6.1804e4",
189 "id": "a2f01f45.35d09",
190 "type": "returnFailure",
191 "name": "return failure",
192 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"404\" />\n <parameter name=\"error-message\" value=\"`'Service ' + $service-topology-operation-input.service-information.service-instance-id + ' is not found'`\" />\n",
194 "x": 977.1428070068359,
195 "y": 239.76190185546875,
196 "z": "62cfcbc6.1804e4",
200 "id": "6b83ed66.08c724",
202 "name": "update AAI service instance",
203 "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-instance\" \n\t\tkey=\"customer.global-customer-id = $service-data.service-topology.service-topology-identifier.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-data.service-topology.service-topology-identifier.service-type AND\n\t\t\tservice-instance.service-instance-id = $service-topology-operation-input.service-information.service-instance-id\"\n pfx='pfx' local-only='false' force='false'>\n\t<parameter name=\"orchestration-status\" value=\"PendingDelete\" />\n",
206 "x": 557.9523620605469,
207 "y": 524.7619037628174,
208 "z": "62cfcbc6.1804e4",
217 "id": "1a658f52.90fe91",
220 "xml": "<outcome value='failure'>\n",
223 "x": 770.7142295837402,
224 "y": 500.0000581741333,
225 "z": "62cfcbc6.1804e4",
233 "id": "ec560782.dd0478",
234 "type": "returnFailure",
235 "name": "return failure",
236 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"AAI failed\" />\n",
238 "x": 920.7141952514648,
239 "y": 500.00013637542725,
240 "z": "62cfcbc6.1804e4",
244 "id": "7fbd10da.9b854",
247 "xml": "<outcome value='not-found'>\n",
250 "x": 777.0236587524414,
251 "y": 548.571475982666,
252 "z": "62cfcbc6.1804e4",
260 "id": "415b774b.0e0bf8",
262 "name": "set service-level-oper-status to PendingDelete",
263 "xml": "<set>\n<parameter name='service-data.service-level-oper-status.order-status' value='PendingDelete' />\n<parameter name='service-data.service-level-oper-status.last-rpc-action' value='deactivate' />\n<parameter name='service-data.service-level-oper-status.last-action' value='DeleteServiceInstance' />\n",
265 "x": 613.9523239135742,
266 "y": 594.5237979888916,
267 "z": "62cfcbc6.1804e4",
271 "id": "ca3b7680.173278",
278 "x": 904.9999580383301,
279 "y": 548.3333377838135,
280 "z": "62cfcbc6.1804e4",
286 "id": "7e175a90.802564",
288 "name": "Don't treat this as an error",
291 "x": 1080.0000457763672,
292 "y": 548.3333177566528,
293 "z": "62cfcbc6.1804e4",
297 "id": "388700f9.d2aff",
298 "type": "switchNode",
299 "name": "switch provided-allotted-resource length",
300 "xml": "<switch test='`$service-data.provided-allotted-resources.provided-allotted-resource_length`'>\n",
303 "x": 596.6667098999023,
304 "y": 408.3333396911621,
305 "z": "62cfcbc6.1804e4",
315 "id": "9ed42146.3d389",
318 "xml": "<outcome value=''>",
321 "x": 836.666576385498,
322 "y": 409.9999752044678,
323 "z": "62cfcbc6.1804e4",
331 "id": "3c14b3ca.f345ac",
334 "xml": "<outcome value='Other'>\n",
337 "x": 836.6666793823242,
338 "y": 451.66663360595703,
339 "z": "62cfcbc6.1804e4",
347 "id": "55a7bd8c.02e934",
348 "type": "returnFailure",
349 "name": "return failure",
350 "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"Cannot deactivate this service because there are provided allotted resources\" />\n",
352 "x": 991.6666641235352,
353 "y": 454.9999313354492,
354 "z": "62cfcbc6.1804e4",
358 "id": "5abdf37a.97301c",
365 "x": 973.3332710266113,
366 "y": 386.66664123535156,
367 "z": "62cfcbc6.1804e4",
373 "id": "40e1d77.09f5028",
376 "xml": "<outcome value='0'>\n",
379 "x": 836.666576385498,
380 "y": 368.3332872390747,
381 "z": "62cfcbc6.1804e4",