"type":"service-logic",
"name":"GENERIC-RESOURCE-API ${project.version}",
"module":"GENERIC-RESOURCE-API",
"type":"service-logic",
"name":"GENERIC-RESOURCE-API ${project.version}",
"module":"GENERIC-RESOURCE-API",
"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,
"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,
"type":"method",
"name":"network-topology-operation",
"xml":"<method rpc='network-topology-operation' mode='sync'>\n",
"comments":"",
"outputs":1,
"type":"method",
"name":"network-topology-operation",
"xml":"<method rpc='network-topology-operation' mode='sync'>\n",
"comments":"",
"outputs":1,
"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":"",
"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":"",
"type":"switchNode",
"name":"switch svc-action",
"xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch svc-action",
"xml":"<switch test='`$network-topology-operation-input.sdnc-request-header.svc-action`'>\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:validate-network-input",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:validate-network-input",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='validate-network-input' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-assign",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-assign",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-assign' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-activate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-activate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-activate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-deactivate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-deactivate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-unassign",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-unassign",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-unassign' mode='sync' >\n",
"comments":"",
"outputs":1,
"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=\"sdnc-request-header.svc-action is a required input\" />\n",
"comments":"",
"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=\"sdnc-request-header.svc-action is a required input\" />\n",
"comments":"",
"type":"set",
"name":"Set final indicator to Y",
"xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
"comments":"",
"type":"set",
"name":"Set final indicator to Y",
"xml":"<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
"comments":"",
"type":"for",
"name":"for nidx..service-data.networks.network[]",
"xml":"<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
"comments":"",
"outputs":1,
"type":"for",
"name":"for nidx..service-data.networks.network[]",
"xml":"<for index='nidx' start='0' end='`$service-data.networks.network_length`' >\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch service-data.networks.network_length",
"xml":"<switch test='`$service-data.networks.network_length`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch service-data.networks.network_length",
"xml":"<switch test='`$service-data.networks.network_length`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch networkid found",
"xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch networkid found",
"xml":"<switch test=\"`$service-data.networks.network[$nidx].network-id == $network-topology-operation-input.network-information.network-id`\">\n\n",
"comments":"",
"outputs":1,
"type":"set",
"name":"set tmp.nidx and ctx.network-data",
"xml":"<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
"comments":"",
"type":"set",
"name":"set tmp.nidx and ctx.network-data",
"xml":"<set>\n<parameter name='tmp.nidx' value='`$nidx`' />\n<parameter name='ctx.network-data.' value='`$service-data.networks.network[$nidx].`' />\n",
"comments":"",
"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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
"comments":"",
"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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
"comments":"",
"type":"switchNode",
"name":"switch tmp.nidx ",
"xml":"<switch test=\"`$tmp.nidx`\">\n\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch tmp.nidx ",
"xml":"<switch test=\"`$tmp.nidx`\">\n\n",
"comments":"",
"outputs":1,
"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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
"comments":"",
"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=\"network-topology-operation-input.network-request-input.network-id not found in service-data\" />\n",
"comments":"",
"type":"switchNode",
"name":"switch network-level-oper-status",
"xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch network-level-oper-status",
"xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome PendingCreate",
"xml":"<outcome value='PendingCreate'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome PendingCreate",
"xml":"<outcome value='PendingCreate'>\n",
"comments":"",
"outputs":1,
"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=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
"comments":"",
"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=\"`'Network is not in appropriate state for activate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
"comments":"",
"type":"switchNode",
"name":"switch network-level-oper-status",
"xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch network-level-oper-status",
"xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome Created",
"xml":"<outcome value='Created'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome Created",
"xml":"<outcome value='Created'>\n",
"comments":"",
"outputs":1,
"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=\"`'Network is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
"comments":"",
"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=\"`'Network is not in appropriate state for deactivate. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
"comments":"",
"type":"switchNode",
"name":"switch network-level-oper-status",
"xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch network-level-oper-status",
"xml":"<switch test='`$service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome PendingCreate",
"xml":"<outcome value='PendingCreate'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome PendingCreate",
"xml":"<outcome value='PendingCreate'>\n",
"comments":"",
"outputs":1,
"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=\"`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
"comments":"",
"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=\"`'Network is not in appropriate state for unassign. Current state is ' + $service-data.networks.network[$tmp.nidx].network-data.network-level-oper-status.order-status`\" />",
"comments":"",
"type":"outcome",
"name":"outcome PendingDelete",
"xml":"<outcome value='PendingDelete'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"outcome PendingDelete",
"xml":"<outcome value='PendingDelete'>\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-create",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-create",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-create' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-delete",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:network-topology-operation-delete",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='network-topology-operation-delete' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch request-action",
"xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch request-action",
"xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"ActivateDCINetworkInstance",
"xml":"<outcome value='ActivateDCINetworkInstance'>",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"ActivateDCINetworkInstance",
"xml":"<outcome value='ActivateDCINetworkInstance'>",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-activate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-activate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-activate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch request-action",
"xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
"comments":"",
"outputs":1,
"type":"switchNode",
"name":"switch request-action",
"xml":"<switch test='`$network-topology-operation-input.request-information.request-action`'>\n",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"DeActivateDCINetworkInstance",
"xml":"<outcome value='DeActivateDCINetworkInstance'>",
"comments":"",
"outputs":1,
"type":"outcome",
"name":"DeActivateDCINetworkInstance",
"xml":"<outcome value='DeActivateDCINetworkInstance'>",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-deactivate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' >\n",
"comments":"",
"outputs":1,
"type":"call",
"name":"call GENERIC-RESOURCE-API:dci-connects-network-topology-operation-deactivate",
"xml":"<call module='GENERIC-RESOURCE-API' rpc='dci-connects-network-topology-operation-deactivate' mode='sync' >\n",
"comments":"",
"outputs":1,