diff options
author | Skip Wonnell <skip@att.com> | 2017-10-30 11:44:18 -0500 |
---|---|---|
committer | Patrick Brady <pb071s@att.com> | 2017-10-30 20:50:26 +0000 |
commit | 2db8ef5e6c440442ba7d3c16142ede201a33d11b (patch) | |
tree | 05edac860719907936b3c5754d021793b70ca206 /appc-directed-graph | |
parent | 7498c91aad814cd16fe23819c0e87c52fb3b1529 (diff) |
Update DGs for Carbon and remove comments
Update plugins for Carbon CCSDK
Format json
Remove license text comments since json files don't handle comments
Issue-ID: APPC-293
Change-Id: I6a227c804a424b0c3e49c3427391896ea1b06e15
Signed-off-by: Skip Wonnell <skip@att.com>
Diffstat (limited to 'appc-directed-graph')
7 files changed, 4071 insertions, 616 deletions
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 b573be2b4..e9b2b1aef 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,20 +1,703 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP : APP-C - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ -[{"id":"af863c5e.90e748","type":"dgstart","name":"DGSTART","outputs":1,"x":146.75,"y":164.75,"z":"7aa4b695.11473","wires":[["d9df0190.a42ba"]]},{"id":"d9df0190.a42ba","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>","outputs":1,"x":304.09282302856445,"y":164.73572540283203,"z":"7aa4b695.11473","wires":[["7c89aa4e.932024"]]},{"id":"7c89aa4e.932024","type":"method","name":"method DGOrchestrator","xml":"<method rpc='DGOrchestrator' mode='sync'>\n","comments":"","outputs":1,"x":508.64046478271484,"y":154.23572540283203,"z":"7aa4b695.11473","wires":[["c70f8f3b.05d388"]]},{"id":"c70f8f3b.05d388","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":114.90634155273438,"y":287.93809700012207,"z":"7aa4b695.11473","wires":[["381e0ace.b3f33e","5f6fb0ca.2c254","c488bd07.108a38","75917e4e.17476"]]},{"id":"75917e4e.17476","type":"call","name":"call: setInputParams","xml":"<call module=\"APPC\" rpc=\"setInputParams\" mode=\"sync\">","comments":"","outputs":1,"x":649.6642913818359,"y":204.23572635650635,"z":"7aa4b695.11473","wires":[["36ff1ffa.c778a","26081ec1.29b53a","c2f54a3a.ddf05"]]},{"id":"1210a216.c8af96","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":2142.4143924713135,"y":315.6523714065552,"z":"7aa4b695.11473","wires":[["9c3d67a5.92d02"]]},{"id":"b0e87141.6fe4f8","type":"execute","name":"execute get and executeFlowSequence","xml":"<execute plugin=\"org.openecomp.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":1850.5411643981934,"y":327.96586418151855,"z":"7aa4b695.11473","wires":[["1210a216.c8af96","85baeb80.e02e8"]]},{"id":"9c3d67a5.92d02","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":2353.461868286133,"y":313.1761817932129,"z":"7aa4b695.11473","wires":[["4c31beff.349f7"]]},{"id":"88a7413.62118c","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":2598.9379119873047,"y":394.735652923584,"z":"7aa4b695.11473","wires":[]},{"id":"85baeb80.e02e8","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":2148.2952003479004,"y":395.31900215148926,"z":"7aa4b695.11473","wires":[["91b3c0c8.bd7338"]]},{"id":"91b3c0c8.bd7338","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":2336.175952911377,"y":394.9737958908081,"z":"7aa4b695.11473","wires":[["88a7413.62118c"]]},{"id":"4c31beff.349f7","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":2603.7476806640625,"y":313.11661529541016,"z":"7aa4b695.11473","wires":[]},{"id":"5f6fb0ca.2c254","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.openecomp.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":314.2475776672363,"y":1005.7912883758545,"z":"7aa4b695.11473","wires":[["9340c18b.3084e8"]]},{"id":"9340c18b.3084e8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":515.6919479370117,"y":1006.707914352417,"z":"7aa4b695.11473","wires":[["af758d58.5b9778"]]},{"id":"af758d58.5b9778","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":691.1643218994141,"y":1008.2912473678589,"z":"7aa4b695.11473","wires":[[]]},{"id":"381e0ace.b3f33e","type":"set","name":"set tmp.message","xml":"<set>\n<parameter name=\"tmp.message\" value=\"`$error-code + ':' + $error-message`\"/>\n","comments":"","x":333.0253677368164,"y":917.9857015609741,"z":"7aa4b695.11473","wires":[]},{"id":"36ff1ffa.c778a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":865.164306640625,"y":163.40238761901855,"z":"7aa4b695.11473","wires":[["ca660a6a.37209"]]},{"id":"26081ec1.29b53a","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":859.664306640625,"y":202.4023895263672,"z":"7aa4b695.11473","wires":[["ca660a6a.37209"]]},{"id":"ca660a6a.37209","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":1032.414306640625,"y":183.90241241455078,"z":"7aa4b695.11473","wires":[[]]},{"id":"c488bd07.108a38","type":"switchNode","name":"switch error-code","xml":"<switch test='`$error-code`'>\n","comments":"","outputs":1,"x":337.8309631347656,"y":859.6524333953857,"z":"7aa4b695.11473","wires":[["3d595d5f.577762","faa2fd8b.a0c5c"]]},{"id":"3d595d5f.577762","type":"success","name":"outcome: 400","xml":"<outcome value=\"400\">","comments":"","outputs":1,"x":602.4975891113281,"y":811.9857139587402,"z":"7aa4b695.11473","wires":[["185cf26e.a85396"]]},{"id":"faa2fd8b.a0c5c","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":602.414249420166,"y":911.985746383667,"z":"7aa4b695.11473","wires":[["d829d71e.06cbb8"]]},{"id":"185cf26e.a85396","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":813.7476348876953,"y":814.6524209976196,"z":"7aa4b695.11473","wires":[["766d8c6f.46c504"]]},{"id":"d829d71e.06cbb8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":795.7474899291992,"y":913.235746383667,"z":"7aa4b695.11473","wires":[["cb724d6.bb5e03"]]},{"id":"766d8c6f.46c504","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":1063.4143371582031,"y":812.8190479278564,"z":"7aa4b695.11473","wires":[]},{"id":"cb724d6.bb5e03","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":1032.9142837524414,"y":912.1523923873901,"z":"7aa4b695.11473","wires":[]},{"id":"3df8ebcb.3db3a4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":525.9142684936523,"y":315.5690441131592,"z":"7aa4b695.11473","wires":[["db8589d5.f5783"]]},{"id":"c2f54a3a.ddf05","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":855.497615814209,"y":242.23571968078613,"z":"7aa4b695.11473","wires":[["3df8ebcb.3db3a4"]]},{"id":"98b12577.b4145","type":"execute","name":"execute getCapability","xml":"<execute plugin=\"org.openecomp.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","comments":"","outputs":1,"x":831.6644706726074,"y":463.6523542404175,"z":"7aa4b695.11473","wires":[["e327dfa0.71d49","a7e121d5.e56c78"]]},{"id":"79a2cd7a.1539c4","type":"switchNode","name":"switch capability-result","xml":"<switch test=\"`$capabilities`\">\n","comments":"","outputs":1,"x":1161.454574584961,"y":549.3952317237854,"z":"7aa4b695.11473","wires":[["2529f428.b003fc","69db5125.fc4bf","4ed07506.b71b1c"]]},{"id":"2529f428.b003fc","type":"success","name":"outcome: Not-Supported","xml":"<outcome value=\"Not-Supported\">","comments":"","outputs":1,"x":1400.6644439697266,"y":675.9856586456299,"z":"7aa4b695.11473","wires":[["b6a06ded.095718"]]},{"id":"69db5125.fc4bf","type":"success","name":"outcome: Supported","xml":"<outcome value=\"Supported\">","comments":"","outputs":1,"x":1391.5810241699219,"y":608.3190422058105,"z":"7aa4b695.11473","wires":[["b748bba.a3058c8"]]},{"id":"e327dfa0.71d49","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1132.7594909667969,"y":409.8428611755371,"z":"7aa4b695.11473","wires":[["54a3be90.486a98"]]},{"id":"a7e121d5.e56c78","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":1117.2119979858398,"y":466.65238761901855,"z":"7aa4b695.11473","wires":[["670943f4.e09734"]]},{"id":"b6a06ded.095718","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":1690.997543334961,"y":677.6523866653442,"z":"7aa4b695.11473","wires":[]},{"id":"b748bba.a3058c8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1612.9976196289062,"y":612.3190307617188,"z":"7aa4b695.11473","wires":[["b0e87141.6fe4f8"]]},{"id":"4ed07506.b71b1c","type":"other","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1338.3310661315918,"y":537.9857149124146,"z":"7aa4b695.11473","wires":[["b0e87141.6fe4f8"]]},{"id":"2930004b.59f6a","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":1482.6641845703125,"y":398.2357177734375,"z":"7aa4b695.11473","wires":[]},{"id":"670943f4.e09734","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":962.0492706298828,"y":549.8094539642334,"z":"7aa4b695.11473","wires":[["79a2cd7a.1539c4"]]},{"id":"55f47d04.5f65bc","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.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":1447.072998046875,"y":446.452392578125,"z":"7aa4b695.11473","wires":[[]]},{"id":"db8589d5.f5783","type":"switchNode","name":"switch action-level","xml":"<switch test='`$action-level`'>\n","comments":"","outputs":1,"x":717.1944808959961,"y":316.41671562194824,"z":"7aa4b695.11473","wires":[["c0e2c8b.089e238","9e5abf68.ff6c1"]]},{"id":"c0e2c8b.089e238","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":614.6110458374023,"y":461.1666831970215,"z":"7aa4b695.11473","wires":[["98b12577.b4145"]]},{"id":"9e5abf68.ff6c1","type":"success","name":"outcome: vm","xml":"<outcome value='vm'>","comments":"","outputs":1,"x":912.9443511962891,"y":313.83336639404297,"z":"7aa4b695.11473","wires":[["6c0f9755.4e6f38"]]},{"id":"54a3be90.486a98","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":1285.99755859375,"y":408.90234375,"z":"7aa4b695.11473","wires":[["2930004b.59f6a","55f47d04.5f65bc"]]},{"id":"6c0f9755.4e6f38","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":1128.4166717529297,"y":314.74999809265137,"z":"7aa4b695.11473","wires":[["b0e87141.6fe4f8"]]}] +[ + { + "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.openecomp.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.openecomp.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.openecomp.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" + } +] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetAaiInfo.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetAaiInfo.json index 0ddccf8df..a238c0e03 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetAaiInfo.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_GetAaiInfo.json @@ -1,21 +1,289 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP : APP-C - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -[{"id":"2a18327b.190d5e","type":"dgstart","name":"DGSTART","outputs":1,"x":138,"y":65,"z":"a83714d9.fe1b58","wires":[["b64ac861.3c4448"]]},{"id":"b64ac861.3c4448","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>","outputs":1,"x":307,"y":65,"z":"a83714d9.fe1b58","wires":[["3bbeff64.7fc8e"]]},{"id":"3bbeff64.7fc8e","type":"method","name":"method GetAaiInfo","xml":"<method rpc='GetAaiInfo' mode='sync'>\n","comments":"","outputs":1,"x":520,"y":64,"z":"a83714d9.fe1b58","wires":[["5c608a98.0bf024"]]},{"id":"5c608a98.0bf024","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","outputs":1,"x":146,"y":147,"z":"a83714d9.fe1b58","wires":[["97f65464.3d36f8","a6922b1b.264198","1a8c611b.0adb8f"]]},{"id":"1a8c611b.0adb8f","type":"execute","name":"execute getAllVServersVnfcsInfo","xml":"<execute plugin=\"org.openecomp.appc.aai.client.node.AAIResourceNode\" method=\"getAllVServersVnfcsInfo\">\n<parameter name=\"responsePrefix\" value=\"tmp.vnfInfo\" />\n","comments":"","outputs":1,"x":271.5,"y":560,"z":"a83714d9.fe1b58","wires":[["58a50d95.a39f74","7cb8a280.e67fdc"]]},{"id":"58a50d95.a39f74","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":536.5,"y":562,"z":"a83714d9.fe1b58","wires":[["cca89eac.a4cc9"]]},{"id":"7cb8a280.e67fdc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":534.5,"y":604,"z":"a83714d9.fe1b58","wires":[["e7e14ccf.66209"]]},{"id":"cca89eac.a4cc9","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":684.5,"y":560,"z":"a83714d9.fe1b58","wires":[["6fc8268c.676d48"]]},{"id":"e7e14ccf.66209","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":667.5,"y":604,"z":"a83714d9.fe1b58","wires":[["b227c95d.666fb8"]]},{"id":"b227c95d.666fb8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.vnfInfo.error-message`\" />\n\n\n\t","comments":"","x":833.5,"y":605,"z":"a83714d9.fe1b58","wires":[]},{"id":"97f65464.3d36f8","type":"execute","name":"execute getVnfInfo","xml":"<execute plugin=\"org.openecomp.appc.aai.client.node.AAIResourceNode\" method=\"getVnfInfo\">\n<parameter name=\"vnfId\" value=\"`$vnf-id`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.vnfInfo\" />\n","comments":"","outputs":1,"x":385,"y":141,"z":"a83714d9.fe1b58","wires":[["75b9e9c.a60e318","90e21982.e540b8"]]},{"id":"75b9e9c.a60e318","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":574,"y":140,"z":"a83714d9.fe1b58","wires":[["a8b107b4.c7e7d8"]]},{"id":"a8b107b4.c7e7d8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":730,"y":143,"z":"a83714d9.fe1b58","wires":[["fd247ef0.16c0a"]]},{"id":"fd247ef0.16c0a","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 Vnf Info from A&AI\" />\n\n\n\t","comments":"","x":901,"y":145,"z":"a83714d9.fe1b58","wires":[]},{"id":"90e21982.e540b8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":568,"y":195,"z":"a83714d9.fe1b58","wires":[["a1033df9.8163a"]]},{"id":"a1033df9.8163a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":719,"y":197,"z":"a83714d9.fe1b58","wires":[["b4abe73d.5ece28"]]},{"id":"b4abe73d.5ece28","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.vnfInfo.error-message`\" />\n\n\n\t","comments":"","x":879,"y":196,"z":"a83714d9.fe1b58","wires":[]},{"id":"a6922b1b.264198","type":"set","name":"set vnf-type, name","xml":"<set>\n<parameter name='vnf-type' value='`$tmp.vnfInfo.vnf.vnf-type`' /> \n<parameter name='vnf-name' value='`$tmp.vnfInfo.vnf.vnf-name`' />\n\n","comments":"","x":349,"y":248,"z":"a83714d9.fe1b58","wires":[]},{"id":"6fc8268c.676d48","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 VServer Info from A&AI\" />\n\n\n\t","comments":"","x":849,"y":559,"z":"a83714d9.fe1b58","wires":[]}] +[ + { + "id": "2a18327b.190d5e", + "name": "DGSTART", + "outputs": 1, + "type": "dgstart", + "wires": [ + [ + "b64ac861.3c4448" + ] + ], + "x": 138, + "y": 65, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "b64ac861.3c4448", + "module": "APPC", + "name": "APPC 4.0.0", + "outputs": 1, + "type": "service-logic", + "version": "4.0.0", + "wires": [ + [ + "3bbeff64.7fc8e" + ] + ], + "x": 307, + "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": 65, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "3bbeff64.7fc8e", + "name": "method GetAaiInfo", + "outputs": 1, + "type": "method", + "wires": [ + [ + "5c608a98.0bf024" + ] + ], + "x": 520, + "xml": "<method rpc='GetAaiInfo' mode='sync'>\n", + "y": 64, + "z": "a83714d9.fe1b58" + }, + { + "atomic": "true", + "id": "5c608a98.0bf024", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "97f65464.3d36f8", + "a6922b1b.264198", + "1a8c611b.0adb8f" + ] + ], + "x": 146, + "xml": "<block atomic=\"true\">", + "y": 147, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "1a8c611b.0adb8f", + "name": "execute getAllVServersVnfcsInfo", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "58a50d95.a39f74", + "7cb8a280.e67fdc" + ] + ], + "x": 271.5, + "xml": "<execute plugin=\"org.openecomp.appc.aai.client.node.AAIResourceNode\" method=\"getAllVServersVnfcsInfo\">\n<parameter name=\"responsePrefix\" value=\"tmp.vnfInfo\" />\n", + "y": 560, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "58a50d95.a39f74", + "name": "not-found", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "cca89eac.a4cc9" + ] + ], + "x": 536.5, + "xml": "<outcome value='not-found'>\n", + "y": 562, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "7cb8a280.e67fdc", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "e7e14ccf.66209" + ] + ], + "x": 534.5, + "xml": "<outcome value='failure'>\n", + "y": 604, + "z": "a83714d9.fe1b58" + }, + { + "atomic": "false", + "comments": "", + "id": "cca89eac.a4cc9", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "6fc8268c.676d48" + ] + ], + "x": 684.5, + "xml": "<block>\n", + "y": 560, + "z": "a83714d9.fe1b58" + }, + { + "atomic": "false", + "comments": "", + "id": "e7e14ccf.66209", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "b227c95d.666fb8" + ] + ], + "x": 667.5, + "xml": "<block>\n", + "y": 604, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "b227c95d.666fb8", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 833.5, + "xml": "<return status=\"failure\">\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.vnfInfo.error-message`\" />\n\n\n\t", + "y": 605, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "97f65464.3d36f8", + "name": "execute getVnfInfo", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "75b9e9c.a60e318", + "90e21982.e540b8" + ] + ], + "x": 385, + "xml": "<execute plugin=\"org.openecomp.appc.aai.client.node.AAIResourceNode\" method=\"getVnfInfo\">\n<parameter name=\"vnfId\" value=\"`$vnf-id`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.vnfInfo\" />\n", + "y": 141, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "75b9e9c.a60e318", + "name": "not-found", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "a8b107b4.c7e7d8" + ] + ], + "x": 574, + "xml": "<outcome value='not-found'>\n", + "y": 140, + "z": "a83714d9.fe1b58" + }, + { + "atomic": "false", + "comments": "", + "id": "a8b107b4.c7e7d8", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "fd247ef0.16c0a" + ] + ], + "x": 730, + "xml": "<block>\n", + "y": 143, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "fd247ef0.16c0a", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 901, + "xml": "<return status=\"failure\">\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Unable to get Vnf Info from A&AI\" />\n\n\n\t", + "y": 145, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "90e21982.e540b8", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "a1033df9.8163a" + ] + ], + "x": 568, + "xml": "<outcome value='failure'>\n", + "y": 195, + "z": "a83714d9.fe1b58" + }, + { + "atomic": "false", + "comments": "", + "id": "a1033df9.8163a", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "b4abe73d.5ece28" + ] + ], + "x": 719, + "xml": "<block>\n", + "y": 197, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "b4abe73d.5ece28", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 879, + "xml": "<return status=\"failure\">\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"`$tmp.vnfInfo.error-message`\" />\n\n\n\t", + "y": 196, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "a6922b1b.264198", + "name": "set vnf-type, name", + "type": "set", + "wires": [], + "x": 349, + "xml": "<set>\n<parameter name='vnf-type' value='`$tmp.vnfInfo.vnf.vnf-type`' /> \n<parameter name='vnf-name' value='`$tmp.vnfInfo.vnf.vnf-name`' />\n\n", + "y": 248, + "z": "a83714d9.fe1b58" + }, + { + "comments": "", + "id": "6fc8268c.676d48", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 849, + "xml": "<return status=\"failure\">\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value=\"Unable to get VServer Info from A&AI\" />\n\n\n\t", + "y": 559, + "z": "a83714d9.fe1b58" + } +] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_MergeTemplateData.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_MergeTemplateData.json index 95beb1ac2..597f5c365 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_MergeTemplateData.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_MergeTemplateData.json @@ -1,21 +1,683 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP : APP-C - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -[{"id":"8ee93af3.e76758","type":"switchNode","name":"switch config-type","xml":"<switch test='`$config-type`'>\n","comments":"","outputs":1,"x":431.6666564941406,"y":315.8253974914551,"z":"a49375c8.88c748","wires":[["617b6511.320aec","d2208875.808258"]]},{"id":"617b6511.320aec","type":"success","name":"outcome: template","xml":"<outcome value=\"template\">","comments":"","outputs":1,"x":649.8214435577393,"y":317.1111030578613,"z":"a49375c8.88c748","wires":[["9708e2c6.a3ce4"]]},{"id":"6f91db3d.8b0924","type":"call","name":"call: GenerateTemplateConfig","xml":"<call module=\"APPC\" rpc=\"GenerateTemplateConfig\" mode=\"sync\">","comments":"","outputs":1,"x":1061.4881992340088,"y":447.36110496520996,"z":"a49375c8.88c748","wires":[["75d7daa7.8058a4","6a26f541.aa907c"]]},{"id":"75d7daa7.8058a4","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1292.0713901519775,"y":448.02779388427734,"z":"a49375c8.88c748","wires":[["314e0e4f.5adb22"]]},{"id":"314e0e4f.5adb22","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1464.488145828247,"y":447.6944193840027,"z":"a49375c8.88c748","wires":[["bdc01df2.1a5d8"]]},{"id":"bdc01df2.1a5d8","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":1658.5714015960693,"y":448.44441986083984,"z":"a49375c8.88c748","wires":[]},{"id":"6a26f541.aa907c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1292.1547679901123,"y":506.527792930603,"z":"a49375c8.88c748","wires":[["7ba894b.5d3a46c"]]},{"id":"7ba894b.5d3a46c","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1467.154893875122,"y":507.027792930603,"z":"a49375c8.88c748","wires":[["9728b5f9.536268"]]},{"id":"9728b5f9.536268","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t\n\t","comments":"","x":1667.988145828247,"y":507.44441986083984,"z":"a49375c8.88c748","wires":[]},{"id":"7e6e5c1a.29c4a4","type":"comment","name":"templatename cases","info":"","comments":"","x":642.7381381988525,"y":370.4444465637207,"z":"a49375c8.88c748","wires":[]},{"id":"37b38554.dad0ca","type":"comment","name":"merge ASDC template and data","info":"","comments":"","x":968.9881381988525,"y":674.0277881622314,"z":"a49375c8.88c748","wires":[]},{"id":"63a29ad8.8e05e4","type":"comment","name":"configBlock with or without parameters","info":"","comments":"","x":620.9881076812744,"y":647.8611078262329,"z":"a49375c8.88c748","wires":[]},{"id":"9708e2c6.a3ce4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":843.904821395874,"y":318.5277290344238,"z":"a49375c8.88c748","wires":[["6f91db3d.8b0924","9ebb8ed8.eaa4e"]]},{"id":"9ebb8ed8.eaa4e","type":"execute","name":"execute getTemplate","xml":"<execute plugin=\"org.openecomp.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":1048.8214511871338,"y":315.6111030578613,"z":"a49375c8.88c748","wires":[["367ba220.8bea8e","8c4d147f.36cf68"]]},{"id":"367ba220.8bea8e","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1232.4881420135498,"y":375.2777318954468,"z":"a49375c8.88c748","wires":[["9f013009.4fb92"]]},{"id":"9f013009.4fb92","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1415.238145828247,"y":369.527792930603,"z":"a49375c8.88c748","wires":[["e5aa2afa.241d48"]]},{"id":"e5aa2afa.241d48","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":1596.9881496429443,"y":368.52773094177246,"z":"a49375c8.88c748","wires":[]},{"id":"8c4d147f.36cf68","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1230.1548900604248,"y":285.69444847106934,"z":"a49375c8.88c748","wires":[["b643f5da.9fc9b8"]]},{"id":"b643f5da.9fc9b8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1400.738145828247,"y":286.0277919769287,"z":"a49375c8.88c748","wires":[["7e56335c.a0b01c"]]},{"id":"7e56335c.a0b01c","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":1595.7382717132568,"y":286.2777614593506,"z":"a49375c8.88c748","wires":[]},{"id":"d2208875.808258","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":613.4881000518799,"y":576.8611087799072,"z":"a49375c8.88c748","wires":[["a7aad416.c57578"]]},{"id":"a7aad416.c57578","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":803.238130569458,"y":584.8611087799072,"z":"a49375c8.88c748","wires":[["efd06d3f.ada62"]]},{"id":"efd06d3f.ada62","type":"call","name":"call: GenerateConfig","xml":"<call module=\"APPC\" rpc=\"GenerateConfig\" mode=\"sync\">","comments":"","outputs":1,"x":1017.7381381988525,"y":597.8611087799072,"z":"a49375c8.88c748","wires":[["af0cd93c.94b1b8","4352a232.eb3aec"]]},{"id":"af0cd93c.94b1b8","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1223.7381420135498,"y":596.8611068725586,"z":"a49375c8.88c748","wires":[["f4ef6668.6a1018"]]},{"id":"f4ef6668.6a1018","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1393.238145828247,"y":597.6111068725586,"z":"a49375c8.88c748","wires":[["39d87011.2d87b"]]},{"id":"39d87011.2d87b","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":1577.988145828247,"y":597.1111068725586,"z":"a49375c8.88c748","wires":[]},{"id":"4352a232.eb3aec","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1216.7381381988525,"y":687.6111087799072,"z":"a49375c8.88c748","wires":[["37a5a6a1.b52c9a"]]},{"id":"37a5a6a1.b52c9a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1390.2381381988525,"y":681.8611087799072,"z":"a49375c8.88c748","wires":[["26d3fdda.ad1b12"]]},{"id":"26d3fdda.ad1b12","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t\n\t","comments":"","x":1575.238145828247,"y":680.1111097335815,"z":"a49375c8.88c748","wires":[]},{"id":"ff782964.e94288","type":"dgstart","name":"DGSTART","outputs":1,"x":176.1825466156006,"y":83.33332920074463,"z":"a49375c8.88c748","wires":[["eadfabd6.6161f8"]]},{"id":"eadfabd6.6161f8","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>","outputs":1,"x":409.2936382293701,"y":84.55554962158203,"z":"a49375c8.88c748","wires":[["7cd40519.3b23dc"]]},{"id":"7cd40519.3b23dc","type":"method","name":"method MergeTemplateData","xml":"<method rpc='MergeTemplateData' mode='sync'>\n","comments":"","outputs":1,"x":631.3769855499268,"y":83.52777004241943,"z":"a49375c8.88c748","wires":[["3fa03099.10f27"]]},{"id":"3fa03099.10f27","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":169.23812103271484,"y":270.27781772613525,"z":"a49375c8.88c748","wires":[["8ee93af3.e76758","6fc699a0.777a38","5514dd63.d31be4","f310f0a8.6039f","a2cedd5c.acad2"]]},{"id":"6fc699a0.777a38","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.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":834.1985054016113,"y":130.43650484085083,"z":"a49375c8.88c748","wires":[[]]},{"id":"a2cedd5c.acad2","type":"call","name":"call: ProcessParameterDefinition","xml":"<call module=\"APPC\" rpc=\"ProcessParameterDefinition\" mode=\"sync\">","comments":"","outputs":1,"x":788.5318756103516,"y":207.13093757629395,"z":"a49375c8.88c748","wires":[["66999aa1.1b0464","62eeaa57.a2b194"]]},{"id":"66999aa1.1b0464","type":"failure","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1153.5595512390137,"y":134.57539558410645,"z":"a49375c8.88c748","wires":[["65712e43.c571a"]]},{"id":"65712e43.c571a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1340.3095531463623,"y":132.5753936767578,"z":"a49375c8.88c748","wires":[["1eaf25d0.77480a"]]},{"id":"1eaf25d0.77480a","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":1523.8095569610596,"y":132.07539558410645,"z":"a49375c8.88c748","wires":[]},{"id":"62eeaa57.a2b194","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1140.0595531463623,"y":191.57539653778076,"z":"a49375c8.88c748","wires":[["cba7e8ee.c38b88"]]},{"id":"cba7e8ee.c38b88","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1324.3095531463623,"y":191.82539463043213,"z":"a49375c8.88c748","wires":[["f131fee9.6e3c4"]]},{"id":"5514dd63.d31be4","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.openecomp.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":520.4166278839111,"y":803.0277366638184,"z":"a49375c8.88c748","wires":[["5d3a75fc.b01dec"]]},{"id":"5d3a75fc.b01dec","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":722.5833492279053,"y":817.1110496520996,"z":"a49375c8.88c748","wires":[["414c097b.0db3f8"]]},{"id":"414c097b.0db3f8","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":950.6666660308838,"y":814.8610496520996,"z":"a49375c8.88c748","wires":[[]]},{"id":"f310f0a8.6039f","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.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","comments":"","outputs":1,"x":443.3333110809326,"y":920.9444265365601,"z":"a49375c8.88c748","wires":[[]]},{"id":"f131fee9.6e3c4","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t\n\t","comments":"","x":1514.7262878417969,"y":190.15872383117676,"z":"a49375c8.88c748","wires":[]}] +[ + { + "comments": "", + "id": "8ee93af3.e76758", + "name": "switch config-type", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "617b6511.320aec", + "d2208875.808258" + ] + ], + "x": 431.6666564941406, + "xml": "<switch test='`$config-type`'>\n", + "y": 315.8253974914551, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "617b6511.320aec", + "name": "outcome: template", + "outputs": 1, + "type": "success", + "wires": [ + [ + "9708e2c6.a3ce4" + ] + ], + "x": 649.8214435577393, + "xml": "<outcome value=\"template\">", + "y": 317.1111030578613, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "6f91db3d.8b0924", + "name": "call: GenerateTemplateConfig", + "outputs": 1, + "type": "call", + "wires": [ + [ + "75d7daa7.8058a4", + "6a26f541.aa907c" + ] + ], + "x": 1061.4881992340088, + "xml": "<call module=\"APPC\" rpc=\"GenerateTemplateConfig\" mode=\"sync\">", + "y": 447.36110496520996, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "75d7daa7.8058a4", + "name": "not-found", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "314e0e4f.5adb22" + ] + ], + "x": 1292.0713901519775, + "xml": "<outcome value='not-found'>\n", + "y": 448.02779388427734, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "314e0e4f.5adb22", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "bdc01df2.1a5d8" + ] + ], + "x": 1464.488145828247, + "xml": "<block atomic=\"true\">", + "y": 447.6944193840027, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "bdc01df2.1a5d8", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1658.5714015960693, + "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", + "y": 448.44441986083984, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "6a26f541.aa907c", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "7ba894b.5d3a46c" + ] + ], + "x": 1292.1547679901123, + "xml": "<outcome value='failure'>\n", + "y": 506.527792930603, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "7ba894b.5d3a46c", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "9728b5f9.536268" + ] + ], + "x": 1467.154893875122, + "xml": "<block atomic=\"true\">", + "y": 507.027792930603, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "9728b5f9.536268", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1667.988145828247, + "xml": "<return status=\"failure\">\n\t\n\t", + "y": 507.44441986083984, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "7e6e5c1a.29c4a4", + "info": "", + "name": "templatename cases", + "type": "comment", + "wires": [], + "x": 642.7381381988525, + "y": 370.4444465637207, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "37b38554.dad0ca", + "info": "", + "name": "merge ASDC template and data", + "type": "comment", + "wires": [], + "x": 968.9881381988525, + "y": 674.0277881622314, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "63a29ad8.8e05e4", + "info": "", + "name": "configBlock with or without parameters", + "type": "comment", + "wires": [], + "x": 620.9881076812744, + "y": 647.8611078262329, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "9708e2c6.a3ce4", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "6f91db3d.8b0924", + "9ebb8ed8.eaa4e" + ] + ], + "x": 843.904821395874, + "xml": "<block atomic=\"true\">", + "y": 318.5277290344238, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "9ebb8ed8.eaa4e", + "name": "execute getTemplate", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "367ba220.8bea8e", + "8c4d147f.36cf68" + ] + ], + "x": 1048.8214511871338, + "xml": "<execute plugin=\"org.openecomp.appc.data.services.node.ConfigResourceNode\" method=\"getTemplate\">\n<parameter name=\"fileCategory\" value=\"config_template\" />\n<parameter name=\"responsePrefix\" value=\"config-template\" />", + "y": 315.6111030578613, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "367ba220.8bea8e", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "9f013009.4fb92" + ] + ], + "x": 1232.4881420135498, + "xml": "<outcome value='failure'>\n", + "y": 375.2777318954468, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "9f013009.4fb92", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "e5aa2afa.241d48" + ] + ], + "x": 1415.238145828247, + "xml": "<block atomic=\"true\">", + "y": 369.527792930603, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "e5aa2afa.241d48", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1596.9881496429443, + "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", + "y": 368.52773094177246, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "8c4d147f.36cf68", + "name": "not-found", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "b643f5da.9fc9b8" + ] + ], + "x": 1230.1548900604248, + "xml": "<outcome value='not-found'>\n", + "y": 285.69444847106934, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "b643f5da.9fc9b8", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "7e56335c.a0b01c" + ] + ], + "x": 1400.738145828247, + "xml": "<block atomic=\"true\">", + "y": 286.0277919769287, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "7e56335c.a0b01c", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1595.7382717132568, + "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", + "y": 286.2777614593506, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "d2208875.808258", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "a7aad416.c57578" + ] + ], + "x": 613.4881000518799, + "xml": "<outcome value=\"Other\">", + "y": 576.8611087799072, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "a7aad416.c57578", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "efd06d3f.ada62" + ] + ], + "x": 803.238130569458, + "xml": "<block atomic=\"true\">", + "y": 584.8611087799072, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "efd06d3f.ada62", + "name": "call: GenerateConfig", + "outputs": 1, + "type": "call", + "wires": [ + [ + "af0cd93c.94b1b8", + "4352a232.eb3aec" + ] + ], + "x": 1017.7381381988525, + "xml": "<call module=\"APPC\" rpc=\"GenerateConfig\" mode=\"sync\">", + "y": 597.8611087799072, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "af0cd93c.94b1b8", + "name": "not-found", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "f4ef6668.6a1018" + ] + ], + "x": 1223.7381420135498, + "xml": "<outcome value='not-found'>\n", + "y": 596.8611068725586, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "f4ef6668.6a1018", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "39d87011.2d87b" + ] + ], + "x": 1393.238145828247, + "xml": "<block atomic=\"true\">", + "y": 597.6111068725586, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "39d87011.2d87b", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1577.988145828247, + "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", + "y": 597.1111068725586, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "4352a232.eb3aec", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "37a5a6a1.b52c9a" + ] + ], + "x": 1216.7381381988525, + "xml": "<outcome value='failure'>\n", + "y": 687.6111087799072, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "37a5a6a1.b52c9a", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "26d3fdda.ad1b12" + ] + ], + "x": 1390.2381381988525, + "xml": "<block atomic=\"true\">", + "y": 681.8611087799072, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "26d3fdda.ad1b12", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1575.238145828247, + "xml": "<return status=\"failure\">\n\t\n\t", + "y": 680.1111097335815, + "z": "a49375c8.88c748" + }, + { + "id": "ff782964.e94288", + "name": "DGSTART", + "outputs": 1, + "type": "dgstart", + "wires": [ + [ + "eadfabd6.6161f8" + ] + ], + "x": 176.1825466156006, + "y": 83.33332920074463, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "eadfabd6.6161f8", + "module": "APPC", + "name": "APPC 4.0.0", + "outputs": 1, + "type": "service-logic", + "version": "4.0.0", + "wires": [ + [ + "7cd40519.3b23dc" + ] + ], + "x": 409.2936382293701, + "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": 84.55554962158203, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "7cd40519.3b23dc", + "name": "method MergeTemplateData", + "outputs": 1, + "type": "method", + "wires": [ + [ + "3fa03099.10f27" + ] + ], + "x": 631.3769855499268, + "xml": "<method rpc='MergeTemplateData' mode='sync'>\n", + "y": 83.52777004241943, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "3fa03099.10f27", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "8ee93af3.e76758", + "6fc699a0.777a38", + "5514dd63.d31be4", + "f310f0a8.6039f", + "a2cedd5c.acad2" + ] + ], + "x": 169.23812103271484, + "xml": "<block atomic=\"true\">", + "y": 270.27781772613525, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "6fc699a0.777a38", + "name": "record", + "outputs": 1, + "type": "record", + "wires": [ + [] + ], + "x": 834.1985054016113, + "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", + "y": 130.43650484085083, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "a2cedd5c.acad2", + "name": "call: ProcessParameterDefinition", + "outputs": 1, + "type": "call", + "wires": [ + [ + "66999aa1.1b0464", + "62eeaa57.a2b194" + ] + ], + "x": 788.5318756103516, + "xml": "<call module=\"APPC\" rpc=\"ProcessParameterDefinition\" mode=\"sync\">", + "y": 207.13093757629395, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "66999aa1.1b0464", + "name": "not-found", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "65712e43.c571a" + ] + ], + "x": 1153.5595512390137, + "xml": "<outcome value='not-found'>\n", + "y": 134.57539558410645, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "65712e43.c571a", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "1eaf25d0.77480a" + ] + ], + "x": 1340.3095531463623, + "xml": "<block atomic=\"true\">", + "y": 132.5753936767578, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "1eaf25d0.77480a", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1523.8095569610596, + "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", + "y": 132.07539558410645, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "62eeaa57.a2b194", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "cba7e8ee.c38b88" + ] + ], + "x": 1140.0595531463623, + "xml": "<outcome value='failure'>\n", + "y": 191.57539653778076, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "cba7e8ee.c38b88", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "f131fee9.6e3c4" + ] + ], + "x": 1324.3095531463623, + "xml": "<block atomic=\"true\">", + "y": 191.82539463043213, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "5514dd63.d31be4", + "name": "execute saveTxLog", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "5d3a75fc.b01dec" + ] + ], + "x": 520.4166278839111, + "xml": "<execute plugin=\"org.openecomp.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", + "y": 803.0277366638184, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "5d3a75fc.b01dec", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "414c097b.0db3f8" + ] + ], + "x": 722.5833492279053, + "xml": "<outcome value='failure'>\n", + "y": 817.1110496520996, + "z": "a49375c8.88c748" + }, + { + "atomic": "true", + "comments": null, + "id": "414c097b.0db3f8", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 950.6666660308838, + "xml": "<block atomic=\"true\">", + "y": 814.8610496520996, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "f310f0a8.6039f", + "name": "record", + "outputs": 1, + "type": "record", + "wires": [ + [] + ], + "x": 443.3333110809326, + "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", + "y": 920.9444265365601, + "z": "a49375c8.88c748" + }, + { + "comments": "", + "id": "f131fee9.6e3c4", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1514.7262878417969, + "xml": "<return status=\"failure\">\n\t\n\t", + "y": 190.15872383117676, + "z": "a49375c8.88c748" + } +] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json index 4979c0d73..523c6f633 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Start.json @@ -1,257 +1,257 @@ [ - { - "id": "4c12a5c8.90ab7c", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 179, - "y": 322, - "z": "3b333f3b.e62d", - "wires": [ - [ - "3f8e186b.788b58" - ] - ] - }, - { - "id": "3f8e186b.788b58", - "type": "service-logic", - "name": "APPC 2.0.0", - "module": "APPC", - "version": "2.0.0", - "comments": "", - "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>", - "outputs": 1, - "x": 362.0001220703125, - "y": 322.5666809082031, - "z": "3b333f3b.e62d", - "wires": [ - [ - "e2b2f3.05197d1" - ] - ] - }, - { - "id": "e2b2f3.05197d1", - "type": "method", - "name": "VM_Start", - "xml": "<method rpc='VM_Start' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 311.75006103515625, - "y": 406.816650390625, - "z": "3b333f3b.e62d", - "wires": [ - [ - "9c797c4b.fc3f8" - ] - ] - }, - { - "id": "9c797c4b.fc3f8", - "type": "execute", - "name": "Start", - "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='startServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$identity-url`\" />", - "comments": "", - "outputs": 1, - "x": 496, - "y": 406, - "z": "3b333f3b.e62d", - "wires": [ - [ - "8ec37e81.db48b", - "6a2f0d5b.f084e4" - ] - ] - }, - { - "id": "6a2f0d5b.f084e4", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 675.9735107421875, - "y": 407.2143859863281, - "z": "3b333f3b.e62d", - "wires": [ - [ - "51fd4bef.090064" - ] - ] - }, - { - "id": "8ec37e81.db48b", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 670.6187744140625, - "y": 633.14306640625, - "z": "3b333f3b.e62d", - "wires": [ - [ - "8ccb55ea.a7c328" - ] - ] - }, - { - "id": "51fd4bef.090064", - "type": "switchNode", - "name": "STATUS", - "xml": "<switch test='`$START_STATUS`'>\n", - "comments": "", - "outputs": 1, - "x": 823, - "y": 407.0000305175781, - "z": "3b333f3b.e62d", - "wires": [ - [ - "8e71a1ab.2673b", - "9153a9b0.79c868" - ] - ] - }, - { - "id": "8e71a1ab.2673b", - "type": "other", - "name": "SUCCESS", - "xml": "<outcome value='SUCCESS'>\n", - "comments": "", - "outputs": 1, - "x": 997.7144775390625, - "y": 405.4286193847656, - "z": "3b333f3b.e62d", - "wires": [ - [ - "218c4c31.746404" - ] - ] - }, - { - "id": "9153a9b0.79c868", - "type": "other", - "name": "ERROR", - "xml": "<outcome value='ERROR'>\n", - "comments": "", - "outputs": 1, - "x": 998.28564453125, - "y": 474.71435546875, - "z": "3b333f3b.e62d", - "wires": [ - [ - "d6c921e6.f062f" - ] - ] - }, - { - "id": "91055b26.4540f8", - "type": "returnSuccess", - "name": "return success", - "xml": "<return status='success'>", - "comments": "", - "x": 1355.6666259765625, - "y": 452, - "z": "3b333f3b.e62d", - "wires": [] - }, - { - "id": "be1d8c86.5510c", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n", - "comments": "", - "x": 1364.8734130859375, - "y": 680.4286499023438, - "z": "3b333f3b.e62d", - "wires": [] - }, - { - "id": "55a5d83c.b56328", - "type": "set", - "name": "set success code and message", - "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n", - "comments": "", - "x": 1404, - "y": 408, - "z": "3b333f3b.e62d", - "wires": [] - }, - { - "id": "11e66810.229818", - "type": "set", - "name": "set error code and message", - "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM failed' />\n", - "comments": "", - "x": 1117, - "y": 602, - "z": "3b333f3b.e62d", - "wires": [] - }, - { - "id": "18420693.2d9f89", - "type": "set", - "name": "set error code and message", - "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM status is error' />\n", - "comments": "", - "x": 1398, - "y": 507, - "z": "3b333f3b.e62d", - "wires": [] - }, - { - "id": "218c4c31.746404", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1161, - "y": 407, - "z": "3b333f3b.e62d", - "wires": [ - [ - "55a5d83c.b56328", - "91055b26.4540f8" - ] - ] - }, - { - "id": "d6c921e6.f062f", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1154, - "y": 475, - "z": "3b333f3b.e62d", - "wires": [ - [ - "18420693.2d9f89", - "be1d8c86.5510c" - ] - ] - }, - { - "id": "8ccb55ea.a7c328", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 873, - "y": 639, - "z": "3b333f3b.e62d", - "wires": [ - [ - "11e66810.229818", - "be1d8c86.5510c" - ] - ] - } -]
\ No newline at end of file + { + "id": "4c12a5c8.90ab7c", + "name": "DGSTART", + "outputs": 1, + "type": "dgstart", + "wires": [ + [ + "3f8e186b.788b58" + ] + ], + "x": 179, + "y": 322, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "3f8e186b.788b58", + "module": "APPC", + "name": "APPC 2.0.0", + "outputs": 1, + "type": "service-logic", + "version": "2.0.0", + "wires": [ + [ + "e2b2f3.05197d1" + ] + ], + "x": 362.0001220703125, + "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'>", + "y": 322.5666809082031, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "e2b2f3.05197d1", + "name": "VM_Start", + "outputs": 1, + "type": "method", + "wires": [ + [ + "9c797c4b.fc3f8" + ] + ], + "x": 311.75006103515625, + "xml": "<method rpc='VM_Start' mode='sync'>\n", + "y": 406.816650390625, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "9c797c4b.fc3f8", + "name": "Start", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "8ec37e81.db48b", + "6a2f0d5b.f084e4" + ] + ], + "x": 496, + "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='startServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$identity-url`\" />", + "y": 406, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "6a2f0d5b.f084e4", + "name": "success", + "outputs": 1, + "type": "success", + "wires": [ + [ + "51fd4bef.090064" + ] + ], + "x": 675.9735107421875, + "xml": "<outcome value='success'>\n", + "y": 407.2143859863281, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "8ec37e81.db48b", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "8ccb55ea.a7c328" + ] + ], + "x": 670.6187744140625, + "xml": "<outcome value='failure'>\n", + "y": 633.14306640625, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "51fd4bef.090064", + "name": "STATUS", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "8e71a1ab.2673b", + "9153a9b0.79c868" + ] + ], + "x": 823, + "xml": "<switch test='`$START_STATUS`'>\n", + "y": 407.0000305175781, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "8e71a1ab.2673b", + "name": "SUCCESS", + "outputs": 1, + "type": "other", + "wires": [ + [ + "218c4c31.746404" + ] + ], + "x": 997.7144775390625, + "xml": "<outcome value='SUCCESS'>\n", + "y": 405.4286193847656, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "9153a9b0.79c868", + "name": "ERROR", + "outputs": 1, + "type": "other", + "wires": [ + [ + "d6c921e6.f062f" + ] + ], + "x": 998.28564453125, + "xml": "<outcome value='ERROR'>\n", + "y": 474.71435546875, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "91055b26.4540f8", + "name": "return success", + "type": "returnSuccess", + "wires": [], + "x": 1355.6666259765625, + "xml": "<return status='success'>", + "y": 452, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "be1d8c86.5510c", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1364.8734130859375, + "xml": "<return status='failure'>\n", + "y": 680.4286499023438, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "55a5d83c.b56328", + "name": "set success code and message", + "type": "set", + "wires": [], + "x": 1404, + "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n", + "y": 408, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "11e66810.229818", + "name": "set error code and message", + "type": "set", + "wires": [], + "x": 1117, + "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM failed' />\n", + "y": 602, + "z": "3b333f3b.e62d" + }, + { + "comments": "", + "id": "18420693.2d9f89", + "name": "set error code and message", + "type": "set", + "wires": [], + "x": 1398, + "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Start VM status is error' />\n", + "y": 507, + "z": "3b333f3b.e62d" + }, + { + "atomic": "true", + "comments": "", + "id": "218c4c31.746404", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "55a5d83c.b56328", + "91055b26.4540f8" + ] + ], + "x": 1161, + "xml": "<block atomic='true'>", + "y": 407, + "z": "3b333f3b.e62d" + }, + { + "atomic": "true", + "comments": "", + "id": "d6c921e6.f062f", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "18420693.2d9f89", + "be1d8c86.5510c" + ] + ], + "x": 1154, + "xml": "<block atomic='true'>", + "y": 475, + "z": "3b333f3b.e62d" + }, + { + "atomic": "true", + "comments": "", + "id": "8ccb55ea.a7c328", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "11e66810.229818", + "be1d8c86.5510c" + ] + ], + "x": 873, + "xml": "<block atomic='true'>", + "y": 639, + "z": "3b333f3b.e62d" + } +] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json index b66fdb3f6..5a3ff7c10 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_VM_Stop.json @@ -1,257 +1,257 @@ [ - { - "id": "a36507bd.9411a8", - "type": "dgstart", - "name": "DGSTART", - "outputs": 1, - "x": 129, - "y": 66, - "z": "602aa70d.a192e8", - "wires": [ - [ - "c156b4fa.66d0a8" - ] - ] - }, - { - "id": "c156b4fa.66d0a8", - "type": "service-logic", - "name": "APPC 2.0.0", - "module": "APPC", - "version": "2.0.0", - "comments": "", - "xml": "<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.0'>", - "outputs": 1, - "x": 306.0000915527344, - "y": 65.5666732788086, - "z": "602aa70d.a192e8", - "wires": [ - [ - "6c3d7cf.b631784" - ] - ] - }, - { - "id": "6c3d7cf.b631784", - "type": "method", - "name": "VM_Stop", - "xml": "<method rpc='VM_Stop' mode='sync'>\n", - "comments": "", - "outputs": 1, - "x": 248.46435165405273, - "y": 157.3880786895752, - "z": "602aa70d.a192e8", - "wires": [ - [ - "8896d091.49bc2" - ] - ] - }, - { - "id": "8896d091.49bc2", - "type": "execute", - "name": "Stop", - "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$identity-url`\" />\n", - "comments": "", - "outputs": 1, - "x": 409, - "y": 158.50000762939453, - "z": "602aa70d.a192e8", - "wires": [ - [ - "985b942b.ec64e8", - "34939973.cf1fd6" - ] - ] - }, - { - "id": "34939973.cf1fd6", - "type": "success", - "name": "success", - "xml": "<outcome value='success'>\n", - "comments": "", - "outputs": 1, - "x": 582.1170654296875, - "y": 159.4286117553711, - "z": "602aa70d.a192e8", - "wires": [ - [ - "f35d3b53.86e768" - ] - ] - }, - { - "id": "f35d3b53.86e768", - "type": "switchNode", - "name": "switch STATUS", - "xml": "<switch test='`$STOP_STATUS`'>\n", - "comments": "", - "outputs": 1, - "x": 764.9102783203125, - "y": 158.98406219482422, - "z": "602aa70d.a192e8", - "wires": [ - [ - "885dbd51.87507", - "10f2aa34.ea80d6" - ] - ] - }, - { - "id": "985b942b.ec64e8", - "type": "failure", - "name": "failure", - "xml": "<outcome value='failure'>\n", - "comments": "", - "outputs": 1, - "x": 589.9047241210938, - "y": 342.07161712646484, - "z": "602aa70d.a192e8", - "wires": [ - [ - "28dfcdd7.ba3e32" - ] - ] - }, - { - "id": "9d1c57f6.77ce08", - "type": "returnFailure", - "name": "return failure", - "xml": "<return status='failure'>\n", - "comments": "", - "x": 1315, - "y": 408.7500228881836, - "z": "602aa70d.a192e8", - "wires": [] - }, - { - "id": "885dbd51.87507", - "type": "success", - "name": "SUCCESS", - "xml": "<outcome value='SUCCESS'>\n", - "comments": "", - "outputs": 1, - "x": 958.5, - "y": 133.5, - "z": "602aa70d.a192e8", - "wires": [ - [ - "8b1c6f1d.bf4c" - ] - ] - }, - { - "id": "10f2aa34.ea80d6", - "type": "other", - "name": "ERROR", - "xml": "<outcome value='ERROR'>\n", - "comments": "", - "outputs": 1, - "x": 947.5713500976562, - "y": 205.0000457763672, - "z": "602aa70d.a192e8", - "wires": [ - [ - "149167fb.227158" - ] - ] - }, - { - "id": "ec5b4ab9.b62488", - "type": "set", - "name": "set success code and message", - "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n", - "comments": "", - "x": 1361, - "y": 109.5666732788086, - "z": "602aa70d.a192e8", - "wires": [] - }, - { - "id": "fdfee58d.d86908", - "type": "returnSuccess", - "name": "return success", - "xml": "<return status='success'>\n", - "comments": "", - "x": 1316, - "y": 173.56666564941406, - "z": "602aa70d.a192e8", - "wires": [] - }, - { - "id": "149167fb.227158", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 1119, - "y": 214.56666564941406, - "z": "602aa70d.a192e8", - "wires": [ - [ - "32f7f639.b0517a", - "9d1c57f6.77ce08" - ] - ] - }, - { - "id": "28dfcdd7.ba3e32", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>", - "atomic": "true", - "comments": "", - "outputs": 1, - "x": 765, - "y": 341.5666732788086, - "z": "602aa70d.a192e8", - "wires": [ - [ - "dcf150a2.8fa62", - "9d1c57f6.77ce08" - ] - ] - }, - { - "id": "32f7f639.b0517a", - "type": "set", - "name": "set error code and message", - "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n", - "comments": "", - "x": 1345, - "y": 241.5666732788086, - "z": "602aa70d.a192e8", - "wires": [] - }, - { - "id": "dcf150a2.8fa62", - "type": "set", - "name": "set error code and message", - "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n", - "comments": "", - "x": 1056, - "y": 309.5666732788086, - "z": "602aa70d.a192e8", - "wires": [] - }, - { - "id": "8b1c6f1d.bf4c", - "type": "block", - "name": "block : atomic", - "xml": "<block atomic='true'>\n", - "atomic": "false", - "comments": "", - "outputs": 1, - "x": 1120, - "y": 142, - "z": "602aa70d.a192e8", - "wires": [ - [ - "ec5b4ab9.b62488", - "fdfee58d.d86908" - ] - ] - } -]
\ No newline at end of file + { + "id": "a36507bd.9411a8", + "name": "DGSTART", + "outputs": 1, + "type": "dgstart", + "wires": [ + [ + "c156b4fa.66d0a8" + ] + ], + "x": 129, + "y": 66, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "c156b4fa.66d0a8", + "module": "APPC", + "name": "APPC 2.0.0", + "outputs": 1, + "type": "service-logic", + "version": "2.0.0", + "wires": [ + [ + "6c3d7cf.b631784" + ] + ], + "x": 306.0000915527344, + "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'>", + "y": 65.5666732788086, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "6c3d7cf.b631784", + "name": "VM_Stop", + "outputs": 1, + "type": "method", + "wires": [ + [ + "8896d091.49bc2" + ] + ], + "x": 248.46435165405273, + "xml": "<method rpc='VM_Stop' mode='sync'>\n", + "y": 157.3880786895752, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "8896d091.49bc2", + "name": "Stop", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "985b942b.ec64e8", + "34939973.cf1fd6" + ] + ], + "x": 409, + "xml": "<execute plugin='org.openecomp.appc.adapter.iaas.ProviderAdapter' method='stopServer'>\n<parameter name=\"org.openecomp.appc.provider.name\" value=\"OpenStack\"/>\n<parameter name=\"org.openecomp.appc.instance.url\" value=\"`$vm-id`\" />\n<parameter name=\"org.openecomp.appc.identity.url\" value=\"`$identity-url`\" />\n", + "y": 158.50000762939453, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "34939973.cf1fd6", + "name": "success", + "outputs": 1, + "type": "success", + "wires": [ + [ + "f35d3b53.86e768" + ] + ], + "x": 582.1170654296875, + "xml": "<outcome value='success'>\n", + "y": 159.4286117553711, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "f35d3b53.86e768", + "name": "switch STATUS", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "885dbd51.87507", + "10f2aa34.ea80d6" + ] + ], + "x": 764.9102783203125, + "xml": "<switch test='`$STOP_STATUS`'>\n", + "y": 158.98406219482422, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "985b942b.ec64e8", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "28dfcdd7.ba3e32" + ] + ], + "x": 589.9047241210938, + "xml": "<outcome value='failure'>\n", + "y": 342.07161712646484, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "9d1c57f6.77ce08", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1315, + "xml": "<return status='failure'>\n", + "y": 408.7500228881836, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "885dbd51.87507", + "name": "SUCCESS", + "outputs": 1, + "type": "success", + "wires": [ + [ + "8b1c6f1d.bf4c" + ] + ], + "x": 958.5, + "xml": "<outcome value='SUCCESS'>\n", + "y": 133.5, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "10f2aa34.ea80d6", + "name": "ERROR", + "outputs": 1, + "type": "other", + "wires": [ + [ + "149167fb.227158" + ] + ], + "x": 947.5713500976562, + "xml": "<outcome value='ERROR'>\n", + "y": 205.0000457763672, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "ec5b4ab9.b62488", + "name": "set success code and message", + "type": "set", + "wires": [], + "x": 1361, + "xml": "<set>\n<parameter name='error-code' value='400' />\n<parameter name='error-message' value='Success' />\n", + "y": 109.5666732788086, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "fdfee58d.d86908", + "name": "return success", + "type": "returnSuccess", + "wires": [], + "x": 1316, + "xml": "<return status='success'>\n", + "y": 173.56666564941406, + "z": "602aa70d.a192e8" + }, + { + "atomic": "true", + "comments": "", + "id": "149167fb.227158", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "32f7f639.b0517a", + "9d1c57f6.77ce08" + ] + ], + "x": 1119, + "xml": "<block atomic='true'>", + "y": 214.56666564941406, + "z": "602aa70d.a192e8" + }, + { + "atomic": "true", + "comments": "", + "id": "28dfcdd7.ba3e32", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "dcf150a2.8fa62", + "9d1c57f6.77ce08" + ] + ], + "x": 765, + "xml": "<block atomic='true'>", + "y": 341.5666732788086, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "32f7f639.b0517a", + "name": "set error code and message", + "type": "set", + "wires": [], + "x": 1345, + "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM status is error' />\n", + "y": 241.5666732788086, + "z": "602aa70d.a192e8" + }, + { + "comments": "", + "id": "dcf150a2.8fa62", + "name": "set error code and message", + "type": "set", + "wires": [], + "x": 1056, + "xml": "<set>\n<parameter name='error-code' value='401' />\n<parameter name='error-message' value='Stop VM failed' />\n", + "y": 309.5666732788086, + "z": "602aa70d.a192e8" + }, + { + "atomic": "false", + "comments": "", + "id": "8b1c6f1d.bf4c", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "ec5b4ab9.b62488", + "fdfee58d.d86908" + ] + ], + "x": 1120, + "xml": "<block atomic='true'>\n", + "y": 142, + "z": "602aa70d.a192e8" + } +] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_loadTeamplate.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_loadTeamplate.json index 48b1df1a7..83ba4e65d 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_loadTeamplate.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_loadTeamplate.json @@ -1,21 +1,546 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP : APP-C - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -[{"id":"8a734c47.1723c","type":"switchNode","name":"switch configuration.configuration-string","xml":"<switch test='`$block_configuration.configuration-string`'>\n","comments":"","outputs":1,"x":354,"y":288,"z":"1e8e0db6.7d4d12","wires":[["c8ed4e80.c1e15","afcf1c9f.7013b"]]},{"id":"17d29498.a5c0ab","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":791.9999923706055,"y":270.49999046325684,"z":"1e8e0db6.7d4d12","wires":[[]]},{"id":"c8ed4e80.c1e15","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":627.9999923706055,"y":310.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["70cd567f.e08958"]]},{"id":"70cd567f.e08958","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":800.9999923706055,"y":309.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["a0f3ae02.cc3fc"]]},{"id":"a0f3ae02.cc3fc","type":"set","name":"set configuration","xml":"<set>\n<parameter name='configuration' value='`$block_configuration.configuration-string`' />\n","comments":"","x":973.9999923706055,"y":310.49999046325684,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"e92ebc2.c77764","type":"comment","name":"CLI/XML","info":"","comments":"","x":1143.9999923706055,"y":287.49999046325684,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"9f19e98d.ef3a08","type":"switchNode","name":"switch configuration.configuration-json","xml":"<switch test='`$block_configuration.configuration-json`'>\n","comments":"","outputs":1,"x":334.49999237060547,"y":363.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["da9c7e5c.d969d","5b4a2e9f.a0e1c"]]},{"id":"da9c7e5c.d969d","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":618.4999923706055,"y":407.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["81a5922d.d1697"]]},{"id":"890a9568.ab8478","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":794.4999923706055,"y":365.49999046325684,"z":"1e8e0db6.7d4d12","wires":[[]]},{"id":"81a5922d.d1697","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":791.4999923706055,"y":404.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["df609a35.996668"]]},{"id":"df609a35.996668","type":"set","name":"set configuration","xml":"<set>\n<parameter name='configuration' value='`$block_configuration.configuration-json`' />\n","comments":"","x":964.4999923706055,"y":404.49999046325684,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"35ca0cd5.ff4b24","type":"comment","name":"JSON","info":"","comments":"","x":1119.9999923706055,"y":401.49999046325684,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"8cadc66e.8c2928","type":"switchNode","name":"switch template-name","xml":"<switch test='`$template-name`'>\n","comments":"","outputs":1,"x":324,"y":209.99999809265137,"z":"1e8e0db6.7d4d12","wires":[["8c74334f.a12cd","9098550c.520648"]]},{"id":"8c74334f.a12cd","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":544.9999923706055,"y":176.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["1e8340f1.e284ef"]]},{"id":"9098550c.520648","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":549.9999923706055,"y":218.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["a871d64a.f62008"]]},{"id":"a871d64a.f62008","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":722.9999923706055,"y":215.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["e962b510.094fe8"]]},{"id":"e962b510.094fe8","type":"set","name":"set config-type","xml":"<set>\n<parameter name='config-type' value='template' />\n","comments":"","x":894.9999923706055,"y":217.49999046325684,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"a0b81149.4795d","type":"switchNode","name":"switch configuration","xml":"<switch test='`$configuration`'>\n","comments":"","outputs":1,"x":300.99999237060547,"y":453.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["943cf1ce.98525","cdc3e844.a7c458"]]},{"id":"943cf1ce.98525","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":402.99999237060547,"y":540.4999904632568,"z":"1e8e0db6.7d4d12","wires":[["a19a2b30.148618"]]},{"id":"43d7a3.9a55285c","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":704.9999923706055,"y":466.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["6d3d4815.8d0ec8"]]},{"id":"6795360d.03fc98","type":"set","name":"set config-type","xml":"<set>\n<parameter name='config-type' value='template' />\n","comments":"","x":1184.9999923706055,"y":555.4999904632568,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"6d3d4815.8d0ec8","type":"switchNode","name":"switch Configuration params exists","xml":"<switch test='`$configuration-params`'>\n","comments":"","outputs":1,"x":928.666633605957,"y":466.50000190734863,"z":"1e8e0db6.7d4d12","wires":[["4aa0db36.34f564","4e107546.e832ec"]]},{"id":"4aa0db36.34f564","type":"success","name":"outcome: Other","xml":"<outcome value=\"Other\">","comments":"","outputs":1,"x":865.9999923706055,"y":553.4999904632568,"z":"1e8e0db6.7d4d12","wires":[["808f193e.7004c8"]]},{"id":"808f193e.7004c8","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1029.9999923706055,"y":555.4999904632568,"z":"1e8e0db6.7d4d12","wires":[["6795360d.03fc98"]]},{"id":"2a881c0c.cfc134","type":"comment","name":"Specific Template","info":"","comments":"","x":1085.9999923706055,"y":209.49999046325684,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"1e8340f1.e284ef","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":731.9999923706055,"y":155.49999046325684,"z":"1e8e0db6.7d4d12","wires":[[]]},{"id":"a19a2b30.148618","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":561.9999923706055,"y":543.4999904632568,"z":"1e8e0db6.7d4d12","wires":[[]]},{"id":"afcf1c9f.7013b","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":629.9999923706055,"y":266.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["17d29498.a5c0ab"]]},{"id":"5b4a2e9f.a0e1c","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":622.9999923706055,"y":358.49999046325684,"z":"1e8e0db6.7d4d12","wires":[["890a9568.ab8478"]]},{"id":"cdc3e844.a7c458","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":531.6666641235352,"y":459.8333339691162,"z":"1e8e0db6.7d4d12","wires":[["43d7a3.9a55285c"]]},{"id":"4e107546.e832ec","type":"success","name":"outcome: null","xml":"<outcome value=''>","comments":"","outputs":1,"x":1207.9999923706055,"y":456.49999046325684,"z":"1e8e0db6.7d4d12","wires":[[]]},{"id":"6c17615f.a5824","type":"comment","name":"Search template from the input request","info":"","comments":"","x":355.66661834716797,"y":131.83327293395996,"z":"1e8e0db6.7d4d12","wires":[]},{"id":"d4d3f195.d6269","type":"dgstart","name":"DGSTART","outputs":1,"x":124,"y":65,"z":"1e8e0db6.7d4d12","wires":[["32e28f93.3cb14"]]},{"id":"32e28f93.3cb14","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>","outputs":1,"x":269.4285583496094,"y":64,"z":"1e8e0db6.7d4d12","wires":[["12244989.1a1e56"]]},{"id":"12244989.1a1e56","type":"method","name":"method loadTeamplate","xml":"<method rpc='loadTeamplate' mode='sync'>\n","comments":"","outputs":1,"x":472.72618103027344,"y":63.5,"z":"1e8e0db6.7d4d12","wires":[["88db856e.7f2968"]]},{"id":"88db856e.7f2968","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":98.8809814453125,"y":190.03570556640625,"z":"1e8e0db6.7d4d12","wires":[["8cadc66e.8c2928","8a734c47.1723c","9f19e98d.ef3a08","a0b81149.4795d"]]}] +[ + { + "comments": "", + "id": "8a734c47.1723c", + "name": "switch configuration.configuration-string", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "c8ed4e80.c1e15", + "afcf1c9f.7013b" + ] + ], + "x": 354, + "xml": "<switch test='`$block_configuration.configuration-string`'>\n", + "y": 288, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "17d29498.a5c0ab", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 791.9999923706055, + "xml": "<block>\n", + "y": 270.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "c8ed4e80.c1e15", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "70cd567f.e08958" + ] + ], + "x": 627.9999923706055, + "xml": "<outcome value=\"Other\">", + "y": 310.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "70cd567f.e08958", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "a0f3ae02.cc3fc" + ] + ], + "x": 800.9999923706055, + "xml": "<block>\n", + "y": 309.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "a0f3ae02.cc3fc", + "name": "set configuration", + "type": "set", + "wires": [], + "x": 973.9999923706055, + "xml": "<set>\n<parameter name='configuration' value='`$block_configuration.configuration-string`' />\n", + "y": 310.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "e92ebc2.c77764", + "info": "", + "name": "CLI/XML", + "type": "comment", + "wires": [], + "x": 1143.9999923706055, + "y": 287.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "9f19e98d.ef3a08", + "name": "switch configuration.configuration-json", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "da9c7e5c.d969d", + "5b4a2e9f.a0e1c" + ] + ], + "x": 334.49999237060547, + "xml": "<switch test='`$block_configuration.configuration-json`'>\n", + "y": 363.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "da9c7e5c.d969d", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "81a5922d.d1697" + ] + ], + "x": 618.4999923706055, + "xml": "<outcome value=\"Other\">", + "y": 407.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "890a9568.ab8478", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 794.4999923706055, + "xml": "<block>\n", + "y": 365.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "81a5922d.d1697", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "df609a35.996668" + ] + ], + "x": 791.4999923706055, + "xml": "<block>\n", + "y": 404.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "df609a35.996668", + "name": "set configuration", + "type": "set", + "wires": [], + "x": 964.4999923706055, + "xml": "<set>\n<parameter name='configuration' value='`$block_configuration.configuration-json`' />\n", + "y": 404.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "35ca0cd5.ff4b24", + "info": "", + "name": "JSON", + "type": "comment", + "wires": [], + "x": 1119.9999923706055, + "y": 401.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "8cadc66e.8c2928", + "name": "switch template-name", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "8c74334f.a12cd", + "9098550c.520648" + ] + ], + "x": 324, + "xml": "<switch test='`$template-name`'>\n", + "y": 209.99999809265137, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "8c74334f.a12cd", + "name": "outcome: null", + "outputs": 1, + "type": "success", + "wires": [ + [ + "1e8340f1.e284ef" + ] + ], + "x": 544.9999923706055, + "xml": "<outcome value=''>", + "y": 176.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "9098550c.520648", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "a871d64a.f62008" + ] + ], + "x": 549.9999923706055, + "xml": "<outcome value=\"Other\">", + "y": 218.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "a871d64a.f62008", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "e962b510.094fe8" + ] + ], + "x": 722.9999923706055, + "xml": "<block>\n", + "y": 215.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "e962b510.094fe8", + "name": "set config-type", + "type": "set", + "wires": [], + "x": 894.9999923706055, + "xml": "<set>\n<parameter name='config-type' value='template' />\n", + "y": 217.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "a0b81149.4795d", + "name": "switch configuration", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "943cf1ce.98525", + "cdc3e844.a7c458" + ] + ], + "x": 300.99999237060547, + "xml": "<switch test='`$configuration`'>\n", + "y": 453.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "943cf1ce.98525", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "a19a2b30.148618" + ] + ], + "x": 402.99999237060547, + "xml": "<outcome value=\"Other\">", + "y": 540.4999904632568, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "43d7a3.9a55285c", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "6d3d4815.8d0ec8" + ] + ], + "x": 704.9999923706055, + "xml": "<block>\n", + "y": 466.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "6795360d.03fc98", + "name": "set config-type", + "type": "set", + "wires": [], + "x": 1184.9999923706055, + "xml": "<set>\n<parameter name='config-type' value='template' />\n", + "y": 555.4999904632568, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "6d3d4815.8d0ec8", + "name": "switch Configuration params exists", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "4aa0db36.34f564", + "4e107546.e832ec" + ] + ], + "x": 928.666633605957, + "xml": "<switch test='`$configuration-params`'>\n", + "y": 466.50000190734863, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "4aa0db36.34f564", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "808f193e.7004c8" + ] + ], + "x": 865.9999923706055, + "xml": "<outcome value=\"Other\">", + "y": 553.4999904632568, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "808f193e.7004c8", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "6795360d.03fc98" + ] + ], + "x": 1029.9999923706055, + "xml": "<block>\n", + "y": 555.4999904632568, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "2a881c0c.cfc134", + "info": "", + "name": "Specific Template", + "type": "comment", + "wires": [], + "x": 1085.9999923706055, + "y": 209.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "1e8340f1.e284ef", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 731.9999923706055, + "xml": "<block>\n", + "y": 155.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "false", + "comments": "", + "id": "a19a2b30.148618", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 561.9999923706055, + "xml": "<block>\n", + "y": 543.4999904632568, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "afcf1c9f.7013b", + "name": "outcome: null", + "outputs": 1, + "type": "success", + "wires": [ + [ + "17d29498.a5c0ab" + ] + ], + "x": 629.9999923706055, + "xml": "<outcome value=''>", + "y": 266.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "5b4a2e9f.a0e1c", + "name": "outcome: null", + "outputs": 1, + "type": "success", + "wires": [ + [ + "890a9568.ab8478" + ] + ], + "x": 622.9999923706055, + "xml": "<outcome value=''>", + "y": 358.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "cdc3e844.a7c458", + "name": "outcome: null", + "outputs": 1, + "type": "success", + "wires": [ + [ + "43d7a3.9a55285c" + ] + ], + "x": 531.6666641235352, + "xml": "<outcome value=''>", + "y": 459.8333339691162, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "4e107546.e832ec", + "name": "outcome: null", + "outputs": 1, + "type": "success", + "wires": [ + [] + ], + "x": 1207.9999923706055, + "xml": "<outcome value=''>", + "y": 456.49999046325684, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "6c17615f.a5824", + "info": "", + "name": "Search template from the input request", + "type": "comment", + "wires": [], + "x": 355.66661834716797, + "y": 131.83327293395996, + "z": "1e8e0db6.7d4d12" + }, + { + "id": "d4d3f195.d6269", + "name": "DGSTART", + "outputs": 1, + "type": "dgstart", + "wires": [ + [ + "32e28f93.3cb14" + ] + ], + "x": 124, + "y": 65, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "32e28f93.3cb14", + "module": "APPC", + "name": "APPC 4.0.0", + "outputs": 1, + "type": "service-logic", + "version": "4.0.0", + "wires": [ + [ + "12244989.1a1e56" + ] + ], + "x": 269.4285583496094, + "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": 64, + "z": "1e8e0db6.7d4d12" + }, + { + "comments": "", + "id": "12244989.1a1e56", + "name": "method loadTeamplate", + "outputs": 1, + "type": "method", + "wires": [ + [ + "88db856e.7f2968" + ] + ], + "x": 472.72618103027344, + "xml": "<method rpc='loadTeamplate' mode='sync'>\n", + "y": 63.5, + "z": "1e8e0db6.7d4d12" + }, + { + "atomic": "true", + "comments": "", + "id": "88db856e.7f2968", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "8cadc66e.8c2928", + "8a734c47.1723c", + "9f19e98d.ef3a08", + "a0b81149.4795d" + ] + ], + "x": 98.8809814453125, + "xml": "<block atomic=\"true\">", + "y": 190.03570556640625, + "z": "1e8e0db6.7d4d12" + } +] diff --git a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_setInputParams.json b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_setInputParams.json index eeace8e82..0020f031c 100644 --- a/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_setInputParams.json +++ b/appc-directed-graph/appc-dgraph/provider/src/main/resources/json/APPC/APPC_setInputParams.json @@ -1,21 +1,1338 @@ -/*- - * ============LICENSE_START======================================================= - * ONAP : APP-C - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - -[{"id":"c5f27e6b.6555","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.openecomp.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"SetInputData action complete\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n","comments":"","outputs":1,"x":331.25,"y":897.1666736602783,"z":"5ad64f3a.c3774","wires":[["9a41a79f.2a2b38"]]},{"id":"9a41a79f.2a2b38","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":584.0000114440918,"y":900.0833206176758,"z":"5ad64f3a.c3774","wires":[["be9673a6.ce4fd"]]},{"id":"be9673a6.ce4fd","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":802.333309173584,"y":900.5833616256714,"z":"5ad64f3a.c3774","wires":[[]]},{"id":"4a7685a5.000f1c","type":"dgstart","name":"DGSTART","outputs":1,"x":99.63886260986328,"y":21.222224235534668,"z":"5ad64f3a.c3774","wires":[["973925de.552808"]]},{"id":"973925de.552808","type":"service-logic","name":"APPC 4.0.0","module":"APPC","version":"4.0.0","comments":"","xml":"<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='4.0.0'>","outputs":1,"x":269.5118751525879,"y":25.500001907348633,"z":"5ad64f3a.c3774","wires":[["41b485e7.20eb5c"]]},{"id":"41b485e7.20eb5c","type":"method","name":"method setInputParams","xml":"<method rpc='setInputParams' mode='sync'>\n","comments":"","outputs":1,"x":513.9206161499023,"y":25.55555534362793,"z":"5ad64f3a.c3774","wires":[["a74c0e05.af52e"]]},{"id":"a74c0e05.af52e","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":165.46427154541016,"y":113.95236778259277,"z":"5ad64f3a.c3774","wires":[["c5f27e6b.6555","f65ded23.e6749","641ea02d.4b382","d1e77579.e7ab88","4df171f3.7b5ed","47641fcb.2cbbc","499cc381.43b7ac","581c65dc.66c40c","960e0153.19089","df9c11ec.844bb","c3fc55e7.85ef98","d62b8ebb.ff133","e5a060ba.6726c"]]},{"id":"f65ded23.e6749","type":"set","name":"set params based on Dispatcher Input","xml":"<set>\n<parameter name='vnf-id' value='`$input.action-identifiers.vnf-id`' /> \n<parameter name='service-instance-id' value='`$input.action-identifiers.service-instance-id`' />\n<parameter name='vserver-id' value='`$input.action-identifiers.vserver-id`' />\n<parameter name='vf-module-id' value='`$input.action-identifiers.vf-module-id`' />\n<parameter name='vnfc-name' value='`$input.action-identifiers.vnfc-name`' />\n\n<parameter name='request-id' value='`$input.common-header.request-id`' />\n<parameter name='originator-id' value='`$input.common-header.originator-id`' /> \n\n<parameter name='payload' value='`$input.payload`' /> \n<parameter name='api-ver' value='`$input.api-ver`' /> \n<parameter name='request-action' value='`$input.action`' />\n","comments":"","x":738.6943969726562,"y":66.63888549804688,"z":"5ad64f3a.c3774","wires":[]},{"id":"4df171f3.7b5ed","type":"execute","name":"execute Convert payload to DG Context ","xml":"<execute plugin=\"org.openecomp.sdnc.config.generator.convert.ConvertNode\" method=\"convertJson2DGContext\">\n<parameter name=\"jsonData\" value=\"`$input.payload`\" />\n<parameter name=\"isEscaped\" value=\"N\" />\n<parameter name=\"blockKeys\" value=\"configuration-parameters,configuration.configuration-string,configuration.configuration-json\" />\n<parameter name=\"responsePrefix\" value=\"tmp.convertnode\" />","comments":"","outputs":1,"x":537.4167098999023,"y":183.0555534362793,"z":"5ad64f3a.c3774","wires":[["13057386.cb05bc","705bb0fd.6235a"]]},{"id":"13057386.cb05bc","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":860.2222290039062,"y":156.1388931274414,"z":"5ad64f3a.c3774","wires":[["58736a12.c8a834"]]},{"id":"705bb0fd.6235a","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":862.9166793823242,"y":202.52777481079102,"z":"5ad64f3a.c3774","wires":[["31c8328a.24f9ee"]]},{"id":"58736a12.c8a834","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1060.5833358764648,"y":156.50000190734863,"z":"5ad64f3a.c3774","wires":[["f52e91c9.0c54f"]]},{"id":"31c8328a.24f9ee","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1054.8333358764648,"y":204.50000286102295,"z":"5ad64f3a.c3774","wires":[["8778642b.6f0a08"]]},{"id":"f52e91c9.0c54f","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.convertnode.error-message`\"/>\n\t\n\t","comments":"","x":1245.333339691162,"y":156.75000190734863,"z":"5ad64f3a.c3774","wires":[]},{"id":"8778642b.6f0a08","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 process input parameters\"/>\n\t","comments":"","x":1248.083339691162,"y":206.25000381469727,"z":"5ad64f3a.c3774","wires":[]},{"id":"d1e77579.e7ab88","type":"execute","name":"execute saveTxLog","xml":"<execute plugin=\"org.openecomp.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"request\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n","comments":"","outputs":1,"x":574.3333206176758,"y":137.75000190734863,"z":"5ad64f3a.c3774","wires":[["dd212aaa.c08fd8"]]},{"id":"641ea02d.4b382","type":"set","name":"set tmp.message","xml":"<set>\n<parameter name=\"tmp.message\" value=\"`$vnf-id + ' : ' + $request-action + ': ' + $payload`\" />\n","comments":"","x":672.2777709960938,"y":99.8888931274414,"z":"5ad64f3a.c3774","wires":[]},{"id":"dd212aaa.c08fd8","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":981.0833129882812,"y":94.25,"z":"5ad64f3a.c3774","wires":[["6f36ee18.a34f3"]]},{"id":"6f36ee18.a34f3","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1138.0833129882812,"y":91.25,"z":"5ad64f3a.c3774","wires":[[]]},{"id":"46672893.29be28","type":"call","name":"call: GetAaiInfo","xml":"<call module=\"APPC\" rpc=\"GetAaiInfo\" mode=\"sync\">","comments":"","outputs":1,"x":825.8888626098633,"y":619.5833129882812,"z":"5ad64f3a.c3774","wires":[["d3c47a04.b4c318","44eb99ad.384d38"]]},{"id":"d3c47a04.b4c318","type":"not-found","name":"not-found","xml":"<outcome value='not-found'>\n","comments":"","outputs":1,"x":1110.5554885864258,"y":592.1666870117188,"z":"5ad64f3a.c3774","wires":[["1588264f.0dbc0a"]]},{"id":"1588264f.0dbc0a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":1291.4999465942383,"y":615.8333740234375,"z":"5ad64f3a.c3774","wires":[["911166e0.3593c8"]]},{"id":"911166e0.3593c8","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n\t","comments":"","x":1457.9165725708008,"y":616.3333129882812,"z":"5ad64f3a.c3774","wires":[]},{"id":"44eb99ad.384d38","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1104.4445266723633,"y":637.6943969726562,"z":"5ad64f3a.c3774","wires":[["1588264f.0dbc0a"]]},{"id":"47641fcb.2cbbc","type":"switchNode","name":"switch isTemplateDriven.TEMPLATE","xml":"<switch test='`$isTemplateDriven.TEMPLATE`'>\n","comments":"","outputs":1,"x":422.2499771118164,"y":810.8333377838135,"z":"5ad64f3a.c3774","wires":[["9a6ca9b5.a5f1b8","3e178fb8.db00e"]]},{"id":"9a6ca9b5.a5f1b8","type":"success","name":"outcome: YES","xml":"<outcome value=\"YES\">","comments":"","outputs":1,"x":757.174617767334,"y":780.8134269714355,"z":"5ad64f3a.c3774","wires":[["90c3ac2d.01d09"]]},{"id":"3e178fb8.db00e","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":758.9127349853516,"y":838.9563655853271,"z":"5ad64f3a.c3774","wires":[["93a44588.d50728"]]},{"id":"90c3ac2d.01d09","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":992.8015785217285,"y":787.0793762207031,"z":"5ad64f3a.c3774","wires":[["814dc33.55b844"]]},{"id":"93a44588.d50728","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1022.8889465332031,"y":838.0278367996216,"z":"5ad64f3a.c3774","wires":[[]]},{"id":"814dc33.55b844","type":"call","name":"call: loadTeamplate","xml":"<call module=\"APPC\" rpc=\"loadTeamplate\" mode=\"sync\">","comments":"","outputs":1,"x":1196.3889503479004,"y":787.1110744476318,"z":"5ad64f3a.c3774","wires":[["b351a17b.41869","bfe70fa5.66e08"]]},{"id":"b351a17b.41869","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1365.55562210083,"y":756.8611545562744,"z":"5ad64f3a.c3774","wires":[["33f219a0.9ce106"]]},{"id":"392a5ccd.227d44","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 load Template Information\"/>\n","comments":"","x":1759.3889694213867,"y":752.5277996063232,"z":"5ad64f3a.c3774","wires":[]},{"id":"33f219a0.9ce106","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":1542.5555877685547,"y":754.7777805328369,"z":"5ad64f3a.c3774","wires":[["392a5ccd.227d44"]]},{"id":"bfe70fa5.66e08","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1356.4722480773926,"y":869.4444408416748,"z":"5ad64f3a.c3774","wires":[["4782d66.0e30528"]]},{"id":"499cc381.43b7ac","type":"get-resource","name":"get-resource: APPC.action-level","xml":"<get-resource\n\tplugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT ACTION_LEVEL\n\t FROM ACTION_LEVEL_REFERENCE\n WHERE ACTION_IDENTIFIER = $action-identifier ;\"\n force='true'\n\tpfx='APPC.action-level'>\n","comments":"","outputs":1,"x":474.8333206176758,"y":472.4166946411133,"z":"5ad64f3a.c3774","wires":[["34c05249.d79afe","59f42bd7.3b8014"]]},{"id":"70c97dc2.b38574","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":945.5833206176758,"y":489.75000190734863,"z":"5ad64f3a.c3774","wires":[["f7860416.1a1108"]]},{"id":"f7860416.1a1108","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 retrieve Template Information from Reference table.\"/>\n\t","comments":"","x":1113.8333206176758,"y":487.50000190734863,"z":"5ad64f3a.c3774","wires":[]},{"id":"34c05249.d79afe","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":747.9999771118164,"y":487.3611030578613,"z":"5ad64f3a.c3774","wires":[["70c97dc2.b38574"]]},{"id":"4782d66.0e30528","type":"call","name":"call: MergeTemplateData","xml":"<call module=\"APPC\" rpc=\"MergeTemplateData\" mode=\"sync\">","comments":"","outputs":1,"x":1537.7499618530273,"y":866.2500057220459,"z":"5ad64f3a.c3774","wires":[["55d06171.b5739","fb63c6c3.f262a8"]]},{"id":"13067f71.cb0181","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1931.2619018554688,"y":825.8214569091797,"z":"5ad64f3a.c3774","wires":[["569e6b14.42c9e4"]]},{"id":"55d06171.b5739","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":1771.9047546386719,"y":826.5238094329834,"z":"5ad64f3a.c3774","wires":[["13067f71.cb0181"]]},{"id":"fb63c6c3.f262a8","type":"failure","name":"Other","xml":"<outcome value='Other'>\n","comments":"","outputs":1,"x":1775.5714225769043,"y":892.952399969101,"z":"5ad64f3a.c3774","wires":[["2603c6fc.c7658a"]]},{"id":"2603c6fc.c7658a","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1939.8571548461914,"y":892.523811340332,"z":"5ad64f3a.c3774","wires":[["7237869.f38ce78"]]},{"id":"7237869.f38ce78","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.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":2116.428653717041,"y":894.1428498625755,"z":"5ad64f3a.c3774","wires":[[]]},{"id":"10e21f94.2859d","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 and Data Information\"/>\n","comments":"","x":2312.250072479248,"y":822.7500057220459,"z":"5ad64f3a.c3774","wires":[]},{"id":"569e6b14.42c9e4","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">\n\n","atomic":"true","comments":"","outputs":1,"x":2124.166648864746,"y":824.1666307449341,"z":"5ad64f3a.c3774","wires":[["10e21f94.2859d"]]},{"id":"581c65dc.66c40c","type":"get-resource","name":"get-resource: isTemplateDriven","xml":"<get-resource\n\tplugin='org.openecomp.sdnc.sli.resource.sql.SqlResource' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE\n\t FROM PROTOCOL_REFERENCE\n WHERE ACTION = $input.action and VNF_TYPE = $vnf-type and ACTION_LEVEL= $action-level ;\"\n force='true'\n\tpfx='isTemplateDriven'>\n","comments":"","outputs":1,"x":423.4166488647461,"y":748.3333148956299,"z":"5ad64f3a.c3774","wires":[["236e23a7.75805c"]]},{"id":"b342a11f.4cb1a","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":962.4999847412109,"y":732.3333616256714,"z":"5ad64f3a.c3774","wires":[["e30e032f.dca54"]]},{"id":"e30e032f.dca54","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 retrieve Template Information from Reference table.\"/>\n\t","comments":"","x":1165.7499923706055,"y":726.7499666213989,"z":"5ad64f3a.c3774","wires":[]},{"id":"236e23a7.75805c","type":"failure","name":"failure","xml":"<outcome value='failure'>\n","comments":"","outputs":1,"x":751.5833129882812,"y":727.1666946411133,"z":"5ad64f3a.c3774","wires":[["b342a11f.4cb1a"]]},{"id":"960e0153.19089","type":"set","name":"set Payload params ","xml":"<set>\n<!-- vnf type, name is from A&AI \n<parameter name='vnf-type' value='`$tmp.vnfInfo.vnf.vnf-type`' />\n<parameter name='vnf-name' value='`$tmp.vnfInfo.vnf.vnf-name`' />\n-->\n<!-- 17.07 Parameters from request -->\n<parameter name='template-name' value='`$request-parameters.template-name`' />\n<parameter name='vnf-host-ip-address' value='`$request-parameters.vnf-host-ip-address`' />\n<parameter name='vnfc-type' value='`$request-parameters.vnfc-type`' /> \n<parameter name='vnf-type' value='`$request-parameters.vnf-type`' />\n<parameter name='vnf-name' value='`$request-parameters.vnf-name`' />\n\n<parameter name='configurationblock' value='`$block_configuration`' />\n\n\n<!-- parameters to be merged with template provided as input-->\n<parameter name='configuration-params' value='`$block_configuration-parameters`' /> \n\n\n\n<!--1702 VM/VNFC Parameters when passed from Request--> \n<parameter name='VNFCTYPE' value='`$request-parameters.vm[0].vnfc[0].vnfc-type`' />\n<parameter name=\"VMNAME0\" value=\"`$request-parameters.vm[0].vm-name`\"/>\n<parameter name=\"VNFCNAME0\" value=\"`$request-parameters.vm[0].vnfc[0].vnfc-name`\"/>\n<parameter name=\"VMLENGTH\" value=\"`$size_request-parameters.vm`\"/>\n<parameter name=\"VNFCLENGTH\" value=\"`$size_request-parameters.vm[0].vnfc`\"/>\n<parameter name=\"CONFIGTYPE\" value=\"`$config-type`\"/>\n\n\n<!-- Not Used?\n<parameter name='site-location' value='`$request-parameters.site-location`' />\n<parameter name='file-name' value='`$request-parameters.file-name`' />\n-->\n\n\n\n\n","comments":"","x":493.4722366333008,"y":224.08331775665283,"z":"5ad64f3a.c3774","wires":[]},{"id":"59f42bd7.3b8014","type":"success","name":"success","xml":"<outcome value='success'>\n","comments":"","outputs":1,"x":748.8611030578613,"y":545.3333215713501,"z":"5ad64f3a.c3774","wires":[["e0bb5945.ce9928"]]},{"id":"e0bb5945.ce9928","type":"set","name":"set action-level ","xml":"<set>\n<parameter name='action-level' value='`$APPC.action-level.ACTION-LEVEL`' />\n\n\n\n\n\n","comments":"","x":965.2777328491211,"y":548.3888630867004,"z":"5ad64f3a.c3774","wires":[]},{"id":"df9c11ec.844bb","type":"switchNode","name":"switch action-level","xml":"<switch test='`$action-level`'>\n","comments":"","outputs":1,"x":407.9999771118164,"y":592.9166965484619,"z":"5ad64f3a.c3774","wires":[["6eb262a7.6f6d0c","5a3d27a3.2b2d98"]]},{"id":"6eb262a7.6f6d0c","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":625.4166564941406,"y":619.3333377838135,"z":"5ad64f3a.c3774","wires":[["46672893.29be28"]]},{"id":"5a3d27a3.2b2d98","type":"success","name":"outcome: VM","xml":"<outcome value='VM'>","comments":"","outputs":1,"x":615.4166564941406,"y":682.0000276565552,"z":"5ad64f3a.c3774","wires":[["3e46fb5e.8e8fc4"]]},{"id":"3e46fb5e.8e8fc4","type":"block","name":"block","xml":"<block>\n","atomic":"false","comments":"","outputs":1,"x":776.4166526794434,"y":683.6666445732117,"z":"5ad64f3a.c3774","wires":[["39e6b24d.41090e"]]},{"id":"39e6b24d.41090e","type":"returnSuccess","name":"return success","xml":"<return status='success'>\n\n","comments":"","x":1041.7500305175781,"y":679.6666927337646,"z":"5ad64f3a.c3774","wires":[]},{"id":"7ff4860d.906048","type":"success","name":"outcome: ''","xml":"<outcome value=''>","comments":"","outputs":1,"x":1535.1666450500488,"y":366.6666326522827,"z":"5ad64f3a.c3774","wires":[["6913b0fa.1e861"]]},{"id":"61f421d6.bfea9","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1468.9883499145508,"y":463.14288330078125,"z":"5ad64f3a.c3774","wires":[["5b26aeb2.014b5"]]},{"id":"6913b0fa.1e861","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1065.988182067871,"y":439.23810386657715,"z":"5ad64f3a.c3774","wires":[["8c272d3a.1fda9"]]},{"id":"5b26aeb2.014b5","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1662.2974319458008,"y":462.54766845703125,"z":"5ad64f3a.c3774","wires":[["2f509b0e.830454"]]},{"id":"2f509b0e.830454","type":"set","name":"setActionLevel VNF","xml":"<set>\n<parameter name='action-level' value='VNF' />\n<parameter name='action-identifier' value='vnf-id' />","comments":"","x":1866.9165725708008,"y":462.33331298828125,"z":"5ad64f3a.c3774","wires":[]},{"id":"c3fc55e7.85ef98","type":"switchNode","name":"switch vnfc-name","xml":"<switch test='`$vnfc-name`'>\n","comments":"","outputs":1,"x":457.25001525878906,"y":345.80554389953613,"z":"5ad64f3a.c3774","wires":[["95399a07.ea4f08","60550aae.3a6004"]]},{"id":"95399a07.ea4f08","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":730.7937927246094,"y":335.4206600189209,"z":"5ad64f3a.c3774","wires":[["450f80e7.6d15"]]},{"id":"450f80e7.6d15","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":918.7419891357422,"y":346.5477046966553,"z":"5ad64f3a.c3774","wires":[["af2df603.4ae968"]]},{"id":"af2df603.4ae968","type":"set","name":"setActionLevel VNFC","xml":"<set>\n<parameter name='action-level' value='VNFC' />\n<parameter name='action-identifier' value='vnfc-name' />\n","comments":"","x":1206.250099182129,"y":258.05552673339844,"z":"5ad64f3a.c3774","wires":[]},{"id":"75506bed.9faa54","type":"switchNode","name":"switch vserver-id","xml":"<switch test='`$vserver-id`'>\n","comments":"","outputs":1,"x":924.1388092041016,"y":387.1110610961914,"z":"5ad64f3a.c3774","wires":[["79aeaa57.7ae244","98b876c6.c2b488"]]},{"id":"79aeaa57.7ae244","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1180.015998840332,"y":309.92064571380615,"z":"5ad64f3a.c3774","wires":[["8df97915.365a48"]]},{"id":"8df97915.365a48","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1364.4642028808594,"y":291.79767322540283,"z":"5ad64f3a.c3774","wires":[["b97dd2a7.2d3e2"]]},{"id":"b97dd2a7.2d3e2","type":"set","name":"setActionLevel VM","xml":"<set>\n<parameter name='action-level' value='VM' />\n<parameter name='action-identifier' value='vserver-id' />\n\n","comments":"","x":1552.3333435058594,"y":281.99997425079346,"z":"5ad64f3a.c3774","wires":[]},{"id":"8c272d3a.1fda9","type":"switchNode","name":"switch vnf-id","xml":"<switch test='`$vnf-id`'>\n","comments":"","outputs":1,"x":1229.4167137145996,"y":439.83331871032715,"z":"5ad64f3a.c3774","wires":[["61f421d6.bfea9","5dee6920.b9c5a8"]]},{"id":"5dee6920.b9c5a8","type":"success","name":"outcome: ''","xml":"<outcome value=''>","comments":"","outputs":1,"x":1463.4999694824219,"y":413.1666316986084,"z":"5ad64f3a.c3774","wires":[["1edb9ae1.72e305"]]},{"id":"1edb9ae1.72e305","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":"","outputs":1,"x":1653.7382507324219,"y":409.5714473724365,"z":"5ad64f3a.c3774","wires":[["2ba19f2d.87e9a"]]},{"id":"2ba19f2d.87e9a","type":"returnFailure","name":"return failure","xml":"<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Action identifier is missing in the request\"/>\n\t\n\t","comments":"","x":1852.2498512268066,"y":415.58331871032715,"z":"5ad64f3a.c3774","wires":[]},{"id":"eae00a39.c7edb8","type":"switchNode","name":"switch vf-module-id","xml":"<switch test='`$vf-module-id`'>\n","comments":"","outputs":1,"x":1335.2619323730469,"y":350.4404354095459,"z":"5ad64f3a.c3774","wires":[["2fce24e2.84f1cc","7ff4860d.906048"]]},{"id":"2fce24e2.84f1cc","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":1549.5833435058594,"y":324.0832872390747,"z":"5ad64f3a.c3774","wires":[["6aa3f5cb.2378fc"]]},{"id":"6aa3f5cb.2378fc","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":1755.1427917480469,"y":322.9881343841553,"z":"5ad64f3a.c3774","wires":[["6402489b.ea4c28"]]},{"id":"6402489b.ea4c28","type":"set","name":"setActionLevel VF-Module","xml":"<set>\n<parameter name='action-level' value='VF-MODULE' />\n<parameter name='action-identifier' value='vf-module-id' />\n","comments":"","x":1967.428565979004,"y":321.85712242126465,"z":"5ad64f3a.c3774","wires":[]},{"id":"60550aae.3a6004","type":"success","name":"outcome: ''","xml":"<outcome value=''>","comments":"","outputs":1,"x":725.5832939147949,"y":381.2500009536743,"z":"5ad64f3a.c3774","wires":[["75506bed.9faa54"]]},{"id":"98b876c6.c2b488","type":"success","name":"outcome: ''","xml":"<outcome value=''>","comments":"","outputs":1,"x":1144.4722785949707,"y":368.8888854980469,"z":"5ad64f3a.c3774","wires":[["eae00a39.c7edb8"]]},{"id":"d62b8ebb.ff133","type":"record","name":"record","xml":"<record plugin=\"org.openecomp.sdnc.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=\"`$action-identifier`\"/>\n\n","comments":"","outputs":1,"x":431.25000762939453,"y":396.111120223999,"z":"5ad64f3a.c3774","wires":[[]]},{"id":"e5a060ba.6726c","type":"switchNode","name":"switch vnfc-type","xml":"<switch test='`$vnfc-type`'>\n","comments":"","outputs":1,"x":466.6666488647461,"y":278.88890266418457,"z":"5ad64f3a.c3774","wires":[["2f46d21c.ad87ce","1ac83acb.3771a5"]]},{"id":"2f46d21c.ad87ce","type":"success","name":"outcome: Other","xml":"<outcome value='Other'>","comments":"","outputs":1,"x":742.4325942993164,"y":244.0595827102661,"z":"5ad64f3a.c3774","wires":[["ca9a8300.12e3d"]]},{"id":"ca9a8300.12e3d","type":"block","name":"block : atomic","xml":"<block atomic=\"true\">","atomic":"true","comments":null,"outputs":1,"x":935.9364204406738,"y":246.29769325256348,"z":"5ad64f3a.c3774","wires":[[]]},{"id":"1ac83acb.3771a5","type":"success","name":"outcome: ''","xml":"<outcome value=''>","comments":"","outputs":1,"x":738.3332672119141,"y":285.4444417953491,"z":"5ad64f3a.c3774","wires":[["6cee73a9.31fecc"]]},{"id":"6cee73a9.31fecc","type":"set","name":"set vnfc-type ","xml":"<set>\n<!-- 17.07 If vnfc-type is blank assign Parameters from request in array list -->\n<parameter name='vnfc-type' value='`$VNFCTYPE`' />\n\n\n\n\n\n\n\n\n\n\n\n","comments":"","x":936.6665954589844,"y":285.55558013916016,"z":"5ad64f3a.c3774","wires":[]}] +[ + { + "comments": "", + "id": "c5f27e6b.6555", + "name": "execute saveTxLog", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "9a41a79f.2a2b38" + ] + ], + "x": 331.25, + "xml": "<execute plugin=\"org.openecomp.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"log\" />\n<parameter name=\"message\" value=\"SetInputData action complete\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n", + "y": 897.1666736602783, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "9a41a79f.2a2b38", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "be9673a6.ce4fd" + ] + ], + "x": 584.0000114440918, + "xml": "<outcome value='failure'>\n", + "y": 900.0833206176758, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "be9673a6.ce4fd", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 802.333309173584, + "xml": "<block>\n", + "y": 900.5833616256714, + "z": "5ad64f3a.c3774" + }, + { + "id": "4a7685a5.000f1c", + "name": "DGSTART", + "outputs": 1, + "type": "dgstart", + "wires": [ + [ + "973925de.552808" + ] + ], + "x": 99.63886260986328, + "y": 21.222224235534668, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "973925de.552808", + "module": "APPC", + "name": "APPC 4.0.0", + "outputs": 1, + "type": "service-logic", + "version": "4.0.0", + "wires": [ + [ + "41b485e7.20eb5c" + ] + ], + "x": 269.5118751525879, + "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": 25.500001907348633, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "41b485e7.20eb5c", + "name": "method setInputParams", + "outputs": 1, + "type": "method", + "wires": [ + [ + "a74c0e05.af52e" + ] + ], + "x": 513.9206161499023, + "xml": "<method rpc='setInputParams' mode='sync'>\n", + "y": 25.55555534362793, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": "", + "id": "a74c0e05.af52e", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "c5f27e6b.6555", + "f65ded23.e6749", + "641ea02d.4b382", + "d1e77579.e7ab88", + "4df171f3.7b5ed", + "47641fcb.2cbbc", + "499cc381.43b7ac", + "581c65dc.66c40c", + "960e0153.19089", + "df9c11ec.844bb", + "c3fc55e7.85ef98", + "d62b8ebb.ff133", + "e5a060ba.6726c" + ] + ], + "x": 165.46427154541016, + "xml": "<block atomic=\"true\">", + "y": 113.95236778259277, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "f65ded23.e6749", + "name": "set params based on Dispatcher Input", + "type": "set", + "wires": [], + "x": 738.6943969726562, + "xml": "<set>\n<parameter name='vnf-id' value='`$input.action-identifiers.vnf-id`' /> \n<parameter name='service-instance-id' value='`$input.action-identifiers.service-instance-id`' />\n<parameter name='vserver-id' value='`$input.action-identifiers.vserver-id`' />\n<parameter name='vf-module-id' value='`$input.action-identifiers.vf-module-id`' />\n<parameter name='vnfc-name' value='`$input.action-identifiers.vnfc-name`' />\n\n<parameter name='request-id' value='`$input.common-header.request-id`' />\n<parameter name='originator-id' value='`$input.common-header.originator-id`' /> \n\n<parameter name='payload' value='`$input.payload`' /> \n<parameter name='api-ver' value='`$input.api-ver`' /> \n<parameter name='request-action' value='`$input.action`' />\n", + "y": 66.63888549804688, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "4df171f3.7b5ed", + "name": "execute Convert payload to DG Context ", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "13057386.cb05bc", + "705bb0fd.6235a" + ] + ], + "x": 537.4167098999023, + "xml": "<execute plugin=\"org.openecomp.sdnc.config.generator.convert.ConvertNode\" method=\"convertJson2DGContext\">\n<parameter name=\"jsonData\" value=\"`$input.payload`\" />\n<parameter name=\"isEscaped\" value=\"N\" />\n<parameter name=\"blockKeys\" value=\"configuration-parameters,configuration.configuration-string,configuration.configuration-json\" />\n<parameter name=\"responsePrefix\" value=\"tmp.convertnode\" />", + "y": 183.0555534362793, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "13057386.cb05bc", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "58736a12.c8a834" + ] + ], + "x": 860.2222290039062, + "xml": "<outcome value='failure'>\n", + "y": 156.1388931274414, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "705bb0fd.6235a", + "name": "not-found", + "outputs": 1, + "type": "not-found", + "wires": [ + [ + "31c8328a.24f9ee" + ] + ], + "x": 862.9166793823242, + "xml": "<outcome value='not-found'>\n", + "y": 202.52777481079102, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "58736a12.c8a834", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "f52e91c9.0c54f" + ] + ], + "x": 1060.5833358764648, + "xml": "<block>\n", + "y": 156.50000190734863, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "31c8328a.24f9ee", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "8778642b.6f0a08" + ] + ], + "x": 1054.8333358764648, + "xml": "<block>\n", + "y": 204.50000286102295, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "f52e91c9.0c54f", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1245.333339691162, + "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"`$tmp.convertnode.error-message`\"/>\n\t\n\t", + "y": 156.75000190734863, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "8778642b.6f0a08", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1248.083339691162, + "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to process input parameters\"/>\n\t", + "y": 206.25000381469727, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "d1e77579.e7ab88", + "name": "execute saveTxLog", + "outputs": 1, + "type": "execute", + "wires": [ + [ + "dd212aaa.c08fd8" + ] + ], + "x": 574.3333206176758, + "xml": "<execute plugin=\"org.openecomp.appc.data.services.node.ConfigResourceNode\" method=\"saveConfigTransactionLog\">\n<parameter name=\"messageType\" value=\"request\" />\n<parameter name=\"message\" value=\"`$tmp.message`\" />\n<parameter name=\"responsePrefix\" value=\"tmp.saveTxLog\" />\n", + "y": 137.75000190734863, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "641ea02d.4b382", + "name": "set tmp.message", + "type": "set", + "wires": [], + "x": 672.2777709960938, + "xml": "<set>\n<parameter name=\"tmp.message\" value=\"`$vnf-id + ' : ' + $request-action + ': ' + $payload`\" />\n", + "y": 99.8888931274414, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "dd212aaa.c08fd8", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "6f36ee18.a34f3" + ] + ], + "x": 981.0833129882812, + "xml": "<outcome value='failure'>\n", + "y": 94.25, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "6f36ee18.a34f3", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 1138.0833129882812, + "xml": "<block>\n", + "y": 91.25, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "46672893.29be28", + "name": "call: GetAaiInfo", + "outputs": 1, + "type": "call", + "wires": [ + [ + "d3c47a04.b4c318", + "44eb99ad.384d38" + ] + ], + "x": 825.8888626098633, + "xml": "<call module=\"APPC\" rpc=\"GetAaiInfo\" mode=\"sync\">", + "y": 619.5833129882812, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "d3c47a04.b4c318", + "name": "not-found", + "outputs": 1, + "type": "not-found", + "wires": [ + [ + "1588264f.0dbc0a" + ] + ], + "x": 1110.5554885864258, + "xml": "<outcome value='not-found'>\n", + "y": 592.1666870117188, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "1588264f.0dbc0a", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "911166e0.3593c8" + ] + ], + "x": 1291.4999465942383, + "xml": "<block>\n", + "y": 615.8333740234375, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "911166e0.3593c8", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1457.9165725708008, + "xml": "<return status=\"failure\">\n\t", + "y": 616.3333129882812, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "44eb99ad.384d38", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "1588264f.0dbc0a" + ] + ], + "x": 1104.4445266723633, + "xml": "<outcome value='failure'>\n", + "y": 637.6943969726562, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "47641fcb.2cbbc", + "name": "switch isTemplateDriven.TEMPLATE", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "9a6ca9b5.a5f1b8", + "3e178fb8.db00e" + ] + ], + "x": 422.2499771118164, + "xml": "<switch test='`$isTemplateDriven.TEMPLATE`'>\n", + "y": 810.8333377838135, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "9a6ca9b5.a5f1b8", + "name": "outcome: YES", + "outputs": 1, + "type": "success", + "wires": [ + [ + "90c3ac2d.01d09" + ] + ], + "x": 757.174617767334, + "xml": "<outcome value=\"YES\">", + "y": 780.8134269714355, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "3e178fb8.db00e", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "93a44588.d50728" + ] + ], + "x": 758.9127349853516, + "xml": "<outcome value='Other'>", + "y": 838.9563655853271, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "90c3ac2d.01d09", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "814dc33.55b844" + ] + ], + "x": 992.8015785217285, + "xml": "<block atomic=\"true\">", + "y": 787.0793762207031, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "93a44588.d50728", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 1022.8889465332031, + "xml": "<block atomic=\"true\">", + "y": 838.0278367996216, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "814dc33.55b844", + "name": "call: loadTeamplate", + "outputs": 1, + "type": "call", + "wires": [ + [ + "b351a17b.41869", + "bfe70fa5.66e08" + ] + ], + "x": 1196.3889503479004, + "xml": "<call module=\"APPC\" rpc=\"loadTeamplate\" mode=\"sync\">", + "y": 787.1110744476318, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "b351a17b.41869", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "33f219a0.9ce106" + ] + ], + "x": 1365.55562210083, + "xml": "<outcome value='failure'>\n", + "y": 756.8611545562744, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "392a5ccd.227d44", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1759.3889694213867, + "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to load Template Information\"/>\n", + "y": 752.5277996063232, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": "", + "id": "33f219a0.9ce106", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "392a5ccd.227d44" + ] + ], + "x": 1542.5555877685547, + "xml": "<block atomic=\"true\">\n\n", + "y": 754.7777805328369, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "bfe70fa5.66e08", + "name": "Other", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "4782d66.0e30528" + ] + ], + "x": 1356.4722480773926, + "xml": "<outcome value='Other'>\n", + "y": 869.4444408416748, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "499cc381.43b7ac", + "name": "get-resource: APPC.action-level", + "outputs": 1, + "type": "get-resource", + "wires": [ + [ + "34c05249.d79afe", + "59f42bd7.3b8014" + ] + ], + "x": 474.8333206176758, + "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql' \n\tresource='SQL'\n\tkey=\"SELECT ACTION_LEVEL\n\t FROM ACTION_LEVEL_REFERENCE\n WHERE ACTION_IDENTIFIER = $action-identifier ;\"\n force='true'\n\tpfx='APPC.action-level'>\n", + "y": 472.4166946411133, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "70c97dc2.b38574", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "f7860416.1a1108" + ] + ], + "x": 945.5833206176758, + "xml": "<block>\n", + "y": 489.75000190734863, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "f7860416.1a1108", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1113.8333206176758, + "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to retrieve Template Information from Reference table.\"/>\n\t", + "y": 487.50000190734863, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "34c05249.d79afe", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "70c97dc2.b38574" + ] + ], + "x": 747.9999771118164, + "xml": "<outcome value='failure'>\n", + "y": 487.3611030578613, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "4782d66.0e30528", + "name": "call: MergeTemplateData", + "outputs": 1, + "type": "call", + "wires": [ + [ + "55d06171.b5739", + "fb63c6c3.f262a8" + ] + ], + "x": 1537.7499618530273, + "xml": "<call module=\"APPC\" rpc=\"MergeTemplateData\" mode=\"sync\">", + "y": 866.2500057220459, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "13067f71.cb0181", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "569e6b14.42c9e4" + ] + ], + "x": 1931.2619018554688, + "xml": "<block atomic=\"true\">", + "y": 825.8214569091797, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "55d06171.b5739", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "13067f71.cb0181" + ] + ], + "x": 1771.9047546386719, + "xml": "<outcome value='failure'>\n", + "y": 826.5238094329834, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "fb63c6c3.f262a8", + "name": "Other", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "2603c6fc.c7658a" + ] + ], + "x": 1775.5714225769043, + "xml": "<outcome value='Other'>\n", + "y": 892.952399969101, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": "", + "id": "2603c6fc.c7658a", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "7237869.f38ce78" + ] + ], + "x": 1939.8571548461914, + "xml": "<block atomic=\"true\">", + "y": 892.523811340332, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "7237869.f38ce78", + "name": "record", + "outputs": 1, + "type": "record", + "wires": [ + [] + ], + "x": 2116.428653717041, + "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", + "y": 894.1428498625755, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "10e21f94.2859d", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 2312.250072479248, + "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to Merge Template and Data Information\"/>\n", + "y": 822.7500057220459, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": "", + "id": "569e6b14.42c9e4", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "10e21f94.2859d" + ] + ], + "x": 2124.166648864746, + "xml": "<block atomic=\"true\">\n\n", + "y": 824.1666307449341, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "581c65dc.66c40c", + "name": "get-resource: isTemplateDriven", + "outputs": 1, + "type": "get-resource", + "wires": [ + [ + "236e23a7.75805c" + ] + ], + "x": 423.4166488647461, + "xml": "<get-resource\n\tplugin='org.onap.ccsdk.sli.adaptors.resource.sql' \n\tresource='SQL'\n\tkey=\"SELECT TEMPLATE\n\t FROM PROTOCOL_REFERENCE\n WHERE ACTION = $input.action and VNF_TYPE = $vnf-type and ACTION_LEVEL= $action-level ;\"\n force='true'\n\tpfx='isTemplateDriven'>\n", + "y": 748.3333148956299, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "b342a11f.4cb1a", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "e30e032f.dca54" + ] + ], + "x": 962.4999847412109, + "xml": "<block>\n", + "y": 732.3333616256714, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "e30e032f.dca54", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1165.7499923706055, + "xml": "<return status=\"failure\">\n\t<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Unable to retrieve Template Information from Reference table.\"/>\n\t", + "y": 726.7499666213989, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "236e23a7.75805c", + "name": "failure", + "outputs": 1, + "type": "failure", + "wires": [ + [ + "b342a11f.4cb1a" + ] + ], + "x": 751.5833129882812, + "xml": "<outcome value='failure'>\n", + "y": 727.1666946411133, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "960e0153.19089", + "name": "set Payload params ", + "type": "set", + "wires": [], + "x": 493.4722366333008, + "xml": "<set>\n<!-- vnf type, name is from A&AI \n<parameter name='vnf-type' value='`$tmp.vnfInfo.vnf.vnf-type`' />\n<parameter name='vnf-name' value='`$tmp.vnfInfo.vnf.vnf-name`' />\n-->\n<!-- 17.07 Parameters from request -->\n<parameter name='template-name' value='`$request-parameters.template-name`' />\n<parameter name='vnf-host-ip-address' value='`$request-parameters.vnf-host-ip-address`' />\n<parameter name='vnfc-type' value='`$request-parameters.vnfc-type`' /> \n<parameter name='vnf-type' value='`$request-parameters.vnf-type`' />\n<parameter name='vnf-name' value='`$request-parameters.vnf-name`' />\n\n<parameter name='configurationblock' value='`$block_configuration`' />\n\n\n<!-- parameters to be merged with template provided as input-->\n<parameter name='configuration-params' value='`$block_configuration-parameters`' /> \n\n\n\n<!--1702 VM/VNFC Parameters when passed from Request--> \n<parameter name='VNFCTYPE' value='`$request-parameters.vm[0].vnfc[0].vnfc-type`' />\n<parameter name=\"VMNAME0\" value=\"`$request-parameters.vm[0].vm-name`\"/>\n<parameter name=\"VNFCNAME0\" value=\"`$request-parameters.vm[0].vnfc[0].vnfc-name`\"/>\n<parameter name=\"VMLENGTH\" value=\"`$size_request-parameters.vm`\"/>\n<parameter name=\"VNFCLENGTH\" value=\"`$size_request-parameters.vm[0].vnfc`\"/>\n<parameter name=\"CONFIGTYPE\" value=\"`$config-type`\"/>\n\n\n<!-- Not Used?\n<parameter name='site-location' value='`$request-parameters.site-location`' />\n<parameter name='file-name' value='`$request-parameters.file-name`' />\n-->\n\n\n\n\n", + "y": 224.08331775665283, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "59f42bd7.3b8014", + "name": "success", + "outputs": 1, + "type": "success", + "wires": [ + [ + "e0bb5945.ce9928" + ] + ], + "x": 748.8611030578613, + "xml": "<outcome value='success'>\n", + "y": 545.3333215713501, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "e0bb5945.ce9928", + "name": "set action-level ", + "type": "set", + "wires": [], + "x": 965.2777328491211, + "xml": "<set>\n<parameter name='action-level' value='`$APPC.action-level.ACTION-LEVEL`' />\n\n\n\n\n\n", + "y": 548.3888630867004, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "df9c11ec.844bb", + "name": "switch action-level", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "6eb262a7.6f6d0c", + "5a3d27a3.2b2d98" + ] + ], + "x": 407.9999771118164, + "xml": "<switch test='`$action-level`'>\n", + "y": 592.9166965484619, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "6eb262a7.6f6d0c", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "46672893.29be28" + ] + ], + "x": 625.4166564941406, + "xml": "<outcome value='Other'>", + "y": 619.3333377838135, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "5a3d27a3.2b2d98", + "name": "outcome: VM", + "outputs": 1, + "type": "success", + "wires": [ + [ + "3e46fb5e.8e8fc4" + ] + ], + "x": 615.4166564941406, + "xml": "<outcome value='VM'>", + "y": 682.0000276565552, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "false", + "comments": "", + "id": "3e46fb5e.8e8fc4", + "name": "block", + "outputs": 1, + "type": "block", + "wires": [ + [ + "39e6b24d.41090e" + ] + ], + "x": 776.4166526794434, + "xml": "<block>\n", + "y": 683.6666445732117, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "39e6b24d.41090e", + "name": "return success", + "type": "returnSuccess", + "wires": [], + "x": 1041.7500305175781, + "xml": "<return status='success'>\n\n", + "y": 679.6666927337646, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "7ff4860d.906048", + "name": "outcome: ''", + "outputs": 1, + "type": "success", + "wires": [ + [ + "6913b0fa.1e861" + ] + ], + "x": 1535.1666450500488, + "xml": "<outcome value=''>", + "y": 366.6666326522827, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "61f421d6.bfea9", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "5b26aeb2.014b5" + ] + ], + "x": 1468.9883499145508, + "xml": "<outcome value='Other'>", + "y": 463.14288330078125, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": "", + "id": "6913b0fa.1e861", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "8c272d3a.1fda9" + ] + ], + "x": 1065.988182067871, + "xml": "<block atomic=\"true\">", + "y": 439.23810386657715, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "5b26aeb2.014b5", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "2f509b0e.830454" + ] + ], + "x": 1662.2974319458008, + "xml": "<block atomic=\"true\">", + "y": 462.54766845703125, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "2f509b0e.830454", + "name": "setActionLevel VNF", + "type": "set", + "wires": [], + "x": 1866.9165725708008, + "xml": "<set>\n<parameter name='action-level' value='VNF' />\n<parameter name='action-identifier' value='vnf-id' />", + "y": 462.33331298828125, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "c3fc55e7.85ef98", + "name": "switch vnfc-name", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "95399a07.ea4f08", + "60550aae.3a6004" + ] + ], + "x": 457.25001525878906, + "xml": "<switch test='`$vnfc-name`'>\n", + "y": 345.80554389953613, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "95399a07.ea4f08", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "450f80e7.6d15" + ] + ], + "x": 730.7937927246094, + "xml": "<outcome value='Other'>", + "y": 335.4206600189209, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "450f80e7.6d15", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "af2df603.4ae968" + ] + ], + "x": 918.7419891357422, + "xml": "<block atomic=\"true\">", + "y": 346.5477046966553, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "af2df603.4ae968", + "name": "setActionLevel VNFC", + "type": "set", + "wires": [], + "x": 1206.250099182129, + "xml": "<set>\n<parameter name='action-level' value='VNFC' />\n<parameter name='action-identifier' value='vnfc-name' />\n", + "y": 258.05552673339844, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "75506bed.9faa54", + "name": "switch vserver-id", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "79aeaa57.7ae244", + "98b876c6.c2b488" + ] + ], + "x": 924.1388092041016, + "xml": "<switch test='`$vserver-id`'>\n", + "y": 387.1110610961914, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "79aeaa57.7ae244", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "8df97915.365a48" + ] + ], + "x": 1180.015998840332, + "xml": "<outcome value='Other'>", + "y": 309.92064571380615, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "8df97915.365a48", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "b97dd2a7.2d3e2" + ] + ], + "x": 1364.4642028808594, + "xml": "<block atomic=\"true\">", + "y": 291.79767322540283, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "b97dd2a7.2d3e2", + "name": "setActionLevel VM", + "type": "set", + "wires": [], + "x": 1552.3333435058594, + "xml": "<set>\n<parameter name='action-level' value='VM' />\n<parameter name='action-identifier' value='vserver-id' />\n\n", + "y": 281.99997425079346, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "8c272d3a.1fda9", + "name": "switch vnf-id", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "61f421d6.bfea9", + "5dee6920.b9c5a8" + ] + ], + "x": 1229.4167137145996, + "xml": "<switch test='`$vnf-id`'>\n", + "y": 439.83331871032715, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "5dee6920.b9c5a8", + "name": "outcome: ''", + "outputs": 1, + "type": "success", + "wires": [ + [ + "1edb9ae1.72e305" + ] + ], + "x": 1463.4999694824219, + "xml": "<outcome value=''>", + "y": 413.1666316986084, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": "", + "id": "1edb9ae1.72e305", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "2ba19f2d.87e9a" + ] + ], + "x": 1653.7382507324219, + "xml": "<block atomic=\"true\">", + "y": 409.5714473724365, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "2ba19f2d.87e9a", + "name": "return failure", + "type": "returnFailure", + "wires": [], + "x": 1852.2498512268066, + "xml": "<return status=\"failure\">\n<parameter name=\"error-code\" value=\"401\"/>\n\t<parameter name=\"error-message\" value=\"Action identifier is missing in the request\"/>\n\t\n\t", + "y": 415.58331871032715, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "eae00a39.c7edb8", + "name": "switch vf-module-id", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "2fce24e2.84f1cc", + "7ff4860d.906048" + ] + ], + "x": 1335.2619323730469, + "xml": "<switch test='`$vf-module-id`'>\n", + "y": 350.4404354095459, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "2fce24e2.84f1cc", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "6aa3f5cb.2378fc" + ] + ], + "x": 1549.5833435058594, + "xml": "<outcome value='Other'>", + "y": 324.0832872390747, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "6aa3f5cb.2378fc", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [ + "6402489b.ea4c28" + ] + ], + "x": 1755.1427917480469, + "xml": "<block atomic=\"true\">", + "y": 322.9881343841553, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "6402489b.ea4c28", + "name": "setActionLevel VF-Module", + "type": "set", + "wires": [], + "x": 1967.428565979004, + "xml": "<set>\n<parameter name='action-level' value='VF-MODULE' />\n<parameter name='action-identifier' value='vf-module-id' />\n", + "y": 321.85712242126465, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "60550aae.3a6004", + "name": "outcome: ''", + "outputs": 1, + "type": "success", + "wires": [ + [ + "75506bed.9faa54" + ] + ], + "x": 725.5832939147949, + "xml": "<outcome value=''>", + "y": 381.2500009536743, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "98b876c6.c2b488", + "name": "outcome: ''", + "outputs": 1, + "type": "success", + "wires": [ + [ + "eae00a39.c7edb8" + ] + ], + "x": 1144.4722785949707, + "xml": "<outcome value=''>", + "y": 368.8888854980469, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "d62b8ebb.ff133", + "name": "record", + "outputs": 1, + "type": "record", + "wires": [ + [] + ], + "x": 431.25000762939453, + "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=\"`$action-identifier`\"/>\n\n", + "y": 396.111120223999, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "e5a060ba.6726c", + "name": "switch vnfc-type", + "outputs": 1, + "type": "switchNode", + "wires": [ + [ + "2f46d21c.ad87ce", + "1ac83acb.3771a5" + ] + ], + "x": 466.6666488647461, + "xml": "<switch test='`$vnfc-type`'>\n", + "y": 278.88890266418457, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "2f46d21c.ad87ce", + "name": "outcome: Other", + "outputs": 1, + "type": "success", + "wires": [ + [ + "ca9a8300.12e3d" + ] + ], + "x": 742.4325942993164, + "xml": "<outcome value='Other'>", + "y": 244.0595827102661, + "z": "5ad64f3a.c3774" + }, + { + "atomic": "true", + "comments": null, + "id": "ca9a8300.12e3d", + "name": "block : atomic", + "outputs": 1, + "type": "block", + "wires": [ + [] + ], + "x": 935.9364204406738, + "xml": "<block atomic=\"true\">", + "y": 246.29769325256348, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "1ac83acb.3771a5", + "name": "outcome: ''", + "outputs": 1, + "type": "success", + "wires": [ + [ + "6cee73a9.31fecc" + ] + ], + "x": 738.3332672119141, + "xml": "<outcome value=''>", + "y": 285.4444417953491, + "z": "5ad64f3a.c3774" + }, + { + "comments": "", + "id": "6cee73a9.31fecc", + "name": "set vnfc-type ", + "type": "set", + "wires": [], + "x": 936.6665954589844, + "xml": "<set>\n<!-- 17.07 If vnfc-type is blank assign Parameters from request in array list -->\n<parameter name='vnfc-type' value='`$VNFCTYPE`' />\n\n\n\n\n\n\n\n\n\n\n\n", + "y": 285.55558013916016, + "z": "5ad64f3a.c3774" + } +] |