diff options
author | 2017-12-22 18:06:10 -0500 | |
---|---|---|
committer | 2017-12-22 18:07:04 -0500 | |
commit | c1d325bb009a21ccb4d89f8562f89a36cfa069ed (patch) | |
tree | 40ed993a302e2d43e790aa488c0cfe0c80d53d1b /appc-directed-graph/appc-dgraph/provider/src/main/resources | |
parent | 26c841f18a69baedda1215cb06ee3197f4662115 (diff) |
Platform Hardening for DG Json files - Part 7
Change-Id: Ifac28a64e01767c15d940b20404904f2fc2d9b24
Issue-ID: APPC-305
Signed-off-by: Taka <tc012c@att.com>
Diffstat (limited to 'appc-directed-graph/appc-dgraph/provider/src/main/resources')
13 files changed, 5869 insertions, 715 deletions
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CheckConfigStatus.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CheckConfigStatus.json index dd0739259..5206869db 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CheckConfigStatus.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CheckConfigStatus.json @@ -1 +1,746 @@ -[{"id":"106f1811.00d7f8","type":"not-found","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":541.6666259765625,"y":274,"z":"fcbb9888.37da88","wires":[["aa91d71.164a828"]]},{"id":"ba538e68.3fffc","type":"dgstart","name":"DGSTART","outputs":1,"x":191.6666259765625,"y":103,"z":"fcbb9888.37da88","wires":[["99bedc14.e0ea6"]]},{"id":"99bedc14.e0ea6","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.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' version='4.0.0'>","outputs":1,"x":367.6666259765625,"y":100,"z":"fcbb9888.37da88","wires":[["9569d318.33ae1"]]},{"id":"9569d318.33ae1","type":"method","name":"method CheckConfigStatus","xml":"<method rpc='CheckConfigStatus' mode='sync'>\n","comments":"","outputs":1,"x":595.6666259765625,"y":101,"z":"fcbb9888.37da88","wires":[["1d7bf2cd.2246ad"]]},{"id":"beea047c.66a218","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":191.6666259765625,"y":231,"z":"fcbb9888.37da88","wires":[["c1a4aa3d.35dfa8","498b7be.6025a84"]]},{"id":"813ad4a9.666118","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":529.6666259765625,"y":459.3333349227905,"z":"fcbb9888.37da88","wires":[["20644748.1c68c8"]]},{"id":"20644748.1c68c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":679.6666259765625,"y":461.3333349227905,"z":"fcbb9888.37da88","wires":[["1813e90b.add1c7"]]},{"id":"c1a4aa3d.35dfa8","type":"configure","name":"configure: SftpAdaptor: GetConfig Success ","xml":"<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"get\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-success.TARGET-FILE-PATH`\"/>\t\n\n","comments":"","outputs":1,"x":262.3332824707031,"y":367.33333015441895,"z":"fcbb9888.37da88","wires":[["106f1811.00d7f8","813ad4a9.666118","44876ee3.fc9e2"]]},{"id":"1813e90b.add1c7","type":"configure","name":"configure: SftpAdaptor: GetConfig Failure","xml":"<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"get\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-failure.TARGET-FILE-PATH`\"/>\n","comments":"","outputs":1,"x":934.6666259765625,"y":461.3333349227905,"z":"fcbb9888.37da88","wires":[["c9e9d49f.3027a8","215ca65e.28efea","54a1451e.6ee1bc"]]},{"id":"c9e9d49f.3027a8","type":"not-found","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":618.6666259765625,"y":571,"z":"fcbb9888.37da88","wires":[["9e7471e8.24d1d"]]},{"id":"9e7471e8.24d1d","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":785.6666259765625,"y":574,"z":"fcbb9888.37da88","wires":[["9e02dd6f.a11ce"]]},{"id":"9e02dd6f.a11ce","type":"configure","name":"configure: SftpAdaptor: GetConfig FailureLog","xml":"<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"get\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-log.TARGET-FILE-PATH`\"/>\n\n","comments":"","outputs":1,"x":1065.6666259765625,"y":578,"z":"fcbb9888.37da88","wires":[["f57ae80d.b71178","d8f1078c.618768"]]},{"id":"f57ae80d.b71178","type":"not-found","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1366.6666259765625,"y":533,"z":"fcbb9888.37da88","wires":[["13117340.32ae0d"]]},{"id":"215ca65e.28efea","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":641.6666259765625,"y":910,"z":"fcbb9888.37da88","wires":[["bc8232f9.8eda9"]]},{"id":"c6e699ae.8aa998","type":"comment","name":"No Success or Failure found","info":"","comments":"","x":298.1666259765625,"y":775,"z":"fcbb9888.37da88","wires":[]},{"id":"9e84d5f0.0dfc98","type":"for","name":"for: check status 10 times","xml":"<for index=\"i\" start=\"0\" end=\"10\" >","comments":"","outputs":1,"x":428.6666259765625,"y":158,"z":"fcbb9888.37da88","wires":[["beea047c.66a218"]]},{"id":"1d7bf2cd.2246ad","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":198.6666259765625,"y":160,"z":"fcbb9888.37da88","wires":[["9e84d5f0.0dfc98"]]},{"id":"1e2c906.043db7","type":"switchNode","name":"switch: Max retries done?","xml":"<switch test=\"`$i`\">\n","comments":"","outputs":1,"x":1012.6666259765625,"y":903,"z":"fcbb9888.37da88","wires":[["e551d9.3207ee28","45310507.9bc52c"]]},{"id":"e551d9.3207ee28","type":"other","name":"outcome: 9","xml":"<outcome value='9'>\n","comments":"","outputs":1,"x":1264.6666259765625,"y":891,"z":"fcbb9888.37da88","wires":[["395a778a.a9c948"]]},{"id":"395a778a.a9c948","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1450.6666259765625,"y":885,"z":"fcbb9888.37da88","wires":[["3ad5063d.6732ea"]]},{"id":"bc8232f9.8eda9","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":805.6666259765625,"y":909,"z":"fcbb9888.37da88","wires":[["1e2c906.043db7"]]},{"id":"d7e4f931.ffe0d8","type":"comment","name":"Return Failure so that it exits immediately","info":"Error Code and message reflect the status\nReturning success doesnt exit the loop","comments":"","x":918.1666259765625,"y":227,"z":"fcbb9888.37da88","wires":[]},{"id":"3ad5063d.6732ea","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Configuration Failed. No configuration success or error file found on the device\" />\n<parameter name=\"error-code\" value=\"401\" />\n\n","comments":"","x":1641.6666259765625,"y":882,"z":"fcbb9888.37da88","wires":[]},{"id":"498b7be.6025a84","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"RETRY ATTEMPT START\" value=\"`$i`\"/>\n","comments":"","outputs":1,"x":376.6666259765625,"y":225,"z":"fcbb9888.37da88","wires":[[]]},{"id":"45310507.9bc52c","type":"other","name":"outcome: Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1262.6666259765625,"y":969,"z":"fcbb9888.37da88","wires":[["9504b9a.138f348"]]},{"id":"9504b9a.138f348","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1445.6666259765625,"y":967,"z":"fcbb9888.37da88","wires":[["dc1f4ff5.d695c"]]},{"id":"dc1f4ff5.d695c","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"RETRYATTEMPT DONE\"/>\n<parameter name=\"field3\" value=\"`$i`\"/>\n\n\n\n","comments":"","outputs":1,"x":1622.6666259765625,"y":963,"z":"fcbb9888.37da88","wires":[[]]},{"id":"44876ee3.fc9e2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":547.9999313354492,"y":366.66668224334717,"z":"fcbb9888.37da88","wires":[["5067f82d.014248"]]},{"id":"5067f82d.014248","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":715.9999313354492,"y":370.66668224334717,"z":"fcbb9888.37da88","wires":[["13159be6.000524"]]},{"id":"13159be6.000524","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to call SftpAdaptor\" />\n<parameter name=\"error-code\" value=\"401\" />\n ","comments":"","x":894.9999313354492,"y":376.66668224334717,"z":"fcbb9888.37da88","wires":[]},{"id":"54a1451e.6ee1bc","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":651.6666259765625,"y":732,"z":"fcbb9888.37da88","wires":[["4093e936.3c4fd8"]]},{"id":"4093e936.3c4fd8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":851.6666259765625,"y":728,"z":"fcbb9888.37da88","wires":[["5f93d2f8.23ba5c"]]},{"id":"5f93d2f8.23ba5c","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Configuration request Failed. Unable to get Failure Log\" />\n<parameter name=\"error-code\" value=\"401\" />","comments":"","x":1078.6666259765625,"y":729,"z":"fcbb9888.37da88","wires":[]},{"id":"d8f1078c.618768","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1365.6666259765625,"y":605,"z":"fcbb9888.37da88","wires":[["4093e936.3c4fd8"]]},{"id":"9bcbe24b.484ad","type":"comment","name":"Set Success Code","info":"","comments":"","x":1088.6666259765625,"y":278,"z":"fcbb9888.37da88","wires":[]},{"id":"aa91d71.164a828","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":704.6666259765625,"y":274,"z":"fcbb9888.37da88","wires":[["f1c9a647.703908"]]},{"id":"42eefa18.fd8294","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"SUCCESS - request has been processed successfully\" />\n<parameter name=\"error-code\" value=\"400\" />\n","comments":"","x":905.3333358764648,"y":277.6667184829712,"z":"fcbb9888.37da88","wires":[]},{"id":"13117340.32ae0d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1556.6666259765625,"y":531,"z":"fcbb9888.37da88","wires":[["f54b4753.162b58"]]},{"id":"f54b4753.162b58","type":"execute","name":"execute ParseErrorLog","xml":"<execute plugin=\"org.onap.sdnc.config.generator.pattern.PatternNode\" method=\"parseErrorLog\">\n<parameter name=\"logData\" value=\"`$fileContents`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.patternNode\" />","comments":"","outputs":1,"x":1801.3332748413086,"y":532.9999961853027,"z":"fcbb9888.37da88","wires":[["ffed95c2.8361f8","10080deb.35a4d2","8dbc2d9f.45dd7"]]},{"id":"ffed95c2.8361f8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2040.6666259765625,"y":504,"z":"fcbb9888.37da88","wires":[["64039324.913e5c"]]},{"id":"10080deb.35a4d2","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":2045.6666259765625,"y":565,"z":"fcbb9888.37da88","wires":[["b56b07c0.65d7e8"]]},{"id":"64039324.913e5c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2201.6666259765625,"y":505,"z":"fcbb9888.37da88","wires":[["54c6aeea.1f039"]]},{"id":"b56b07c0.65d7e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2197.6666259765625,"y":568,"z":"fcbb9888.37da88","wires":[["9836fa6f.ef13b8"]]},{"id":"9836fa6f.ef13b8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Configuration has failed.Unable to process error log\"/>\n\t","comments":"","x":2379.6666259765625,"y":569,"z":"fcbb9888.37da88","wires":[]},{"id":"54c6aeea.1f039","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.patternNode.error-message`\"/>\n\t\n\t","comments":"","x":2399.6666259765625,"y":506,"z":"fcbb9888.37da88","wires":[]},{"id":"8dbc2d9f.45dd7","type":"not-found","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2024.6666259765625,"y":633,"z":"fcbb9888.37da88","wires":[["c39b08ed.61c138"]]},{"id":"c39b08ed.61c138","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":2180.6666259765625,"y":635,"z":"fcbb9888.37da88","wires":[["e69fed9f.542e7"]]},{"id":"e69fed9f.542e7","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`'Configuration has failed.' + $tmp.patternNode.parsedError`\"/>\n\t","comments":"","x":2352.6666259765625,"y":633,"z":"fcbb9888.37da88","wires":[]},{"id":"f1c9a647.703908","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name=\"error-message\" value=\"SUCCESS - request has been processed successfully\" />\n<parameter name=\"error-code\" value=\"400\" />\n\n","comments":"","x":895.333251953125,"y":319.99999141693115,"z":"fcbb9888.37da88","wires":[]}] +[
+ {
+ "id": "106f1811.00d7f8",
+ "type": "not-found",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 541.6666259765625,
+ "y": 274,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "aa91d71.164a828"
+ ]
+ ]
+ },
+ {
+ "id": "ba538e68.3fffc",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 191.6666259765625,
+ "y": 103,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "99bedc14.e0ea6"
+ ]
+ ]
+ },
+ {
+ "id": "99bedc14.e0ea6",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "4.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 367.6666259765625,
+ "y": 100,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "9569d318.33ae1"
+ ]
+ ]
+ },
+ {
+ "id": "9569d318.33ae1",
+ "type": "method",
+ "name": "method CheckConfigStatus",
+ "xml": "<method rpc='CheckConfigStatus' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 595.6666259765625,
+ "y": 101,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "1d7bf2cd.2246ad"
+ ]
+ ]
+ },
+ {
+ "id": "beea047c.66a218",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 191.6666259765625,
+ "y": 231,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "c1a4aa3d.35dfa8",
+ "498b7be.6025a84"
+ ]
+ ]
+ },
+ {
+ "id": "813ad4a9.666118",
+ "type": "failure",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 529.6666259765625,
+ "y": 459.3333349227905,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "20644748.1c68c8"
+ ]
+ ]
+ },
+ {
+ "id": "20644748.1c68c8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 679.6666259765625,
+ "y": 461.3333349227905,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "1813e90b.add1c7"
+ ]
+ ]
+ },
+ {
+ "id": "c1a4aa3d.35dfa8",
+ "type": "configure",
+ "name": "configure: SftpAdaptor: GetConfig Success ",
+ "xml": "<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"get\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-success.TARGET-FILE-PATH`\"/>\t\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 262.3332824707031,
+ "y": 367.33333015441895,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "106f1811.00d7f8",
+ "813ad4a9.666118",
+ "44876ee3.fc9e2"
+ ]
+ ]
+ },
+ {
+ "id": "1813e90b.add1c7",
+ "type": "configure",
+ "name": "configure: SftpAdaptor: GetConfig Failure",
+ "xml": "<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"get\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-failure.TARGET-FILE-PATH`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 934.6666259765625,
+ "y": 461.3333349227905,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "c9e9d49f.3027a8",
+ "215ca65e.28efea",
+ "54a1451e.6ee1bc"
+ ]
+ ]
+ },
+ {
+ "id": "c9e9d49f.3027a8",
+ "type": "not-found",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 618.6666259765625,
+ "y": 571,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "9e7471e8.24d1d"
+ ]
+ ]
+ },
+ {
+ "id": "9e7471e8.24d1d",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 785.6666259765625,
+ "y": 574,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "9e02dd6f.a11ce"
+ ]
+ ]
+ },
+ {
+ "id": "9e02dd6f.a11ce",
+ "type": "configure",
+ "name": "configure: SftpAdaptor: GetConfig FailureLog",
+ "xml": "<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"get\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-log.TARGET-FILE-PATH`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1065.6666259765625,
+ "y": 578,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "f57ae80d.b71178",
+ "d8f1078c.618768"
+ ]
+ ]
+ },
+ {
+ "id": "f57ae80d.b71178",
+ "type": "not-found",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1366.6666259765625,
+ "y": 533,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "13117340.32ae0d"
+ ]
+ ]
+ },
+ {
+ "id": "215ca65e.28efea",
+ "type": "failure",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 641.6666259765625,
+ "y": 910,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "bc8232f9.8eda9"
+ ]
+ ]
+ },
+ {
+ "id": "c6e699ae.8aa998",
+ "type": "comment",
+ "name": "No Success or Failure found",
+ "info": "",
+ "comments": "",
+ "x": 298.1666259765625,
+ "y": 775,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "9e84d5f0.0dfc98",
+ "type": "for",
+ "name": "for: check status 10 times",
+ "xml": "<for index=\"i\" start=\"0\" end=\"10\" >",
+ "comments": "",
+ "outputs": 1,
+ "x": 428.6666259765625,
+ "y": 158,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "beea047c.66a218"
+ ]
+ ]
+ },
+ {
+ "id": "1d7bf2cd.2246ad",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 198.6666259765625,
+ "y": 160,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "9e84d5f0.0dfc98"
+ ]
+ ]
+ },
+ {
+ "id": "1e2c906.043db7",
+ "type": "switchNode",
+ "name": "switch: Max retries done?",
+ "xml": "<switch test=\"`$i`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1012.6666259765625,
+ "y": 903,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "e551d9.3207ee28",
+ "45310507.9bc52c"
+ ]
+ ]
+ },
+ {
+ "id": "e551d9.3207ee28",
+ "type": "other",
+ "name": "outcome: 9",
+ "xml": "<outcome value='9'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1264.6666259765625,
+ "y": 891,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "395a778a.a9c948"
+ ]
+ ]
+ },
+ {
+ "id": "395a778a.a9c948",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1450.6666259765625,
+ "y": 885,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "3ad5063d.6732ea"
+ ]
+ ]
+ },
+ {
+ "id": "bc8232f9.8eda9",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 805.6666259765625,
+ "y": 909,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "1e2c906.043db7"
+ ]
+ ]
+ },
+ {
+ "id": "d7e4f931.ffe0d8",
+ "type": "comment",
+ "name": "Return Failure so that it exits immediately",
+ "info": "Error Code and message reflect the status\nReturning success doesnt exit the loop",
+ "comments": "",
+ "x": 918.1666259765625,
+ "y": 227,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "3ad5063d.6732ea",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Configuration Failed. No configuration success or error file found on the device\" />\n<parameter name=\"error-code\" value=\"401\" />\n\n",
+ "comments": "",
+ "x": 1641.6666259765625,
+ "y": 882,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "498b7be.6025a84",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"RETRY ATTEMPT START\" value=\"`$i`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 376.6666259765625,
+ "y": 225,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "45310507.9bc52c",
+ "type": "other",
+ "name": "outcome: Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1262.6666259765625,
+ "y": 969,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "9504b9a.138f348"
+ ]
+ ]
+ },
+ {
+ "id": "9504b9a.138f348",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1445.6666259765625,
+ "y": 967,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "dc1f4ff5.d695c"
+ ]
+ ]
+ },
+ {
+ "id": "dc1f4ff5.d695c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"RETRYATTEMPT DONE\"/>\n<parameter name=\"field3\" value=\"`$i`\"/>\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1622.6666259765625,
+ "y": 963,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "44876ee3.fc9e2",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 547.9999313354492,
+ "y": 366.66668224334717,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "5067f82d.014248"
+ ]
+ ]
+ },
+ {
+ "id": "5067f82d.014248",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 715.9999313354492,
+ "y": 370.66668224334717,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "13159be6.000524"
+ ]
+ ]
+ },
+ {
+ "id": "13159be6.000524",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to call SftpAdaptor\" />\n<parameter name=\"error-code\" value=\"401\" />\n ",
+ "comments": "",
+ "x": 894.9999313354492,
+ "y": 376.66668224334717,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "54a1451e.6ee1bc",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 651.6666259765625,
+ "y": 732,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "4093e936.3c4fd8"
+ ]
+ ]
+ },
+ {
+ "id": "4093e936.3c4fd8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 851.6666259765625,
+ "y": 728,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "5f93d2f8.23ba5c"
+ ]
+ ]
+ },
+ {
+ "id": "5f93d2f8.23ba5c",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Configuration request Failed. Unable to get Failure Log\" />\n<parameter name=\"error-code\" value=\"401\" />",
+ "comments": "",
+ "x": 1078.6666259765625,
+ "y": 729,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "d8f1078c.618768",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1365.6666259765625,
+ "y": 605,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "4093e936.3c4fd8"
+ ]
+ ]
+ },
+ {
+ "id": "9bcbe24b.484ad",
+ "type": "comment",
+ "name": "Set Success Code",
+ "info": "",
+ "comments": "",
+ "x": 1088.6666259765625,
+ "y": 278,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "aa91d71.164a828",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 704.6666259765625,
+ "y": 274,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "f1c9a647.703908"
+ ]
+ ]
+ },
+ {
+ "id": "42eefa18.fd8294",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"SUCCESS - request has been processed successfully\" />\n<parameter name=\"error-code\" value=\"400\" />\n",
+ "comments": "",
+ "x": 905.3333358764648,
+ "y": 277.6667184829712,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "13117340.32ae0d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1556.6666259765625,
+ "y": 531,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "f54b4753.162b58"
+ ]
+ ]
+ },
+ {
+ "id": "f54b4753.162b58",
+ "type": "execute",
+ "name": "execute ParseErrorLog",
+ "xml": "<execute plugin=\"org.onap.sdnc.config.generator.pattern.PatternNode\" method=\"parseErrorLog\">\n<parameter name=\"logData\" value=\"`$fileContents`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.patternNode\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1801.3332748413086,
+ "y": 532.9999961853027,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "ffed95c2.8361f8",
+ "10080deb.35a4d2",
+ "8dbc2d9f.45dd7"
+ ]
+ ]
+ },
+ {
+ "id": "ffed95c2.8361f8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2040.6666259765625,
+ "y": 504,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "64039324.913e5c"
+ ]
+ ]
+ },
+ {
+ "id": "10080deb.35a4d2",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2045.6666259765625,
+ "y": 565,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "b56b07c0.65d7e8"
+ ]
+ ]
+ },
+ {
+ "id": "64039324.913e5c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2201.6666259765625,
+ "y": 505,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "54c6aeea.1f039"
+ ]
+ ]
+ },
+ {
+ "id": "b56b07c0.65d7e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2197.6666259765625,
+ "y": 568,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "9836fa6f.ef13b8"
+ ]
+ ]
+ },
+ {
+ "id": "9836fa6f.ef13b8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Configuration has failed.Unable to process error log\"/>\n\t",
+ "comments": "",
+ "x": 2379.6666259765625,
+ "y": 569,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "54c6aeea.1f039",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.patternNode.error-message`\"/>\n\t\n\t",
+ "comments": "",
+ "x": 2399.6666259765625,
+ "y": 506,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "8dbc2d9f.45dd7",
+ "type": "not-found",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2024.6666259765625,
+ "y": 633,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "c39b08ed.61c138"
+ ]
+ ]
+ },
+ {
+ "id": "c39b08ed.61c138",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 2180.6666259765625,
+ "y": 635,
+ "z": "fcbb9888.37da88",
+ "wires": [
+ [
+ "e69fed9f.542e7"
+ ]
+ ]
+ },
+ {
+ "id": "e69fed9f.542e7",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`'Configuration has failed.' + $tmp.patternNode.parsedError`\"/>\n\t",
+ "comments": "",
+ "x": 2352.6666259765625,
+ "y": 633,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ },
+ {
+ "id": "f1c9a647.703908",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"error-message\" value=\"SUCCESS - request has been processed successfully\" />\n<parameter name=\"error-code\" value=\"400\" />\n\n",
+ "comments": "",
+ "x": 895.333251953125,
+ "y": 319.99999141693115,
+ "z": "fcbb9888.37da88",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CommonConfiguration.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CommonConfiguration.json index ef6c0d087..b2839c1f4 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CommonConfiguration.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CommonConfiguration.json @@ -1 +1,749 @@ -[{"id":"15c59d71.ababe3","type":"dgstart","name":"DGSTART","outputs":1,"x":104,"y":48,"z":"c322e357.b8be8","wires":[["a514f47b.d5bda8"]]},{"id":"a514f47b.d5bda8","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.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' version='4.0.0'>","outputs":1,"x":287,"y":50,"z":"c322e357.b8be8","wires":[["fb0c7139.5af51"]]},{"id":"fb0c7139.5af51","type":"method","name":"method CommonConfiguration","xml":"<method rpc='CommonConfiguration' mode='sync'>\n","comments":"","outputs":1,"x":547,"y":48,"z":"c322e357.b8be8","wires":[["3d94ea58.b453b6"]]},{"id":"3d94ea58.b453b6","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":84,"y":404,"z":"c322e357.b8be8","wires":[["62ba3ef0.ca976","c6df868f.aa7308","bc6c421e.60c4b","93c5931.7ab677","be2f239f.7dc29","dcac81d6.e4742"]]},{"id":"659a83cd.3ad29c","type":"switchNode","name":"switch: request-action","xml":"<switch test=\"`$request-action`\">\n\n\n","comments":"","outputs":1,"x":414.5,"y":343,"z":"c322e357.b8be8","wires":[["78fe488d.d629a8","ba1faf4d.90c7f","81174cbe.247c4","74691fa2.1c0c1","e740321c.4b927","4531bc67.6e9694","4d8d372f.0ebc28"]]},{"id":"210f97fe.bca328","type":"call","name":"call: Configure","xml":"<call module=\"APPC\" rpc=\"Configure\" mode=\"sync\">","comments":"","outputs":1,"x":1080.5,"y":348,"z":"c322e357.b8be8","wires":[["9070d727.d59288","44288c9c.74bae4"]]},{"id":"78fe488d.d629a8","type":"outcome","name":"Configure","xml":"<outcome value='Configure'>\n","comments":"","outputs":1,"x":687.5,"y":344,"z":"c322e357.b8be8","wires":[["5dff373d.db8a48"]]},{"id":"ba1faf4d.90c7f","type":"outcome","name":"ConfigModify","xml":"<outcome value='ConfigModify'>\n","comments":"","outputs":1,"x":684.5,"y":474,"z":"c322e357.b8be8","wires":[["5dff373d.db8a48"]]},{"id":"74691fa2.1c0c1","type":"outcome","name":"ConfigScaleOut","xml":"<outcome value='ConfigScaleOut'>\n","comments":"","outputs":1,"x":687.5,"y":390,"z":"c322e357.b8be8","wires":[["5dff373d.db8a48"]]},{"id":"5dff373d.db8a48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":878.5,"y":344,"z":"c322e357.b8be8","wires":[["210f97fe.bca328"]]},{"id":"62ba3ef0.ca976","type":"switchNode","name":"switch error-code","xml":"<switch test='`$error-code`'>\n","comments":"","outputs":1,"x":304,"y":821,"z":"c322e357.b8be8","wires":[["ade1eb2c.468eb8","75f0f4a7.e85dec"]]},{"id":"ade1eb2c.468eb8","type":"success","name":"outcome: 400","xml":"<outcome value=\"400\">","comments":"","outputs":1,"x":512,"y":830,"z":"c322e357.b8be8","wires":[["a91b8e31.5ff52"]]},{"id":"75f0f4a7.e85dec","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":514,"y":905,"z":"c322e357.b8be8","wires":[["d33f3933.4c8b78"]]},{"id":"a91b8e31.5ff52","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":722,"y":836,"z":"c322e357.b8be8","wires":[["9337492c.d201c8"]]},{"id":"d33f3933.4c8b78","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":729,"y":910,"z":"c322e357.b8be8","wires":[["1f02e341.848ead"]]},{"id":"9337492c.d201c8","type":"set","name":"set Status for dispatcher","xml":"<set>\n<parameter name='SvcLogic.status' value='success' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />","comments":"","x":955,"y":836,"z":"c322e357.b8be8","wires":[]},{"id":"1f02e341.848ead","type":"set","name":"set Status for dispatcher","xml":"<set>\n<parameter name='SvcLogic.status' value='failure' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />\n","comments":"","x":962,"y":916,"z":"c322e357.b8be8","wires":[]},{"id":"c6df868f.aa7308","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'STATUS RETURNED TO DISPATCHER error-code = ' + $output.status.code`\" />\n<parameter name=\"field3\" value=\"`'STATUS RETURNED TO DISPATCHER error-message = ' + $output.status.message`\" />\n<parameter name=\"field4\" value=\"`'STATUS RETURNED TO DISPATCHER = ' + $SvcLogic.status`\" />","comments":"","outputs":1,"x":273,"y":1116,"z":"c322e357.b8be8","wires":[[]]},{"id":"bc6c421e.60c4b","type":"call","name":"call: GetConfigParams","xml":"<call module=\"APPC\" rpc=\"GetConfigParams\" mode=\"sync\">","comments":"","outputs":1,"x":329,"y":160,"z":"c322e357.b8be8","wires":[["f0d70e02.3a146","9cc63cfb.539a2","ee7268bd.050cd8"]]},{"id":"f0d70e02.3a146","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":548,"y":262,"z":"c322e357.b8be8","wires":[["86ef19e.3d758e8"]]},{"id":"86ef19e.3d758e8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":716,"y":263,"z":"c322e357.b8be8","wires":[["659a83cd.3ad29c","f91a152c.8ed648"]]},{"id":"9cc63cfb.539a2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":549,"y":151,"z":"c322e357.b8be8","wires":[["199d1e69.01b822"]]},{"id":"ee7268bd.050cd8","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":547,"y":200,"z":"c322e357.b8be8","wires":[["1a90801b.bb597"]]},{"id":"199d1e69.01b822","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":728,"y":149,"z":"c322e357.b8be8","wires":[[]]},{"id":"1a90801b.bb597","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":722,"y":202,"z":"c322e357.b8be8","wires":[["b99a1084.665dd"]]},{"id":"b99a1084.665dd","type":"set","name":"set error-code","xml":"<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='DG Workflow GetConfigParams not found' />\n","comments":"","x":916,"y":205,"z":"c322e357.b8be8","wires":[]},{"id":"9070d727.d59288","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1296,"y":348,"z":"c322e357.b8be8","wires":[["598408aa.da8188"]]},{"id":"598408aa.da8188","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1464,"y":348,"z":"c322e357.b8be8","wires":[["4733bef3.5975b"]]},{"id":"4733bef3.5975b","type":"set","name":"set error-code","xml":"<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='DG Workflow Configure not found' />\n","comments":"","x":1664,"y":349,"z":"c322e357.b8be8","wires":[]},{"id":"44288c9c.74bae4","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1289,"y":399,"z":"c322e357.b8be8","wires":[["e51b2033.d0295"]]},{"id":"e51b2033.d0295","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1470,"y":402,"z":"c322e357.b8be8","wires":[[]]},{"id":"81174cbe.247c4","type":"outcome","name":"ConfigRestore","xml":"<outcome value='ConfigRestore'>\n","comments":"","outputs":1,"x":688,"y":433,"z":"c322e357.b8be8","wires":[["5dff373d.db8a48"]]},{"id":"93c5931.7ab677","type":"call","name":"call: SetStatus","xml":"<call module=\"APPC\" rpc=\"SetStatus\" mode=\"sync\">","comments":"","outputs":1,"x":291,"y":719,"z":"c322e357.b8be8","wires":[["fe31a123.38291","131cb562.b3371b"]]},{"id":"fe31a123.38291","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":481,"y":702,"z":"c322e357.b8be8","wires":[["8823b534.00f5f8"]]},{"id":"8823b534.00f5f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":667,"y":702,"z":"c322e357.b8be8","wires":[["c84859b3.72e148"]]},{"id":"c84859b3.72e148","type":"set","name":"set error-code","xml":"<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='DG Workflow SetConfigStatus not found' />\n","comments":"","x":855,"y":701,"z":"c322e357.b8be8","wires":[]},{"id":"131cb562.b3371b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":475,"y":747,"z":"c322e357.b8be8","wires":[["a66046c6.450ae8"]]},{"id":"a66046c6.450ae8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":640,"y":746,"z":"c322e357.b8be8","wires":[[]]},{"id":"e740321c.4b927","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":606,"y":650,"z":"c322e357.b8be8","wires":[["d03bfb1.6cdfe08"]]},{"id":"ef753c5c.a1a3e","type":"set","name":"set error-code","xml":"<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`'Invalid action ' + $request-action`\" />\n","comments":"","x":979,"y":651,"z":"c322e357.b8be8","wires":[]},{"id":"d03bfb1.6cdfe08","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":778,"y":647,"z":"c322e357.b8be8","wires":[["ef753c5c.a1a3e"]]},{"id":"4531bc67.6e9694","type":"outcome","name":"ConfigBackup","xml":"<outcome value='ConfigBackup'>\n","comments":"","outputs":1,"x":678,"y":517,"z":"c322e357.b8be8","wires":[["5dff373d.db8a48"]]},{"id":"4d8d372f.0ebc28","type":"outcome","name":"ConfigBackupDelete","xml":"<outcome value='ConfigBackupDelete'>\n","comments":"","outputs":1,"x":685,"y":567,"z":"c322e357.b8be8","wires":[["5dff373d.db8a48"]]},{"id":"dcac81d6.e4742","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n","comments":"","outputs":1,"x":313.5,"y":1028,"z":"c322e357.b8be8","wires":[["9cff3b81.458148"]]},{"id":"be2f239f.7dc29","type":"set","name":"set tmp.message","xml":"<set>\n<parameter name=\"tmp.message\" value=\"`$output.status.code + ':' + $output.status.message`\" />\n","comments":"","x":296,"y":971,"z":"c322e357.b8be8","wires":[]},{"id":"9cff3b81.458148","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":521,"y":1030,"z":"c322e357.b8be8","wires":[["88b17439.3c8f78"]]},{"id":"88b17439.3c8f78","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":701,"y":1030,"z":"c322e357.b8be8","wires":[[]]},{"id":"f91a152c.8ed648","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$request-action`\"/>\n<parameter name=\"field3\" value=\"`$input.action`\"/>\n\n","comments":"","outputs":1,"x":944,"y":267,"z":"c322e357.b8be8","wires":[[]]}] +[
+ {
+ "id": "15c59d71.ababe3",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 104,
+ "y": 48,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "a514f47b.d5bda8"
+ ]
+ ]
+ },
+ {
+ "id": "a514f47b.d5bda8",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "4.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 287,
+ "y": 50,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "fb0c7139.5af51"
+ ]
+ ]
+ },
+ {
+ "id": "fb0c7139.5af51",
+ "type": "method",
+ "name": "method CommonConfiguration",
+ "xml": "<method rpc='CommonConfiguration' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 547,
+ "y": 48,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "3d94ea58.b453b6"
+ ]
+ ]
+ },
+ {
+ "id": "3d94ea58.b453b6",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 84,
+ "y": 404,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "62ba3ef0.ca976",
+ "c6df868f.aa7308",
+ "bc6c421e.60c4b",
+ "93c5931.7ab677",
+ "be2f239f.7dc29",
+ "dcac81d6.e4742"
+ ]
+ ]
+ },
+ {
+ "id": "659a83cd.3ad29c",
+ "type": "switchNode",
+ "name": "switch: request-action",
+ "xml": "<switch test=\"`$request-action`\">\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 414.5,
+ "y": 343,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "78fe488d.d629a8",
+ "ba1faf4d.90c7f",
+ "81174cbe.247c4",
+ "74691fa2.1c0c1",
+ "e740321c.4b927",
+ "4531bc67.6e9694",
+ "4d8d372f.0ebc28"
+ ]
+ ]
+ },
+ {
+ "id": "210f97fe.bca328",
+ "type": "call",
+ "name": "call: Configure",
+ "xml": "<call module=\"APPC\" rpc=\"Configure\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1080.5,
+ "y": 348,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "9070d727.d59288",
+ "44288c9c.74bae4"
+ ]
+ ]
+ },
+ {
+ "id": "78fe488d.d629a8",
+ "type": "outcome",
+ "name": "Configure",
+ "xml": "<outcome value='Configure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 687.5,
+ "y": 344,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "5dff373d.db8a48"
+ ]
+ ]
+ },
+ {
+ "id": "ba1faf4d.90c7f",
+ "type": "outcome",
+ "name": "ConfigModify",
+ "xml": "<outcome value='ConfigModify'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 684.5,
+ "y": 474,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "5dff373d.db8a48"
+ ]
+ ]
+ },
+ {
+ "id": "74691fa2.1c0c1",
+ "type": "outcome",
+ "name": "ConfigScaleOut",
+ "xml": "<outcome value='ConfigScaleOut'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 687.5,
+ "y": 390,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "5dff373d.db8a48"
+ ]
+ ]
+ },
+ {
+ "id": "5dff373d.db8a48",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 878.5,
+ "y": 344,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "210f97fe.bca328"
+ ]
+ ]
+ },
+ {
+ "id": "62ba3ef0.ca976",
+ "type": "switchNode",
+ "name": "switch error-code",
+ "xml": "<switch test='`$error-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 304,
+ "y": 821,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "ade1eb2c.468eb8",
+ "75f0f4a7.e85dec"
+ ]
+ ]
+ },
+ {
+ "id": "ade1eb2c.468eb8",
+ "type": "success",
+ "name": "outcome: 400",
+ "xml": "<outcome value=\"400\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 512,
+ "y": 830,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "a91b8e31.5ff52"
+ ]
+ ]
+ },
+ {
+ "id": "75f0f4a7.e85dec",
+ "type": "success",
+ "name": "outcome: Other",
+ "xml": "<outcome value=\"Other\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 514,
+ "y": 905,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "d33f3933.4c8b78"
+ ]
+ ]
+ },
+ {
+ "id": "a91b8e31.5ff52",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 722,
+ "y": 836,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "9337492c.d201c8"
+ ]
+ ]
+ },
+ {
+ "id": "d33f3933.4c8b78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 729,
+ "y": 910,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "1f02e341.848ead"
+ ]
+ ]
+ },
+ {
+ "id": "9337492c.d201c8",
+ "type": "set",
+ "name": "set Status for dispatcher",
+ "xml": "<set>\n<parameter name='SvcLogic.status' value='success' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />",
+ "comments": "",
+ "x": 955,
+ "y": 836,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "1f02e341.848ead",
+ "type": "set",
+ "name": "set Status for dispatcher",
+ "xml": "<set>\n<parameter name='SvcLogic.status' value='failure' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />\n",
+ "comments": "",
+ "x": 962,
+ "y": 916,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "c6df868f.aa7308",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'STATUS RETURNED TO DISPATCHER error-code = ' + $output.status.code`\" />\n<parameter name=\"field3\" value=\"`'STATUS RETURNED TO DISPATCHER error-message = ' + $output.status.message`\" />\n<parameter name=\"field4\" value=\"`'STATUS RETURNED TO DISPATCHER = ' + $SvcLogic.status`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 273,
+ "y": 1116,
+ "z": "c322e357.b8be8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bc6c421e.60c4b",
+ "type": "call",
+ "name": "call: GetConfigParams",
+ "xml": "<call module=\"APPC\" rpc=\"GetConfigParams\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 329,
+ "y": 160,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "f0d70e02.3a146",
+ "9cc63cfb.539a2",
+ "ee7268bd.050cd8"
+ ]
+ ]
+ },
+ {
+ "id": "f0d70e02.3a146",
+ "type": "failure",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 548,
+ "y": 262,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "86ef19e.3d758e8"
+ ]
+ ]
+ },
+ {
+ "id": "86ef19e.3d758e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 716,
+ "y": 263,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "659a83cd.3ad29c",
+ "f91a152c.8ed648"
+ ]
+ ]
+ },
+ {
+ "id": "9cc63cfb.539a2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 549,
+ "y": 151,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "199d1e69.01b822"
+ ]
+ ]
+ },
+ {
+ "id": "ee7268bd.050cd8",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 547,
+ "y": 200,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "1a90801b.bb597"
+ ]
+ ]
+ },
+ {
+ "id": "199d1e69.01b822",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 728,
+ "y": 149,
+ "z": "c322e357.b8be8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1a90801b.bb597",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 722,
+ "y": 202,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "b99a1084.665dd"
+ ]
+ ]
+ },
+ {
+ "id": "b99a1084.665dd",
+ "type": "set",
+ "name": "set error-code",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='DG Workflow GetConfigParams not found' />\n",
+ "comments": "",
+ "x": 916,
+ "y": 205,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "9070d727.d59288",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1296,
+ "y": 348,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "598408aa.da8188"
+ ]
+ ]
+ },
+ {
+ "id": "598408aa.da8188",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1464,
+ "y": 348,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "4733bef3.5975b"
+ ]
+ ]
+ },
+ {
+ "id": "4733bef3.5975b",
+ "type": "set",
+ "name": "set error-code",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='DG Workflow Configure not found' />\n",
+ "comments": "",
+ "x": 1664,
+ "y": 349,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "44288c9c.74bae4",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1289,
+ "y": 399,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "e51b2033.d0295"
+ ]
+ ]
+ },
+ {
+ "id": "e51b2033.d0295",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1470,
+ "y": 402,
+ "z": "c322e357.b8be8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "81174cbe.247c4",
+ "type": "outcome",
+ "name": "ConfigRestore",
+ "xml": "<outcome value='ConfigRestore'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 688,
+ "y": 433,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "5dff373d.db8a48"
+ ]
+ ]
+ },
+ {
+ "id": "93c5931.7ab677",
+ "type": "call",
+ "name": "call: SetStatus",
+ "xml": "<call module=\"APPC\" rpc=\"SetStatus\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 291,
+ "y": 719,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "fe31a123.38291",
+ "131cb562.b3371b"
+ ]
+ ]
+ },
+ {
+ "id": "fe31a123.38291",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 481,
+ "y": 702,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "8823b534.00f5f8"
+ ]
+ ]
+ },
+ {
+ "id": "8823b534.00f5f8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 667,
+ "y": 702,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "c84859b3.72e148"
+ ]
+ ]
+ },
+ {
+ "id": "c84859b3.72e148",
+ "type": "set",
+ "name": "set error-code",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='DG Workflow SetConfigStatus not found' />\n",
+ "comments": "",
+ "x": 855,
+ "y": 701,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "131cb562.b3371b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 475,
+ "y": 747,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "a66046c6.450ae8"
+ ]
+ ]
+ },
+ {
+ "id": "a66046c6.450ae8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 640,
+ "y": 746,
+ "z": "c322e357.b8be8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e740321c.4b927",
+ "type": "failure",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 606,
+ "y": 650,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "d03bfb1.6cdfe08"
+ ]
+ ]
+ },
+ {
+ "id": "ef753c5c.a1a3e",
+ "type": "set",
+ "name": "set error-code",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`'Invalid action ' + $request-action`\" />\n",
+ "comments": "",
+ "x": 979,
+ "y": 651,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "d03bfb1.6cdfe08",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 778,
+ "y": 647,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "ef753c5c.a1a3e"
+ ]
+ ]
+ },
+ {
+ "id": "4531bc67.6e9694",
+ "type": "outcome",
+ "name": "ConfigBackup",
+ "xml": "<outcome value='ConfigBackup'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 678,
+ "y": 517,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "5dff373d.db8a48"
+ ]
+ ]
+ },
+ {
+ "id": "4d8d372f.0ebc28",
+ "type": "outcome",
+ "name": "ConfigBackupDelete",
+ "xml": "<outcome value='ConfigBackupDelete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 685,
+ "y": 567,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "5dff373d.db8a48"
+ ]
+ ]
+ },
+ {
+ "id": "dcac81d6.e4742",
+ "type": "execute",
+ "name": "execute saveTxLog",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 313.5,
+ "y": 1028,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "9cff3b81.458148"
+ ]
+ ]
+ },
+ {
+ "id": "be2f239f.7dc29",
+ "type": "set",
+ "name": "set tmp.message",
+ "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$output.status.code + ':' + $output.status.message`\" />\n",
+ "comments": "",
+ "x": 296,
+ "y": 971,
+ "z": "c322e357.b8be8",
+ "wires": []
+ },
+ {
+ "id": "9cff3b81.458148",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 521,
+ "y": 1030,
+ "z": "c322e357.b8be8",
+ "wires": [
+ [
+ "88b17439.3c8f78"
+ ]
+ ]
+ },
+ {
+ "id": "88b17439.3c8f78",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 701,
+ "y": 1030,
+ "z": "c322e357.b8be8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f91a152c.8ed648",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`$request-action`\"/>\n<parameter name=\"field3\" value=\"`$input.action`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 944,
+ "y": 267,
+ "z": "c322e357.b8be8",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Configure.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Configure.json index 196956e12..e31fb2778 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Configure.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_Configure.json @@ -1 +1,1021 @@ -[{"id":"480ea5ae.d5651c","type":"dgstart","name":"DGSTART","outputs":1,"x":150,"y":60,"z":"cadfa83f.4d8a88","wires":[["a11357be.658c98"]]},{"id":"a11357be.658c98","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.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' version='4.0.0'>","outputs":1,"x":333,"y":61,"z":"cadfa83f.4d8a88","wires":[["48197593.d501bc"]]},{"id":"48197593.d501bc","type":"method","name":"method Configure","xml":"<method rpc='Configure' mode='sync'>\n","comments":"","outputs":1,"x":531,"y":59,"z":"cadfa83f.4d8a88","wires":[["524e2ac6.d57614"]]},{"id":"524e2ac6.d57614","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":152,"y":118,"z":"cadfa83f.4d8a88","wires":[["60b94849.8fbe08","a08072ec.d21e9","99bebd86.edca2","b4f59168.7906f","33406d49.1ea402","fb8af18a.2b272"]]},{"id":"60b94849.8fbe08","type":"call","name":"call: DownloadConfig","xml":"<call module=\"APPC\" rpc=\"`$tmp.configureactiondg.DOWNLOAD-CONFIG-DG`\" mode=\"sync\">","comments":"","outputs":1,"x":319,"y":1043,"z":"cadfa83f.4d8a88","wires":[["26d0764c.b2c4ea","a1c9c3ac.c65b3","332d5385.b7918c"]]},{"id":"26d0764c.b2c4ea","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":617,"y":983,"z":"cadfa83f.4d8a88","wires":[["9ad20c2f.bb05a"]]},{"id":"a1c9c3ac.c65b3","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":632,"y":1044,"z":"cadfa83f.4d8a88","wires":[["84738e4d.e575"]]},{"id":"332d5385.b7918c","type":"success","name":" success","xml":"<outcome value=\"success\">","comments":"","outputs":1,"x":612,"y":1108,"z":"cadfa83f.4d8a88","wires":[["c166ddbd.547ca"]]},{"id":"9ad20c2f.bb05a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":809,"y":975,"z":"cadfa83f.4d8a88","wires":[["d8230437.7273e8","b1a8052e.9d5358","e8c161d9.03c09"]]},{"id":"84738e4d.e575","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":797,"y":1045,"z":"cadfa83f.4d8a88","wires":[["1f62ef66.70ec21"]]},{"id":"c166ddbd.547ca","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":813,"y":1103,"z":"cadfa83f.4d8a88","wires":[["1cd207dc.cfc708","d8e99c6.9bb2f6","4cc652f1.8c357c"]]},{"id":"d8230437.7273e8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'error-code = ' + $error-code`\" />\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n","comments":"","outputs":1,"x":1023,"y":810,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"1f62ef66.70ec21","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`'DG Workflow ' + $tmp.configureactiondg.DOWNLOAD-CONFIG-DG + ' not found'`\"/>\n\t","comments":"","x":1005,"y":1041,"z":"cadfa83f.4d8a88","wires":[]},{"id":"1cd207dc.cfc708","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'error-code = ' + $error-code`\" />\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n<parameter name=\"field4\" value=\"ACTIVATESUCCESS\" />","comments":"","outputs":1,"x":1016,"y":1100,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"b1a8052e.9d5358","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t","comments":"","x":1034,"y":993,"z":"cadfa83f.4d8a88","wires":[]},{"id":"33406d49.1ea402","type":"switchNode","name":"switch config-type","xml":"<switch test='`$config-type`'>\n","comments":"","outputs":1,"x":238,"y":512,"z":"cadfa83f.4d8a88","wires":[["4583918a.3e1cf","5016eddc.eaee64"]]},{"id":"4583918a.3e1cf","type":"success","name":"outcome: template","xml":"<outcome value=\"template\">","comments":"","outputs":1,"x":444.5,"y":512,"z":"cadfa83f.4d8a88","wires":[["7d993b7c.7b6f34"]]},{"id":"a08072ec.d21e9","type":"set","name":"set Download params","xml":"<set>\n<parameter name='host-ip-address' value='`$vnf-host-ip-address`' />\n<parameter name='device-login' value='`$device-authentication.USER-NAME`' />\n<parameter name='device-password' value='`$device-authentication.PASSWORD`' />\n<parameter name='port-number' value='`$device-authentication.PORT-NUMBER`' />\n<parameter name='protocol' value='`$tmp.deviceinterfaceprotocol.PROTOCOL`' />\n<parameter name='device-config' value='`$deviceconfig-file-content`' />","comments":"","x":335,"y":954,"z":"cadfa83f.4d8a88","wires":[]},{"id":"99bebd86.edca2","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"CONFIGPARAMS\" value=\"`$config-data`\"/>\n<parameter name=\"CONFIGPARAMS1\" value=\"`$block_configuration-parameters`\"/>\n<parameter name=\"TEMPLATENAME\" value=\"`$template-name`\"/>\n<parameter name=\"CONFIGURATION\" value=\"`$configuration`\"/>\n<parameter name=\"CONFIGURATION1\" value=\"`$block_configuration`\"/>\n\n","comments":"","outputs":1,"x":343,"y":107,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"8f391762.bc0128","type":"call","name":"call: GenerateTemplateConfig","xml":"<call module=\"APPC\" rpc=\"GenerateTemplateConfig\" mode=\"sync\">","comments":"","outputs":1,"x":839.5,"y":596,"z":"cadfa83f.4d8a88","wires":[["2a341f8b.78c7","44ce6236.c9f71c"]]},{"id":"2a341f8b.78c7","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1055.5,"y":585,"z":"cadfa83f.4d8a88","wires":[["99b9e3f3.4a9c3"]]},{"id":"99b9e3f3.4a9c3","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1227.5,"y":583,"z":"cadfa83f.4d8a88","wires":[["fc1b8d44.7676b"]]},{"id":"fc1b8d44.7676b","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow GenerateTemplateConfig not found'`\"/>\n\t","comments":"","x":1409.5,"y":585,"z":"cadfa83f.4d8a88","wires":[]},{"id":"44ce6236.c9f71c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1048.5,"y":631,"z":"cadfa83f.4d8a88","wires":[["65e826ca.d13518"]]},{"id":"65e826ca.d13518","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1208.5,"y":634,"z":"cadfa83f.4d8a88","wires":[["6a5e4bf3.53e254"]]},{"id":"6a5e4bf3.53e254","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t\n\t","comments":"","x":1393.5,"y":634,"z":"cadfa83f.4d8a88","wires":[]},{"id":"ca6cca85.5f74f8","type":"comment","name":"templatename cases","info":"","comments":"","x":562,"y":422,"z":"cadfa83f.4d8a88","wires":[]},{"id":"b58a409e.2bbcb","type":"comment","name":"merge ASDC template and data","info":"","comments":"","x":502,"y":459,"z":"cadfa83f.4d8a88","wires":[]},{"id":"fee64dc4.1d9be","type":"comment","name":"configBlock with or without parameters","info":"","comments":"","x":512,"y":644,"z":"cadfa83f.4d8a88","wires":[]},{"id":"7d993b7c.7b6f34","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":629,"y":513,"z":"cadfa83f.4d8a88","wires":[["8f391762.bc0128","59a0bc37.92e444"]]},{"id":"59a0bc37.92e444","type":"execute","name":"execute getTemplate","xml":"<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />","comments":"","outputs":1,"x":834,"y":458,"z":"cadfa83f.4d8a88","wires":[["f0f05e5b.1643a","57b955b6.a7363c"]]},{"id":"f0f05e5b.1643a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1023,"y":486,"z":"cadfa83f.4d8a88","wires":[["919b1a0e.7f8158"]]},{"id":"919b1a0e.7f8158","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1197,"y":494,"z":"cadfa83f.4d8a88","wires":[["41f91d3f.4cdc94"]]},{"id":"41f91d3f.4cdc94","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$config-template.error-message`\"/>\n\t\n\t\n\t","comments":"","x":1400,"y":508,"z":"cadfa83f.4d8a88","wires":[]},{"id":"57b955b6.a7363c","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1034,"y":426,"z":"cadfa83f.4d8a88","wires":[["f7d52240.3f7b9"]]},{"id":"f7d52240.3f7b9","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1215,"y":428,"z":"cadfa83f.4d8a88","wires":[["1af2c5e7.67c0aa"]]},{"id":"1af2c5e7.67c0aa","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to get template info\"/>\n\t\n\t\n\t","comments":"","x":1410,"y":432,"z":"cadfa83f.4d8a88","wires":[]},{"id":"5016eddc.eaee64","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":429,"y":688,"z":"cadfa83f.4d8a88","wires":[["27c69859.b17628"]]},{"id":"27c69859.b17628","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":620,"y":686,"z":"cadfa83f.4d8a88","wires":[["31736aaf.d50f16"]]},{"id":"31736aaf.d50f16","type":"call","name":"call: GenerateConfig","xml":"<call module=\"APPC\" rpc=\"GenerateConfig\" mode=\"sync\">","comments":"","outputs":1,"x":836,"y":689,"z":"cadfa83f.4d8a88","wires":[["df338fd9.9e1d5","b78f9a31.550958"]]},{"id":"df338fd9.9e1d5","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1038,"y":683,"z":"cadfa83f.4d8a88","wires":[["d92ec733.6213c8"]]},{"id":"d92ec733.6213c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1210,"y":685,"z":"cadfa83f.4d8a88","wires":[["be7c9084.d5615"]]},{"id":"be7c9084.d5615","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow GenerateConfig not found'`\"/>\n\t","comments":"","x":1391,"y":687,"z":"cadfa83f.4d8a88","wires":[]},{"id":"b78f9a31.550958","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1026,"y":745,"z":"cadfa83f.4d8a88","wires":[["ab74a39a.05a96"]]},{"id":"ab74a39a.05a96","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1197,"y":748,"z":"cadfa83f.4d8a88","wires":[["deac69f1.1634d8"]]},{"id":"deac69f1.1634d8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t\n\t","comments":"","x":1392,"y":750,"z":"cadfa83f.4d8a88","wires":[]},{"id":"d8e99c6.9bb2f6","type":"set","name":"set error-code 400 and message","xml":"<set>\n<parameter name='error-code' value='400' />\n<parameter name=\"error-message\" value=\"SUCCESS - request has been processed successfully\" />\n","comments":"","x":1078,"y":1152,"z":"cadfa83f.4d8a88","wires":[]},{"id":"7bb3e89d.220328","type":"comment","name":"ConfigCompAdaptor resets error code for success cases","info":"","comments":"","x":633,"y":1154,"z":"cadfa83f.4d8a88","wires":[]},{"id":"b4f59168.7906f","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"Prepare Success\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n","comments":"","outputs":1,"x":369,"y":811,"z":"cadfa83f.4d8a88","wires":[["e86c4a58.ea7bf8"]]},{"id":"4cc652f1.8c357c","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"Download Success\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n","comments":"","outputs":1,"x":1030,"y":1217,"z":"cadfa83f.4d8a88","wires":[["614f4f80.c8d4d"]]},{"id":"ece509d2.9ca6b8","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.onap.appc.config.generator.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n","comments":"","outputs":1,"x":1654,"y":984,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"e707672e.0c50c8","type":"set","name":"set tmp.message","xml":"<set>\n<parameter name='tmp.message' value=\"`'Download Failure : ' + $error-code + ' : ' + $error-message`\" />\n","comments":"","x":1643,"y":917,"z":"cadfa83f.4d8a88","wires":[]},{"id":"e8c161d9.03c09","type":"switchNode","name":"switch: error-code","xml":"<switch test=\"`$error-code`\">\n","comments":"","outputs":1,"x":1051,"y":870,"z":"cadfa83f.4d8a88","wires":[["f74cb5ed.9a8218","78a2372a.1c5678"]]},{"id":"f74cb5ed.9a8218","type":"success","name":"outcome: 400","xml":"<outcome value=\"400\">","comments":"","outputs":1,"x":1255,"y":871,"z":"cadfa83f.4d8a88","wires":[["d36bba51.566648"]]},{"id":"d36bba51.566648","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1440,"y":868,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"78a2372a.1c5678","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":1261,"y":941,"z":"cadfa83f.4d8a88","wires":[["9de899ed.51ab28"]]},{"id":"9de899ed.51ab28","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1450,"y":942,"z":"cadfa83f.4d8a88","wires":[["e707672e.0c50c8","ece509d2.9ca6b8"]]},{"id":"38899f2c.e6804","type":"comment","name":"ISBC cases returns failure to stop polling","info":"","comments":"","x":1280,"y":827,"z":"cadfa83f.4d8a88","wires":[]},{"id":"614f4f80.c8d4d","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1243,"y":1218,"z":"cadfa83f.4d8a88","wires":[["19ef6421.7c0d0c"]]},{"id":"19ef6421.7c0d0c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1412,"y":1222,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"e86c4a58.ea7bf8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":567,"y":813,"z":"cadfa83f.4d8a88","wires":[["4fa99aff.ef8d44"]]},{"id":"4fa99aff.ef8d44","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":743,"y":812,"z":"cadfa83f.4d8a88","wires":[[]]},{"id":"fb8af18a.2b272","type":"call","name":"call: ProcessParameterDefinition","xml":"<call module=\"APPC\" rpc=\"ProcessParameterDefinition\" mode=\"sync\">","comments":"","outputs":1,"x":410,"y":158,"z":"cadfa83f.4d8a88","wires":[["45281ac8.fd3ee4","cc966cb3.a4964"]]},{"id":"45281ac8.fd3ee4","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":647,"y":138,"z":"cadfa83f.4d8a88","wires":[["221bff2c.dba47"]]},{"id":"221bff2c.dba47","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":820,"y":136,"z":"cadfa83f.4d8a88","wires":[["45c0c2ac.c894cc"]]},{"id":"45c0c2ac.c894cc","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow ProcessParameterDefinition not found'`\"/>\n\t","comments":"","x":1006,"y":138,"z":"cadfa83f.4d8a88","wires":[]},{"id":"cc966cb3.a4964","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":646,"y":195,"z":"cadfa83f.4d8a88","wires":[["6b712b47.080f44"]]},{"id":"6b712b47.080f44","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":809,"y":199,"z":"cadfa83f.4d8a88","wires":[["5a394136.dbb19"]]},{"id":"5a394136.dbb19","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t\n\t","comments":"","x":1009,"y":199,"z":"cadfa83f.4d8a88","wires":[]}] +[
+ {
+ "id": "480ea5ae.d5651c",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 150,
+ "y": 60,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "a11357be.658c98"
+ ]
+ ]
+ },
+ {
+ "id": "a11357be.658c98",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "4.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 333,
+ "y": 61,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "48197593.d501bc"
+ ]
+ ]
+ },
+ {
+ "id": "48197593.d501bc",
+ "type": "method",
+ "name": "method Configure",
+ "xml": "<method rpc='Configure' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 531,
+ "y": 59,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "524e2ac6.d57614"
+ ]
+ ]
+ },
+ {
+ "id": "524e2ac6.d57614",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 152,
+ "y": 118,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "60b94849.8fbe08",
+ "a08072ec.d21e9",
+ "99bebd86.edca2",
+ "b4f59168.7906f",
+ "33406d49.1ea402",
+ "fb8af18a.2b272"
+ ]
+ ]
+ },
+ {
+ "id": "60b94849.8fbe08",
+ "type": "call",
+ "name": "call: DownloadConfig",
+ "xml": "<call module=\"APPC\" rpc=\"`$tmp.configureactiondg.DOWNLOAD-CONFIG-DG`\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 319,
+ "y": 1043,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "26d0764c.b2c4ea",
+ "a1c9c3ac.c65b3",
+ "332d5385.b7918c"
+ ]
+ ]
+ },
+ {
+ "id": "26d0764c.b2c4ea",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 617,
+ "y": 983,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "9ad20c2f.bb05a"
+ ]
+ ]
+ },
+ {
+ "id": "a1c9c3ac.c65b3",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 632,
+ "y": 1044,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "84738e4d.e575"
+ ]
+ ]
+ },
+ {
+ "id": "332d5385.b7918c",
+ "type": "success",
+ "name": " success",
+ "xml": "<outcome value=\"success\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 612,
+ "y": 1108,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "c166ddbd.547ca"
+ ]
+ ]
+ },
+ {
+ "id": "9ad20c2f.bb05a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 809,
+ "y": 975,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "d8230437.7273e8",
+ "b1a8052e.9d5358",
+ "e8c161d9.03c09"
+ ]
+ ]
+ },
+ {
+ "id": "84738e4d.e575",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 797,
+ "y": 1045,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "1f62ef66.70ec21"
+ ]
+ ]
+ },
+ {
+ "id": "c166ddbd.547ca",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 813,
+ "y": 1103,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "1cd207dc.cfc708",
+ "d8e99c6.9bb2f6",
+ "4cc652f1.8c357c"
+ ]
+ ]
+ },
+ {
+ "id": "d8230437.7273e8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'error-code = ' + $error-code`\" />\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1023,
+ "y": 810,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1f62ef66.70ec21",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`'DG Workflow ' + $tmp.configureactiondg.DOWNLOAD-CONFIG-DG + ' not found'`\"/>\n\t",
+ "comments": "",
+ "x": 1005,
+ "y": 1041,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "1cd207dc.cfc708",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'error-code = ' + $error-code`\" />\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n<parameter name=\"field4\" value=\"ACTIVATESUCCESS\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1016,
+ "y": 1100,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b1a8052e.9d5358",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t",
+ "comments": "",
+ "x": 1034,
+ "y": 993,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "33406d49.1ea402",
+ "type": "switchNode",
+ "name": "switch config-type",
+ "xml": "<switch test='`$config-type`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 238,
+ "y": 512,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "4583918a.3e1cf",
+ "5016eddc.eaee64"
+ ]
+ ]
+ },
+ {
+ "id": "4583918a.3e1cf",
+ "type": "success",
+ "name": "outcome: template",
+ "xml": "<outcome value=\"template\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 444.5,
+ "y": 512,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "7d993b7c.7b6f34"
+ ]
+ ]
+ },
+ {
+ "id": "a08072ec.d21e9",
+ "type": "set",
+ "name": "set Download params",
+ "xml": "<set>\n<parameter name='host-ip-address' value='`$vnf-host-ip-address`' />\n<parameter name='device-login' value='`$device-authentication.USER-NAME`' />\n<parameter name='device-password' value='`$device-authentication.PASSWORD`' />\n<parameter name='port-number' value='`$device-authentication.PORT-NUMBER`' />\n<parameter name='protocol' value='`$tmp.deviceinterfaceprotocol.PROTOCOL`' />\n<parameter name='device-config' value='`$deviceconfig-file-content`' />",
+ "comments": "",
+ "x": 335,
+ "y": 954,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "99bebd86.edca2",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"CONFIGPARAMS\" value=\"`$config-data`\"/>\n<parameter name=\"CONFIGPARAMS1\" value=\"`$block_configuration-parameters`\"/>\n<parameter name=\"TEMPLATENAME\" value=\"`$template-name`\"/>\n<parameter name=\"CONFIGURATION\" value=\"`$configuration`\"/>\n<parameter name=\"CONFIGURATION1\" value=\"`$block_configuration`\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 343,
+ "y": 107,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "8f391762.bc0128",
+ "type": "call",
+ "name": "call: GenerateTemplateConfig",
+ "xml": "<call module=\"APPC\" rpc=\"GenerateTemplateConfig\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 839.5,
+ "y": 596,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "2a341f8b.78c7",
+ "44ce6236.c9f71c"
+ ]
+ ]
+ },
+ {
+ "id": "2a341f8b.78c7",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1055.5,
+ "y": 585,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "99b9e3f3.4a9c3"
+ ]
+ ]
+ },
+ {
+ "id": "99b9e3f3.4a9c3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1227.5,
+ "y": 583,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "fc1b8d44.7676b"
+ ]
+ ]
+ },
+ {
+ "id": "fc1b8d44.7676b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow GenerateTemplateConfig not found'`\"/>\n\t",
+ "comments": "",
+ "x": 1409.5,
+ "y": 585,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "44ce6236.c9f71c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1048.5,
+ "y": 631,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "65e826ca.d13518"
+ ]
+ ]
+ },
+ {
+ "id": "65e826ca.d13518",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1208.5,
+ "y": 634,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "6a5e4bf3.53e254"
+ ]
+ ]
+ },
+ {
+ "id": "6a5e4bf3.53e254",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t\n\t",
+ "comments": "",
+ "x": 1393.5,
+ "y": 634,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "ca6cca85.5f74f8",
+ "type": "comment",
+ "name": "templatename cases",
+ "info": "",
+ "comments": "",
+ "x": 562,
+ "y": 422,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "b58a409e.2bbcb",
+ "type": "comment",
+ "name": "merge ASDC template and data",
+ "info": "",
+ "comments": "",
+ "x": 502,
+ "y": 459,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "fee64dc4.1d9be",
+ "type": "comment",
+ "name": "configBlock with or without parameters",
+ "info": "",
+ "comments": "",
+ "x": 512,
+ "y": 644,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "7d993b7c.7b6f34",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 629,
+ "y": 513,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "8f391762.bc0128",
+ "59a0bc37.92e444"
+ ]
+ ]
+ },
+ {
+ "id": "59a0bc37.92e444",
+ "type": "execute",
+ "name": "execute getTemplate",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 834,
+ "y": 458,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "f0f05e5b.1643a",
+ "57b955b6.a7363c"
+ ]
+ ]
+ },
+ {
+ "id": "f0f05e5b.1643a",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1023,
+ "y": 486,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "919b1a0e.7f8158"
+ ]
+ ]
+ },
+ {
+ "id": "919b1a0e.7f8158",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1197,
+ "y": 494,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "41f91d3f.4cdc94"
+ ]
+ ]
+ },
+ {
+ "id": "41f91d3f.4cdc94",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$config-template.error-message`\"/>\n\t\n\t\n\t",
+ "comments": "",
+ "x": 1400,
+ "y": 508,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "57b955b6.a7363c",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1034,
+ "y": 426,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "f7d52240.3f7b9"
+ ]
+ ]
+ },
+ {
+ "id": "f7d52240.3f7b9",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1215,
+ "y": 428,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "1af2c5e7.67c0aa"
+ ]
+ ]
+ },
+ {
+ "id": "1af2c5e7.67c0aa",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to get template info\"/>\n\t\n\t\n\t",
+ "comments": "",
+ "x": 1410,
+ "y": 432,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "5016eddc.eaee64",
+ "type": "success",
+ "name": "outcome: Other",
+ "xml": "<outcome value=\"Other\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 429,
+ "y": 688,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "27c69859.b17628"
+ ]
+ ]
+ },
+ {
+ "id": "27c69859.b17628",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 620,
+ "y": 686,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "31736aaf.d50f16"
+ ]
+ ]
+ },
+ {
+ "id": "31736aaf.d50f16",
+ "type": "call",
+ "name": "call: GenerateConfig",
+ "xml": "<call module=\"APPC\" rpc=\"GenerateConfig\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 836,
+ "y": 689,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "df338fd9.9e1d5",
+ "b78f9a31.550958"
+ ]
+ ]
+ },
+ {
+ "id": "df338fd9.9e1d5",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1038,
+ "y": 683,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "d92ec733.6213c8"
+ ]
+ ]
+ },
+ {
+ "id": "d92ec733.6213c8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1210,
+ "y": 685,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "be7c9084.d5615"
+ ]
+ ]
+ },
+ {
+ "id": "be7c9084.d5615",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow GenerateConfig not found'`\"/>\n\t",
+ "comments": "",
+ "x": 1391,
+ "y": 687,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "b78f9a31.550958",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026,
+ "y": 745,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "ab74a39a.05a96"
+ ]
+ ]
+ },
+ {
+ "id": "ab74a39a.05a96",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1197,
+ "y": 748,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "deac69f1.1634d8"
+ ]
+ ]
+ },
+ {
+ "id": "deac69f1.1634d8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t\n\t",
+ "comments": "",
+ "x": 1392,
+ "y": 750,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "d8e99c6.9bb2f6",
+ "type": "set",
+ "name": "set error-code 400 and message",
+ "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name=\"error-message\" value=\"SUCCESS - request has been processed successfully\" />\n",
+ "comments": "",
+ "x": 1078,
+ "y": 1152,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "7bb3e89d.220328",
+ "type": "comment",
+ "name": "ConfigCompAdaptor resets error code for success cases",
+ "info": "",
+ "comments": "",
+ "x": 633,
+ "y": 1154,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "b4f59168.7906f",
+ "type": "execute",
+ "name": "execute saveTxLog",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"Prepare Success\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 369,
+ "y": 811,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "e86c4a58.ea7bf8"
+ ]
+ ]
+ },
+ {
+ "id": "4cc652f1.8c357c",
+ "type": "execute",
+ "name": "execute saveTxLog",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"Download Success\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1030,
+ "y": 1217,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "614f4f80.c8d4d"
+ ]
+ ]
+ },
+ {
+ "id": "ece509d2.9ca6b8",
+ "type": "execute",
+ "name": "execute saveTxLog",
+ "xml": "<execute plugin=\"org.onap.appc.config.generator.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1654,
+ "y": 984,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e707672e.0c50c8",
+ "type": "set",
+ "name": "set tmp.message",
+ "xml": "<set>\n<parameter name='tmp.message' value=\"`'Download Failure : ' + $error-code + ' : ' + $error-message`\" />\n",
+ "comments": "",
+ "x": 1643,
+ "y": 917,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "e8c161d9.03c09",
+ "type": "switchNode",
+ "name": "switch: error-code",
+ "xml": "<switch test=\"`$error-code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1051,
+ "y": 870,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "f74cb5ed.9a8218",
+ "78a2372a.1c5678"
+ ]
+ ]
+ },
+ {
+ "id": "f74cb5ed.9a8218",
+ "type": "success",
+ "name": "outcome: 400",
+ "xml": "<outcome value=\"400\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1255,
+ "y": 871,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "d36bba51.566648"
+ ]
+ ]
+ },
+ {
+ "id": "d36bba51.566648",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1440,
+ "y": 868,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "78a2372a.1c5678",
+ "type": "success",
+ "name": "outcome: Other",
+ "xml": "<outcome value=\"Other\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1261,
+ "y": 941,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "9de899ed.51ab28"
+ ]
+ ]
+ },
+ {
+ "id": "9de899ed.51ab28",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1450,
+ "y": 942,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "e707672e.0c50c8",
+ "ece509d2.9ca6b8"
+ ]
+ ]
+ },
+ {
+ "id": "38899f2c.e6804",
+ "type": "comment",
+ "name": "ISBC cases returns failure to stop polling",
+ "info": "",
+ "comments": "",
+ "x": 1280,
+ "y": 827,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "614f4f80.c8d4d",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1243,
+ "y": 1218,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "19ef6421.7c0d0c"
+ ]
+ ]
+ },
+ {
+ "id": "19ef6421.7c0d0c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1412,
+ "y": 1222,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "e86c4a58.ea7bf8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 567,
+ "y": 813,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "4fa99aff.ef8d44"
+ ]
+ ]
+ },
+ {
+ "id": "4fa99aff.ef8d44",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 743,
+ "y": 812,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "fb8af18a.2b272",
+ "type": "call",
+ "name": "call: ProcessParameterDefinition",
+ "xml": "<call module=\"APPC\" rpc=\"ProcessParameterDefinition\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 410,
+ "y": 158,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "45281ac8.fd3ee4",
+ "cc966cb3.a4964"
+ ]
+ ]
+ },
+ {
+ "id": "45281ac8.fd3ee4",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 647,
+ "y": 138,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "221bff2c.dba47"
+ ]
+ ]
+ },
+ {
+ "id": "221bff2c.dba47",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 820,
+ "y": 136,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "45c0c2ac.c894cc"
+ ]
+ ]
+ },
+ {
+ "id": "45c0c2ac.c894cc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"'DG Workflow ProcessParameterDefinition not found'`\"/>\n\t",
+ "comments": "",
+ "x": 1006,
+ "y": 138,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ },
+ {
+ "id": "cc966cb3.a4964",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 646,
+ "y": 195,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "6b712b47.080f44"
+ ]
+ ]
+ },
+ {
+ "id": "6b712b47.080f44",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 809,
+ "y": 199,
+ "z": "cadfa83f.4d8a88",
+ "wires": [
+ [
+ "5a394136.dbb19"
+ ]
+ ]
+ },
+ {
+ "id": "5a394136.dbb19",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t\n\t",
+ "comments": "",
+ "x": 1009,
+ "y": 199,
+ "z": "cadfa83f.4d8a88",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CreateSnapShotVM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CreateSnapShotVM.json index ae4393758..35b58f463 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CreateSnapShotVM.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_CreateSnapShotVM.json @@ -1 +1,262 @@ -[{"id":"d52c65e5.f5198","type":"dgstart","name":"DGSTART","outputs":1,"x":176.75,"y":107.75,"z":"30478bde.f2abc4","wires":[["ddb3e53d.f4b2f"]]},{"id":"ddb3e53d.f4b2f","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.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' version='2.0.0'>","outputs":1,"x":364.75,"y":108.75,"z":"30478bde.f2abc4","wires":[["d8340025.194a6"]]},{"id":"d8340025.194a6","type":"method","name":"CreateSnapshotVM","xml":"<method rpc='CreateSnapShotVM' mode='sync'>\n","comments":"","outputs":1,"x":593.7499694824219,"y":109.75,"z":"30478bde.f2abc4","wires":[["d54c9ea.28358e"]]},{"id":"6b99250e.35643c","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":930.7499694824219,"y":320.7499694824219,"z":"30478bde.f2abc4","wires":[["397ee930.1e2b1e"]]},{"id":"a43afbad.7e76b","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":939.7499694824219,"y":199.74996948242188,"z":"30478bde.f2abc4","wires":[["7859efa9.a0ac4"]]},{"id":"9f18808f.a11f7","type":"returnSuccess","name":"return success","xml":"<return status='success'>","comments":"","x":1486.7499694824219,"y":292.7499694824219,"z":"30478bde.f2abc4","wires":[]},{"id":"5dad8781.d7ba1","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC CreateSnapShot not found' />","comments":"","x":1247.7499694824219,"y":199.74996948242188,"z":"30478bde.f2abc4","wires":[]},{"id":"397ee930.1e2b1e","type":"switchNode","name":"switch error-code","xml":"<switch test='`$error_code`'>\n","comments":"","outputs":1,"x":1123.7499694824219,"y":321.7499694824219,"z":"30478bde.f2abc4","wires":[["1ed28160.fcd10f","7b2975af.e9ca64"]]},{"id":"1ed28160.fcd10f","type":"success","name":"SUCCESS 200","xml":"<outcome value='200'>\n","comments":"","outputs":1,"x":1305.7499694824219,"y":291.7499694824219,"z":"30478bde.f2abc4","wires":[["9f18808f.a11f7"]]},{"id":"7b2975af.e9ca64","type":"outcome","name":"ERROR","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1297.7499694824219,"y":450.7499694824219,"z":"30478bde.f2abc4","wires":[["da50f76.9fc8c08"]]},{"id":"da50f76.9fc8c08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1430.7499694824219,"y":451.7499694824219,"z":"30478bde.f2abc4","wires":[["bc220e8d.e4e278","191f3219.fef8f6"]]},{"id":"bc220e8d.e4e278","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":1565.7499694824219,"y":492.75,"z":"30478bde.f2abc4","wires":[]},{"id":"7859efa9.a0ac4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1095.7499694824219,"y":199.74996948242188,"z":"30478bde.f2abc4","wires":[["5dad8781.d7ba1"]]},{"id":"77e88d06.223f64","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />","comments":"","outputs":1,"x":876.8666687011719,"y":98.75,"z":"30478bde.f2abc4","wires":[[]]},{"id":"d54c9ea.28358e","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":751.6166687011719,"y":169.61666870117188,"z":"30478bde.f2abc4","wires":[["77e88d06.223f64","d8474535.89d048"]]},{"id":"191f3219.fef8f6","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n<parameter name=\"field4\" value=\"`'error-code = ' + $error_code`\" />","comments":"","outputs":1,"x":1555.6166687011719,"y":423.6166687011719,"z":"30478bde.f2abc4","wires":[[]]},{"id":"d8474535.89d048","type":"execute","name":"createSnapshot()","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='createSnapshot'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />","comments":"","outputs":1,"x":767.7499694824219,"y":265.75,"z":"30478bde.f2abc4","wires":[["a43afbad.7e76b","6b99250e.35643c"]]}] +[
+ {
+ "id": "d52c65e5.f5198",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 176.75,
+ "y": 107.75,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "ddb3e53d.f4b2f"
+ ]
+ ]
+ },
+ {
+ "id": "ddb3e53d.f4b2f",
+ "type": "service-logic",
+ "name": "APPC 2.0.0",
+ "module": "APPC",
+ "version": "2.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' version='2.0.0'>",
+ "outputs": 1,
+ "x": 364.75,
+ "y": 108.75,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "d8340025.194a6"
+ ]
+ ]
+ },
+ {
+ "id": "d8340025.194a6",
+ "type": "method",
+ "name": "CreateSnapshotVM",
+ "xml": "<method rpc='CreateSnapShotVM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 593.7499694824219,
+ "y": 109.75,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "d54c9ea.28358e"
+ ]
+ ]
+ },
+ {
+ "id": "6b99250e.35643c",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 930.7499694824219,
+ "y": 320.7499694824219,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "397ee930.1e2b1e"
+ ]
+ ]
+ },
+ {
+ "id": "a43afbad.7e76b",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 939.7499694824219,
+ "y": 199.74996948242188,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "7859efa9.a0ac4"
+ ]
+ ]
+ },
+ {
+ "id": "9f18808f.a11f7",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>",
+ "comments": "",
+ "x": 1486.7499694824219,
+ "y": 292.7499694824219,
+ "z": "30478bde.f2abc4",
+ "wires": []
+ },
+ {
+ "id": "5dad8781.d7ba1",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC CreateSnapShot not found' />",
+ "comments": "",
+ "x": 1247.7499694824219,
+ "y": 199.74996948242188,
+ "z": "30478bde.f2abc4",
+ "wires": []
+ },
+ {
+ "id": "397ee930.1e2b1e",
+ "type": "switchNode",
+ "name": "switch error-code",
+ "xml": "<switch test='`$error_code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1123.7499694824219,
+ "y": 321.7499694824219,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "1ed28160.fcd10f",
+ "7b2975af.e9ca64"
+ ]
+ ]
+ },
+ {
+ "id": "1ed28160.fcd10f",
+ "type": "success",
+ "name": "SUCCESS 200",
+ "xml": "<outcome value='200'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1305.7499694824219,
+ "y": 291.7499694824219,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "9f18808f.a11f7"
+ ]
+ ]
+ },
+ {
+ "id": "7b2975af.e9ca64",
+ "type": "outcome",
+ "name": "ERROR",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1297.7499694824219,
+ "y": 450.7499694824219,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "da50f76.9fc8c08"
+ ]
+ ]
+ },
+ {
+ "id": "da50f76.9fc8c08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1430.7499694824219,
+ "y": 451.7499694824219,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "bc220e8d.e4e278",
+ "191f3219.fef8f6"
+ ]
+ ]
+ },
+ {
+ "id": "bc220e8d.e4e278",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",
+ "comments": "",
+ "x": 1565.7499694824219,
+ "y": 492.75,
+ "z": "30478bde.f2abc4",
+ "wires": []
+ },
+ {
+ "id": "7859efa9.a0ac4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1095.7499694824219,
+ "y": 199.74996948242188,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "5dad8781.d7ba1"
+ ]
+ ]
+ },
+ {
+ "id": "77e88d06.223f64",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 876.8666687011719,
+ "y": 98.75,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d54c9ea.28358e",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 751.6166687011719,
+ "y": 169.61666870117188,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "77e88d06.223f64",
+ "d8474535.89d048"
+ ]
+ ]
+ },
+ {
+ "id": "191f3219.fef8f6",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />\n<parameter name=\"field4\" value=\"`'error-code = ' + $error_code`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1555.6166687011719,
+ "y": 423.6166687011719,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d8474535.89d048",
+ "type": "execute",
+ "name": "createSnapshot()",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='createSnapshot'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\" />\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 767.7499694824219,
+ "y": 265.75,
+ "z": "30478bde.f2abc4",
+ "wires": [
+ [
+ "a43afbad.7e76b",
+ "6b99250e.35643c"
+ ]
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DGOrchestrator.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DGOrchestrator.json index ff471974c..34118c4a1 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DGOrchestrator.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DGOrchestrator.json @@ -1,703 +1,726 @@ -[ - { - "id": "af863c5e.90e748", - "name": "DGSTART", - "outputs": 1, - "type": "dgstart", - "wires": [ - [ - "d9df0190.a42ba" - ] - ], - "x": 146.75, - "y": 164.75, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "d9df0190.a42ba", - "module": "APPC", - "name": "APPC 4.0.0", - "outputs": 1, - "type": "service-logic", - "version": "4.0.0", - "wires": [ - [ - "7c89aa4e.932024" - ] - ], - "x": 304.09282302856445, - "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' version='4.0.0'>", - "y": 164.73572540283203, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "7c89aa4e.932024", - "name": "method DGOrchestrator", - "outputs": 1, - "type": "method", - "wires": [ - [ - "c70f8f3b.05d388" - ] - ], - "x": 508.64046478271484, - "xml": "<method rpc='DGOrchestrator' mode='sync'>\n", - "y": 154.23572540283203, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "c70f8f3b.05d388", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "381e0ace.b3f33e", - "5f6fb0ca.2c254", - "c488bd07.108a38", - "75917e4e.17476" - ] - ], - "x": 114.90634155273438, - "xml": "<block atomic=\"true\">", - "y": 287.93809700012207, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "75917e4e.17476", - "name": "call: setInputParams", - "outputs": 1, - "type": "call", - "wires": [ - [ - "36ff1ffa.c778a", - "26081ec1.29b53a", - "c2f54a3a.ddf05" - ] - ], - "x": 649.6642913818359, - "xml": "<call module=\"APPC\" rpc=\"setInputParams\" mode=\"sync\">", - "y": 204.23572635650635, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "1210a216.c8af96", - "name": "failure", - "outputs": 1, - "type": "failure", - "wires": [ - [ - "9c3d67a5.92d02" - ] - ], - "x": 2142.4143924713135, - "xml": "<outcome value='failure'>\n", - "y": 315.6523714065552, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "b0e87141.6fe4f8", - "name": "execute get and executeFlowSequence", - "outputs": 1, - "type": "execute", - "wires": [ - [ - "1210a216.c8af96", - "85baeb80.e02e8" - ] - ], - "x": 1850.5411643981934, - "xml": "<execute plugin=\"org.onap.appc.flow.controller.node.FlowControlNode\" method=\"processFlow\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.flowControl\" />\n", - "y": 327.96586418151855, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "9c3d67a5.92d02", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "4c31beff.349f7" - ] - ], - "x": 2353.461868286133, - "xml": "<block atomic=\"true\">", - "y": 313.1761817932129, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "88a7413.62118c", - "name": "set error-code 400 and message", - "type": "set", - "wires": [], - "x": 2598.9379119873047, - "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"SUCCESS - request has been processed successfully\" />\n<parameter name='output-payload' value=\"`'state : ' + $output.payload.state` \" />\n", - "y": 394.735652923584, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "85baeb80.e02e8", - "name": "success", - "outputs": 1, - "type": "success", - "wires": [ - [ - "91b3c0c8.bd7338" - ] - ], - "x": 2148.2952003479004, - "xml": "<outcome value='success'>\n", - "y": 395.31900215148926, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "91b3c0c8.bd7338", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "88a7413.62118c" - ] - ], - "x": 2336.175952911377, - "xml": "<block atomic=\"true\">", - "y": 394.9737958908081, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "4c31beff.349f7", - "name": "set error-code 401 and message", - "type": "set", - "wires": [], - "x": 2603.7476806640625, - "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.flowControl.status-message`\" />\n<parameter name='output-payload' value=\"\" />\n", - "y": 313.11661529541016, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "5f6fb0ca.2c254", - "name": "execute saveTxLog", - "outputs": 1, - "type": "execute", - "wires": [ - [ - "9340c18b.3084e8" - ] - ], - "x": 314.2475776672363, - "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n", - "y": 1005.7912883758545, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "9340c18b.3084e8", - "name": "failure", - "outputs": 1, - "type": "failure", - "wires": [ - [ - "af758d58.5b9778" - ] - ], - "x": 515.6919479370117, - "xml": "<outcome value='failure'>\n", - "y": 1006.707914352417, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "af758d58.5b9778", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [] - ], - "x": 691.1643218994141, - "xml": "<block atomic=\"true\">", - "y": 1008.2912473678589, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "381e0ace.b3f33e", - "name": "set tmp.message", - "type": "set", - "wires": [], - "x": 333.0253677368164, - "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n", - "y": 917.9857015609741, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "36ff1ffa.c778a", - "name": "not-found", - "outputs": 1, - "type": "not-found", - "wires": [ - [ - "ca660a6a.37209" - ] - ], - "x": 865.164306640625, - "xml": "<outcome value='not-found'>\n", - "y": 163.40238761901855, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "26081ec1.29b53a", - "name": "failure", - "outputs": 1, - "type": "failure", - "wires": [ - [ - "ca660a6a.37209" - ] - ], - "x": 859.664306640625, - "xml": "<outcome value='failure'>\n", - "y": 202.4023895263672, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "ca660a6a.37209", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [] - ], - "x": 1032.414306640625, - "xml": "<block atomic=\"true\">\n\n", - "y": 183.90241241455078, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "c488bd07.108a38", - "name": "switch error-code", - "outputs": 1, - "type": "switchNode", - "wires": [ - [ - "3d595d5f.577762", - "faa2fd8b.a0c5c" - ] - ], - "x": 337.8309631347656, - "xml": "<switch test='`$error-code`'>\n", - "y": 859.6524333953857, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "3d595d5f.577762", - "name": "outcome: 400", - "outputs": 1, - "type": "success", - "wires": [ - [ - "185cf26e.a85396" - ] - ], - "x": 602.4975891113281, - "xml": "<outcome value=\"400\">", - "y": 811.9857139587402, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "faa2fd8b.a0c5c", - "name": "outcome: Other", - "outputs": 1, - "type": "success", - "wires": [ - [ - "d829d71e.06cbb8" - ] - ], - "x": 602.414249420166, - "xml": "<outcome value=\"Other\">", - "y": 911.985746383667, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "id": "185cf26e.a85396", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "766d8c6f.46c504" - ] - ], - "x": 813.7476348876953, - "xml": "<block atomic=\"true\">", - "y": 814.6524209976196, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "id": "d829d71e.06cbb8", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "cb724d6.bb5e03" - ] - ], - "x": 795.7474899291992, - "xml": "<block atomic=\"true\">", - "y": 913.235746383667, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "766d8c6f.46c504", - "name": "set Status for dispatcher", - "type": "set", - "wires": [], - "x": 1063.4143371582031, - "xml": "<set>\n<parameter name='SvcLogic.status' value='success' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />", - "y": 812.8190479278564, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "cb724d6.bb5e03", - "name": "set Status for dispatcher", - "type": "set", - "wires": [], - "x": 1032.9142837524414, - "xml": "<set>\n<parameter name='SvcLogic.status' value='failure' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />\n", - "y": 912.1523923873901, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "3df8ebcb.3db3a4", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "db8589d5.f5783" - ] - ], - "x": 525.9142684936523, - "xml": "<block atomic=\"true\">", - "y": 315.5690441131592, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "c2f54a3a.ddf05", - "name": "success", - "outputs": 1, - "type": "success", - "wires": [ - [ - "3df8ebcb.3db3a4" - ] - ], - "x": 855.497615814209, - "xml": "<outcome value='success'>\n", - "y": 242.23571968078613, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "98b12577.b4145", - "name": "execute getCapability", - "outputs": 1, - "type": "execute", - "wires": [ - [ - "e327dfa0.71d49", - "a7e121d5.e56c78" - ] - ], - "x": 831.6644706726074, - "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getCapability\">\n<parameter name=\"caplevel\" value=\"`$action-level`\" />\n<parameter name=\"checkCapability\" value=\"`$request-action`\" />\n<parameter name=\"vnf-type\" value=\"`$vnf-type`\" />\n\n", - "y": 463.6523542404175, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "79a2cd7a.1539c4", - "name": "switch capability-result", - "outputs": 1, - "type": "switchNode", - "wires": [ - [ - "2529f428.b003fc", - "69db5125.fc4bf", - "4ed07506.b71b1c" - ] - ], - "x": 1161.454574584961, - "xml": "<switch test=\"`$capabilities`\">\n", - "y": 549.3952317237854, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "2529f428.b003fc", - "name": "outcome: Not-Supported", - "outputs": 1, - "type": "success", - "wires": [ - [ - "b6a06ded.095718" - ] - ], - "x": 1400.6644439697266, - "xml": "<outcome value=\"Not-Supported\">", - "y": 675.9856586456299, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "69db5125.fc4bf", - "name": "outcome: Supported", - "outputs": 1, - "type": "success", - "wires": [ - [ - "b748bba.a3058c8" - ] - ], - "x": 1391.5810241699219, - "xml": "<outcome value=\"Supported\">", - "y": 608.3190422058105, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "e327dfa0.71d49", - "name": "Other", - "outputs": 1, - "type": "failure", - "wires": [ - [ - "54a3be90.486a98" - ] - ], - "x": 1132.7594909667969, - "xml": "<outcome value='Other'>\n", - "y": 409.8428611755371, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "a7e121d5.e56c78", - "name": "success", - "outputs": 1, - "type": "success", - "wires": [ - [ - "670943f4.e09734" - ] - ], - "x": 1117.2119979858398, - "xml": "<outcome value='success'>\n", - "y": 466.65238761901855, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "b6a06ded.095718", - "name": "set error-code 450 and message", - "type": "set", - "wires": [], - "x": 1690.997543334961, - "xml": "<set>\n<parameter name='error-code' value='450' />\n<parameter name='error-message' value=\"Request not supported\" />\n<parameter name='output-payload' value=\"\" />", - "y": 677.6523866653442, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "b748bba.a3058c8", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "b0e87141.6fe4f8" - ] - ], - "x": 1612.9976196289062, - "xml": "<block atomic=\"true\">", - "y": 612.3190307617188, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "4ed07506.b71b1c", - "name": "Other", - "outputs": 1, - "type": "other", - "wires": [ - [ - "b0e87141.6fe4f8" - ] - ], - "x": 1338.3310661315918, - "xml": "<outcome value='Other'>\n", - "y": 537.9857149124146, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "2930004b.59f6a", - "name": "set error code 401", - "type": "set", - "wires": [], - "x": 1482.6641845703125, - "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Cannot Determine Capabilities\" />\n<parameter name='output-payload' value=\"\" />\n", - "y": 398.2357177734375, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "670943f4.e09734", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "79a2cd7a.1539c4" - ] - ], - "x": 962.0492706298828, - "xml": "<block atomic=\"true\">\n\n", - "y": 549.8094539642334, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "55f47d04.5f65bc", - "name": "record", - "outputs": 1, - "type": "record", - "wires": [ - [] - ], - "x": 1447.072998046875, - "xml": "<record plugin=\"org.onap.sdnc.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"` 'Capabilities results will be - '+$capabilities`\" />", - "y": 446.452392578125, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "db8589d5.f5783", - "name": "switch action-level", - "outputs": 1, - "type": "switchNode", - "wires": [ - [ - "c0e2c8b.089e238", - "9e5abf68.ff6c1" - ] - ], - "x": 717.1944808959961, - "xml": "<switch test='`$action-level`'>\n", - "y": 316.41671562194824, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "c0e2c8b.089e238", - "name": "outcome: Other", - "outputs": 1, - "type": "success", - "wires": [ - [ - "98b12577.b4145" - ] - ], - "x": 614.6110458374023, - "xml": "<outcome value='Other'>", - "y": 461.1666831970215, - "z": "7aa4b695.11473" - }, - { - "comments": "", - "id": "9e5abf68.ff6c1", - "name": "outcome: vm", - "outputs": 1, - "type": "success", - "wires": [ - [ - "6c0f9755.4e6f38" - ] - ], - "x": 912.9443511962891, - "xml": "<outcome value='vm'>", - "y": 313.83336639404297, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "54a3be90.486a98", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "2930004b.59f6a", - "55f47d04.5f65bc" - ] - ], - "x": 1285.99755859375, - "xml": "<block atomic=\"true\">\n\n", - "y": 408.90234375, - "z": "7aa4b695.11473" - }, - { - "atomic": "true", - "comments": "", - "id": "6c0f9755.4e6f38", - "name": "block : atomic", - "outputs": 1, - "type": "block", - "wires": [ - [ - "b0e87141.6fe4f8" - ] - ], - "x": 1128.4166717529297, - "xml": "<block atomic=\"true\">\n\n", - "y": 314.74999809265137, - "z": "7aa4b695.11473" - } -] +[
+ {
+ "id": "b24646ee.b28ae8",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 164.75,
+ "y": 66.75,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "2b03bae1.35b0c6"
+ ]
+ ]
+ },
+ {
+ "id": "2b03bae1.35b0c6",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "4.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 322.09282302856445,
+ "y": 66.73572540283203,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "ff5378d6.e233e"
+ ]
+ ]
+ },
+ {
+ "id": "ff5378d6.e233e",
+ "type": "method",
+ "name": "method DGOrchestrator",
+ "xml": "<method rpc='DGOrchestrator' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 526.6404647827148,
+ "y": 56.23572540283203,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "642ab4f1.20f90c"
+ ]
+ ]
+ },
+ {
+ "id": "642ab4f1.20f90c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 132.90634155273438,
+ "y": 189.93809700012207,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "b0b1d9c5.c1f34",
+ "20251bec.f0f3ac",
+ "d8ffc32a.5a176",
+ "b2170187.510fb8"
+ ]
+ ]
+ },
+ {
+ "id": "b2170187.510fb8",
+ "type": "call",
+ "name": "call: setInputParams",
+ "xml": "<call module=\"APPC\" rpc=\"setInputParams\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 667.6642913818359,
+ "y": 106.23572635650635,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "10a70eaa.f90671",
+ "5a2a6552.aa959c",
+ "8cada029.8e7bf8"
+ ]
+ ]
+ },
+ {
+ "id": "d6b49825.e2c99",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2280.414306640625,
+ "y": 412.6523742675781,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "7e71c4fc.4eeaac"
+ ]
+ ]
+ },
+ {
+ "id": "68e7d29c.925c04",
+ "type": "execute",
+ "name": "execute get and executeFlowSequence",
+ "xml": "<execute plugin=\"org.onap.appc.flow.controller.node.FlowControlNode\" method=\"processFlow\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.flowControl\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2121.5411376953125,
+ "y": 467.9658203125,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "d6b49825.e2c99",
+ "c6bce202.87c7f8"
+ ]
+ ]
+ },
+ {
+ "id": "7e71c4fc.4eeaac",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2418.4619140625,
+ "y": 414.1761779785156,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "d011a4db.98e728"
+ ]
+ ]
+ },
+ {
+ "id": "c7c2bb2d.939168",
+ "type": "set",
+ "name": "set error-code 400 and message",
+ "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value=\"SUCCESS - request has been processed successfully\" />\n<parameter name='output-payload' value=\"`'state : ' + $output.payload.state` \" />\n",
+ "comments": "",
+ "x": 2401.93798828125,
+ "y": 652.7356567382812,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "c6bce202.87c7f8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2399.295166015625,
+ "y": 493.3190002441406,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "962e39f1.dcfdd"
+ ]
+ ]
+ },
+ {
+ "id": "962e39f1.dcfdd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 2431.176025390625,
+ "y": 543.9737548828125,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "c7c2bb2d.939168"
+ ]
+ ]
+ },
+ {
+ "id": "d011a4db.98e728",
+ "type": "set",
+ "name": "set error-code 401 and message",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.flowControl.status-message`\" />\n<parameter name='output-payload' value=\"\" />\n",
+ "comments": "",
+ "x": 2500.74755859375,
+ "y": 341.1166076660156,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "20251bec.f0f3ac",
+ "type": "execute",
+ "name": "execute saveTxLog",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"response\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 332.2475776672363,
+ "y": 907.7912883758545,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "e0751050.629e18"
+ ]
+ ]
+ },
+ {
+ "id": "e0751050.629e18",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 533.6919479370117,
+ "y": 908.707914352417,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "c79c66af.41dcf8"
+ ]
+ ]
+ },
+ {
+ "id": "c79c66af.41dcf8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 709.1643218994141,
+ "y": 910.2912473678589,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "b0b1d9c5.c1f34",
+ "type": "set",
+ "name": "set tmp.message",
+ "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n",
+ "comments": "",
+ "x": 351.0253677368164,
+ "y": 819.9857015609741,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "10a70eaa.f90671",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 883.164306640625,
+ "y": 65.40238761901855,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "9d8747ec.4b74e8"
+ ]
+ ]
+ },
+ {
+ "id": "5a2a6552.aa959c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 877.664306640625,
+ "y": 104.40238952636719,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "9d8747ec.4b74e8"
+ ]
+ ]
+ },
+ {
+ "id": "9d8747ec.4b74e8",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1050.414306640625,
+ "y": 85.90241241455078,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d8ffc32a.5a176",
+ "type": "switchNode",
+ "name": "switch error-code",
+ "xml": "<switch test='`$error-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 355.8309631347656,
+ "y": 761.6524333953857,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "104f332b.7fe32d",
+ "c31a7601.21114"
+ ]
+ ]
+ },
+ {
+ "id": "104f332b.7fe32d",
+ "type": "success",
+ "name": "outcome: 400",
+ "xml": "<outcome value=\"400\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 620.4975891113281,
+ "y": 713.9857139587402,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "1a67f81c.55efd"
+ ]
+ ]
+ },
+ {
+ "id": "c31a7601.21114",
+ "type": "success",
+ "name": "outcome: Other",
+ "xml": "<outcome value=\"Other\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 620.414249420166,
+ "y": 813.985746383667,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "26a9da95.37865e"
+ ]
+ ]
+ },
+ {
+ "id": "1a67f81c.55efd",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 831.7476348876953,
+ "y": 716.6524209976196,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "3bf3629c.aa6146"
+ ]
+ ]
+ },
+ {
+ "id": "26a9da95.37865e",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 813.7474899291992,
+ "y": 815.235746383667,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "63a4df2c.36b148"
+ ]
+ ]
+ },
+ {
+ "id": "3bf3629c.aa6146",
+ "type": "set",
+ "name": "set Status for dispatcher",
+ "xml": "<set>\n<parameter name='SvcLogic.status' value='success' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />",
+ "comments": "",
+ "x": 1081.4143371582031,
+ "y": 714.8190479278564,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "63a4df2c.36b148",
+ "type": "set",
+ "name": "set Status for dispatcher",
+ "xml": "<set>\n<parameter name='SvcLogic.status' value='failure' />\n<parameter name='output.status.code' value='`$error-code`' />\n<parameter name='output.status.message' value='`$error-message`' />\n",
+ "comments": "",
+ "x": 1050.9142837524414,
+ "y": 814.1523923873901,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "5a79a689.536538",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 877.914306640625,
+ "y": 205.56903076171875,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "f594ffbb.f912b8"
+ ]
+ ]
+ },
+ {
+ "id": "8cada029.8e7bf8",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 873.497615814209,
+ "y": 144.23571968078613,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "5a79a689.536538"
+ ]
+ ]
+ },
+ {
+ "id": "f594ffbb.f912b8",
+ "type": "execute",
+ "name": "execute getCapability",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getCapability\">\n<parameter name=\"caplevel\" value=\"`$action-level`\" />\n<parameter name=\"checkCapability\" value=\"`$request-action`\" />\n<parameter name=\"vServerId\" value=\"`$vserver-id`\"/>\n<parameter name=\"vnf-type\" value=\"`$vnf-type`\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 875.6644897460938,
+ "y": 310.65234375,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "5f2bdf29.228bb",
+ "4ec63560.2078bc"
+ ]
+ ]
+ },
+ {
+ "id": "55493d49.7567ac",
+ "type": "switchNode",
+ "name": "switch capability-result",
+ "xml": "<switch test=\"`$capabilities`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1179.454574584961,
+ "y": 451.3952317237854,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "c0aa0b56.52de8",
+ "c6d97329.a088d8",
+ "ee014032.84a888"
+ ]
+ ]
+ },
+ {
+ "id": "c0aa0b56.52de8",
+ "type": "success",
+ "name": "outcome: Not-Supported",
+ "xml": "<outcome value=\"Not-Supported\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1418.6644439697266,
+ "y": 577.9856586456299,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "455b8a0b.eedddc"
+ ]
+ ]
+ },
+ {
+ "id": "c6d97329.a088d8",
+ "type": "success",
+ "name": "outcome: Supported",
+ "xml": "<outcome value=\"Supported\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 1419.5810546875,
+ "y": 508.31903076171875,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "c92406bc.5f6e3"
+ ]
+ ]
+ },
+ {
+ "id": "5f2bdf29.228bb",
+ "type": "failure",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1150.7594909667969,
+ "y": 311.8428611755371,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "d5744539.8762c"
+ ]
+ ]
+ },
+ {
+ "id": "4ec63560.2078bc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1135.2119979858398,
+ "y": 368.65238761901855,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "75ad149f.944b04"
+ ]
+ ]
+ },
+ {
+ "id": "455b8a0b.eedddc",
+ "type": "set",
+ "name": "set error-code 450 and message",
+ "xml": "<set>\n<parameter name='error-code' value='450' />\n<parameter name='error-message' value=\"Request not supported\" />\n<parameter name='output-payload' value=\"\" />",
+ "comments": "",
+ "x": 1708.997543334961,
+ "y": 579.6523866653442,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "c92406bc.5f6e3",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1633.99755859375,
+ "y": 507.31903076171875,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "cd8ec825.44db4"
+ ]
+ ]
+ },
+ {
+ "id": "ee014032.84a888",
+ "type": "other",
+ "name": "Other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1356.3310661315918,
+ "y": 439.98571491241455,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "c92406bc.5f6e3"
+ ]
+ ]
+ },
+ {
+ "id": "85dace0d.a239",
+ "type": "set",
+ "name": "set error code 401",
+ "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Cannot Determine Capabilities\" />\n<parameter name='output-payload' value=\"\" />\n",
+ "comments": "",
+ "x": 1500.6641845703125,
+ "y": 300.2357177734375,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "75ad149f.944b04",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 980.0492706298828,
+ "y": 451.8094539642334,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "55493d49.7567ac"
+ ]
+ ]
+ },
+ {
+ "id": "d9736db6.f70958",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"` 'Capabilities results will be - '+$capabilities`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1465.072998046875,
+ "y": 348.452392578125,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d5744539.8762c",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1303.99755859375,
+ "y": 310.90234375,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "85dace0d.a239",
+ "d9736db6.f70958"
+ ]
+ ]
+ },
+ {
+ "id": "1a24fd28.172f5b",
+ "type": "set",
+ "name": "set aai-vnf-type, vnf-type",
+ "xml": "<set>\n<parameter name='aai-vnf-type' value='`$vnf-type`' />\n<parameter name='vnf-type' value='' />\n",
+ "comments": "",
+ "x": 2181.75,
+ "y": 305.75,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ },
+ {
+ "id": "cd8ec825.44db4",
+ "type": "switchNode",
+ "name": "switch action-level",
+ "xml": "<switch test='`$action-level`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1840.75,
+ "y": 505.75,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "eb1f9644.21f76",
+ "145954d1.e86f93"
+ ]
+ ]
+ },
+ {
+ "id": "eb1f9644.21f76",
+ "type": "success",
+ "name": "outcome: Other",
+ "xml": "<outcome value='Other'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 2043.1666259765625,
+ "y": 571.1666259765625,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "68e7d29c.925c04"
+ ]
+ ]
+ },
+ {
+ "id": "145954d1.e86f93",
+ "type": "success",
+ "name": "outcome: vm",
+ "xml": "<outcome value='vm'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1781.1666259765625,
+ "y": 364.83331298828125,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "4c84b99c.0edd5"
+ ]
+ ]
+ },
+ {
+ "id": "4c84b99c.0edd5",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 1983,
+ "y": 365.75,
+ "z": "d44ce577.125ec8",
+ "wires": [
+ [
+ "1a24fd28.172f5b",
+ "68e7d29c.925c04"
+ ]
+ ]
+ },
+ {
+ "id": "9fa68267.0afa28",
+ "type": "comment",
+ "name": "vnf-type is set to nul here to enable VM level commands to select correct RPC ",
+ "info": "",
+ "comments": "",
+ "x": 1970.75,
+ "y": 250.75,
+ "z": "d44ce577.125ec8",
+ "wires": []
+ }
+]
\ No newline at end of file diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadCliConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadCliConfig.json index be68a52af..bd1ff697e 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadCliConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadCliConfig.json @@ -1 +1,311 @@ -[{"id":"cc3f1f05.590e2","type":"dgstart","name":"DGSTART","outputs":1,"x":262,"y":117,"z":"8f971cf0.9ab5c","wires":[["9c5ed558.935128"]]},{"id":"9c5ed558.935128","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"3.1.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' version='4.0.0'>","outputs":1,"x":475,"y":114,"z":"8f971cf0.9ab5c","wires":[["3cae3899.2ea4d8"]]},{"id":"3cae3899.2ea4d8","type":"method","name":"method DownloadCLIConfig","xml":"<method rpc='DownloadCliConfig' mode='sync'>\n","comments":"","outputs":1,"x":703,"y":114,"z":"8f971cf0.9ab5c","wires":[["b932981.f2fe068"]]},{"id":"838fcb2d.61bce8","type":"execute","name":"execute : Download Configuration","xml":"<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'>\n<parameter name=\"Download_config_template\" value=\"`$download-config-template.TEMPLATE`\"/>\n<parameter name=\"Config_contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n","comments":"","outputs":1,"x":411,"y":456,"z":"8f971cf0.9ab5c","wires":[["d050e0d2.b2267","84bb3919.ad5688","4cbf4207.52ffdc"]]},{"id":"d050e0d2.b2267","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":697,"y":611,"z":"8f971cf0.9ab5c","wires":[["2181b8c9.4f5038"]]},{"id":"b932981.f2fe068","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":178,"y":270,"z":"8f971cf0.9ab5c","wires":[["1ec47089.0e6d1f"]]},{"id":"2181b8c9.4f5038","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<!-- Dont over write error code and message -->\n","comments":"","x":905,"y":610,"z":"8f971cf0.9ab5c","wires":[]},{"id":"84bb3919.ad5688","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":791,"y":406,"z":"8f971cf0.9ab5c","wires":[["d912ec9e.456d4"]]},{"id":"4cbf4207.52ffdc","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":776,"y":513,"z":"8f971cf0.9ab5c","wires":[["d29269ef.626db8"]]},{"id":"d29269ef.626db8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":957,"y":471,"z":"8f971cf0.9ab5c","wires":[["cae99c12.7fa8f"]]},{"id":"d912ec9e.456d4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":949,"y":402,"z":"8f971cf0.9ab5c","wires":[["8c7e5c1f.d6d09"]]},{"id":"8c7e5c1f.d6d09","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1108,"y":402,"z":"8f971cf0.9ab5c","wires":[]},{"id":"cae99c12.7fa8f","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download CLI Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1116,"y":471,"z":"8f971cf0.9ab5c","wires":[]},{"id":"af8106d6.2c54e8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to get download config template\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1225,"y":277,"z":"8f971cf0.9ab5c","wires":[]},{"id":"1ec47089.0e6d1f","type":"get-resource","name":"get-resource DOWNLOAD_CONFIG_TEMPLATE","xml":"<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n force='true'\n\tpfx='download-config-template'>\n","comments":"","outputs":1,"x":485,"y":267,"z":"8f971cf0.9ab5c","wires":[["fe1132ad.5731b","9280f34d.3465f","54bd663f.2cab28"]]},{"id":"9280f34d.3465f","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":831,"y":254,"z":"8f971cf0.9ab5c","wires":[["75516ff4.5cb1"]]},{"id":"fe1132ad.5731b","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":833,"y":323,"z":"8f971cf0.9ab5c","wires":[["75516ff4.5cb1"]]},{"id":"75516ff4.5cb1","type":"block","name":"block","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":1027,"y":278,"z":"8f971cf0.9ab5c","wires":[["af8106d6.2c54e8"]]},{"id":"54bd663f.2cab28","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":422,"y":350,"z":"8f971cf0.9ab5c","wires":[["46aaf503.56738c"]]},{"id":"46aaf503.56738c","type":"block","name":"block","xml":"<block atomic=\"true\">\n","atomic":"false","comments":"","outputs":1,"x":615,"y":349,"z":"8f971cf0.9ab5c","wires":[["838fcb2d.61bce8"]]}] +[
+ {
+ "id": "cc3f1f05.590e2",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 262,
+ "y": 117,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "9c5ed558.935128"
+ ]
+ ]
+ },
+ {
+ "id": "9c5ed558.935128",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "3.1.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 475,
+ "y": 114,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "3cae3899.2ea4d8"
+ ]
+ ]
+ },
+ {
+ "id": "3cae3899.2ea4d8",
+ "type": "method",
+ "name": "method DownloadCLIConfig",
+ "xml": "<method rpc='DownloadCliConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 703,
+ "y": 114,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "b932981.f2fe068"
+ ]
+ ]
+ },
+ {
+ "id": "838fcb2d.61bce8",
+ "type": "execute",
+ "name": "execute : Download Configuration",
+ "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='DownloadCliConfig'>\n<parameter name=\"Download_config_template\" value=\"`$download-config-template.TEMPLATE`\"/>\n<parameter name=\"Config_contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 411,
+ "y": 456,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "d050e0d2.b2267",
+ "84bb3919.ad5688",
+ "4cbf4207.52ffdc"
+ ]
+ ]
+ },
+ {
+ "id": "d050e0d2.b2267",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 697,
+ "y": 611,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "2181b8c9.4f5038"
+ ]
+ ]
+ },
+ {
+ "id": "b932981.f2fe068",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 178,
+ "y": 270,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "1ec47089.0e6d1f"
+ ]
+ ]
+ },
+ {
+ "id": "2181b8c9.4f5038",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",
+ "comments": "",
+ "x": 905,
+ "y": 610,
+ "z": "8f971cf0.9ab5c",
+ "wires": []
+ },
+ {
+ "id": "84bb3919.ad5688",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 791,
+ "y": 406,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "d912ec9e.456d4"
+ ]
+ ]
+ },
+ {
+ "id": "4cbf4207.52ffdc",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 776,
+ "y": 513,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "d29269ef.626db8"
+ ]
+ ]
+ },
+ {
+ "id": "d29269ef.626db8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 957,
+ "y": 471,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "cae99c12.7fa8f"
+ ]
+ ]
+ },
+ {
+ "id": "d912ec9e.456d4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 949,
+ "y": 402,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "8c7e5c1f.d6d09"
+ ]
+ ]
+ },
+ {
+ "id": "8c7e5c1f.d6d09",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1108,
+ "y": 402,
+ "z": "8f971cf0.9ab5c",
+ "wires": []
+ },
+ {
+ "id": "cae99c12.7fa8f",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download CLI Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1116,
+ "y": 471,
+ "z": "8f971cf0.9ab5c",
+ "wires": []
+ },
+ {
+ "id": "af8106d6.2c54e8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to get download config template\" />\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1225,
+ "y": 277,
+ "z": "8f971cf0.9ab5c",
+ "wires": []
+ },
+ {
+ "id": "1ec47089.0e6d1f",
+ "type": "get-resource",
+ "name": "get-resource DOWNLOAD_CONFIG_TEMPLATE",
+ "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE FROM DOWNLOAD_CONFIG_TEMPLATE WHERE vnf_type = $vnf-type ;\"\n force='true'\n\tpfx='download-config-template'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 485,
+ "y": 267,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "fe1132ad.5731b",
+ "9280f34d.3465f",
+ "54bd663f.2cab28"
+ ]
+ ]
+ },
+ {
+ "id": "9280f34d.3465f",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 831,
+ "y": 254,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "75516ff4.5cb1"
+ ]
+ ]
+ },
+ {
+ "id": "fe1132ad.5731b",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 833,
+ "y": 323,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "75516ff4.5cb1"
+ ]
+ ]
+ },
+ {
+ "id": "75516ff4.5cb1",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1027,
+ "y": 278,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "af8106d6.2c54e8"
+ ]
+ ]
+ },
+ {
+ "id": "54bd663f.2cab28",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 422,
+ "y": 350,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "46aaf503.56738c"
+ ]
+ ]
+ },
+ {
+ "id": "46aaf503.56738c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 615,
+ "y": 349,
+ "z": "8f971cf0.9ab5c",
+ "wires": [
+ [
+ "838fcb2d.61bce8"
+ ]
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadIsbcConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadIsbcConfig.json index 54499c934..5cb503011 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadIsbcConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadIsbcConfig.json @@ -1 +1,398 @@ -[{"id":"eb3345bc.1c6008","type":"dgstart","name":"DGSTART","outputs":1,"x":160,"y":114,"z":"e64f9575.c955b8","wires":[["48829488.85508c"]]},{"id":"48829488.85508c","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.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' version='4.0.0'>","outputs":1,"x":342.1667022705078,"y":110.66668701171875,"z":"e64f9575.c955b8","wires":[["e0a3d8ff.542978"]]},{"id":"e0a3d8ff.542978","type":"method","name":"method DownloadIsbcConfig","xml":"<method rpc='DownloadIsbcConfig' mode='sync'>\n","comments":"","outputs":1,"x":612.5000305175781,"y":107.33334350585938,"z":"e64f9575.c955b8","wires":[["114a3b97.bcbcc4"]]},{"id":"114a3b97.bcbcc4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":127.25,"y":174.88888549804688,"z":"e64f9575.c955b8","wires":[["83df5118.b8ab3","7075ec58.bf47f4","b6692cc9.1d46f"]]},{"id":"83df5118.b8ab3","type":"configure","name":"configure: SftpAdaptor: Put config","xml":"<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"put\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"data\" value=\"`$deviceconfig-file-content`\"/>\t\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-deviceconfig.TARGET-FILE-PATH`\"/>\t\n\n\n","comments":"","outputs":1,"x":451.06817626953125,"y":388.2281188964844,"z":"e64f9575.c955b8","wires":[["b2f45988.44cff8","b0981c87.9858"]]},{"id":"b2f45988.44cff8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":731.0681762695312,"y":365.2281188964844,"z":"e64f9575.c955b8","wires":[["7119a88b.f78748"]]},{"id":"7119a88b.f78748","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":915.0681762695312,"y":370.2281188964844,"z":"e64f9575.c955b8","wires":[["dd3ffa1.5c71708","cb21b493.06d748"]]},{"id":"7075ec58.bf47f4","type":"call","name":"call: CheckConfigStatus","xml":"<call module=\"APPC\" rpc=\"CheckConfigStatus\" mode=\"sync\">","comments":"","outputs":1,"x":426.06817626953125,"y":619.2281188964844,"z":"e64f9575.c955b8","wires":[["d5aabd81.471ee"]]},{"id":"dd3ffa1.5c71708","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n","comments":"","x":1131.25,"y":426.8888854980469,"z":"e64f9575.c955b8","wires":[]},{"id":"b0981c87.9858","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":729,"y":517.0000305175781,"z":"e64f9575.c955b8","wires":[["b7e9dc8a.54fff"]]},{"id":"b7e9dc8a.54fff","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":902,"y":521.0000305175781,"z":"e64f9575.c955b8","wires":[["169463d2.10edfc"]]},{"id":"169463d2.10edfc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n<parameter name=\"error-message\" value=\"DG Failure.Unable to Call Sftp Adaptor for Config\"/>","comments":"","x":1094,"y":521.0000305175781,"z":"e64f9575.c955b8","wires":[]},{"id":"cb21b493.06d748","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"SFTPERRORCODE\" value=\"`$error-code`\"/>\n<parameter name=\"SFTPERRORMESSAGE\" value=\"`$error-message`\"/>\n\n\n\n\n\n","comments":"","outputs":1,"x":1128,"y":327.0000305175781,"z":"e64f9575.c955b8","wires":[[]]},{"id":"67dd3158.9d315","type":"failure","name":"failure","xml":"<outcome value='failure'>","comments":"","outputs":1,"x":635,"y":625.3333435058594,"z":"e64f9575.c955b8","wires":[["153f64f9.4e677b"]]},{"id":"153f64f9.4e677b","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":802,"y":625.3333435058594,"z":"e64f9575.c955b8","wires":[["2ba04af9.5b58c6"]]},{"id":"2ba04af9.5b58c6","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"CONTINUE THE FLOW\"/>\n\n","comments":"","outputs":1,"x":996,"y":620.3333435058594,"z":"e64f9575.c955b8","wires":[[]]},{"id":"d5aabd81.471ee","type":"failure","name":"not-found","xml":"<outcome value='not-found'>","comments":"","outputs":1,"x":636,"y":680.3333435058594,"z":"e64f9575.c955b8","wires":[["b6627066.5ac24"]]},{"id":"b6627066.5ac24","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":811,"y":683.3333435058594,"z":"e64f9575.c955b8","wires":[["8f7d48e.816bcb8"]]},{"id":"8f7d48e.816bcb8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n<parameter name=\"error-message\" value=\"DG Workflow RetryActivate not found\"/>","comments":"","x":1009,"y":681.3333435058594,"z":"e64f9575.c955b8","wires":[]},{"id":"b6692cc9.1d46f","type":"execute","name":"execute getConfigFileReference","xml":"<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFileReference\">\n<parameter name=\"responsePrefix\" value=\"tmp.configfilereference\" />\n","comments":"","outputs":1,"x":423,"y":253,"z":"e64f9575.c955b8","wires":[["f431fc4b.07dbd","6aa707f2.3962d8"]]},{"id":"f431fc4b.07dbd","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":664,"y":256,"z":"e64f9575.c955b8","wires":[["490891c5.5ce3c"]]},{"id":"490891c5.5ce3c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":821,"y":259,"z":"e64f9575.c955b8","wires":[["b38dc0b2.00fff"]]},{"id":"b38dc0b2.00fff","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.configfilereference.error-message`\"/>","comments":"","x":1007,"y":264,"z":"e64f9575.c955b8","wires":[]},{"id":"6aa707f2.3962d8","type":"failure","name":"not-found","xml":"<outcome value='not-found'>","comments":"","outputs":1,"x":666,"y":308,"z":"e64f9575.c955b8","wires":[["e505c188.60085"]]},{"id":"e505c188.60085","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":818,"y":311,"z":"e64f9575.c955b8","wires":[["e3e69cb8.26078"]]},{"id":"e3e69cb8.26078","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n<parameter name=\"error-message\" value=\"Unable to get data from config_file_reference\"/>","comments":"","x":965,"y":312,"z":"e64f9575.c955b8","wires":[]}] +[
+ {
+ "id": "eb3345bc.1c6008",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 160,
+ "y": 114,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "48829488.85508c"
+ ]
+ ]
+ },
+ {
+ "id": "48829488.85508c",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "4.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 342.1667022705078,
+ "y": 110.66668701171875,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "e0a3d8ff.542978"
+ ]
+ ]
+ },
+ {
+ "id": "e0a3d8ff.542978",
+ "type": "method",
+ "name": "method DownloadIsbcConfig",
+ "xml": "<method rpc='DownloadIsbcConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 612.5000305175781,
+ "y": 107.33334350585938,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "114a3b97.bcbcc4"
+ ]
+ ]
+ },
+ {
+ "id": "114a3b97.bcbcc4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 127.25,
+ "y": 174.88888549804688,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "83df5118.b8ab3",
+ "7075ec58.bf47f4",
+ "b6692cc9.1d46f"
+ ]
+ ]
+ },
+ {
+ "id": "83df5118.b8ab3",
+ "type": "configure",
+ "name": "configure: SftpAdaptor: Put config",
+ "xml": "<configure adaptor=\"org.onap.appc.ccadaptor.ConfigComponentAdaptor\" key=\"put\">\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-authentication.USER-NAME`\"/>\n<parameter name=\"password\" value=\"`$device-authentication.PASSWORD`\"/>\n<parameter name=\"data\" value=\"`$deviceconfig-file-content`\"/>\t\n<parameter name=\"fullPathFileName\" value=\"`$configfilereference-deviceconfig.TARGET-FILE-PATH`\"/>\t\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 451.06817626953125,
+ "y": 388.2281188964844,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "b2f45988.44cff8",
+ "b0981c87.9858"
+ ]
+ ]
+ },
+ {
+ "id": "b2f45988.44cff8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 731.0681762695312,
+ "y": 365.2281188964844,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "7119a88b.f78748"
+ ]
+ ]
+ },
+ {
+ "id": "7119a88b.f78748",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 915.0681762695312,
+ "y": 370.2281188964844,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "dd3ffa1.5c71708",
+ "cb21b493.06d748"
+ ]
+ ]
+ },
+ {
+ "id": "7075ec58.bf47f4",
+ "type": "call",
+ "name": "call: CheckConfigStatus",
+ "xml": "<call module=\"APPC\" rpc=\"CheckConfigStatus\" mode=\"sync\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.06817626953125,
+ "y": 619.2281188964844,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "d5aabd81.471ee"
+ ]
+ ]
+ },
+ {
+ "id": "dd3ffa1.5c71708",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n",
+ "comments": "",
+ "x": 1131.25,
+ "y": 426.8888854980469,
+ "z": "e64f9575.c955b8",
+ "wires": []
+ },
+ {
+ "id": "b0981c87.9858",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 729,
+ "y": 517.0000305175781,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "b7e9dc8a.54fff"
+ ]
+ ]
+ },
+ {
+ "id": "b7e9dc8a.54fff",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 902,
+ "y": 521.0000305175781,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "169463d2.10edfc"
+ ]
+ ]
+ },
+ {
+ "id": "169463d2.10edfc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n<parameter name=\"error-message\" value=\"DG Failure.Unable to Call Sftp Adaptor for Config\"/>",
+ "comments": "",
+ "x": 1094,
+ "y": 521.0000305175781,
+ "z": "e64f9575.c955b8",
+ "wires": []
+ },
+ {
+ "id": "cb21b493.06d748",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"host\" value=\"`$vnf-host-ip-address`\"/>\n<parameter name=\"SFTPERRORCODE\" value=\"`$error-code`\"/>\n<parameter name=\"SFTPERRORMESSAGE\" value=\"`$error-message`\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1128,
+ "y": 327.0000305175781,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "67dd3158.9d315",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 635,
+ "y": 625.3333435058594,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "153f64f9.4e677b"
+ ]
+ ]
+ },
+ {
+ "id": "153f64f9.4e677b",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 802,
+ "y": 625.3333435058594,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "2ba04af9.5b58c6"
+ ]
+ ]
+ },
+ {
+ "id": "2ba04af9.5b58c6",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"CONTINUE THE FLOW\"/>\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 996,
+ "y": 620.3333435058594,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d5aabd81.471ee",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 636,
+ "y": 680.3333435058594,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "b6627066.5ac24"
+ ]
+ ]
+ },
+ {
+ "id": "b6627066.5ac24",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 811,
+ "y": 683.3333435058594,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "8f7d48e.816bcb8"
+ ]
+ ]
+ },
+ {
+ "id": "8f7d48e.816bcb8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n<parameter name=\"error-message\" value=\"DG Workflow RetryActivate not found\"/>",
+ "comments": "",
+ "x": 1009,
+ "y": 681.3333435058594,
+ "z": "e64f9575.c955b8",
+ "wires": []
+ },
+ {
+ "id": "b6692cc9.1d46f",
+ "type": "execute",
+ "name": "execute getConfigFileReference",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"getConfigFileReference\">\n<parameter name=\"responsePrefix\" value=\"tmp.configfilereference\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 423,
+ "y": 253,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "f431fc4b.07dbd",
+ "6aa707f2.3962d8"
+ ]
+ ]
+ },
+ {
+ "id": "f431fc4b.07dbd",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 664,
+ "y": 256,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "490891c5.5ce3c"
+ ]
+ ]
+ },
+ {
+ "id": "490891c5.5ce3c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 821,
+ "y": 259,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "b38dc0b2.00fff"
+ ]
+ ]
+ },
+ {
+ "id": "b38dc0b2.00fff",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.configfilereference.error-message`\"/>",
+ "comments": "",
+ "x": 1007,
+ "y": 264,
+ "z": "e64f9575.c955b8",
+ "wires": []
+ },
+ {
+ "id": "6aa707f2.3962d8",
+ "type": "failure",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 666,
+ "y": 308,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "e505c188.60085"
+ ]
+ ]
+ },
+ {
+ "id": "e505c188.60085",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 818,
+ "y": 311,
+ "z": "e64f9575.c955b8",
+ "wires": [
+ [
+ "e3e69cb8.26078"
+ ]
+ ]
+ },
+ {
+ "id": "e3e69cb8.26078",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name=\"error-code\" value=\"401\"/>\n<parameter name=\"error-message\" value=\"Unable to get data from config_file_reference\"/>",
+ "comments": "",
+ "x": 965,
+ "y": 312,
+ "z": "e64f9575.c955b8",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadNetconfConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadNetconfConfig.json index 6a1d5da43..f691af86d 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadNetconfConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadNetconfConfig.json @@ -1 +1,200 @@ -[{"id":"49eb9e47.22a92","type":"dgstart","name":"DGSTART","outputs":1,"x":267,"y":173,"z":"48bb9f92.24bfc","wires":[["20d129c2.d315e6"]]},{"id":"20d129c2.d315e6","type":"service-logic","name":"APPC 3.0.0","module":"APPC","version":"3.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' version='3.0.0'>","outputs":1,"x":443,"y":171,"z":"48bb9f92.24bfc","wires":[["37dd6ac2.81b1d6"]]},{"id":"37dd6ac2.81b1d6","type":"method","name":"method DownloadNetconfConfig","xml":"<method rpc='DownloadNetconfConfig' mode='sync'>\n","comments":"","outputs":1,"x":673,"y":172,"z":"48bb9f92.24bfc","wires":[["e7c1ede8.8b2cc"]]},{"id":"96807105.79369","type":"execute","name":"execute : Download Configuration","xml":"<execute plugin=\"com.att.appc.device.interfaces.node.NetconfDeviceNode\" method=\"editConfig\">\n<parameter name=\"editConfigData\" value=\"`$device-config`\"/>\n<parameter name=\"ipAddress\" value=\"`$host-ip-address`\" />\n<parameter name=\"userName\" value=\"`$device-login`\" />\n<parameter name=\"password\" value=\"`$device-password`\" />\n<parameter name=\"port\" value=\"`$port-number`\" />\n<parameter name=\"configTarget\" value=\"candidate\" />\n<parameter name=\"editDefaultOperation\" value=\"replace\" />\n<parameter name=\"editCommit\" value=\"true\" />\n<parameter name=\"editLock\" value=\"false\" />\n\n\n","comments":"","outputs":1,"x":533,"y":298,"z":"48bb9f92.24bfc","wires":[["65b26058.c0523","a89aea36.9bbbd8","aa00eed3.553fd"]]},{"id":"65b26058.c0523","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":815,"y":363,"z":"48bb9f92.24bfc","wires":[["6e36e74d.f4da68"]]},{"id":"a89aea36.9bbbd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":916,"y":277,"z":"48bb9f92.24bfc","wires":[["45742a83.7fb8c4"]]},{"id":"aa00eed3.553fd","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":926,"y":328,"z":"48bb9f92.24bfc","wires":[["3ebe4e89.9f4e52"]]},{"id":"45742a83.7fb8c4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1079,"y":299,"z":"48bb9f92.24bfc","wires":[["e3b5ad70.743d5"]]},{"id":"e3b5ad70.743d5","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1238,"y":299,"z":"48bb9f92.24bfc","wires":[]},{"id":"e7c1ede8.8b2cc","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":283,"y":297,"z":"48bb9f92.24bfc","wires":[["96807105.79369"]]},{"id":"6e36e74d.f4da68","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<!-- Dont over write error code and message -->\n","comments":"","x":1041,"y":466,"z":"48bb9f92.24bfc","wires":[]},{"id":"3ebe4e89.9f4e52","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1087,"y":368,"z":"48bb9f92.24bfc","wires":[["99165162.5e445"]]},{"id":"99165162.5e445","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download XML Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1246,"y":368,"z":"48bb9f92.24bfc","wires":[]}] +[
+ {
+ "id": "49eb9e47.22a92",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 267,
+ "y": 173,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "20d129c2.d315e6"
+ ]
+ ]
+ },
+ {
+ "id": "20d129c2.d315e6",
+ "type": "service-logic",
+ "name": "APPC 3.0.0",
+ "module": "APPC",
+ "version": "3.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' version='3.0.0'>",
+ "outputs": 1,
+ "x": 443,
+ "y": 171,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "37dd6ac2.81b1d6"
+ ]
+ ]
+ },
+ {
+ "id": "37dd6ac2.81b1d6",
+ "type": "method",
+ "name": "method DownloadNetconfConfig",
+ "xml": "<method rpc='DownloadNetconfConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 673,
+ "y": 172,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "e7c1ede8.8b2cc"
+ ]
+ ]
+ },
+ {
+ "id": "96807105.79369",
+ "type": "execute",
+ "name": "execute : Download Configuration",
+ "xml": "<execute plugin=\"com.att.appc.device.interfaces.node.NetconfDeviceNode\" method=\"editConfig\">\n<parameter name=\"editConfigData\" value=\"`$device-config`\"/>\n<parameter name=\"ipAddress\" value=\"`$host-ip-address`\" />\n<parameter name=\"userName\" value=\"`$device-login`\" />\n<parameter name=\"password\" value=\"`$device-password`\" />\n<parameter name=\"port\" value=\"`$port-number`\" />\n<parameter name=\"configTarget\" value=\"candidate\" />\n<parameter name=\"editDefaultOperation\" value=\"replace\" />\n<parameter name=\"editCommit\" value=\"true\" />\n<parameter name=\"editLock\" value=\"false\" />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 533,
+ "y": 298,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "65b26058.c0523",
+ "a89aea36.9bbbd8",
+ "aa00eed3.553fd"
+ ]
+ ]
+ },
+ {
+ "id": "65b26058.c0523",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 815,
+ "y": 363,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "6e36e74d.f4da68"
+ ]
+ ]
+ },
+ {
+ "id": "a89aea36.9bbbd8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 916,
+ "y": 277,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "45742a83.7fb8c4"
+ ]
+ ]
+ },
+ {
+ "id": "aa00eed3.553fd",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 926,
+ "y": 328,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "3ebe4e89.9f4e52"
+ ]
+ ]
+ },
+ {
+ "id": "45742a83.7fb8c4",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1079,
+ "y": 299,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "e3b5ad70.743d5"
+ ]
+ ]
+ },
+ {
+ "id": "e3b5ad70.743d5",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1238,
+ "y": 299,
+ "z": "48bb9f92.24bfc",
+ "wires": []
+ },
+ {
+ "id": "e7c1ede8.8b2cc",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 283,
+ "y": 297,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "96807105.79369"
+ ]
+ ]
+ },
+ {
+ "id": "6e36e74d.f4da68",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",
+ "comments": "",
+ "x": 1041,
+ "y": 466,
+ "z": "48bb9f92.24bfc",
+ "wires": []
+ },
+ {
+ "id": "3ebe4e89.9f4e52",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1087,
+ "y": 368,
+ "z": "48bb9f92.24bfc",
+ "wires": [
+ [
+ "99165162.5e445"
+ ]
+ ]
+ },
+ {
+ "id": "99165162.5e445",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download XML Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1246,
+ "y": 368,
+ "z": "48bb9f92.24bfc",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadRestconfConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadRestconfConfig.json index 74e781191..ee5977320 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadRestconfConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadRestconfConfig.json @@ -1 +1,298 @@ -[{"id":"3126cb82.bde234","type":"dgstart","name":"DGSTART","outputs":1,"x":213,"y":173,"z":"56a1115e.b25a6","wires":[["69732ca.15072d4"]]},{"id":"69732ca.15072d4","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"3.1.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' version='4.0.0'>","outputs":1,"x":390,"y":172,"z":"56a1115e.b25a6","wires":[["c3bb9820.c5f438"]]},{"id":"c3bb9820.c5f438","type":"method","name":"method DownloadRestconfConfig","xml":"<method rpc='DownloadRestconfConfig' mode='sync'>\n","comments":"","outputs":1,"x":617,"y":174,"z":"56a1115e.b25a6","wires":[["63b0d96d.c7ed58"]]},{"id":"b7e24e35.0af5c","type":"execute","name":"execute : Download Configuration","xml":"<execute plugin='com.att.sdnctl.restconf.RestConfCallNode' method='downloadDeviceConfiguration' >\n<parameter name=\"hostIpAddress\" value=\"`$host-ip-address`\"/>\n<parameter name=\"configData\" value=\"`$device-config`\"/>\n<parameter name=\"protocol\" value=\"`$protocol`\"/>\n<parameter name=\"unescapeXML\" value=\"N\"/>\n<parameter name=\"validateXML\" value=\"Y\"/>\n\n\n\n\n","comments":"","outputs":1,"x":523,"y":499,"z":"56a1115e.b25a6","wires":[["999fa5d2.747998","f56e2430.ba53a8","4aff51e4.d3676"]]},{"id":"999fa5d2.747998","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":872,"y":522,"z":"56a1115e.b25a6","wires":[["20e1274a.24dd08"]]},{"id":"f56e2430.ba53a8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":874,"y":423,"z":"56a1115e.b25a6","wires":[["c28a56e6.0033e8"]]},{"id":"4aff51e4.d3676","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":869,"y":469,"z":"56a1115e.b25a6","wires":[["c28a56e6.0033e8"]]},{"id":"c28a56e6.0033e8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1041,"y":450,"z":"56a1115e.b25a6","wires":[["96239c4e.3a9b3"]]},{"id":"96239c4e.3a9b3","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n <parameter name=\"ack-final\" value=\"Y\"/>","comments":"","x":1247,"y":451,"z":"56a1115e.b25a6","wires":[]},{"id":"63b0d96d.c7ed58","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":249,"y":323,"z":"56a1115e.b25a6","wires":[["3fd1791d.d55476"]]},{"id":"3fd1791d.d55476","type":"execute","name":"execute : Mount Device","xml":"<execute plugin='com.att.sdnctl.restconf.RestConfCallNode' method='mountDevice' >\n<parameter name=\"templateFileName\" value=\"device_mount.xml\" />\n<parameter name=\"hostIpAddress\" value=\"`$host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-login`\"/>\n<parameter name=\"password\" value=\"`$device-password`\"/>\n<parameter name=\"portNumber\" value=\"`$port-number`\"/>\n<parameter name=\"waitSec\" value=\"60\"/>\n<parameter name=\"noOfRetriggers\" value=\"10\"/>\n\n\n","comments":"","outputs":1,"x":459,"y":322,"z":"56a1115e.b25a6","wires":[["e7d6cff5.bc024","3965425a.10e70e","72d1c486.d6aa8c"]]},{"id":"e7d6cff5.bc024","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":763.0681762695312,"y":263.89471435546875,"z":"56a1115e.b25a6","wires":[["55634b28.643004"]]},{"id":"72d1c486.d6aa8c","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":758,"y":313.99993896484375,"z":"56a1115e.b25a6","wires":[["55634b28.643004"]]},{"id":"3965425a.10e70e","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":760.0000610351562,"y":358.99993896484375,"z":"56a1115e.b25a6","wires":[["59b6573c.b65208"]]},{"id":"55634b28.643004","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":900.0681762695312,"y":314.89471435546875,"z":"56a1115e.b25a6","wires":[["d0fcc7fb.1491c8","94fd463b.b5d6c8"]]},{"id":"d0fcc7fb.1491c8","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<!-- error should be set by Adaptor -->","comments":"","x":1169.25,"y":310.55548095703125,"z":"56a1115e.b25a6","wires":[]},{"id":"94fd463b.b5d6c8","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"host\" value=\"`$service-configuration-operation-input.vnf-config-information.vnf-host-ip-address`\"/>\n<parameter name=\"SFTPERRORCODE\" value=\"`$error-code`\"/>\n<parameter name=\"SFTPERRORMESSAGE\" value=\"`$error-message`\"/>\n\n\n\n\n\n","comments":"","outputs":1,"x":1168,"y":252.66656494140625,"z":"56a1115e.b25a6","wires":[[]]},{"id":"59b6573c.b65208","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":241,"y":501,"z":"56a1115e.b25a6","wires":[["b7e24e35.0af5c"]]},{"id":"20e1274a.24dd08","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<!-- Dont over write error code and message -->\n","comments":"","x":1114,"y":548,"z":"56a1115e.b25a6","wires":[]}] +[
+ {
+ "id": "3126cb82.bde234",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 213,
+ "y": 173,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "69732ca.15072d4"
+ ]
+ ]
+ },
+ {
+ "id": "69732ca.15072d4",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "3.1.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 390,
+ "y": 172,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "c3bb9820.c5f438"
+ ]
+ ]
+ },
+ {
+ "id": "c3bb9820.c5f438",
+ "type": "method",
+ "name": "method DownloadRestconfConfig",
+ "xml": "<method rpc='DownloadRestconfConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 617,
+ "y": 174,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "63b0d96d.c7ed58"
+ ]
+ ]
+ },
+ {
+ "id": "b7e24e35.0af5c",
+ "type": "execute",
+ "name": "execute : Download Configuration",
+ "xml": "<execute plugin='com.att.sdnctl.restconf.RestConfCallNode' method='downloadDeviceConfiguration' >\n<parameter name=\"hostIpAddress\" value=\"`$host-ip-address`\"/>\n<parameter name=\"configData\" value=\"`$device-config`\"/>\n<parameter name=\"protocol\" value=\"`$protocol`\"/>\n<parameter name=\"unescapeXML\" value=\"N\"/>\n<parameter name=\"validateXML\" value=\"Y\"/>\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 523,
+ "y": 499,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "999fa5d2.747998",
+ "f56e2430.ba53a8",
+ "4aff51e4.d3676"
+ ]
+ ]
+ },
+ {
+ "id": "999fa5d2.747998",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 872,
+ "y": 522,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "20e1274a.24dd08"
+ ]
+ ]
+ },
+ {
+ "id": "f56e2430.ba53a8",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 874,
+ "y": 423,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "c28a56e6.0033e8"
+ ]
+ ]
+ },
+ {
+ "id": "4aff51e4.d3676",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 869,
+ "y": 469,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "c28a56e6.0033e8"
+ ]
+ ]
+ },
+ {
+ "id": "c28a56e6.0033e8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1041,
+ "y": 450,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "96239c4e.3a9b3"
+ ]
+ ]
+ },
+ {
+ "id": "96239c4e.3a9b3",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n <parameter name=\"ack-final\" value=\"Y\"/>",
+ "comments": "",
+ "x": 1247,
+ "y": 451,
+ "z": "56a1115e.b25a6",
+ "wires": []
+ },
+ {
+ "id": "63b0d96d.c7ed58",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 249,
+ "y": 323,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "3fd1791d.d55476"
+ ]
+ ]
+ },
+ {
+ "id": "3fd1791d.d55476",
+ "type": "execute",
+ "name": "execute : Mount Device",
+ "xml": "<execute plugin='com.att.sdnctl.restconf.RestConfCallNode' method='mountDevice' >\n<parameter name=\"templateFileName\" value=\"device_mount.xml\" />\n<parameter name=\"hostIpAddress\" value=\"`$host-ip-address`\"/>\n<parameter name=\"loginId\" value=\"`$device-login`\"/>\n<parameter name=\"password\" value=\"`$device-password`\"/>\n<parameter name=\"portNumber\" value=\"`$port-number`\"/>\n<parameter name=\"waitSec\" value=\"60\"/>\n<parameter name=\"noOfRetriggers\" value=\"10\"/>\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 459,
+ "y": 322,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "e7d6cff5.bc024",
+ "3965425a.10e70e",
+ "72d1c486.d6aa8c"
+ ]
+ ]
+ },
+ {
+ "id": "e7d6cff5.bc024",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 763.0681762695312,
+ "y": 263.89471435546875,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "55634b28.643004"
+ ]
+ ]
+ },
+ {
+ "id": "72d1c486.d6aa8c",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 758,
+ "y": 313.99993896484375,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "55634b28.643004"
+ ]
+ ]
+ },
+ {
+ "id": "3965425a.10e70e",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 760.0000610351562,
+ "y": 358.99993896484375,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "59b6573c.b65208"
+ ]
+ ]
+ },
+ {
+ "id": "55634b28.643004",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 900.0681762695312,
+ "y": 314.89471435546875,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "d0fcc7fb.1491c8",
+ "94fd463b.b5d6c8"
+ ]
+ ]
+ },
+ {
+ "id": "d0fcc7fb.1491c8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<!-- error should be set by Adaptor -->",
+ "comments": "",
+ "x": 1169.25,
+ "y": 310.55548095703125,
+ "z": "56a1115e.b25a6",
+ "wires": []
+ },
+ {
+ "id": "94fd463b.b5d6c8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"host\" value=\"`$service-configuration-operation-input.vnf-config-information.vnf-host-ip-address`\"/>\n<parameter name=\"SFTPERRORCODE\" value=\"`$error-code`\"/>\n<parameter name=\"SFTPERRORMESSAGE\" value=\"`$error-message`\"/>\n\n\n\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1168,
+ "y": 252.66656494140625,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "59b6573c.b65208",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 241,
+ "y": 501,
+ "z": "56a1115e.b25a6",
+ "wires": [
+ [
+ "b7e24e35.0af5c"
+ ]
+ ]
+ },
+ {
+ "id": "20e1274a.24dd08",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",
+ "comments": "",
+ "x": 1114,
+ "y": 548,
+ "z": "56a1115e.b25a6",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadSBGConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadSBGConfig.json index 3e628cdb7..9ced83a4b 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadSBGConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadSBGConfig.json @@ -1 +1,322 @@ -[{"id":"feea8c0f.99cea","type":"dgstart","name":"DGSTART","outputs":1,"x":174,"y":159,"z":"7a568ea5.52b07","wires":[["2fe1975f.6b6288"]]},{"id":"2fe1975f.6b6288","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"3.1.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' version='4.0.0'>","outputs":1,"x":351,"y":158,"z":"7a568ea5.52b07","wires":[["b943522e.8d306"]]},{"id":"b943522e.8d306","type":"method","name":"method DownloadSBGConfig","xml":"<method rpc='DownloadSBGConfig' mode='sync'>\n","comments":"","outputs":1,"x":580,"y":158,"z":"7a568ea5.52b07","wires":[["4ddd2ec1.7fc8d"]]},{"id":"addce3cc.d1b1a","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":701,"y":594,"z":"7a568ea5.52b07","wires":[["6bee2910.0e32c8"]]},{"id":"724dd10a.2dcb2","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":823,"y":263,"z":"7a568ea5.52b07","wires":[["fe0ad156.02b64"]]},{"id":"dab463be.ebfdb","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":833,"y":314,"z":"7a568ea5.52b07","wires":[["e6658a4.7b23878"]]},{"id":"fe0ad156.02b64","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":986,"y":285,"z":"7a568ea5.52b07","wires":[["f1bee661.c07688"]]},{"id":"f1bee661.c07688","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1145,"y":285,"z":"7a568ea5.52b07","wires":[]},{"id":"6bee2910.0e32c8","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<!-- Dont over write error code and message -->\n","comments":"","x":971,"y":605,"z":"7a568ea5.52b07","wires":[]},{"id":"e6658a4.7b23878","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":994,"y":354,"z":"7a568ea5.52b07","wires":[["bb929331.e8df4"]]},{"id":"bb929331.e8df4","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Failed in SBG Config Data Generation from XSL Template.\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1153,"y":354,"z":"7a568ea5.52b07","wires":[]},{"id":"4ddd2ec1.7fc8d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n","atomic":"true","comments":"","outputs":1,"x":262,"y":324,"z":"7a568ea5.52b07","wires":[["c9835662.80d108"]]},{"id":"c9835662.80d108","type":"configure","name":"configure: ConfigRequest","xml":"<execute plugin=\"org.onap.appc.config.generator.node.ConfigGeneratorNode\" method=\"generateConfig\">\n<parameter name=\"requestData\" value=\"`$device-config`\" />\n<parameter name=\"requestId\" value=\"`$request-id`\" />\n<parameter name=\"vnfType\" value=\"`$vnf-type`\" />\n<parameter name=\"requestAction\" value=\"`$request-action`\" />\n\n","comments":"","outputs":1,"x":530,"y":306.72222900390625,"z":"7a568ea5.52b07","wires":[["724dd10a.2dcb2","dab463be.ebfdb","661f9b55.49eef4"]]},{"id":"3e1ce578.4e621a","type":"configure","name":"configure: DeviceRequest","xml":"<execute plugin=\"org.onap.appc.device.interfaces.node.DeviceRequestProcessorNode\" method=\"processDeviceRequest\">\n<parameter name=\"requestId\" value=\"`$request-id`\" />\n<parameter name=\"vnfType\" value=\"`$vnf-type`\" />\n<parameter name=\"requestAction\" value=\"`$request-action`\" />\n<parameter name=\"hostname\" value=\"`$host-ip-address`\" />\n<parameter name=\"username\" value=\"`$device-login`\" />\n<parameter name=\"password\" value=\"`$device-password`\" />\n<parameter name=\"portNumber\" value=\"`$port-number`\" />\n<!--parameter name=\"netconfUsername\" value=\"`$device-login`\" />\n<parameter name=\"netconfPassword\" value=\"`$port-password`\" />\n<parameter name=\"netconfPortNumber\" value=\"830\" /-->\n\n","comments":"","outputs":1,"x":415,"y":490.72222900390625,"z":"7a568ea5.52b07","wires":[["45e3f24b.c7be4c","3033f064.d00c3","addce3cc.d1b1a"]]},{"id":"661f9b55.49eef4","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":582,"y":381,"z":"7a568ea5.52b07","wires":[["3e1ce578.4e621a"]]},{"id":"45e3f24b.c7be4c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":704,"y":446,"z":"7a568ea5.52b07","wires":[["bcd76242.4c6ad"]]},{"id":"3033f064.d00c3","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":714,"y":497,"z":"7a568ea5.52b07","wires":[["5c38315c.a32dd"]]},{"id":"bcd76242.4c6ad","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":867,"y":468,"z":"7a568ea5.52b07","wires":[["6de6909e.1110d"]]},{"id":"6de6909e.1110d","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1026,"y":468,"z":"7a568ea5.52b07","wires":[]},{"id":"5c38315c.a32dd","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":875,"y":537,"z":"7a568ea5.52b07","wires":[["6e521d00.9a9f84"]]},{"id":"6e521d00.9a9f84","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1034,"y":537,"z":"7a568ea5.52b07","wires":[]}] +[
+ {
+ "id": "feea8c0f.99cea",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 174,
+ "y": 159,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "2fe1975f.6b6288"
+ ]
+ ]
+ },
+ {
+ "id": "2fe1975f.6b6288",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "3.1.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 351,
+ "y": 158,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "b943522e.8d306"
+ ]
+ ]
+ },
+ {
+ "id": "b943522e.8d306",
+ "type": "method",
+ "name": "method DownloadSBGConfig",
+ "xml": "<method rpc='DownloadSBGConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 580,
+ "y": 158,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "4ddd2ec1.7fc8d"
+ ]
+ ]
+ },
+ {
+ "id": "addce3cc.d1b1a",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 701,
+ "y": 594,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "6bee2910.0e32c8"
+ ]
+ ]
+ },
+ {
+ "id": "724dd10a.2dcb2",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 823,
+ "y": 263,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "fe0ad156.02b64"
+ ]
+ ]
+ },
+ {
+ "id": "dab463be.ebfdb",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 833,
+ "y": 314,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "e6658a4.7b23878"
+ ]
+ ]
+ },
+ {
+ "id": "fe0ad156.02b64",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 986,
+ "y": 285,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "f1bee661.c07688"
+ ]
+ ]
+ },
+ {
+ "id": "f1bee661.c07688",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1145,
+ "y": 285,
+ "z": "7a568ea5.52b07",
+ "wires": []
+ },
+ {
+ "id": "6bee2910.0e32c8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",
+ "comments": "",
+ "x": 971,
+ "y": 605,
+ "z": "7a568ea5.52b07",
+ "wires": []
+ },
+ {
+ "id": "e6658a4.7b23878",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 994,
+ "y": 354,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "bb929331.e8df4"
+ ]
+ ]
+ },
+ {
+ "id": "bb929331.e8df4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Failed in SBG Config Data Generation from XSL Template.\" />\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1153,
+ "y": 354,
+ "z": "7a568ea5.52b07",
+ "wires": []
+ },
+ {
+ "id": "4ddd2ec1.7fc8d",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">\n",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 262,
+ "y": 324,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "c9835662.80d108"
+ ]
+ ]
+ },
+ {
+ "id": "c9835662.80d108",
+ "type": "configure",
+ "name": "configure: ConfigRequest",
+ "xml": "<execute plugin=\"org.onap.appc.config.generator.node.ConfigGeneratorNode\" method=\"generateConfig\">\n<parameter name=\"requestData\" value=\"`$device-config`\" />\n<parameter name=\"requestId\" value=\"`$request-id`\" />\n<parameter name=\"vnfType\" value=\"`$vnf-type`\" />\n<parameter name=\"requestAction\" value=\"`$request-action`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 530,
+ "y": 306.72222900390625,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "724dd10a.2dcb2",
+ "dab463be.ebfdb",
+ "661f9b55.49eef4"
+ ]
+ ]
+ },
+ {
+ "id": "3e1ce578.4e621a",
+ "type": "configure",
+ "name": "configure: DeviceRequest",
+ "xml": "<execute plugin=\"org.onap.appc.device.interfaces.node.DeviceRequestProcessorNode\" method=\"processDeviceRequest\">\n<parameter name=\"requestId\" value=\"`$request-id`\" />\n<parameter name=\"vnfType\" value=\"`$vnf-type`\" />\n<parameter name=\"requestAction\" value=\"`$request-action`\" />\n<parameter name=\"hostname\" value=\"`$host-ip-address`\" />\n<parameter name=\"username\" value=\"`$device-login`\" />\n<parameter name=\"password\" value=\"`$device-password`\" />\n<parameter name=\"portNumber\" value=\"`$port-number`\" />\n<!--parameter name=\"netconfUsername\" value=\"`$device-login`\" />\n<parameter name=\"netconfPassword\" value=\"`$port-password`\" />\n<parameter name=\"netconfPortNumber\" value=\"830\" /-->\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 415,
+ "y": 490.72222900390625,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "45e3f24b.c7be4c",
+ "3033f064.d00c3",
+ "addce3cc.d1b1a"
+ ]
+ ]
+ },
+ {
+ "id": "661f9b55.49eef4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 582,
+ "y": 381,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "3e1ce578.4e621a"
+ ]
+ ]
+ },
+ {
+ "id": "45e3f24b.c7be4c",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 704,
+ "y": 446,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "bcd76242.4c6ad"
+ ]
+ ]
+ },
+ {
+ "id": "3033f064.d00c3",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 714,
+ "y": 497,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "5c38315c.a32dd"
+ ]
+ ]
+ },
+ {
+ "id": "bcd76242.4c6ad",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 867,
+ "y": 468,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "6de6909e.1110d"
+ ]
+ ]
+ },
+ {
+ "id": "6de6909e.1110d",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1026,
+ "y": 468,
+ "z": "7a568ea5.52b07",
+ "wires": []
+ },
+ {
+ "id": "5c38315c.a32dd",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 875,
+ "y": 537,
+ "z": "7a568ea5.52b07",
+ "wires": [
+ [
+ "6e521d00.9a9f84"
+ ]
+ ]
+ },
+ {
+ "id": "6e521d00.9a9f84",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1034,
+ "y": 537,
+ "z": "7a568ea5.52b07",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadXmlConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadXmlConfig.json index e53e1a76a..c83f876e3 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadXmlConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_DownloadXmlConfig.json @@ -1 +1,200 @@ -[{"id":"74f96b34.8d6e54","type":"dgstart","name":"DGSTART","outputs":1,"x":164,"y":171,"z":"9852b4f8.482598","wires":[["a662a4c7.3e74d8"]]},{"id":"a662a4c7.3e74d8","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"3.1.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' version='4.0.0'>","outputs":1,"x":341,"y":170,"z":"9852b4f8.482598","wires":[["cf63224b.3ac57"]]},{"id":"cf63224b.3ac57","type":"method","name":"method DownloadXmlConfig","xml":"<method rpc='DownloadXmlConfig' mode='sync'>\n","comments":"","outputs":1,"x":570,"y":170,"z":"9852b4f8.482598","wires":[["8652063a.79abf8"]]},{"id":"63da4c86.afeb64","type":"execute","name":"execute : Download Configuration","xml":"<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='xml-download'>\n<parameter name=\"Contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n","comments":"","outputs":1,"x":430,"y":296,"z":"9852b4f8.482598","wires":[["76ab52c2.59aafc","ca9c3a74.973c48","4365f1e1.cf9c8"]]},{"id":"76ab52c2.59aafc","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":712,"y":361,"z":"9852b4f8.482598","wires":[["3f9a92ce.040c6e"]]},{"id":"ca9c3a74.973c48","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":813,"y":275,"z":"9852b4f8.482598","wires":[["965ec1c1.3949a"]]},{"id":"4365f1e1.cf9c8","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":823,"y":326,"z":"9852b4f8.482598","wires":[["403128f0.908298"]]},{"id":"965ec1c1.3949a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":976,"y":297,"z":"9852b4f8.482598","wires":[["e627e0a8.31843"]]},{"id":"e627e0a8.31843","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1135,"y":297,"z":"9852b4f8.482598","wires":[]},{"id":"8652063a.79abf8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":180,"y":295,"z":"9852b4f8.482598","wires":[["63da4c86.afeb64"]]},{"id":"3f9a92ce.040c6e","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<!-- Dont over write error code and message -->\n","comments":"","x":938,"y":464,"z":"9852b4f8.482598","wires":[]},{"id":"403128f0.908298","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":984,"y":366,"z":"9852b4f8.482598","wires":[["6c05d71d.c6f7c8"]]},{"id":"6c05d71d.c6f7c8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download XML Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n","comments":"","x":1143,"y":366,"z":"9852b4f8.482598","wires":[]}] +[
+ {
+ "id": "74f96b34.8d6e54",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 164,
+ "y": 171,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "a662a4c7.3e74d8"
+ ]
+ ]
+ },
+ {
+ "id": "a662a4c7.3e74d8",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "3.1.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 341,
+ "y": 170,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "cf63224b.3ac57"
+ ]
+ ]
+ },
+ {
+ "id": "cf63224b.3ac57",
+ "type": "method",
+ "name": "method DownloadXmlConfig",
+ "xml": "<method rpc='DownloadXmlConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 570,
+ "y": 170,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "8652063a.79abf8"
+ ]
+ ]
+ },
+ {
+ "id": "63da4c86.afeb64",
+ "type": "execute",
+ "name": "execute : Download Configuration",
+ "xml": "<configure adaptor='org.onap.appc.ccadaptor.ConfigComponentAdaptor' key='xml-download'>\n<parameter name=\"Contents\" value=\"`$device-config`\"/>\n<parameter name=\"Host_ip_address\" value=\"`$host-ip-address`\" />\n<parameter name=\"User_name\" value=\"`$device-login`\" />\n<parameter name=\"Password\" value=\"`$device-password`\" />\n<parameter name=\"Port_number\" value=\"`$port-number`\" />\n\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 430,
+ "y": 296,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "76ab52c2.59aafc",
+ "ca9c3a74.973c48",
+ "4365f1e1.cf9c8"
+ ]
+ ]
+ },
+ {
+ "id": "76ab52c2.59aafc",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 712,
+ "y": 361,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "3f9a92ce.040c6e"
+ ]
+ ]
+ },
+ {
+ "id": "ca9c3a74.973c48",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 813,
+ "y": 275,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "965ec1c1.3949a"
+ ]
+ ]
+ },
+ {
+ "id": "4365f1e1.cf9c8",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 823,
+ "y": 326,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "403128f0.908298"
+ ]
+ ]
+ },
+ {
+ "id": "965ec1c1.3949a",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 976,
+ "y": 297,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "e627e0a8.31843"
+ ]
+ ]
+ },
+ {
+ "id": "e627e0a8.31843",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1135,
+ "y": 297,
+ "z": "9852b4f8.482598",
+ "wires": []
+ },
+ {
+ "id": "8652063a.79abf8",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 180,
+ "y": 295,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "63da4c86.afeb64"
+ ]
+ ]
+ },
+ {
+ "id": "3f9a92ce.040c6e",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<!-- Dont over write error code and message -->\n",
+ "comments": "",
+ "x": 938,
+ "y": 464,
+ "z": "9852b4f8.482598",
+ "wires": []
+ },
+ {
+ "id": "403128f0.908298",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 984,
+ "y": 366,
+ "z": "9852b4f8.482598",
+ "wires": [
+ [
+ "6c05d71d.c6f7c8"
+ ]
+ ]
+ },
+ {
+ "id": "6c05d71d.c6f7c8",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-message\" value=\"Unable to Download XML Config to Device\" />\n<parameter name=\"error-code\" value=\"401\" />\n",
+ "comments": "",
+ "x": 1143,
+ "y": 366,
+ "z": "9852b4f8.482598",
+ "wires": []
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_EvacuateVM.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_EvacuateVM.json index d93fcf195..627777318 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_EvacuateVM.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_EvacuateVM.json @@ -1 +1,262 @@ -[{"id":"3226fb76.a7fe14","type":"dgstart","name":"DGSTART","outputs":1,"x":150.88333129882812,"y":102.88333129882812,"z":"96b506dc.10c5e8","wires":[["f2b4466.fcec638"]]},{"id":"f2b4466.fcec638","type":"service-logic","name":"APPC 2.0.0","module":"APPC","version":"2.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' version='2.0.0'>","outputs":1,"x":338.8833312988281,"y":103.88333129882812,"z":"96b506dc.10c5e8","wires":[["205bcc30.cae044"]]},{"id":"205bcc30.cae044","type":"method","name":"EvacuateVM","xml":"<method rpc='EvacuateVM' mode='sync'>\n","comments":"","outputs":1,"x":567.88330078125,"y":104.88333129882812,"z":"96b506dc.10c5e8","wires":[["213ddb60.68307c"]]},{"id":"d8525233.851af8","type":"execute","name":"execute: evacuate","xml":"<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.onap.appc.tenant.id\" value=\"`$tenant-id`\" />\n<parameter name=\"org.onap.appc.rebuildvm\" value=\"`$rebuild-vm`\" />\n<parameter name=\"org.onap.appc.targethost.id\" value=\"`$targethost-id`\" />\n\n","comments":"","outputs":1,"x":729.88330078125,"y":271.88330078125,"z":"96b506dc.10c5e8","wires":[["ec71f7ec.66516","1f5ce9b3.25109e"]]},{"id":"ec71f7ec.66516","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":924.88330078125,"y":316.88330078125,"z":"96b506dc.10c5e8","wires":[["4a9ae26e.e2a654"]]},{"id":"1f5ce9b3.25109e","type":"other","name":"other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":913.88330078125,"y":194.88330078125,"z":"96b506dc.10c5e8","wires":[["5eba654f.8cceec"]]},{"id":"3d2c4844.2e8078","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Request Processed Successfully' />","comments":"","x":1372.88330078125,"y":290.88330078125,"z":"96b506dc.10c5e8","wires":[]},{"id":"5572aa21.a402dc","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC Evacuate not found' />","comments":"","x":1254.88330078125,"y":213.88330078125,"z":"96b506dc.10c5e8","wires":[]},{"id":"4a9ae26e.e2a654","type":"switchNode","name":"switch","xml":"<switch test='`$EVACUATE_STATUS`'>\n","comments":"","outputs":1,"x":1066.88330078125,"y":316.88330078125,"z":"96b506dc.10c5e8","wires":[["a71868a3.d0fc38","a3d63b8d.7bb02"]]},{"id":"a71868a3.d0fc38","type":"success","name":"SUCCESS","xml":"<outcome value='SUCCESS'>\n","comments":"","outputs":1,"x":1197.88330078125,"y":290.88330078125,"z":"96b506dc.10c5e8","wires":[["3d2c4844.2e8078"]]},{"id":"a3d63b8d.7bb02","type":"outcome","name":"ERROR","xml":"<outcome value='ERROR'>\n","comments":"","outputs":1,"x":1191.88330078125,"y":373.88330078125,"z":"96b506dc.10c5e8","wires":[["a85ae409.b4541"]]},{"id":"a85ae409.b4541","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1332.88330078125,"y":374.88330078125,"z":"96b506dc.10c5e8","wires":[["d00419cf.1b199","411472cf.0aaea4"]]},{"id":"d00419cf.1b199","type":"returnFailure","name":"return failure","xml":"<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n","comments":"","x":1508.8832397460938,"y":423.8833312988281,"z":"96b506dc.10c5e8","wires":[]},{"id":"5eba654f.8cceec","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1069.88330078125,"y":194.88330078125,"z":"96b506dc.10c5e8","wires":[["5572aa21.a402dc"]]},{"id":"8851723f.af52a","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />","comments":"","outputs":1,"x":851,"y":93.88333129882812,"z":"96b506dc.10c5e8","wires":[[]]},{"id":"213ddb60.68307c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":725.75,"y":164.75,"z":"96b506dc.10c5e8","wires":[["8851723f.af52a","d8525233.851af8"]]},{"id":"411472cf.0aaea4","type":"record","name":"record","xml":"<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />","comments":"","outputs":1,"x":1495.7499389648438,"y":375.75,"z":"96b506dc.10c5e8","wires":[[]]}] +[
+ {
+ "id": "3226fb76.a7fe14",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 150.88333129882812,
+ "y": 102.88333129882812,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "f2b4466.fcec638"
+ ]
+ ]
+ },
+ {
+ "id": "f2b4466.fcec638",
+ "type": "service-logic",
+ "name": "APPC 2.0.0",
+ "module": "APPC",
+ "version": "2.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' version='2.0.0'>",
+ "outputs": 1,
+ "x": 338.8833312988281,
+ "y": 103.88333129882812,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "205bcc30.cae044"
+ ]
+ ]
+ },
+ {
+ "id": "205bcc30.cae044",
+ "type": "method",
+ "name": "EvacuateVM",
+ "xml": "<method rpc='EvacuateVM' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 567.88330078125,
+ "y": 104.88333129882812,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "213ddb60.68307c"
+ ]
+ ]
+ },
+ {
+ "id": "d8525233.851af8",
+ "type": "execute",
+ "name": "execute: evacuate",
+ "xml": "<execute plugin='org.onap.appc.adapter.iaas.ProviderAdapter' method='evacuateServer'>\n<parameter name=\"org.onap.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.onap.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.onap.appc.identity.url\" value=\"`$identity-url`\" />\n<parameter name=\"org.onap.appc.tenant.id\" value=\"`$tenant-id`\" />\n<parameter name=\"org.onap.appc.rebuildvm\" value=\"`$rebuild-vm`\" />\n<parameter name=\"org.onap.appc.targethost.id\" value=\"`$targethost-id`\" />\n\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 729.88330078125,
+ "y": 271.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "ec71f7ec.66516",
+ "1f5ce9b3.25109e"
+ ]
+ ]
+ },
+ {
+ "id": "ec71f7ec.66516",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 924.88330078125,
+ "y": 316.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "4a9ae26e.e2a654"
+ ]
+ ]
+ },
+ {
+ "id": "1f5ce9b3.25109e",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 913.88330078125,
+ "y": 194.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "5eba654f.8cceec"
+ ]
+ ]
+ },
+ {
+ "id": "3d2c4844.2e8078",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Request Processed Successfully' />",
+ "comments": "",
+ "x": 1372.88330078125,
+ "y": 290.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": []
+ },
+ {
+ "id": "5572aa21.a402dc",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='RPC Evacuate not found' />",
+ "comments": "",
+ "x": 1254.88330078125,
+ "y": 213.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": []
+ },
+ {
+ "id": "4a9ae26e.e2a654",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$EVACUATE_STATUS`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1066.88330078125,
+ "y": 316.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "a71868a3.d0fc38",
+ "a3d63b8d.7bb02"
+ ]
+ ]
+ },
+ {
+ "id": "a71868a3.d0fc38",
+ "type": "success",
+ "name": "SUCCESS",
+ "xml": "<outcome value='SUCCESS'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1197.88330078125,
+ "y": 290.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "3d2c4844.2e8078"
+ ]
+ ]
+ },
+ {
+ "id": "a3d63b8d.7bb02",
+ "type": "outcome",
+ "name": "ERROR",
+ "xml": "<outcome value='ERROR'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1191.88330078125,
+ "y": 373.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "a85ae409.b4541"
+ ]
+ ]
+ },
+ {
+ "id": "a85ae409.b4541",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1332.88330078125,
+ "y": 374.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "d00419cf.1b199",
+ "411472cf.0aaea4"
+ ]
+ ]
+ },
+ {
+ "id": "d00419cf.1b199",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='`$error-message`' />\n",
+ "comments": "",
+ "x": 1508.8832397460938,
+ "y": 423.8833312988281,
+ "z": "96b506dc.10c5e8",
+ "wires": []
+ },
+ {
+ "id": "5eba654f.8cceec",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1069.88330078125,
+ "y": 194.88330078125,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "5572aa21.a402dc"
+ ]
+ ]
+ },
+ {
+ "id": "8851723f.af52a",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field2\" value=\"`'input.payload = ' + $input.payload`\" />\n<parameter name=\"field3\" value=\"`'vm-id in context=' + $vm-id`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 851,
+ "y": 93.88333129882812,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "213ddb60.68307c",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 725.75,
+ "y": 164.75,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ [
+ "8851723f.af52a",
+ "d8525233.851af8"
+ ]
+ ]
+ },
+ {
+ "id": "411472cf.0aaea4",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\">\n<parameter name=\"level\" value=\"info\"/>\n<parameter name=\"logger\" value=\"message-log\"/>\n<parameter name=\"field1\" value=\"__TIMESTAMP__\"/>\n<parameter name=\"field3\" value=\"`'error-message = ' + $error-message`\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1495.7499389648438,
+ "y": 375.75,
+ "z": "96b506dc.10c5e8",
+ "wires": [
+ []
+ ]
+ }
+]
diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GenerateConfig.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GenerateConfig.json index 61d315798..2323e47a8 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GenerateConfig.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GenerateConfig.json @@ -1 +1,374 @@ -[{"id":"8dc92cef.af16","type":"switchNode","name":"switch configuration Exist","xml":"<switch test='`$configuration`'>\n","comments":"","outputs":1,"x":230,"y":273,"z":"bcb112aa.3df3","wires":[["51b66afb.732cb4","ac78286.04e5ad8"]]},{"id":"51b66afb.732cb4","type":"success","name":" Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":200,"y":356,"z":"bcb112aa.3df3","wires":[["19efef28.113271"]]},{"id":"ac78286.04e5ad8","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":460,"y":278,"z":"bcb112aa.3df3","wires":[["e08c0360.b78d7"]]},{"id":"19efef28.113271","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":355,"y":357,"z":"bcb112aa.3df3","wires":[["bd4ca811.1bbf98","f05dc8ea.7c8f98"]]},{"id":"e08c0360.b78d7","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":651,"y":275,"z":"bcb112aa.3df3","wires":[[]]},{"id":"bd4ca811.1bbf98","type":"switchNode","name":"switch Config Params Exist","xml":"<switch test='`$configuration-params`'>\n","comments":"","outputs":1,"x":580,"y":359,"z":"bcb112aa.3df3","wires":[["4ceaa5cd.c473ac","cba86ee2.90b7e"]]},{"id":"f05dc8ea.7c8f98","type":"execute","name":"execute saveConfigBlock","xml":"<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigBlock\">\n<parameter name=\"responsePrefix\" value=\"tmp.saveConfigBlock\" />","comments":"","outputs":1,"x":541,"y":594,"z":"bcb112aa.3df3","wires":[["c2734f72.66207"]]},{"id":"4ceaa5cd.c473ac","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":812,"y":312,"z":"bcb112aa.3df3","wires":[["30855e94.828402"]]},{"id":"cba86ee2.90b7e","type":"success","name":" Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":582,"y":423,"z":"bcb112aa.3df3","wires":[["3c1de74c.ceb898"]]},{"id":"c2734f72.66207","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":751,"y":594,"z":"bcb112aa.3df3","wires":[["b2137289.1cf87"]]},{"id":"3c1de74c.ceb898","type":"execute","name":"execute Merge Data with Template","xml":"<execute plugin=\"org.onap.sdnc.config.generator.merge.MergeNode\" method=\"mergeJsonDataOnTemplate\">\n<parameter name=\"jsonData\" value=\"`$configuration-params`\" />\n<parameter name=\"templateData\" value=\"`$configuration`\" />\n<parameter name=\"templateType\" value=\"json\" />\n<parameter name=\"responsePrefix\" value=\"tmp.merge\" />","comments":"","outputs":1,"x":813,"y":425,"z":"bcb112aa.3df3","wires":[["806b8a1a.10a928","fb85739e.97635"]]},{"id":"b2137289.1cf87","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":918,"y":596,"z":"bcb112aa.3df3","wires":[["9cc87fc8.c131"]]},{"id":"806b8a1a.10a928","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1064,"y":386,"z":"bcb112aa.3df3","wires":[["f0bb9ae5.225b08"]]},{"id":"fb85739e.97635","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1053,"y":445,"z":"bcb112aa.3df3","wires":[["f70cd59a.466288"]]},{"id":"9cc87fc8.c131","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.saveConfigBlock.error-message`\"/>\n\t\n\t\n\t","comments":"","x":1117,"y":593,"z":"bcb112aa.3df3","wires":[]},{"id":"f0bb9ae5.225b08","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1220,"y":389,"z":"bcb112aa.3df3","wires":[["cc1dc434.2e9558"]]},{"id":"f70cd59a.466288","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1209,"y":447,"z":"bcb112aa.3df3","wires":[["bbfbfcbd.81a6b"]]},{"id":"cc1dc434.2e9558","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to merge template with data\"/>\n\t","comments":"","x":1398,"y":392,"z":"bcb112aa.3df3","wires":[]},{"id":"bbfbfcbd.81a6b","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.merge.error-message`\"/>\n\t","comments":"","x":1382,"y":454,"z":"bcb112aa.3df3","wires":[]},{"id":"f2019004.80993","type":"dgstart","name":"DGSTART","outputs":1,"x":146,"y":118,"z":"bcb112aa.3df3","wires":[["f02b838f.96f26"]]},{"id":"f02b838f.96f26","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.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' version='4.0.0'>","outputs":1,"x":313,"y":118,"z":"bcb112aa.3df3","wires":[["6f7e3ed4.df123"]]},{"id":"6f7e3ed4.df123","type":"method","name":"method GenerateConfig","xml":"<method rpc='GenerateConfig' mode='sync'>\n","comments":"","outputs":1,"x":559,"y":117,"z":"bcb112aa.3df3","wires":[["52decd8e.01dd24"]]},{"id":"52decd8e.01dd24","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":155,"y":186,"z":"bcb112aa.3df3","wires":[["8dc92cef.af16"]]},{"id":"30855e94.828402","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":1026,"y":312,"z":"bcb112aa.3df3","wires":[[]]}] +[
+ {
+ "id": "8dc92cef.af16",
+ "type": "switchNode",
+ "name": "switch configuration Exist",
+ "xml": "<switch test='`$configuration`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 230,
+ "y": 273,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "51b66afb.732cb4",
+ "ac78286.04e5ad8"
+ ]
+ ]
+ },
+ {
+ "id": "51b66afb.732cb4",
+ "type": "success",
+ "name": " Other",
+ "xml": "<outcome value=\"Other\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 200,
+ "y": 356,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "19efef28.113271"
+ ]
+ ]
+ },
+ {
+ "id": "ac78286.04e5ad8",
+ "type": "success",
+ "name": "outcome: null",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 460,
+ "y": 278,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "e08c0360.b78d7"
+ ]
+ ]
+ },
+ {
+ "id": "19efef28.113271",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 355,
+ "y": 357,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "bd4ca811.1bbf98",
+ "f05dc8ea.7c8f98"
+ ]
+ ]
+ },
+ {
+ "id": "e08c0360.b78d7",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 651,
+ "y": 275,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "bd4ca811.1bbf98",
+ "type": "switchNode",
+ "name": "switch Config Params Exist",
+ "xml": "<switch test='`$configuration-params`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 580,
+ "y": 359,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "4ceaa5cd.c473ac",
+ "cba86ee2.90b7e"
+ ]
+ ]
+ },
+ {
+ "id": "f05dc8ea.7c8f98",
+ "type": "execute",
+ "name": "execute saveConfigBlock",
+ "xml": "<execute plugin=\"org.onap.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigBlock\">\n<parameter name=\"responsePrefix\" value=\"tmp.saveConfigBlock\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 541,
+ "y": 594,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "c2734f72.66207"
+ ]
+ ]
+ },
+ {
+ "id": "4ceaa5cd.c473ac",
+ "type": "success",
+ "name": "outcome: null",
+ "xml": "<outcome value=''>",
+ "comments": "",
+ "outputs": 1,
+ "x": 812,
+ "y": 312,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "30855e94.828402"
+ ]
+ ]
+ },
+ {
+ "id": "cba86ee2.90b7e",
+ "type": "success",
+ "name": " Other",
+ "xml": "<outcome value=\"Other\">",
+ "comments": "",
+ "outputs": 1,
+ "x": 582,
+ "y": 423,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "3c1de74c.ceb898"
+ ]
+ ]
+ },
+ {
+ "id": "c2734f72.66207",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 751,
+ "y": 594,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "b2137289.1cf87"
+ ]
+ ]
+ },
+ {
+ "id": "3c1de74c.ceb898",
+ "type": "execute",
+ "name": "execute Merge Data with Template",
+ "xml": "<execute plugin=\"org.onap.sdnc.config.generator.merge.MergeNode\" method=\"mergeJsonDataOnTemplate\">\n<parameter name=\"jsonData\" value=\"`$configuration-params`\" />\n<parameter name=\"templateData\" value=\"`$configuration`\" />\n<parameter name=\"templateType\" value=\"json\" />\n<parameter name=\"responsePrefix\" value=\"tmp.merge\" />",
+ "comments": "",
+ "outputs": 1,
+ "x": 813,
+ "y": 425,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "806b8a1a.10a928",
+ "fb85739e.97635"
+ ]
+ ]
+ },
+ {
+ "id": "b2137289.1cf87",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 918,
+ "y": 596,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "9cc87fc8.c131"
+ ]
+ ]
+ },
+ {
+ "id": "806b8a1a.10a928",
+ "type": "not-found",
+ "name": "not-found",
+ "xml": "<outcome value='not-found'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1064,
+ "y": 386,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "f0bb9ae5.225b08"
+ ]
+ ]
+ },
+ {
+ "id": "fb85739e.97635",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1053,
+ "y": 445,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "f70cd59a.466288"
+ ]
+ ]
+ },
+ {
+ "id": "9cc87fc8.c131",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.saveConfigBlock.error-message`\"/>\n\t\n\t\n\t",
+ "comments": "",
+ "x": 1117,
+ "y": 593,
+ "z": "bcb112aa.3df3",
+ "wires": []
+ },
+ {
+ "id": "f0bb9ae5.225b08",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1220,
+ "y": 389,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "cc1dc434.2e9558"
+ ]
+ ]
+ },
+ {
+ "id": "f70cd59a.466288",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 1209,
+ "y": 447,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "bbfbfcbd.81a6b"
+ ]
+ ]
+ },
+ {
+ "id": "cc1dc434.2e9558",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to merge template with data\"/>\n\t",
+ "comments": "",
+ "x": 1398,
+ "y": 392,
+ "z": "bcb112aa.3df3",
+ "wires": []
+ },
+ {
+ "id": "bbfbfcbd.81a6b",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.merge.error-message`\"/>\n\t",
+ "comments": "",
+ "x": 1382,
+ "y": 454,
+ "z": "bcb112aa.3df3",
+ "wires": []
+ },
+ {
+ "id": "f2019004.80993",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 146,
+ "y": 118,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "f02b838f.96f26"
+ ]
+ ]
+ },
+ {
+ "id": "f02b838f.96f26",
+ "type": "service-logic",
+ "name": "APPC 4.0.0",
+ "module": "APPC",
+ "version": "4.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' version='4.0.0'>",
+ "outputs": 1,
+ "x": 313,
+ "y": 118,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "6f7e3ed4.df123"
+ ]
+ ]
+ },
+ {
+ "id": "6f7e3ed4.df123",
+ "type": "method",
+ "name": "method GenerateConfig",
+ "xml": "<method rpc='GenerateConfig' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 559,
+ "y": 117,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "52decd8e.01dd24"
+ ]
+ ]
+ },
+ {
+ "id": "52decd8e.01dd24",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 155,
+ "y": 186,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ [
+ "8dc92cef.af16"
+ ]
+ ]
+ },
+ {
+ "id": "30855e94.828402",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 1026,
+ "y": 312,
+ "z": "bcb112aa.3df3",
+ "wires": [
+ []
+ ]
+ }
+]
|