3         "id": "295b7d63.10c692",
 
  17         "id": "70e80e39.fe45",
 
  18         "type": "service-logic",
 
  19         "name": "GENERIC-RESOURCE-API ${project.version}",
 
  20         "module": "GENERIC-RESOURCE-API",
 
  21         "version": "${project.version}",
 
  23         "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}'>",
 
  25         "x": 187.28570556640625,
 
  26         "y": 126.23811149597168,
 
  27         "z": "d6c1fe8e.0dbfc",
 
  35         "id": "9baf2a8b.239b88",
 
  37         "name": "method service-topology-operation-assign",
 
  38         "xml": "<method rpc='service-topology-operation-assign' mode='sync'>\n",
 
  41         "x": 216.42862701416016,
 
  43         "z": "d6c1fe8e.0dbfc",
 
  51         "id": "b98518f1.2eb928",
 
  53         "name": "service-topology-operation-assign",
 
  56         "x": 506.34485626220703,
 
  57         "y": 33.58634376525879,
 
  58         "z": "d6c1fe8e.0dbfc",
 
  62         "id": "5cbbf27f.ee281c",
 
  64         "name": "block : atomic",
 
  65         "xml": "<block atomic=\"true\">",
 
  68         "x": 228.85712432861328,
 
  69         "y": 756.7619457244873,
 
  70         "z": "d6c1fe8e.0dbfc",
 
  87         "id": "fd3525bb.e6b178",
 
  89         "name": "switch request-action",
 
  90         "xml": "<switch test='`$service-topology-operation-input.request-information.request-action`'>\n",
 
  93         "x": 511.2381134033203,
 
  94         "y": 267.7142915725708,
 
  95         "z": "d6c1fe8e.0dbfc",
 
 104         "id": "d0d2c5a2.a2fa38",
 
 106         "name": "CreateServiceInstance",
 
 107         "xml": "<outcome value='CreateServiceInstance'>\n",
 
 110         "x": 748.3809280395508,
 
 112         "z": "d6c1fe8e.0dbfc",
 
 120         "id": "fbf77054.7e3f7",
 
 123         "xml": "<outcome value='Other'>\n",
 
 126         "x": 698.3809509277344,
 
 127         "y": 286.04763889312744,
 
 128         "z": "d6c1fe8e.0dbfc",
 
 136         "id": "c3e09ac6.b0a468",
 
 143         "x": 926.9523849487305,
 
 144         "y": 242.0000352859497,
 
 145         "z": "d6c1fe8e.0dbfc",
 
 151         "id": "14ef825f.a8bece",
 
 152         "type": "returnFailure",
 
 153         "name": "return failure",
 
 154         "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 'assign' then request-action must be 'CreateServiceInstance'\" />\n",
 
 156         "x": 905.7618980407715,
 
 157         "y": 286.04765033721924,
 
 158         "z": "d6c1fe8e.0dbfc",
 
 162         "id": "3fc365e1.b2b29a",
 
 163         "type": "get-resource",
 
 164         "name": "get-resource SERVICE_MODEL",
 
 165         "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.sli.resource.sql.SqlResource' resource='SQL'\n  key='SELECT * from SERVICE_MODEL WHERE service_uuid = $service-topology-operation-input.service-information.onap-model-information.model-uuid'\n  pfx='db.service-model'>\n\n",
 
 168         "x": 547.7856292724609,
 
 169         "y": 490.80957984924316,
 
 170         "z": "d6c1fe8e.0dbfc",
 
 179         "id": "74dca068.1349",
 
 180         "type": "returnFailure",
 
 181         "name": "return failure",
 
 182         "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=\"`'No model found for service UUID ' + $service-topology-operation-input.service-information.onap-model-information.model-uuid`\" />\n",
 
 184         "x": 962.0712966918945,
 
 185         "y": 515.6666297912598,
 
 186         "z": "d6c1fe8e.0dbfc",
 
 190         "id": "80294281.2295d",
 
 191         "type": "switchNode",
 
 192         "name": "switch input service-instance-name",
 
 193         "xml": "<switch test='`$service-topology-operation-input.service-request-input.service-instance-name`'>\n",
 
 196         "x": 555.1903610229492,
 
 197         "y": 787.1190090179443,
 
 198         "z": "d6c1fe8e.0dbfc",
 
 207         "id": "2dc0c3ae.1f5c3c",
 
 210         "xml": "<outcome value=''>",
 
 213         "x": 776.3569221496582,
 
 214         "y": 712.4761533737183,
 
 215         "z": "d6c1fe8e.0dbfc",
 
 223         "id": "36a8a72c.e67fa8",
 
 224         "type": "switchNode",
 
 225         "name": "switch ecomp-naming",
 
 226         "xml": "<switch test='`$db.service-model.ecomp-naming`'>\n",
 
 229         "x": 1155.6429824829102,
 
 230         "y": 604.8572378158569,
 
 231         "z": "d6c1fe8e.0dbfc",
 
 241         "id": "8ca23910.bba748",
 
 243         "name": "block : atomic",
 
 244         "xml": "<block atomic=\"true\">",
 
 247         "x": 922.0714225769043,
 
 248         "y": 712.4762706756592,
 
 249         "z": "d6c1fe8e.0dbfc",
 
 259         "id": "e2444120.96641",
 
 262         "xml": "<outcome value='N'>",
 
 265         "x": 1404.9286422729492,
 
 266         "y": 606.7619466781616,
 
 267         "z": "d6c1fe8e.0dbfc",
 
 275         "id": "e6cfdf66.2d46c",
 
 276         "type": "returnFailure",
 
 277         "name": "return failure",
 
 278         "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=\"No service-instance-name was received but ecomp-naming is not Y\" />\n",
 
 280         "x": 1559.214427947998,
 
 281         "y": 625.3333911895752,
 
 282         "z": "d6c1fe8e.0dbfc",
 
 286         "id": "e46351c0.e65fe",
 
 289         "xml": "<outcome value='Y'>",
 
 292         "x": 1404.9286079406738,
 
 293         "y": 562.4762678146362,
 
 294         "z": "d6c1fe8e.0dbfc",
 
 302         "id": "b83f5b84.1194c8",
 
 305         "xml": "<outcome value='Other'>\n",
 
 308         "x": 1404.9285697937012,
 
 309         "y": 652.4762659072876,
 
 310         "z": "d6c1fe8e.0dbfc",
 
 318         "id": "c74d5ad9.510bf8",
 
 325         "x": 1542.0715522766113,
 
 326         "y": 562.4762678146362,
 
 327         "z": "d6c1fe8e.0dbfc",
 
 333         "id": "8c204a35.ee8d38",
 
 336         "xml": "<outcome value='Other'>\n",
 
 339         "x": 778.9286041259766,
 
 340         "y": 858.7618923187256,
 
 341         "z": "d6c1fe8e.0dbfc",
 
 349         "id": "6c3ec4cc.7720cc",
 
 351         "name": "set tmp.service-instance-name",
 
 352         "xml": "<set>\n<parameter name='tmp.service-instance-name' value=\"`$service-topology-operation-input.service-request-input.service-instance-name`\" />\n",
 
 354         "x": 1820.6428756713867,
 
 355         "y": 906.1905384063721,
 
 356         "z": "d6c1fe8e.0dbfc",
 
 360         "id": "ec3c304f.7f733",
 
 362         "name": "update AAI service instance",
 
 363         "xml": "<update plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\t\tresource=\"service-instance\" \n\t\tkey=\"customer.global-customer-id = $service-topology-operation-input.service-information.global-customer-id AND\n\t\t\tservice-subscription.service-type = $service-topology-operation-input.service-information.subscription-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=\"service-instance-name\" value=\"`$tmp.service-instance-name`\" />\n\t<parameter name=\"selflink\" value=\"`$service-object-path`\" />\n",
 
 366         "x": 529.4524154663086,
 
 367         "y": 1013.5237646102905,
 
 368         "z": "d6c1fe8e.0dbfc",
 
 377         "id": "52adc0d3.8b42e",
 
 380         "xml": "<outcome value='failure'>\n",
 
 383         "x": 741.214282989502,
 
 384         "y": 988.7619190216064,
 
 385         "z": "d6c1fe8e.0dbfc",
 
 393         "id": "633d341.6a482cc",
 
 394         "type": "returnFailure",
 
 395         "name": "return failure",
 
 396         "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",
 
 398         "x": 891.2142486572266,
 
 399         "y": 988.7619972229004,
 
 400         "z": "d6c1fe8e.0dbfc",
 
 404         "id": "dd72f866.d6cb28",
 
 406         "name": "set service-level-oper-status to Created",
 
 407         "xml": "<set>\n<parameter name='service-data.service-level-oper-status.order-status' value='Created' />\n<parameter name='service-data.service-level-oper-status.last-rpc-action' value='assign' />\n<parameter name='service-data.service-level-oper-status.last-action' value='CreateServiceInstance' />\n",
 
 409         "x": 564.7380981445312,
 
 410         "y": 1262.2141160964966,
 
 411         "z": "d6c1fe8e.0dbfc",
 
 415         "id": "b5b6afcf.5fa1",
 
 417         "name": "set service-object-path",
 
 418         "xml": "<set>\n<parameter name='service-object-path'\n value=\"`'restconf/config/GENERIC-RESOURCE-API:services/service/'\n + $service-topology-operation-input.service-information.service-instance-id\n + '/service-data/service-topology/'`\"/>\n",
 
 420         "x": 513.9760437011719,
 
 421         "y": 949.4761152267456,
 
 422         "z": "d6c1fe8e.0dbfc",
 
 426         "id": "6dc77130.ebecc",
 
 427         "type": "switchNode",
 
 428         "name": "switch order-status",
 
 429         "xml": "<switch test='`$service-data.service-level-oper-status.order-status`'>\n",
 
 432         "x": 504.38090896606445,
 
 433         "y": 378.66676330566406,
 
 434         "z": "d6c1fe8e.0dbfc",
 
 444         "id": "a8edf7c5.7b4478",
 
 447         "xml": "<outcome value='Created'>\n",
 
 450         "x": 700.3333587646484,
 
 451         "y": 378.33335971832275,
 
 452         "z": "d6c1fe8e.0dbfc",
 
 460         "id": "685d0e61.debed",
 
 461         "type": "returnFailure",
 
 462         "name": "return failure",
 
 463         "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=\"The requested service already exists\" />\n",
 
 465         "x": 902.476188659668,
 
 466         "y": 377.90489387512207,
 
 467         "z": "d6c1fe8e.0dbfc",
 
 471         "id": "3d90af09.6137c",
 
 473         "name": "set service-topology identifiers",
 
 474         "xml": "<set>\n<parameter name='service-data.service-topology.service-topology-identifier.service-instance-id'\n  value='`$service-topology-operation-input.service-information.service-instance-id`' />\n<parameter name='service-data.service-topology.service-topology-identifier.service-type'\n  value='`$service-topology-operation-input.service-information.subscription-service-type`' />\n<parameter name='service-data.service-topology.service-topology-identifier.service-instance-name'\n  value='`$tmp.service-instance-name`' />\n<parameter name='service-data.service-topology.service-topology-identifier.global-customer-id'\n  value='`$service-topology-operation-input.service-information.global-customer-id`' />\n",
 
 476         "x": 540.7143249511719,
 
 477         "y": 1081.8570585250854,
 
 478         "z": "d6c1fe8e.0dbfc",
 
 482         "id": "2653a44e.adc4ec",
 
 484         "name": "for each service-input-parameters",
 
 485         "xml": "<for index='idx' start='0' end='`$service-topology-operation-input.service-request-input.service-input-parameters.param_length`' >\n",
 
 488         "x": 970.523754119873,
 
 489         "y": 1219.9524974822998,
 
 490         "z": "d6c1fe8e.0dbfc",
 
 498         "id": "6a555acb.26f484",
 
 500         "name": "set parameter name/value",
 
 501         "xml": "<set>\n<parameter name='service-data.service-topology.service-parameters[$idx].service-parameter-name'\n  value='`$service-topology-operation-input.service-request-input.service-input-parameters.param[$idx].name`' />\n<parameter name='service-data.service-topology.service-parameters[$idx].service-parameter-value'\n  value='`$service-topology-operation-input.service-request-input.service-input-parameters.param[$idx].value`' />\n",
 
 503         "x": 1251.9522171020508,
 
 504         "y": 1219.952444076538,
 
 505         "z": "d6c1fe8e.0dbfc",
 
 509         "id": "da5ddc08.e7611",
 
 510         "type": "switchNode",
 
 511         "name": "switch input parameter length",
 
 512         "xml": "<switch test='`$service-topology-operation-input.service-request-input.service-input-parameters.param_length`'>\n",
 
 515         "x": 533.3333282470703,
 
 516         "y": 1192.3332176208496,
 
 517         "z": "d6c1fe8e.0dbfc",
 
 526         "id": "f2b63cee.3f632",
 
 529         "xml": "<outcome value=''>",
 
 532         "x": 748.237907409668,
 
 533         "y": 1168.5238513946533,
 
 534         "z": "d6c1fe8e.0dbfc",
 
 542         "id": "8a63c0fd.08758",
 
 549         "x": 886.8092994689941,
 
 550         "y": 1168.5238342285156,
 
 551         "z": "d6c1fe8e.0dbfc",
 
 557         "id": "cf7a3d51.1eefe",
 
 560         "xml": "<outcome value='Other'>\n",
 
 563         "x": 746.8093185424805,
 
 564         "y": 1219.9524402618408,
 
 565         "z": "d6c1fe8e.0dbfc",
 
 573         "id": "e78ecd27.54c89",
 
 575         "name": "set service-topology onap-model-information",
 
 576         "xml": "<set>\n<parameter name='service-data.service-topology.onap-model-information.'\n  value='`$service-topology-operation-input.service-information.onap-model-information.`' />\n",
 
 578         "x": 590.7143096923828,
 
 579         "y": 1126.142632484436,
 
 580         "z": "d6c1fe8e.0dbfc",
 
 584         "id": "e75df5d6.b27108",
 
 587         "xml": "<outcome value='not-found'>\n",
 
 590         "x": 747.5237121582031,
 
 591         "y": 1037.3333368301392,
 
 592         "z": "d6c1fe8e.0dbfc",
 
 600         "id": "d46d87d4.1042c8",
 
 601         "type": "returnFailure",
 
 602         "name": "return failure",
 
 603         "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=\"The service instance does not exist in AAI\" />\n",
 
 605         "x": 890.8570098876953,
 
 606         "y": 1035.6667108535767,
 
 607         "z": "d6c1fe8e.0dbfc",
 
 611         "id": "11216bc9.793f94",
 
 613         "name": "call GENERIC-RESOURCE-API:generate-unique-name",
 
 614         "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
 
 617         "x": 1261.1904754638672,
 
 618         "y": 762.4761629104614,
 
 619         "z": "d6c1fe8e.0dbfc",
 
 628         "id": "d2b85a61.8d6948",
 
 631         "xml": "<outcome value='failure'>\n",
 
 634         "x": 1601.1904487609863,
 
 635         "y": 737.476222038269,
 
 636         "z": "d6c1fe8e.0dbfc",
 
 644         "id": "6193cfa1.f5b12",
 
 647         "xml": "<outcome value='success'>\n",
 
 650         "x": 1604.5237986246743,
 
 651         "y": 787.1428651809692,
 
 652         "z": "d6c1fe8e.0dbfc",
 
 660         "id": "730225bd.4a385c",
 
 662         "name": "set variables for generating unique name",
 
 663         "xml": "<set>\n<parameter name='generate-unique-name-input.index-table-name' value='SERVICE_INSTANCE_NAME_INDEX' />\n<parameter name='generate-unique-name-input.index-table-prefix-column' value='service_instance_name_prefix' />\n<parameter name='generate-unique-name-input.name-table-type' value='SERVICE_INSTANCE' />\n<parameter name='generate-unique-name-input.prefix' value=\"`$db.service-model.service-instance-name-prefix + '_'`\" />\n",
 
 665         "x": 1216.190559387207,
 
 666         "y": 702.142972946167,
 
 667         "z": "d6c1fe8e.0dbfc",
 
 671         "id": "42ec1fd9.8064a",
 
 673         "name": "set tmp.service-instance-name to generated name",
 
 674         "xml": "<set>\n<parameter name='tmp.service-instance-name' value='`$generate-unique-name-output.generated-name`' />\n",
 
 676         "x": 1888.5713500976562,
 
 677         "y": 786.1904458999634,
 
 678         "z": "d6c1fe8e.0dbfc",
 
 682         "id": "ed4311d6.fdf73",
 
 683         "type": "returnFailure",
 
 684         "name": "return failure",
 
 685         "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=\"`$generate-unique-name-output.error-message`\" />\n",
 
 687         "x": 1769.0475616455078,
 
 688         "y": 736.9047336578369,
 
 689         "z": "d6c1fe8e.0dbfc",
 
 693         "id": "7dd34c72.469dd4",
 
 695         "name": "block : atomic",
 
 696         "xml": "<block atomic=\"true\">",
 
 699         "x": 926.8571319580078,
 
 700         "y": 857.4285793304443,
 
 701         "z": "d6c1fe8e.0dbfc",
 
 710         "id": "bbc8a4da.124f28",
 
 712         "name": "call GENERIC-RESOURCE-API:generate-unique-name",
 
 713         "xml": "<call module='GENERIC-RESOURCE-API' rpc='generate-unique-name' mode='sync' >\n",
 
 716         "x": 1256.8571472167969,
 
 717         "y": 882.0952301025391,
 
 718         "z": "d6c1fe8e.0dbfc",
 
 727         "id": "8ea07c5d.48a34",
 
 730         "xml": "<outcome value='failure'>\n",
 
 733         "x": 1596.857105255127,
 
 734         "y": 855.428638458252,
 
 735         "z": "d6c1fe8e.0dbfc",
 
 743         "id": "d227b72.98c2048",
 
 746         "xml": "<outcome value='success'>\n",
 
 749         "x": 1600.190455118815,
 
 750         "y": 907.0952816009521,
 
 751         "z": "d6c1fe8e.0dbfc",
 
 759         "id": "39e93876.652cd8",
 
 761         "name": "set variables for generating unique name",
 
 762         "xml": "<set>\n<parameter name='generate-unique-name-input.name-table-type' value='SERVICE_INSTANCE' />\n<parameter name='generate-unique-name-input.supplied-name' value='`$service-topology-operation-input.service-request-input.service-instance-name`' />\n",
 
 764         "x": 1215.1905212402344,
 
 765         "y": 833.7619361877441,
 
 766         "z": "d6c1fe8e.0dbfc",
 
 770         "id": "9626e69f.8bab88",
 
 771         "type": "returnFailure",
 
 772         "name": "return failure",
 
 773         "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=\"`$generate-unique-name-output.error-message`\" />\n",
 
 775         "x": 1764.7142181396484,
 
 776         "y": 854.8571500778198,
 
 777         "z": "d6c1fe8e.0dbfc",
 
 781         "id": "42c43d09.6995e4",
 
 784         "xml": "<outcome value='failure'>\n",
 
 787         "x": 788.5713310241699,
 
 788         "y": 472.19044494628906,
 
 789         "z": "d6c1fe8e.0dbfc",
 
 797         "id": "141523e4.26033c",
 
 800         "xml": "<outcome value='not-found'>\n",
 
 803         "x": 797.1427612304688,
 
 804         "y": 515.4761581420898,
 
 805         "z": "d6c1fe8e.0dbfc",
 
 813         "id": "43d55ae4.17c224",
 
 814         "type": "returnFailure",
 
 815         "name": "return failure",
 
 816         "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=\"Error reading SERVICE_MODEL table\" />\n",
 
 818         "x": 961.4284973144531,
 
 819         "y": 470.7618885040283,
 
 820         "z": "d6c1fe8e.0dbfc",
 
 824         "id": "ad8ed89.4b77b28",
 
 827         "xml": "<outcome value=''>",
 
 830         "x": 698.3332824707031,
 
 831         "y": 333.66668128967285,
 
 832         "z": "d6c1fe8e.0dbfc",
 
 840         "id": "ee8ac40f.7f3d48",
 
 842         "name": "PendingDelete",
 
 843         "xml": "<outcome value='PendingDelete'>\n",
 
 846         "x": 721.0000114440918,
 
 847         "y": 422.3333396911621,
 
 848         "z": "d6c1fe8e.0dbfc",
 
 856         "id": "840bc4c1.bd8ae8",
 
 857         "type": "returnFailure",
 
 858         "name": "return failure",
 
 859         "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=\"The requested service is pending deletion\" />\n",
 
 861         "x": 903.333309173584,
 
 862         "y": 422.3333501815796,
 
 863         "z": "d6c1fe8e.0dbfc",
 
 867         "id": "8fe971e9.f5c2",
 
 874         "x": 884.9999923706055,
 
 875         "y": 332.6667003631592,
 
 876         "z": "d6c1fe8e.0dbfc",