[
    {
        "id": "214635e7.c9d7da",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 162.85714721679688,
        "y": 60,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "7c170e6c.b1f92"
            ]
        ]
    },
    {
        "id": "7c170e6c.b1f92",
        "type": "service-logic",
        "name": "GENERIC-RESOURCE-API ${project.version}",
        "module": "GENERIC-RESOURCE-API",
        "version": "${project.version}",
        "comments": "",
        "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}'>",
        "outputs": 1,
        "x": 438.8571472167969,
        "y": 61,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "bc54c92c.6660c8"
            ]
        ]
    },
    {
        "id": "bc54c92c.6660c8",
        "type": "method",
        "name": "self-serve-generate-name-changeassign",
        "xml": "<method rpc='self-serve-generate-name-changeassign' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 287.71429443359375,
        "y": 118.57143115997314,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "2a24a725.3d8af8"
            ]
        ]
    },
    {
        "id": "2a24a725.3d8af8",
        "type": "block",
        "name": "block atomic",
        "xml": "<block atomic=\"true\">\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 345.64286041259766,
        "y": 292.9999942779541,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "cfd035fd.908608",
                "16504b6.9600db5",
                "6ee2e5ff.d456bc",
                "9f6c60d6.c01e8",
                "7e866415.d5162c"
            ]
        ]
    },
    {
        "id": "6ee2e5ff.d456bc",
        "type": "switchNode",
        "name": "switch ss.capability-type",
        "xml": "<switch test='`$ss.capability-type`'>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 621.1428527832031,
        "y": 645.5397043228149,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "d6d95309.fd728",
                "89c92bcf.b9bd18",
                "18b4c130.7fafcf"
            ]
        ]
    },
    {
        "id": "d6d95309.fd728",
        "type": "outcome",
        "name": "vnf",
        "xml": "<outcome value='vnf'>\n",
        "comments": "",
        "outputs": 1,
        "x": 857.5715103149414,
        "y": 558.000018119812,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "da068899.c4fcc8"
            ]
        ]
    },
    {
        "id": "89c92bcf.b9bd18",
        "type": "outcome",
        "name": "vf-module",
        "xml": "<outcome value='vf-module'>\n",
        "comments": "",
        "outputs": 1,
        "x": 869.3015823364258,
        "y": 616.2061395645142,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "79055137.e90c6"
            ]
        ]
    },
    {
        "id": "cfd035fd.908608",
        "type": "switchNode",
        "name": "switch ss.input.param.index",
        "xml": "<switch test='`$ss.input.param.index`'>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 638.1428680419922,
        "y": 390.28570652008057,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "b355a907.8b4998"
            ]
        ]
    },
    {
        "id": "16504b6.9600db5",
        "type": "switchNode",
        "name": "switch ss.service-data.param.index",
        "xml": "<switch test='`$ss.service-data.param.index`'>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 665.8571624755859,
        "y": 463.71426486968994,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "212a16ee.89cc4a"
            ]
        ]
    },
    {
        "id": "b355a907.8b4998",
        "type": "outcome",
        "name": "null",
        "xml": "<outcome value=''>",
        "comments": "",
        "outputs": 1,
        "x": 871.1429214477539,
        "y": 390.7142767906189,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "e955c510.269908"
            ]
        ]
    },
    {
        "id": "212a16ee.89cc4a",
        "type": "outcome",
        "name": "null",
        "xml": "<outcome value=''>",
        "comments": "",
        "outputs": 1,
        "x": 908.4286270141602,
        "y": 463.71426916122437,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "2955cf32.c355c"
            ]
        ]
    },
    {
        "id": "e955c510.269908",
        "type": "returnFailure",
        "name": "return failure",
        "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=\"ss.input.param.index is null\" />\n",
        "comments": "",
        "x": 1060.142921447754,
        "y": 390.7142767906189,
        "z": "5d6511ad.296e1",
        "wires": []
    },
    {
        "id": "2955cf32.c355c",
        "type": "returnFailure",
        "name": "return failure",
        "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=\"ss.service-data.param.index is null\" />\n",
        "comments": "",
        "x": 1095.4286270141602,
        "y": 463.71426916122437,
        "z": "5d6511ad.296e1",
        "wires": []
    },
    {
        "id": "c215d7d9.0f6ee8",
        "type": "outcome",
        "name": "pnf",
        "xml": "<outcome value='pnf'>\n",
        "comments": "",
        "outputs": 1,
        "x": 852.8571586608887,
        "y": 674.2857217788696,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "5357c55f.7049cc"
            ]
        ]
    },
    {
        "id": "18b4c130.7fafcf",
        "type": "outcome",
        "name": "other",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 852.8254013061523,
        "y": 729.2698307037354,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "1774b158.13d70f"
            ]
        ]
    },
    {
        "id": "1774b158.13d70f",
        "type": "returnFailure",
        "name": "return failure",
        "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=\"`'Unknown capability-type [' + $ss.capability-type + '], valid value are: vnf, pnf, vf-module'`\" />\n",
        "comments": "",
        "x": 1039.3967819213867,
        "y": 729.2698259353638,
        "z": "5d6511ad.296e1",
        "wires": []
    },
    {
        "id": "da068899.c4fcc8",
        "type": "call",
        "name": "call self-serve-vnf-generate-name-changeassign",
        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vnf-generate-name-changeassign' mode='sync' >\n",
        "comments": "",
        "outputs": 1,
        "x": 1154.2858581542969,
        "y": 558.1428499221802,
        "z": "5d6511ad.296e1",
        "wires": [
            []
        ]
    },
    {
        "id": "79055137.e90c6",
        "type": "call",
        "name": "call self-serve-vf-module-generate-name-changeassign",
        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-vf-module-generate-name-changeassign' mode='sync' >\n",
        "comments": "",
        "outputs": 1,
        "x": 1203.3930702209473,
        "y": 615.9285726547241,
        "z": "5d6511ad.296e1",
        "wires": [
            []
        ]
    },
    {
        "id": "5357c55f.7049cc",
        "type": "call",
        "name": "call self-serve-pnf-generate-name-changeassign",
        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-pnf-generate-name-changeassign' mode='sync' >\n",
        "comments": "",
        "outputs": 1,
        "x": 1155.0001258850098,
        "y": 673.7143020629883,
        "z": "5d6511ad.296e1",
        "wires": [
            []
        ]
    },
    {
        "id": "7e866415.d5162c",
        "type": "call",
        "name": "call capability-param-resolution",
        "xml": "<call module='GENERIC-RESOURCE-API' rpc='self-serve-capability-param-resolution' mode='sync' >\n",
        "comments": "",
        "outputs": 1,
        "x": 651.4284973144531,
        "y": 320.00001335144043,
        "z": "5d6511ad.296e1",
        "wires": [
            []
        ]
    },
    {
        "id": "84c93cbb.6b991",
        "type": "execute",
        "name": "execute PropertiesNode",
        "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
        "comments": "",
        "outputs": 1,
        "x": 1042.1070763724192,
        "y": 250.28571564810636,
        "z": "5d6511ad.296e1",
        "wires": [
            []
        ]
    },
    {
        "id": "9f6c60d6.c01e8",
        "type": "switchNode",
        "name": "switch prop.controller.user",
        "xml": "<switch test='`$prop.controller.user`'>\n",
        "comments": "",
        "outputs": 1,
        "x": 630.8213119506836,
        "y": 250.71433639526367,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "beb3f038.e55c8"
            ]
        ]
    },
    {
        "id": "beb3f038.e55c8",
        "type": "failure",
        "name": "NULL",
        "xml": "<outcome value=''>\n",
        "comments": "",
        "outputs": 1,
        "x": 830.6784073965891,
        "y": 250.28575093405607,
        "z": "5d6511ad.296e1",
        "wires": [
            [
                "84c93cbb.6b991"
            ]
        ]
    }
]