aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic/optical-service/src/main/json/optical-service_create-service-async.json')
-rw-r--r--platform-logic/optical-service/src/main/json/optical-service_create-service-async.json269
1 files changed, 163 insertions, 106 deletions
diff --git a/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json b/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
index 6926f79a..0b04c88e 100644
--- a/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
+++ b/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
@@ -1,20 +1,20 @@
[
{
- "id": "ef271e98.1343d",
+ "id": "f8033564.9370d8",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 225.5555419921875,
- "y": 244.44442749023438,
- "z": "d7735114.f6066",
+ "x": 181.6761474609375,
+ "y": 191.33330249786377,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "69929ea4.2407d"
+ "396bd8ff.6c58d8"
]
]
},
{
- "id": "69929ea4.2407d",
+ "id": "396bd8ff.6c58d8",
"type": "service-logic",
"name": "optical-service ${project.version}",
"module": "optical-service",
@@ -22,304 +22,361 @@
"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": 412.5555419921875,
- "y": 193.44442749023438,
- "z": "d7735114.f6066",
+ "x": 425.3428039550781,
+ "y": 190.33333206176758,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "926e362a.257c68"
+ "f3cde665.570898"
]
]
},
{
- "id": "926e362a.257c68",
+ "id": "f3cde665.570898",
"type": "method",
"name": "method",
"xml": "<method rpc='create-service-async' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 266.5555419921875,
- "y": 367.4444274902344,
- "z": "d7735114.f6066",
+ "x": 279.3428039550781,
+ "y": 364.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "1e677fcc.18edb"
+ "5d03132f.ed8e9c"
]
]
},
{
- "id": "1e677fcc.18edb",
+ "id": "5d03132f.ed8e9c",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 439.5555419921875,
- "y": 366.4444274902344,
- "z": "d7735114.f6066",
+ "x": 452.3428039550781,
+ "y": 363.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "570787b6.c60918",
- "8b32ac88.06a0b",
- "d11ad8e1.0343c8"
+ "c00ad46.901e428",
+ "740307b2.aec648",
+ "8396b208.e8981",
+ "f2d65098.e5d31",
+ "88fbe255.2e8d8"
]
]
},
{
- "id": "570787b6.c60918",
+ "id": "c00ad46.901e428",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Inside Create Service Async\"/>\n",
"comments": "",
"outputs": 1,
- "x": 612.5555419921875,
- "y": 277.4444274902344,
- "z": "d7735114.f6066",
+ "x": 625.3428039550781,
+ "y": 274.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "28c538c4.2302f8",
+ "id": "2095fee4.0c3a12",
"type": "record",
"name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Finished updating service in AAI and DB to CREATED\"/>\n\n",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Finished updating service in AAI and DB to CREATED\"/>\n<parameter name=\"field2\" value=\"`$access.request-id`\"/>\n\n",
"comments": "",
"outputs": 1,
- "x": 1140.5555419921875,
- "y": 359.4444274902344,
- "z": "d7735114.f6066",
+ "x": 1153.3428039550781,
+ "y": 356.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "5e382c44.972184",
+ "id": "c0a2442.32b91b8",
"type": "update",
"name": "update AAI service 'CREATED'",
"xml": "<update plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' \nforce='true'\nresource='service-instance'\n key='customer.global-customer-id = $output.global-customer-id AND\n service-subscription.service-type = $output.service-type AND\n service-instance.service-instance-id = $output.service-instance-id' \n local-only='false'>\n<parameter name='orchestration-status' value='CREATED' />\n\n\n\n\n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n",
"comments": "",
"outputs": 1,
- "x": 1163.5555419921875,
- "y": 227.44442749023438,
- "z": "d7735114.f6066",
+ "x": 1171.342788696289,
+ "y": 124.33332633972168,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "11f258cf.0cfbe7",
+ "id": "1636ba76.3cb676",
"type": "outcome",
"name": "outcome",
"xml": "<outcome value='200'>\n",
"comments": "",
"outputs": 1,
- "x": 744.5555419921875,
- "y": 328.4444274902344,
- "z": "d7735114.f6066",
+ "x": 757.3428039550781,
+ "y": 325.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "6823decd.1c0f4"
+ "6a3de87a.5b8598"
]
]
},
{
- "id": "1f9398a1.9403f7",
+ "id": "40e998b6.692d98",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 735.5555419921875,
- "y": 440.4444274902344,
- "z": "d7735114.f6066",
+ "x": 748.3428039550781,
+ "y": 437.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "a0d9ffaf.322a"
+ "c72fdddc.3040e"
]
]
},
{
- "id": "6823decd.1c0f4",
+ "id": "6a3de87a.5b8598",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 914.5555419921875,
- "y": 306.4444274902344,
- "z": "d7735114.f6066",
+ "x": 927.3428039550781,
+ "y": 303.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "28c538c4.2302f8",
- "5e382c44.972184",
- "8124c756.1dde88",
- "15476d01.4a1043"
+ "2095fee4.0c3a12",
+ "c0a2442.32b91b8",
+ "c32477f.3156e88",
+ "28d57db1.c0d9d2",
+ "deb2202e.47c5f",
+ "60087b41.b7d234"
]
]
},
{
- "id": "a0d9ffaf.322a",
+ "id": "c72fdddc.3040e",
"type": "block",
"name": "block : atomic",
"xml": "<block atomic='true'>",
"atomic": "true",
"comments": "",
"outputs": 1,
- "x": 907.5555419921875,
- "y": 443.4444274902344,
- "z": "d7735114.f6066",
+ "x": 920.3428039550781,
+ "y": 440.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "20546055.63c8f",
- "7353aa4c.564df4"
+ "8b92a1e7.bc27c",
+ "aff39e4d.84164"
]
]
},
{
- "id": "8b32ac88.06a0b",
+ "id": "740307b2.aec648",
"type": "switchNode",
"name": "switch",
"xml": "<switch test='`$response-code`'>\n",
"comments": "",
"outputs": 1,
- "x": 613.5555419921875,
- "y": 366.4444274902344,
- "z": "d7735114.f6066",
+ "x": 626.3428039550781,
+ "y": 363.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "11f258cf.0cfbe7",
- "1f9398a1.9403f7"
+ "1636ba76.3cb676",
+ "40e998b6.692d98"
]
]
},
{
- "id": "8124c756.1dde88",
+ "id": "c32477f.3156e88",
"type": "save",
"name": "update DB 'CREATED'",
"xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $request-id'\nforce='true' pfx='save-result'>",
"comments": "",
"outputs": 1,
- "x": 1177.5555419921875,
- "y": 299.4444274902344,
- "z": "d7735114.f6066",
+ "x": 1177.0094146728516,
+ "y": 192.99999713897705,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "20546055.63c8f",
+ "id": "8b92a1e7.bc27c",
"type": "call",
"name": "call",
"xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",
"comments": "",
"outputs": 1,
- "x": 1058.5555419921875,
- "y": 471.4444274902344,
- "z": "d7735114.f6066",
+ "x": 1071.3428039550781,
+ "y": 468.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "d11ad8e1.0343c8",
+ "id": "8396b208.e8981",
"type": "execute",
"name": "execute",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.template.so.response.filename`\" />\n<parameter name=\"restapiUrl\" value=\"`$output.notification-url`\"/>\n<parameter name=\"restapiUser\" value=\"`$prop.so.username`\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.so.password`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n<parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/async-response-so.json'`\" />\n<parameter name=\"restapiUrl\" value=\"http://so-bpmn-infra.onap:8081/mso/async/services/updateStatus\"/>\n<parameter name=\"restapiUser\" value=\"sdncaBpmn\" />\n<parameter name=\"restapiPassword\" value=\"`$prop.so.password`\"/>\n<parameter name=\"httpMethod\" value=\"POST\"/>\n<parameter name=\"responsePrefix\" value=\"so-response\"/>\n<parameter name='contentType' value='application/json' />\n<parameter name='format' value='json' />",
"comments": "",
"outputs": 1,
- "x": 600.5555419921875,
- "y": 501.4444274902344,
- "z": "d7735114.f6066",
+ "x": 476.6761817932129,
+ "y": 611.6665420532227,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "7c0eb31b.04d7bc",
- "f4076cb2.329c4"
+ "5f7ef8af.965fc8",
+ "9e60f285.734b9"
]
]
},
{
- "id": "7c0eb31b.04d7bc",
+ "id": "5f7ef8af.965fc8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 762.5555419921875,
- "y": 494.4444274902344,
- "z": "d7735114.f6066",
+ "x": 640.3428001403809,
+ "y": 551.3333511352539,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "d698b0bd.4bbda"
+ "5070ed23.8c9e54"
]
]
},
{
- "id": "f4076cb2.329c4",
+ "id": "9e60f285.734b9",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 764.5555419921875,
- "y": 564.4444274902344,
- "z": "d7735114.f6066",
+ "x": 655.6761627197266,
+ "y": 746.3332901000977,
+ "z": "be3a2ce6.bef39",
"wires": [
[
- "43f03cc3.9bf324"
+ "a1bca3b0.e469f"
]
]
},
{
- "id": "d698b0bd.4bbda",
+ "id": "5070ed23.8c9e54",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO fails for service create\"/>\n",
"comments": "",
"outputs": 1,
- "x": 904.5555419921875,
- "y": 494.4444274902344,
- "z": "d7735114.f6066",
+ "x": 800.6762237548828,
+ "y": 552.9999961853027,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "43f03cc3.9bf324",
+ "id": "a1bca3b0.e469f",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"Send to SO Success for service create\"/>\n",
"comments": "",
"outputs": 1,
- "x": 904.5555419921875,
- "y": 564.4444274902344,
- "z": "d7735114.f6066",
+ "x": 804.0094413757324,
+ "y": 747.9999389648438,
+ "z": "be3a2ce6.bef39",
"wires": [
[]
]
},
{
- "id": "15476d01.4a1043",
+ "id": "28d57db1.c0d9d2",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",
"comments": "",
- "x": 1073.5555419921875,
- "y": 146.44442749023438,
- "z": "d7735114.f6066",
+ "x": 1088.0094108581543,
+ "y": 65.00000095367432,
+ "z": "be3a2ce6.bef39",
"wires": []
},
{
- "id": "7353aa4c.564df4",
+ "id": "aff39e4d.84164",
"type": "set",
"name": "set",
"xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",
"comments": "",
- "x": 1052.5555419921875,
- "y": 401.4444274902344,
- "z": "d7735114.f6066",
+ "x": 1065.3428039550781,
+ "y": 398.3333320617676,
+ "z": "be3a2ce6.bef39",
"wires": []
+ },
+ {
+ "id": "deb2202e.47c5f",
+ "type": "get-resource",
+ "name": "get access db",
+ "xml": "<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' resource='SQL' \nkey=\"SELECT * from REQUEST_DETAILS WHERE domain_requests = $request-id \"\npfx='access'>\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1168.3428573608398,
+ "y": 261.67612648010254,
+ "z": "be3a2ce6.bef39",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "60087b41.b7d234",
+ "type": "save",
+ "name": "update DB 'CREATED' access",
+ "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.resource.sql.SqlResource' \nresource='SQL' \nkey='UPDATE REQUEST_DETAILS SET status = \"CREATED\" WHERE request_id = $access.request-id'\nforce='true' pfx='save-result'>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1185.0093460083008,
+ "y": 301.67611503601074,
+ "z": "be3a2ce6.bef39",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "f2d65098.e5d31",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='so.service-instance-id' value='`$access.service-instance-id`' />\n<parameter name='so.service-type' value='`$access.service-type`' />\n<parameter name='so.svc-request-id' value='`$access.request-id`' />\n<parameter name='so.response-code' value='`$response-code`' />\n<parameter name='so.response-message' value='`$response-message`' />\n<parameter name='so.ack-final-indicator' value='Y' />\n\n",
+ "comments": "",
+ "x": 628.3427734375,
+ "y": 460.0093746185303,
+ "z": "be3a2ce6.bef39",
+ "wires": []
+ },
+ {
+ "id": "88fbe255.2e8d8",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.FileRecorder\">\n<parameter name=\"file\" value=\"/opt/opendaylight/current/data/log/async-notif.log\" />\n<parameter name=\"level\" value=\"info\" />\n<parameter name=\"field1\" value=\"SO Parameters\"/>\n<parameter name=\"field2\" value=\"`$so.service-instance-id`\"/>\n<parameter name=\"field3\" value=\"`$so.svc-request-id`\"/>\n<parameter name=\"field4\" value=\"`$so.response-code`\"/>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 563.342830657959,
+ "y": 516.6761665344238,
+ "z": "be3a2ce6.bef39",
+ "wires": [
+ []
+ ]
}
] \ No newline at end of file