aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-09-06 11:03:15 -0400
committerDan Timoney <dtimoney@att.com>2017-09-06 19:17:34 -0400
commit79a537071550d5ae0df0c58572ff2b5aa3065c72 (patch)
tree75d0cc1e0e0a0c0fdc09c1a6e932f8f72d9c106b /platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json
parent98ddb133dec262b727b93eab40f384b88fed864a (diff)
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 <dtimoney@att.com> Former-commit-id: b014b942536d93f55664b67a36436168e623bcec
Diffstat (limited to 'platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json')
-rw-r--r--platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json252
1 files changed, 252 insertions, 0 deletions
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json
new file mode 100644
index 00000000..d323b416
--- /dev/null
+++ b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_service-topology-operation.json
@@ -0,0 +1,252 @@
+[
+ {
+ "id": "ffcdcaf9.978378",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 110.00003814697266,
+ "y": 84.28563117980957,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "19a4815b.2d2d0f"
+ ]
+ ]
+ },
+ {
+ "id": "19a4815b.2d2d0f",
+ "type": "service-logic",
+ "name": "GENERIC-RESOURCE-API ${project.version}",
+ "module": "GENERIC-RESOURCE-API",
+ "version": "${project.version}",
+ "comments": "",
+ "xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+ "outputs": 1,
+ "x": 185.2857437133789,
+ "y": 124.52374267578125,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "936b3cb3.ebe9b"
+ ]
+ ]
+ },
+ {
+ "id": "936b3cb3.ebe9b",
+ "type": "method",
+ "name": "method service-topology-operation",
+ "xml": "<method rpc='service-topology-operation' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 188.4286651611328,
+ "y": 164.28562545776367,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "ed52e81.7853818"
+ ]
+ ]
+ },
+ {
+ "id": "a6ec4b68.d62da8",
+ "type": "comment",
+ "name": "service-topology-operation",
+ "info": "",
+ "comments": "",
+ "x": 504.3448944091797,
+ "y": 31.87197494506836,
+ "z": "3794a147.f3878e",
+ "wires": []
+ },
+ {
+ "id": "ed52e81.7853818",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic=\"true\">",
+ "atomic": "true",
+ "outputs": 1,
+ "x": 184.50008392333984,
+ "y": 365.3124828338623,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "8f72acdd.c62fa",
+ "12bcf998.a7e046",
+ "b4070b55.94bb78",
+ "6af30001.5e0fe"
+ ]
+ ]
+ },
+ {
+ "id": "8f72acdd.c62fa",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",
+ "comments": "",
+ "x": 468.33333587646484,
+ "y": 540.7146196365356,
+ "z": "3794a147.f3878e",
+ "wires": []
+ },
+ {
+ "id": "b4070b55.94bb78",
+ "type": "switchNode",
+ "name": "switch svc-action",
+ "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 475.0475769042969,
+ "y": 417.80941009521484,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "81b85c4d.7a8e1",
+ "e6fcf5d0.16c4f8",
+ "64f4285d.b775f8",
+ "a2995c44.e9432"
+ ]
+ ]
+ },
+ {
+ "id": "81b85c4d.7a8e1",
+ "type": "outcome",
+ "name": "assign",
+ "xml": "<outcome value='assign'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 685.8571166992188,
+ "y": 343.09522819519043,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "5f230ac8.35fac4"
+ ]
+ ]
+ },
+ {
+ "id": "e6fcf5d0.16c4f8",
+ "type": "outcome",
+ "name": "delete",
+ "xml": "<outcome value='delete'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 685.2380981445312,
+ "y": 437.61927127838135,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "55a1c437.344cfc"
+ ]
+ ]
+ },
+ {
+ "id": "a2995c44.e9432",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 684.2856369018555,
+ "y": 486.47603607177734,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "8bf7b987.d11358"
+ ]
+ ]
+ },
+ {
+ "id": "12bcf998.a7e046",
+ "type": "set",
+ "name": "copy input to service-data",
+ "xml": "<set>\n<parameter name='service-data.sdnc-request-header.' value='`$service-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.request-information.' value='`$service-topology-operation-input.request-information.`' />\n<parameter name='service-data.service-information.' value='`$service-topology-operation-input.service-information.`' />\n<parameter name='service-data.service-request-input.' value='`$service-topology-operation-input.service-request-input.`' />\n",
+ "comments": "",
+ "x": 503.15476989746094,
+ "y": 285.5118703842163,
+ "z": "3794a147.f3878e",
+ "wires": []
+ },
+ {
+ "id": "8bf7b987.d11358",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n <parameter name=\"error-message\" value=\"`$service-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
+ "comments": "",
+ "x": 860.4760818481445,
+ "y": 486.47610092163086,
+ "z": "3794a147.f3878e",
+ "wires": []
+ },
+ {
+ "id": "6af30001.5e0fe",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:validate-service-input",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-service-input' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 590.4166717529297,
+ "y": 237.33333015441895,
+ "z": "3794a147.f3878e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5f230ac8.35fac4",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:service-topology-operation-assign",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='service-topology-operation-assign' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1026.9999694824219,
+ "y": 342.6666889190674,
+ "z": "3794a147.f3878e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "1d8ee48d.69b27b",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:service-topology-operation-deactivate",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='service-topology-operation-deactivate' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1039.9999237060547,
+ "y": 389.6666831970215,
+ "z": "3794a147.f3878e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "55a1c437.344cfc",
+ "type": "call",
+ "name": "call GENERIC-RESOURCE-API:service-topology-operation-delete",
+ "xml": "<call module='GENERIC-RESOURCE-API' rpc='service-topology-operation-delete' mode='sync' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1028.333194732666,
+ "y": 438.333402633667,
+ "z": "3794a147.f3878e",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "64f4285d.b775f8",
+ "type": "outcome",
+ "name": "deactivate",
+ "xml": "<outcome value='deactivate'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 696.6665649414062,
+ "y": 391.33335876464844,
+ "z": "3794a147.f3878e",
+ "wires": [
+ [
+ "1d8ee48d.69b27b"
+ ]
+ ]
+ }
+]