[
    {
        "id": "8986a615.d2eba",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 893,
        "y": 435,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "a587d37.4461bb"
            ]
        ]
    },
    {
        "id": "a587d37.4461bb",
        "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": 1200.9996490478516,
        "y": 435.0000219345093,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "7bf72e16.cc5638"
            ]
        ]
    },
    {
        "id": "7bf72e16.cc5638",
        "type": "method",
        "name": "method:bbs-internet-profile-network-topology-operation-change-huawei",
        "xml": "<method rpc='bbs-internet-profile-network-topology-operation-change-huawei' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 1198.9996490478516,
        "y": 631.0000619888306,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "d96dea5b.58d7"
            ]
        ]
    },
    {
        "id": "d96dea5b.58d7",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic=\"true\">\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 1605.9998626708984,
        "y": 632.0000619888306,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "7720916f.7813b8",
                "627c5b65.98524c",
                "e657d2bd.9178a8"
            ]
        ]
    },
    {
        "id": "627c5b65.98524c",
        "type": "execute",
        "name": "execute:ChangeInternetProfileInstance",
        "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-internet-profile-operation.json'`\" />\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ChangeInternetProfileInstance'`\" />\n    <parameter name=\"contentType\" value=\"application/json\"/>\n    <parameter name=\"httpMethod\" value=\"post\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>",
        "comments": "",
        "outputs": 1,
        "x": 1933,
        "y": 633,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "adc20a6c.9b2ab",
                "55d7a784.5951f"
            ]
        ]
    },
    {
        "id": "55d7a784.5951f",
        "type": "outcome",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 2234.332981109619,
        "y": 633,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "cce9a716.18951"
            ]
        ]
    },
    {
        "id": "adc20a6c.9b2ab",
        "type": "outcome",
        "name": "success",
        "xml": "<outcome value='success'>\n",
        "comments": "",
        "outputs": 1,
        "x": 2243.332893371582,
        "y": 708.0000019073486,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "b35bace0.7d3d98"
            ]
        ]
    },
    {
        "id": "b35bace0.7d3d98",
        "type": "switchNode",
        "name": "switch:service-result",
        "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
        "comments": "",
        "outputs": 1,
        "x": 2478.3490142822266,
        "y": 707.0392971038818,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "a90ffced.1c8348",
                "63b509e9.2d95d8"
            ]
        ]
    },
    {
        "id": "cce9a716.18951",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call ChangeInternetProfileInstance\" />\n",
        "comments": "",
        "x": 2743.2665939331055,
        "y": 633.289547920227,
        "z": "ab14e16a.6a0518",
        "wires": []
    },
    {
        "id": "a90ffced.1c8348",
        "type": "outcome",
        "name": "Other",
        "xml": "<outcome value='Other'>\n",
        "comments": "",
        "outputs": 1,
        "x": 2704.349353790283,
        "y": 708.0393905639648,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "e561cbc.a164eb8"
            ]
        ]
    },
    {
        "id": "63b509e9.2d95d8",
        "type": "outcome",
        "name": "NULL",
        "xml": "<outcome value=''>\n",
        "comments": "",
        "outputs": 1,
        "x": 2714.3490600585938,
        "y": 794.0392570495605,
        "z": "ab14e16a.6a0518",
        "wires": [
            [
                "96c1b54d.1bf908"
            ]
        ]
    },
    {
        "id": "e561cbc.a164eb8",
        "type": "returnFailure",
        "name": "return failure",
        "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error ChangeInternetProfileInstance return: '+$service-result.errors.error[0].error-message`\" />\n\n",
        "comments": "",
        "x": 2890.849021911621,
        "y": 708.0392274856567,
        "z": "ab14e16a.6a0518",
        "wires": []
    },
    {
        "id": "96c1b54d.1bf908",
        "type": "block",
        "name": "block",
        "xml": "<block>\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 2872.5156898498535,
        "y": 795.0392322540283,
        "z": "ab14e16a.6a0518",
        "wires": [
            []
        ]
    },
    {
        "id": "e657d2bd.9178a8",
        "type": "returnSuccess",
        "name": "return success",
        "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
        "comments": "",
        "x": 1848.8489570617676,
        "y": 715.0393257141113,
        "z": "ab14e16a.6a0518",
        "wires": []
    },
    {
        "id": "7720916f.7813b8",
        "type": "call",
        "name": "call:bbs-internet-profile-network-topology-operation-common-huawei",
        "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-network-topology-operation-common-huawei' mode='sync' >\n",
        "comments": "",
        "outputs": 1,
        "x": 2035.015869140625,
        "y": 547.0391578674316,
        "z": "ab14e16a.6a0518",
        "wires": [
            []
        ]
    }
]