diff options
author | 2017-12-22 11:32:09 -0500 | |
---|---|---|
committer | 2017-12-22 11:33:09 -0500 | |
commit | 9475355553b59df58d6f516e2c9109babae9ffd0 (patch) | |
tree | 804daa79f9688c4cb38bc076173e9d354f3e0ea9 /appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json | |
parent | 2148d65b418a3e8223fb911dafb97ac3a968bbf1 (diff) |
Platform Hardening for DG Json files - Part 1
Change-Id: I0bf2ee8883889e1edeb46ef3bcd96d1002746cf6
Issue-ID: APPC-305
Signed-off-by: Taka <tc012c@att.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json')
-rw-r--r-- | appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json | 726 |
1 files changed, 725 insertions, 1 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json index 64c31bd61..32fdd5f90 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/Dispatcher-DG/Appc-API_2.0.0.0_method_acquire_license.json @@ -1 +1,725 @@ -[{"id":"b1ce6dcf.35732","type":"dgstart","name":"DGSTART","outputs":1,"x":188,"y":50,"z":"150446f3.d47aa9","wires":[["174ee6ca.1ed6a9"]]},{"id":"174ee6ca.1ed6a9","type":"service-logic","name":"Appc-API 2.0.0.0","module":"Appc-API","version":"2.0.0.0","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='Appc-API' version='2.0.0.0'>","outputs":1,"x":350,"y":50,"z":"150446f3.d47aa9","wires":[["f19dcf10.eaeb9"]]},{"id":"f19dcf10.eaeb9","type":"method","name":"Method: Acquire License","xml":"<method rpc='acquire_license' mode='sync'>\n","comments":"","outputs":1,"x":581,"y":50,"z":"150446f3.d47aa9","wires":[["9ce11364.ca14f"]]},{"id":"9d436678.79ec78","type":"execute","name":"execute: retrieveLicenseModel","xml":"<execute plugin='org.onap.appc.dg.licmgr.LicenseManagerPlugin' method='retrieveLicenseModel' >\n<parameter name=\"org.onap.appc.vftype\" value=\"`$aai.input.data.vnf-type`\" />\n<parameter name=\"org.onap.appc.resource-version\" value=\"`$aai.input.data.persona-model-version`\" />\n\n","comments":"","outputs":1,"x":514,"y":350,"z":"150446f3.d47aa9","wires":[["b03a6327.d8941"]]},{"id":"f5ad1877.f5fb08","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":1239,"y":217,"z":"150446f3.d47aa9","wires":[[]]},{"id":"25ece2ae.1fed4e","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":959,"y":274,"z":"150446f3.d47aa9","wires":[["f5ad1877.f5fb08","4d4a5b49.2afb94"]]},{"id":"4d4a5b49.2afb94","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value='`$org.onap.appc.dg.error`' />\n","comments":"","x":1188,"y":274,"z":"150446f3.d47aa9","wires":[]},{"id":"4a0353c8.2d471c","type":"execute","name":"execute: getVNFData","xml":"<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getGenericVnfData'>","comments":"","outputs":1,"x":480,"y":274,"z":"150446f3.d47aa9","wires":[["b03a6327.d8941"]]},{"id":"972dd4cd.52e478","type":"set","name":"set","xml":"<set>\n\t<parameter name='aai.vnfID' value='`$input.action-identifiers.vnf-id`' />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t","comments":"","x":436,"y":210,"z":"150446f3.d47aa9","wires":[]},{"id":"9ce11364.ca14f","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":209,"y":274,"z":"150446f3.d47aa9","wires":[["972dd4cd.52e478","4a0353c8.2d471c","9d436678.79ec78","79795ed2.80425","99224f0e.1687b","d5060181.3d546"]]},{"id":"b03a6327.d8941","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":785,"y":274,"z":"150446f3.d47aa9","wires":[["25ece2ae.1fed4e"]]},{"id":"d8eca0a4.77181","type":"call","name":"acquire entitlement","xml":"<call module='Appc-API' version='2.0.0.0' rpc='acquire_and_return' mode='sync' >\n","comments":"","outputs":1,"x":1048,"y":426,"z":"150446f3.d47aa9","wires":[["5f4740fc.82243","e9c2ecda.2a739"]]},{"id":"bc1e02ed.46d83","type":"set","name":"set for entitlement","xml":"<set>\n\t<parameter name='model.uuid' value='`$model.entitlement.pool.uuid`' />\n\t<parameter name='aai.uuid' value='`$aai.input.data.entitlement-assignment-group-uuid`' />\n\t<parameter name='aai.asset.tag' value='`$aai.input.data.entitlement-resource-uuid`' />\n\t<parameter name='acquire.require' value='`$is.acquire-entitlement.require`' />\n\t<parameter name='release.require' value='`$is.release-entitlement.require`' />\n\t<parameter name='acquire.method' value='acquireEntitlement' />\n\t<parameter name='release.method' value='releaseEntitlement' />","comments":"","x":1061,"y":371,"z":"150446f3.d47aa9","wires":[]},{"id":"79795ed2.80425","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n","comments":"","x":459,"y":601,"z":"150446f3.d47aa9","wires":[]},{"id":"f26c05b5.ce1df8","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":839,"y":426,"z":"150446f3.d47aa9","wires":[["bc1e02ed.46d83","d8eca0a4.77181"]]},{"id":"ed1a5e9a.1ca9d","type":"block","name":"block : atomic","xml":"<block atomic='true'>","atomic":"true","comments":"","outputs":1,"x":838,"y":519,"z":"150446f3.d47aa9","wires":[["5791d93f.9c9838","4f84efd3.d3e91"]]},{"id":"5791d93f.9c9838","type":"set","name":"set for license","xml":"<set>\n\t<parameter name='model.uuid' value='`$model.license.key.uuid`' />\n\t<parameter name='aai.uuid' value='`$aai.input.data.license-assignment-group-uuid`' />\n\t<parameter name='aai.asset.tag' value='`$aai.input.data.license-key-uuid`' />\n\t<parameter name='acquire.require' value='`$is.acquire-license.require`' />\n\t<parameter name='release.require' value='`$is.release-license.require`' />\n\t<parameter name='acquire.method' value='acquireLicense' />\n\t<parameter name='release.method' value='releaseLicense' />","comments":"","x":1056,"y":519,"z":"150446f3.d47aa9","wires":[]},{"id":"4f84efd3.d3e91","type":"call","name":"acquire license","xml":"<call module='Appc-API' version='2.0.0.0' rpc='acquire_and_return' mode='sync' >\n","comments":"","outputs":1,"x":1054,"y":593,"z":"150446f3.d47aa9","wires":[["1676c3bf.6ae81c","921d09c2.070c98"]]},{"id":"5f4740fc.82243","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1259,"y":391,"z":"150446f3.d47aa9","wires":[["a4badb8.6948e28"]]},{"id":"e9c2ecda.2a739","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1258,"y":460,"z":"150446f3.d47aa9","wires":[["ef554789.af5fd8"]]},{"id":"9832f22b.c3486","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":1885,"y":459,"z":"150446f3.d47aa9","wires":[[]]},{"id":"ef554789.af5fd8","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1576,"y":459,"z":"150446f3.d47aa9","wires":[["9832f22b.c3486","b3985ada.5fad68","8a8cc770.dfc4c8"]]},{"id":"b3985ada.5fad68","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value='`$acquire.error.error-message`' />\n","comments":"","x":1832,"y":500,"z":"150446f3.d47aa9","wires":[]},{"id":"a4badb8.6948e28","type":"execute","name":"execute: postVNFData","xml":"<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postGenericVnfData' >\n\t<parameter name='aai.input.data.entitlement-resource-uuid' value='`$asset-tag`' />\n\t<parameter name='aai.input.data.entitlement-assignment-group-uuid' value='`$model.uuid`' />\n\n","comments":"","outputs":1,"x":1438,"y":391,"z":"150446f3.d47aa9","wires":[["5759c209.a4dc6c","48280ad5.075c64"]]},{"id":"5759c209.a4dc6c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1637,"y":346,"z":"150446f3.d47aa9","wires":[["9fb59e95.cd2ae"]]},{"id":"8a8cc770.dfc4c8","type":"set","name":"set","xml":"<set>\n\t<parameter name='org.onap.appc.dg.error' value='`$acquire.error.error-message`' />\n","comments":"","x":1814,"y":413,"z":"150446f3.d47aa9","wires":[]},{"id":"1676c3bf.6ae81c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1259,"y":551,"z":"150446f3.d47aa9","wires":[["e6077b1c.676d68"]]},{"id":"80af8413.c41af8","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":1752,"y":693,"z":"150446f3.d47aa9","wires":[[]]},{"id":"cf0d6944.da2e48","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1443,"y":644,"z":"150446f3.d47aa9","wires":[["80af8413.c41af8","424183e2.2fe76c","a2997968.151ab8"]]},{"id":"424183e2.2fe76c","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value='`$acquire.error.error-message`' />\n","comments":"","x":1701,"y":742,"z":"150446f3.d47aa9","wires":[]},{"id":"921d09c2.070c98","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1264,"y":644,"z":"150446f3.d47aa9","wires":[["cf0d6944.da2e48"]]},{"id":"e6077b1c.676d68","type":"execute","name":"execute: postVNFData","xml":"<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postGenericVnfData' >\n\t<parameter name='aai.input.data.license-key-uuid' value='`$asset-tag`' />\n\t<parameter name='aai.input.data.license-assignment-group-uuid' value='`$model.uuid`' />\n\t<parameter name='aai.input.data.license-key' value='`$license-key`' />\n","comments":"","outputs":1,"x":1442,"y":551,"z":"150446f3.d47aa9","wires":[["baf4e318.6218b","996a1b70.ae33c8"]]},{"id":"baf4e318.6218b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1632,"y":551,"z":"150446f3.d47aa9","wires":[["a692c8c6.e23748"]]},{"id":"a2997968.151ab8","type":"set","name":"set","xml":"<set>\n\t<parameter name='org.onap.appc.dg.error' value='`$acquire.error.error-message`' />\n","comments":"","x":1684,"y":644,"z":"150446f3.d47aa9","wires":[]},{"id":"73130c00.837904","type":"execute","name":"execute: release","xml":"<execute plugin='org.openecomp.sdnc.sli.plugin.altsTools.AltsTools' method='releaseEntitlement' >\n <parameter name=\"asset-uuid\" value=\"`$asset-tag`\" />\n\t<parameter name=\"assignment-group\" value=\"`$model.entitlement.pool.uuid`\" />\n\t<parameter name=\"error-prefix\" value=\"acquire.error\"/>\n\t<parameter name=\"prefix\" value=\"release.response\" />\n\t<parameter name=\"hostname\" value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />\n","comments":"","outputs":1,"x":2002,"y":300,"z":"150446f3.d47aa9","wires":[[]]},{"id":"9fb59e95.cd2ae","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1798,"y":346,"z":"150446f3.d47aa9","wires":[["73130c00.837904","870b44ac.4f4af8","78617f1c.8bb0e"]]},{"id":"870b44ac.4f4af8","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":2044,"y":346,"z":"150446f3.d47aa9","wires":[[]]},{"id":"78617f1c.8bb0e","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value='`$org.onap.appc.dg.error`' />\n","comments":"","x":1992,"y":394,"z":"150446f3.d47aa9","wires":[]},{"id":"48280ad5.075c64","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1643,"y":391,"z":"150446f3.d47aa9","wires":[[]]},{"id":"a692c8c6.e23748","type":"block","name":"block: atomic","xml":"<block atomic='true'>\n","atomic":"false","comments":"","outputs":1,"x":1789,"y":551,"z":"150446f3.d47aa9","wires":[["791287e7.f44278","e7d0dd25.7a0c6","a8028f31.101f4"]]},{"id":"791287e7.f44278","type":"execute","name":"execute: release","xml":"<execute plugin='org.openecomp.sdnc.sli.plugin.altsTools.AltsTools' method='releaseLicense' >\n <parameter name=\"asset-uuid\" value=\"`$asset-tag`\" />\n\t<parameter name=\"assignment-group\" value=\"`$model.license.key.uuid`\" />\n\t<parameter name=\"error-prefix\" value=\"acquire.error\" />\n\t<parameter name=\"prefix\" value=\"release.response\" />\n\t<parameter name=\"hostname\" value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />\n","comments":"","outputs":1,"x":2042,"y":551,"z":"150446f3.d47aa9","wires":[[]]},{"id":"e7d0dd25.7a0c6","type":"execute","name":"execute: handleErrorToDCAE","xml":"<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n","comments":"","outputs":1,"x":2081,"y":600,"z":"150446f3.d47aa9","wires":[[]]},{"id":"a8028f31.101f4","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-message' value='`$org.onap.appc.dg.error`' />\n","comments":"","x":2033,"y":655,"z":"150446f3.d47aa9","wires":[]},{"id":"996a1b70.ae33c8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1637,"y":591,"z":"150446f3.d47aa9","wires":[[]]},{"id":"99224f0e.1687b","type":"switchNode","name":"entitlement require?","xml":"<switch test='`$is.aai-entitlement-update.require`'>\n","comments":"","outputs":1,"x":483,"y":426,"z":"150446f3.d47aa9","wires":[["9b0d5a39.63ece8"]]},{"id":"d5060181.3d546","type":"switchNode","name":"license require?","xml":"<switch test='`$is.aai-license-update.require`'>\n","comments":"","outputs":1,"x":475,"y":519,"z":"150446f3.d47aa9","wires":[["75b1fcca.18edd4"]]},{"id":"9b0d5a39.63ece8","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":665,"y":426,"z":"150446f3.d47aa9","wires":[["f26c05b5.ce1df8"]]},{"id":"75b1fcca.18edd4","type":"outcomeTrue","name":"true","xml":"<outcome value='true'>\n","comments":"","outputs":1,"x":662,"y":519,"z":"150446f3.d47aa9","wires":[["ed1a5e9a.1ca9d"]]}] +[
+ {
+ "id": "b1ce6dcf.35732",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 188,
+ "y": 50,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "174ee6ca.1ed6a9"
+ ]
+ ]
+ },
+ {
+ "id": "174ee6ca.1ed6a9",
+ "type": "service-logic",
+ "name": "Appc-API 2.0.0.0",
+ "module": "Appc-API",
+ "version": "2.0.0.0",
+ "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='Appc-API' version='2.0.0.0'>",
+ "outputs": 1,
+ "x": 350,
+ "y": 50,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "f19dcf10.eaeb9"
+ ]
+ ]
+ },
+ {
+ "id": "f19dcf10.eaeb9",
+ "type": "method",
+ "name": "Method: Acquire License",
+ "xml": "<method rpc='acquire_license' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 581,
+ "y": 50,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "9ce11364.ca14f"
+ ]
+ ]
+ },
+ {
+ "id": "9d436678.79ec78",
+ "type": "execute",
+ "name": "execute: retrieveLicenseModel",
+ "xml": "<execute plugin='org.onap.appc.dg.licmgr.LicenseManagerPlugin' method='retrieveLicenseModel' >\n<parameter name=\"org.onap.appc.vftype\" value=\"`$aai.input.data.vnf-type`\" />\n<parameter name=\"org.onap.appc.resource-version\" value=\"`$aai.input.data.persona-model-version`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 514,
+ "y": 350,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "b03a6327.d8941"
+ ]
+ ]
+ },
+ {
+ "id": "f5ad1877.f5fb08",
+ "type": "execute",
+ "name": "execute: handleErrorToDCAE",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1239,
+ "y": 217,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "25ece2ae.1fed4e",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 959,
+ "y": 274,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "f5ad1877.f5fb08",
+ "4d4a5b49.2afb94"
+ ]
+ ]
+ },
+ {
+ "id": "4d4a5b49.2afb94",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value='`$org.onap.appc.dg.error`' />\n",
+ "comments": "",
+ "x": 1188,
+ "y": 274,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "4a0353c8.2d471c",
+ "type": "execute",
+ "name": "execute: getVNFData",
+ "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='getGenericVnfData'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 480,
+ "y": 274,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "b03a6327.d8941"
+ ]
+ ]
+ },
+ {
+ "id": "972dd4cd.52e478",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n\t<parameter name='aai.vnfID' value='`$input.action-identifiers.vnf-id`' />\n\t<parameter name='aai.prefix' value='aai.input.data' />\t",
+ "comments": "",
+ "x": 436,
+ "y": 210,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "9ce11364.ca14f",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 209,
+ "y": 274,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "972dd4cd.52e478",
+ "4a0353c8.2d471c",
+ "9d436678.79ec78",
+ "79795ed2.80425",
+ "99224f0e.1687b",
+ "d5060181.3d546"
+ ]
+ ]
+ },
+ {
+ "id": "b03a6327.d8941",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 785,
+ "y": 274,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "25ece2ae.1fed4e"
+ ]
+ ]
+ },
+ {
+ "id": "d8eca0a4.77181",
+ "type": "call",
+ "name": "acquire entitlement",
+ "xml": "<call module='Appc-API' version='2.0.0.0' rpc='acquire_and_return' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048,
+ "y": 426,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "5f4740fc.82243",
+ "e9c2ecda.2a739"
+ ]
+ ]
+ },
+ {
+ "id": "bc1e02ed.46d83",
+ "type": "set",
+ "name": "set for entitlement",
+ "xml": "<set>\n\t<parameter name='model.uuid' value='`$model.entitlement.pool.uuid`' />\n\t<parameter name='aai.uuid' value='`$aai.input.data.entitlement-assignment-group-uuid`' />\n\t<parameter name='aai.asset.tag' value='`$aai.input.data.entitlement-resource-uuid`' />\n\t<parameter name='acquire.require' value='`$is.acquire-entitlement.require`' />\n\t<parameter name='release.require' value='`$is.release-entitlement.require`' />\n\t<parameter name='acquire.method' value='acquireEntitlement' />\n\t<parameter name='release.method' value='releaseEntitlement' />",
+ "comments": "",
+ "x": 1061,
+ "y": 371,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "79795ed2.80425",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n",
+ "comments": "",
+ "x": 459,
+ "y": 601,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "f26c05b5.ce1df8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 839,
+ "y": 426,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "bc1e02ed.46d83",
+ "d8eca0a4.77181"
+ ]
+ ]
+ },
+ {
+ "id": "ed1a5e9a.1ca9d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 838,
+ "y": 519,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "5791d93f.9c9838",
+ "4f84efd3.d3e91"
+ ]
+ ]
+ },
+ {
+ "id": "5791d93f.9c9838",
+ "type": "set",
+ "name": "set for license",
+ "xml": "<set>\n\t<parameter name='model.uuid' value='`$model.license.key.uuid`' />\n\t<parameter name='aai.uuid' value='`$aai.input.data.license-assignment-group-uuid`' />\n\t<parameter name='aai.asset.tag' value='`$aai.input.data.license-key-uuid`' />\n\t<parameter name='acquire.require' value='`$is.acquire-license.require`' />\n\t<parameter name='release.require' value='`$is.release-license.require`' />\n\t<parameter name='acquire.method' value='acquireLicense' />\n\t<parameter name='release.method' value='releaseLicense' />",
+ "comments": "",
+ "x": 1056,
+ "y": 519,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "4f84efd3.d3e91",
+ "type": "call",
+ "name": "acquire license",
+ "xml": "<call module='Appc-API' version='2.0.0.0' rpc='acquire_and_return' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1054,
+ "y": 593,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "1676c3bf.6ae81c",
+ "921d09c2.070c98"
+ ]
+ ]
+ },
+ {
+ "id": "5f4740fc.82243",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1259,
+ "y": 391,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "a4badb8.6948e28"
+ ]
+ ]
+ },
+ {
+ "id": "e9c2ecda.2a739",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1258,
+ "y": 460,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "ef554789.af5fd8"
+ ]
+ ]
+ },
+ {
+ "id": "9832f22b.c3486",
+ "type": "execute",
+ "name": "execute: handleErrorToDCAE",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1885,
+ "y": 459,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ef554789.af5fd8",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1576,
+ "y": 459,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "9832f22b.c3486",
+ "b3985ada.5fad68",
+ "8a8cc770.dfc4c8"
+ ]
+ ]
+ },
+ {
+ "id": "b3985ada.5fad68",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value='`$acquire.error.error-message`' />\n",
+ "comments": "",
+ "x": 1832,
+ "y": 500,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "a4badb8.6948e28",
+ "type": "execute",
+ "name": "execute: postVNFData",
+ "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postGenericVnfData' >\n\t<parameter name='aai.input.data.entitlement-resource-uuid' value='`$asset-tag`' />\n\t<parameter name='aai.input.data.entitlement-assignment-group-uuid' value='`$model.uuid`' />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1438,
+ "y": 391,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "5759c209.a4dc6c",
+ "48280ad5.075c64"
+ ]
+ ]
+ },
+ {
+ "id": "5759c209.a4dc6c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1637,
+ "y": 346,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "9fb59e95.cd2ae"
+ ]
+ ]
+ },
+ {
+ "id": "8a8cc770.dfc4c8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n\t<parameter name='org.onap.appc.dg.error' value='`$acquire.error.error-message`' />\n",
+ "comments": "",
+ "x": 1814,
+ "y": 413,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "1676c3bf.6ae81c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1259,
+ "y": 551,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "e6077b1c.676d68"
+ ]
+ ]
+ },
+ {
+ "id": "80af8413.c41af8",
+ "type": "execute",
+ "name": "execute: handleErrorToDCAE",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1752,
+ "y": 693,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "cf0d6944.da2e48",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1443,
+ "y": 644,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "80af8413.c41af8",
+ "424183e2.2fe76c",
+ "a2997968.151ab8"
+ ]
+ ]
+ },
+ {
+ "id": "424183e2.2fe76c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value='`$acquire.error.error-message`' />\n",
+ "comments": "",
+ "x": 1701,
+ "y": 742,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "921d09c2.070c98",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1264,
+ "y": 644,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "cf0d6944.da2e48"
+ ]
+ ]
+ },
+ {
+ "id": "e6077b1c.676d68",
+ "type": "execute",
+ "name": "execute: postVNFData",
+ "xml": "<execute plugin='org.onap.appc.dg.aai.AAIPlugin' method='postGenericVnfData' >\n\t<parameter name='aai.input.data.license-key-uuid' value='`$asset-tag`' />\n\t<parameter name='aai.input.data.license-assignment-group-uuid' value='`$model.uuid`' />\n\t<parameter name='aai.input.data.license-key' value='`$license-key`' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1442,
+ "y": 551,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "baf4e318.6218b",
+ "996a1b70.ae33c8"
+ ]
+ ]
+ },
+ {
+ "id": "baf4e318.6218b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1632,
+ "y": 551,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "a692c8c6.e23748"
+ ]
+ ]
+ },
+ {
+ "id": "a2997968.151ab8",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n\t<parameter name='org.onap.appc.dg.error' value='`$acquire.error.error-message`' />\n",
+ "comments": "",
+ "x": 1684,
+ "y": 644,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "73130c00.837904",
+ "type": "execute",
+ "name": "execute: release",
+ "xml": "<execute plugin='org.openecomp.sdnc.sli.plugin.altsTools.AltsTools' method='releaseEntitlement' >\n <parameter name=\"asset-uuid\" value=\"`$asset-tag`\" />\n\t<parameter name=\"assignment-group\" value=\"`$model.entitlement.pool.uuid`\" />\n\t<parameter name=\"error-prefix\" value=\"acquire.error\"/>\n\t<parameter name=\"prefix\" value=\"release.response\" />\n\t<parameter name=\"hostname\" value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2002,
+ "y": 300,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "9fb59e95.cd2ae",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1798,
+ "y": 346,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "73130c00.837904",
+ "870b44ac.4f4af8",
+ "78617f1c.8bb0e"
+ ]
+ ]
+ },
+ {
+ "id": "870b44ac.4f4af8",
+ "type": "execute",
+ "name": "execute: handleErrorToDCAE",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2044,
+ "y": 346,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "78617f1c.8bb0e",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value='`$org.onap.appc.dg.error`' />\n",
+ "comments": "",
+ "x": 1992,
+ "y": 394,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "48280ad5.075c64",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1643,
+ "y": 391,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a692c8c6.e23748",
+ "type": "block",
+ "name": "block: atomic",
+ "xml": "<block atomic='true'>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1789,
+ "y": 551,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "791287e7.f44278",
+ "e7d0dd25.7a0c6",
+ "a8028f31.101f4"
+ ]
+ ]
+ },
+ {
+ "id": "791287e7.f44278",
+ "type": "execute",
+ "name": "execute: release",
+ "xml": "<execute plugin='org.openecomp.sdnc.sli.plugin.altsTools.AltsTools' method='releaseLicense' >\n <parameter name=\"asset-uuid\" value=\"`$asset-tag`\" />\n\t<parameter name=\"assignment-group\" value=\"`$model.license.key.uuid`\" />\n\t<parameter name=\"error-prefix\" value=\"acquire.error\" />\n\t<parameter name=\"prefix\" value=\"release.response\" />\n\t<parameter name=\"hostname\" value=\"`$input.action-identifiers.vnf-id`\" />\n\t<parameter name=\"vnf-id\" value=\"`$input.action-identifiers.vnf-id`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2042,
+ "y": 551,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e7d0dd25.7a0c6",
+ "type": "execute",
+ "name": "execute: handleErrorToDCAE",
+ "xml": "<execute plugin='org.onap.appc.dg.common.DCAEReporterPlugin' method='report' >\n<parameter name=\"apiVer\" value=\"1.01\"/>\n<parameter name=\"eventId\" value=\"`$input.action-identifiers.vnf-id`\" />\n<parameter name=\"org.onap.appc.dg.error\" value=\"`$org.onap.appc.dg.error`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2081,
+ "y": 600,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "a8028f31.101f4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-message' value='`$org.onap.appc.dg.error`' />\n",
+ "comments": "",
+ "x": 2033,
+ "y": 655,
+ "z": "150446f3.d47aa9",
+ "wires": []
+ },
+ {
+ "id": "996a1b70.ae33c8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1637,
+ "y": 591,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "99224f0e.1687b",
+ "type": "switchNode",
+ "name": "entitlement require?",
+ "xml": "<switch test='`$is.aai-entitlement-update.require`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 483,
+ "y": 426,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "9b0d5a39.63ece8"
+ ]
+ ]
+ },
+ {
+ "id": "d5060181.3d546",
+ "type": "switchNode",
+ "name": "license require?",
+ "xml": "<switch test='`$is.aai-license-update.require`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 475,
+ "y": 519,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "75b1fcca.18edd4"
+ ]
+ ]
+ },
+ {
+ "id": "9b0d5a39.63ece8",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 665,
+ "y": 426,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "f26c05b5.ce1df8"
+ ]
+ ]
+ },
+ {
+ "id": "75b1fcca.18edd4",
+ "type": "outcomeTrue",
+ "name": "true",
+ "xml": "<outcome value='true'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 662,
+ "y": 519,
+ "z": "150446f3.d47aa9",
+ "wires": [
+ [
+ "ed1a5e9a.1ca9d"
+ ]
+ ]
+ }
+]
|