aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json166
1 files changed, 91 insertions, 75 deletions
diff --git a/platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json b/platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json
index 569e23b7..677ecfb8 100644
--- a/platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json
+++ b/platform-logic/optical-service/src/main/json/optical-service_create-service-relationship.json
@@ -1,36 +1,36 @@
[
{
- "id": "acab78dd.697a38",
+ "id": "8469fb91.605138",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 382.5,
- "y": 262.5,
- "z": "c7becd47.884",
+ "x": 293.3428039550781,
+ "y": 163.34280395507812,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "c2dcb871.d886d8"
+ "65b11c2c.287414"
]
]
},
{
- "id": "56ba0c7c.085e74",
+ "id": "f41fcd25.5614c",
"type": "method",
"name": "method",
"xml": "<method rpc='create-service-relationship' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 381.5,
- "y": 337.5,
- "z": "c7becd47.884",
+ "x": 292.3428039550781,
+ "y": 238.34280395507812,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "f37956ce.4bd828"
+ "c43dc2ab.62791"
]
]
},
{
- "id": "c2dcb871.d886d8",
+ "id": "65b11c2c.287414",
"type": "service-logic",
"name": "optical-service ${project.version}",
"module": "optical-service",
@@ -38,185 +38,201 @@
"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='optical-service' version='${project.version}'>",
"outputs": 1,
- "x": 593.3333435058594,
- "y": 198.83333206176758,
- "z": "c7becd47.884",
+ "x": 504.1761474609375,
+ "y": 99.6761360168457,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "56ba0c7c.085e74"
+ "f41fcd25.5614c"
]
]
},
{
- "id": "f37956ce.4bd828",
+ "id": "c43dc2ab.62791",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 564.5,
- "y": 332.5,
- "z": "c7becd47.884",
+ "x": 475.3428039550781,
+ "y": 233.34280395507812,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "c34ad1e6.1b049",
- "49230af2.d808d4",
- "30a10176.609d7e",
- "dc89cfb.651ad3"
+ "b524a229.9b341",
+ "aa8633b7.9450f",
+ "431986ba.331828",
+ "cd86f64d.b2ee08"
]
]
},
{
- "id": "c34ad1e6.1b049",
+ "id": "b524a229.9b341",
"type": "get-resource",
"name": "get-resource",
- "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom REQUEST_DETAILS\nWHERE request_id = $as-request-id'\npfx='access-service'>",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom REQUEST_DETAILS\nWHERE request_id = $access-request-id'\npfx='access-service'>",
"comments": "",
"outputs": 1,
- "x": 749.1666946411133,
- "y": 316.05555152893066,
- "z": "c7becd47.884",
+ "x": 663.3428268432617,
+ "y": 211.89835357666016,
+ "z": "e2d31f86.7e711",
"wires": [
[]
]
},
{
- "id": "49230af2.d808d4",
+ "id": "aa8633b7.9450f",
"type": "execute",
"name": "execute",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='split' >\n<parameter name=\"original_string\" value='`$access-service.domain-requests`'/>\n<parameter name=\"regex\" value=\",\"/>\n<parameter name=\"ctx_memory_result_key\" value=\"domain-services\"/> ",
"comments": "",
"outputs": 1,
- "x": 741.5,
- "y": 361.5,
- "z": "c7becd47.884",
+ "x": 652.3428039550781,
+ "y": 262.3428039550781,
+ "z": "e2d31f86.7e711",
"wires": [
[]
]
},
{
- "id": "30a10176.609d7e",
+ "id": "431986ba.331828",
"type": "for",
"name": "for",
"xml": "<for index='idc' start='0' end='`$domain-services_length`' >\n",
"comments": "",
"outputs": 1,
- "x": 713.5,
- "y": 448.5,
- "z": "c7becd47.884",
+ "x": 624.3428039550781,
+ "y": 349.3428039550781,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "c1fe8f71.3771e"
+ "e35ff615.9d0f88"
]
]
},
{
- "id": "c1fe8f71.3771e",
+ "id": "e35ff615.9d0f88",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 859.5,
- "y": 441.5,
- "z": "c7becd47.884",
+ "x": 770.3428039550781,
+ "y": 342.3428039550781,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "a9fba6b1.9ea4a8",
- "5b28c4f8.97075c"
+ "f0b5dca1.f7424",
+ "925da1f9.f5dbc"
]
]
},
{
- "id": "a9fba6b1.9ea4a8",
+ "id": "f0b5dca1.f7424",
"type": "get-resource",
"name": "get-resource",
"xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL'\nkey='SELECT *\nfrom REQUEST_DETAILS\nWHERE request_id = $domain-services[$idc]'\npfx='ds-details'>",
"comments": "",
"outputs": 1,
- "x": 1007.1666946411133,
- "y": 279.8333444595337,
- "z": "c7becd47.884",
+ "x": 918.0094985961914,
+ "y": 180.67614841461182,
+ "z": "e2d31f86.7e711",
"wires": [
[]
]
},
{
- "id": "d767bb7e.ede568",
+ "id": "252e0c6e.633014",
"type": "save",
"name": "save domain service",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $access-service.service-instance-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/business/customers/customer/' + $optical-service-create-input.global-customer-id + '/service-subscriptions/service-subscription/' + $optical-service-create-input.service-type + '/service-instances/service-instance/' + $ds-details.service-instance-id`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"service-instance.service-instance-id\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$ds-details.service-instance-id`\" /> \n",
"comments": "",
"outputs": 1,
- "x": 1247.1666107177734,
- "y": 443.61108779907227,
- "z": "c7becd47.884",
+ "x": 1158.0094146728516,
+ "y": 344.4538917541504,
+ "z": "e2d31f86.7e711",
"wires": [
[]
]
},
{
- "id": "3081486c.145aa8",
+ "id": "8b192abd.7a0838",
"type": "save",
"name": "save lgical-link",
- "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $access-service.service-instance-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $inter.logical-link[$ida].link-name`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$inter.logical-link[$ida].link-name`\" /> \n",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list' \n key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n service-subscription.service-type = $optical-service-create-input.service-type AND\n service-instance.service-instance-id = $access-service.service-instance-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"service-instance\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/logical-links/logical-link/' + $oof-response.solutions.routeInfo.linkList[$idml]`\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"logical-link.link-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$oof-response.solutions.routeInfo.linkList[$idml]`\" /> \n",
"comments": "",
"outputs": 1,
- "x": 939.0277938842773,
- "y": 535.0000419616699,
- "z": "c7becd47.884",
+ "x": 974.8706130981445,
+ "y": 429.1761817932129,
+ "z": "e2d31f86.7e711",
"wires": [
[]
]
},
{
- "id": "5b28c4f8.97075c",
+ "id": "925da1f9.f5dbc",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 1047.083396911621,
- "y": 446.9444456100464,
- "z": "c7becd47.884",
+ "x": 957.9262008666992,
+ "y": 347.7872495651245,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "d767bb7e.ede568"
+ "252e0c6e.633014"
]
]
},
{
- "id": "dc89cfb.651ad3",
+ "id": "cd86f64d.b2ee08",
"type": "switchNode",
"name": "switch",
- "xml": "<switch test='`$domain-services_length`'>\n",
+ "xml": "<switch test='`$domain-services_length == 1`'>\n",
"comments": "",
"outputs": 1,
- "x": 637.9165725708008,
- "y": 527.499927520752,
- "z": "c7becd47.884",
+ "x": 548.7593765258789,
+ "y": 428.3427314758301,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "4df19f89.f43cf"
+ "1f1dd0d4.a4b09f"
]
]
},
{
- "id": "4df19f89.f43cf",
- "type": "outcome",
- "name": "2",
- "xml": "<outcome value='2'>\n",
+ "id": "3e15b2bb.83cb2e",
+ "type": "for",
+ "name": "for",
+ "xml": "<for index='idml' start='0' end='`$oof-response.solutions.routeInfo.linkList_length`' >\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 811.6760292053223,
+ "y": 425.0094413757324,
+ "z": "e2d31f86.7e711",
+ "wires": [
+ [
+ "8b192abd.7a0838"
+ ]
+ ]
+ },
+ {
+ "id": "1f1dd0d4.a4b09f",
+ "type": "outcomeFalse",
+ "name": "false",
+ "xml": "<outcome value='false'>\n",
"comments": "",
"outputs": 1,
- "x": 774.3055114746094,
- "y": 530.2776975631714,
- "z": "c7becd47.884",
+ "x": 685.0094375610352,
+ "y": 426.6761360168457,
+ "z": "e2d31f86.7e711",
"wires": [
[
- "3081486c.145aa8"
+ "3e15b2bb.83cb2e"
]
]
}