From 79a537071550d5ae0df0c58572ff2b5aa3065c72 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 6 Sep 2017 11:03:15 -0400 Subject: Add generic-resource-api DG seed code Add seed code for generic-resource-api directed graphs. Change-Id: I51df937740d54d6f907c79fe322e4ffafe53537c Issue-ID: SDNC-45 Signed-off-by: Dan Timoney Former-commit-id: b014b942536d93f55664b67a36436168e623bcec --- ...URCE-API_service-topology-operation-assign.json | 881 +++++++++++++++++++++ 1 file changed, 881 insertions(+) create mode 100644 platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json') diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json new file mode 100644 index 00000000..7da520a6 --- /dev/null +++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation-assign.json @@ -0,0 +1,881 @@ +[ + { + "id": "295b7d63.10c692", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 112, + "y": 86, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "70e80e39.fe45" + ] + ] + }, + { + "id": "70e80e39.fe45", + "type": "service-logic", + "name": "GENERIC-RESOURCE-API ${project.version}", + "module": "GENERIC-RESOURCE-API", + "version": "${project.version}", + "comments": "", + "xml": "", + "outputs": 1, + "x": 187.28570556640625, + "y": 126.23811149597168, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "9baf2a8b.239b88" + ] + ] + }, + { + "id": "9baf2a8b.239b88", + "type": "method", + "name": "method service-topology-operation-assign", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 216.42862701416016, + "y": 166, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "5cbbf27f.ee281c" + ] + ] + }, + { + "id": "b98518f1.2eb928", + "type": "comment", + "name": "service-topology-operation-assign", + "info": "", + "comments": "", + "x": 506.34485626220703, + "y": 33.58634376525879, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "5cbbf27f.ee281c", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 228.85712432861328, + "y": 756.7619457244873, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "fd3525bb.e6b178", + "3fc365e1.b2b29a", + "80294281.2295d", + "6dc77130.ebecc", + "ec3c304f.7f733", + "3d90af09.6137c", + "da5ddc08.e7611", + "e78ecd27.54c89", + "b5b6afcf.5fa1", + "dd72f866.d6cb28" + ] + ] + }, + { + "id": "fd3525bb.e6b178", + "type": "switchNode", + "name": "switch request-action", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 511.2381134033203, + "y": 267.7142915725708, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "d0d2c5a2.a2fa38", + "fbf77054.7e3f7" + ] + ] + }, + { + "id": "d0d2c5a2.a2fa38", + "type": "outcome", + "name": "CreateServiceInstance", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 748.3809280395508, + "y": 242, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "c3e09ac6.b0a468" + ] + ] + }, + { + "id": "fbf77054.7e3f7", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 698.3809509277344, + "y": 286.04763889312744, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "14ef825f.a8bece" + ] + ] + }, + { + "id": "c3e09ac6.b0a468", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 926.9523849487305, + "y": 242.0000352859497, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [] + ] + }, + { + "id": "14ef825f.a8bece", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 905.7618980407715, + "y": 286.04765033721924, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "3fc365e1.b2b29a", + "type": "get-resource", + "name": "get-resource SERVICE_MODEL", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 547.7856292724609, + "y": 490.80957984924316, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "42c43d09.6995e4", + "141523e4.26033c" + ] + ] + }, + { + "id": "74dca068.1349", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 962.0712966918945, + "y": 515.6666297912598, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "80294281.2295d", + "type": "switchNode", + "name": "switch input service-instance-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 555.1903610229492, + "y": 787.1190090179443, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "2dc0c3ae.1f5c3c", + "8c204a35.ee8d38" + ] + ] + }, + { + "id": "2dc0c3ae.1f5c3c", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 776.3569221496582, + "y": 712.4761533737183, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "8ca23910.bba748" + ] + ] + }, + { + "id": "36a8a72c.e67fa8", + "type": "switchNode", + "name": "switch ecomp-naming", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1155.6429824829102, + "y": 604.8572378158569, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "e46351c0.e65fe", + "e2444120.96641", + "b83f5b84.1194c8" + ] + ] + }, + { + "id": "8ca23910.bba748", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 922.0714225769043, + "y": 712.4762706756592, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "11216bc9.793f94", + "730225bd.4a385c", + "36a8a72c.e67fa8" + ] + ] + }, + { + "id": "e2444120.96641", + "type": "outcome", + "name": "N", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1404.9286422729492, + "y": 606.7619466781616, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "e6cfdf66.2d46c" + ] + ] + }, + { + "id": "e6cfdf66.2d46c", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1559.214427947998, + "y": 625.3333911895752, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "e46351c0.e65fe", + "type": "outcome", + "name": "Y", + "xml": "", + "comments": "", + "outputs": 1, + "x": 1404.9286079406738, + "y": 562.4762678146362, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "c74d5ad9.510bf8" + ] + ] + }, + { + "id": "b83f5b84.1194c8", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1404.9285697937012, + "y": 652.4762659072876, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "e6cfdf66.2d46c" + ] + ] + }, + { + "id": "c74d5ad9.510bf8", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 1542.0715522766113, + "y": 562.4762678146362, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [] + ] + }, + { + "id": "8c204a35.ee8d38", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 778.9286041259766, + "y": 858.7618923187256, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "7dd34c72.469dd4" + ] + ] + }, + { + "id": "6c3ec4cc.7720cc", + "type": "set", + "name": "set tmp.service-instance-name", + "xml": "\n\n", + "comments": "", + "x": 1820.6428756713867, + "y": 906.1905384063721, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "ec3c304f.7f733", + "type": "update", + "name": "update AAI service instance", + "xml": "\n\t\n\t\n", + "comments": "", + "outputs": 1, + "x": 529.4524154663086, + "y": 1013.5237646102905, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "52adc0d3.8b42e", + "e75df5d6.b27108" + ] + ] + }, + { + "id": "52adc0d3.8b42e", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 741.214282989502, + "y": 988.7619190216064, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "633d341.6a482cc" + ] + ] + }, + { + "id": "633d341.6a482cc", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 891.2142486572266, + "y": 988.7619972229004, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "dd72f866.d6cb28", + "type": "set", + "name": "set service-level-oper-status to Created", + "xml": "\n\n\n\n", + "comments": "", + "x": 564.7380981445312, + "y": 1262.2141160964966, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "b5b6afcf.5fa1", + "type": "set", + "name": "set service-object-path", + "xml": "\n\n", + "comments": "", + "x": 513.9760437011719, + "y": 949.4761152267456, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "6dc77130.ebecc", + "type": "switchNode", + "name": "switch order-status", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 504.38090896606445, + "y": 378.66676330566406, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "a8edf7c5.7b4478", + "ad8ed89.4b77b28", + "ee8ac40f.7f3d48" + ] + ] + }, + { + "id": "a8edf7c5.7b4478", + "type": "outcome", + "name": "Created", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 700.3333587646484, + "y": 378.33335971832275, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "685d0e61.debed" + ] + ] + }, + { + "id": "685d0e61.debed", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 902.476188659668, + "y": 377.90489387512207, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "3d90af09.6137c", + "type": "set", + "name": "set service-topology identifiers", + "xml": "\n\n\n\n\n", + "comments": "", + "x": 540.7143249511719, + "y": 1081.8570585250854, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "2653a44e.adc4ec", + "type": "for", + "name": "for each service-input-parameters", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 970.523754119873, + "y": 1219.9524974822998, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "6a555acb.26f484" + ] + ] + }, + { + "id": "6a555acb.26f484", + "type": "set", + "name": "set parameter name/value", + "xml": "\n\n\n", + "comments": "", + "x": 1251.9522171020508, + "y": 1219.952444076538, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "da5ddc08.e7611", + "type": "switchNode", + "name": "switch input parameter length", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 533.3333282470703, + "y": 1192.3332176208496, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "f2b63cee.3f632", + "cf7a3d51.1eefe" + ] + ] + }, + { + "id": "f2b63cee.3f632", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 748.237907409668, + "y": 1168.5238513946533, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "8a63c0fd.08758" + ] + ] + }, + { + "id": "8a63c0fd.08758", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 886.8092994689941, + "y": 1168.5238342285156, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [] + ] + }, + { + "id": "cf7a3d51.1eefe", + "type": "other", + "name": "other", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 746.8093185424805, + "y": 1219.9524402618408, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "2653a44e.adc4ec" + ] + ] + }, + { + "id": "e78ecd27.54c89", + "type": "set", + "name": "set service-topology ecomp-model-information", + "xml": "\n\n", + "comments": "", + "x": 590.7143096923828, + "y": 1126.142632484436, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "e75df5d6.b27108", + "type": "failure", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 747.5237121582031, + "y": 1037.3333368301392, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "d46d87d4.1042c8" + ] + ] + }, + { + "id": "d46d87d4.1042c8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 890.8570098876953, + "y": 1035.6667108535767, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "11216bc9.793f94", + "type": "call", + "name": "call GENERIC-RESOURCE-API:generate-unique-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1261.1904754638672, + "y": 762.4761629104614, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "d2b85a61.8d6948", + "6193cfa1.f5b12" + ] + ] + }, + { + "id": "d2b85a61.8d6948", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1601.1904487609863, + "y": 737.476222038269, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "ed4311d6.fdf73" + ] + ] + }, + { + "id": "6193cfa1.f5b12", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1604.5237986246743, + "y": 787.1428651809692, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "42ec1fd9.8064a" + ] + ] + }, + { + "id": "730225bd.4a385c", + "type": "set", + "name": "set variables for generating unique name", + "xml": "\n\n\n\n\n", + "comments": "", + "x": 1216.190559387207, + "y": 702.142972946167, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "42ec1fd9.8064a", + "type": "set", + "name": "set tmp.service-instance-name to generated name", + "xml": "\n\n", + "comments": "", + "x": 1888.5713500976562, + "y": 786.1904458999634, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "ed4311d6.fdf73", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1769.0475616455078, + "y": 736.9047336578369, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "7dd34c72.469dd4", + "type": "block", + "name": "block : atomic", + "xml": "", + "atomic": "true", + "outputs": 1, + "x": 926.8571319580078, + "y": 857.4285793304443, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "39e93876.652cd8", + "bbc8a4da.124f28" + ] + ] + }, + { + "id": "bbc8a4da.124f28", + "type": "call", + "name": "call GENERIC-RESOURCE-API:generate-unique-name", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1256.8571472167969, + "y": 882.0952301025391, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "8ea07c5d.48a34", + "d227b72.98c2048" + ] + ] + }, + { + "id": "8ea07c5d.48a34", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1596.857105255127, + "y": 855.428638458252, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "9626e69f.8bab88" + ] + ] + }, + { + "id": "d227b72.98c2048", + "type": "success", + "name": "success", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 1600.190455118815, + "y": 907.0952816009521, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "6c3ec4cc.7720cc" + ] + ] + }, + { + "id": "39e93876.652cd8", + "type": "set", + "name": "set variables for generating unique name", + "xml": "\n\n\n", + "comments": "", + "x": 1215.1905212402344, + "y": 833.7619361877441, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "9626e69f.8bab88", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 1764.7142181396484, + "y": 854.8571500778198, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "42c43d09.6995e4", + "type": "failure", + "name": "failure", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 788.5713310241699, + "y": 472.19044494628906, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "43d55ae4.17c224" + ] + ] + }, + { + "id": "141523e4.26033c", + "type": "not-found", + "name": "not-found", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 797.1427612304688, + "y": 515.4761581420898, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "74dca068.1349" + ] + ] + }, + { + "id": "43d55ae4.17c224", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 961.4284973144531, + "y": 470.7618885040283, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "ad8ed89.4b77b28", + "type": "outcome", + "name": "NULL", + "xml": "", + "comments": "", + "outputs": 1, + "x": 698.3332824707031, + "y": 333.66668128967285, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "8fe971e9.f5c2" + ] + ] + }, + { + "id": "ee8ac40f.7f3d48", + "type": "other", + "name": "PendingDelete", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 721.0000114440918, + "y": 422.3333396911621, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [ + "840bc4c1.bd8ae8" + ] + ] + }, + { + "id": "840bc4c1.bd8ae8", + "type": "returnFailure", + "name": "return failure", + "xml": "\n\t\n\t\n \n", + "comments": "", + "x": 903.333309173584, + "y": 422.3333501815796, + "z": "d6c1fe8e.0dbfc", + "wires": [] + }, + { + "id": "8fe971e9.f5c2", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 884.9999923706055, + "y": 332.6667003631592, + "z": "d6c1fe8e.0dbfc", + "wires": [ + [] + ] + } +] -- cgit 1.2.3-korg