summaryrefslogtreecommitdiffstats
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.json325
1 files changed, 325 insertions, 0 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
new file mode 100644
index 00000000..6926f79a
--- /dev/null
+++ b/platform-logic/optical-service/src/main/json/optical-service_create-service-async.json
@@ -0,0 +1,325 @@
+[
+ {
+ "id": "ef271e98.1343d",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 225.5555419921875,
+ "y": 244.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "69929ea4.2407d"
+ ]
+ ]
+ },
+ {
+ "id": "69929ea4.2407d",
+ "type": "service-logic",
+ "name": "optical-service ${project.version}",
+ "module": "optical-service",
+ "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='optical-service' version='${project.version}'>",
+ "outputs": 1,
+ "x": 412.5555419921875,
+ "y": 193.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "926e362a.257c68"
+ ]
+ ]
+ },
+ {
+ "id": "926e362a.257c68",
+ "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",
+ "wires": [
+ [
+ "1e677fcc.18edb"
+ ]
+ ]
+ },
+ {
+ "id": "1e677fcc.18edb",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 439.5555419921875,
+ "y": 366.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "570787b6.c60918",
+ "8b32ac88.06a0b",
+ "d11ad8e1.0343c8"
+ ]
+ ]
+ },
+ {
+ "id": "570787b6.c60918",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "28c538c4.2302f8",
+ "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",
+ "comments": "",
+ "outputs": 1,
+ "x": 1140.5555419921875,
+ "y": 359.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5e382c44.972184",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "11f258cf.0cfbe7",
+ "type": "outcome",
+ "name": "outcome",
+ "xml": "<outcome value='200'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 744.5555419921875,
+ "y": 328.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "6823decd.1c0f4"
+ ]
+ ]
+ },
+ {
+ "id": "1f9398a1.9403f7",
+ "type": "other",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 735.5555419921875,
+ "y": 440.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "a0d9ffaf.322a"
+ ]
+ ]
+ },
+ {
+ "id": "6823decd.1c0f4",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 914.5555419921875,
+ "y": 306.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "28c538c4.2302f8",
+ "5e382c44.972184",
+ "8124c756.1dde88",
+ "15476d01.4a1043"
+ ]
+ ]
+ },
+ {
+ "id": "a0d9ffaf.322a",
+ "type": "block",
+ "name": "block : atomic",
+ "xml": "<block atomic='true'>",
+ "atomic": "true",
+ "comments": "",
+ "outputs": 1,
+ "x": 907.5555419921875,
+ "y": 443.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "20546055.63c8f",
+ "7353aa4c.564df4"
+ ]
+ ]
+ },
+ {
+ "id": "8b32ac88.06a0b",
+ "type": "switchNode",
+ "name": "switch",
+ "xml": "<switch test='`$response-code`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 613.5555419921875,
+ "y": 366.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "11f258cf.0cfbe7",
+ "1f9398a1.9403f7"
+ ]
+ ]
+ },
+ {
+ "id": "8124c756.1dde88",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "20546055.63c8f",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d11ad8e1.0343c8",
+ "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' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 600.5555419921875,
+ "y": 501.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "7c0eb31b.04d7bc",
+ "f4076cb2.329c4"
+ ]
+ ]
+ },
+ {
+ "id": "7c0eb31b.04d7bc",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 762.5555419921875,
+ "y": 494.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "d698b0bd.4bbda"
+ ]
+ ]
+ },
+ {
+ "id": "f4076cb2.329c4",
+ "type": "success",
+ "name": "success",
+ "xml": "<outcome value='success'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 764.5555419921875,
+ "y": 564.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": [
+ [
+ "43f03cc3.9bf324"
+ ]
+ ]
+ },
+ {
+ "id": "d698b0bd.4bbda",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "43f03cc3.9bf324",
+ "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",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "15476d01.4a1043",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",
+ "comments": "",
+ "x": 1073.5555419921875,
+ "y": 146.44442749023438,
+ "z": "d7735114.f6066",
+ "wires": []
+ },
+ {
+ "id": "7353aa4c.564df4",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",
+ "comments": "",
+ "x": 1052.5555419921875,
+ "y": 401.4444274902344,
+ "z": "d7735114.f6066",
+ "wires": []
+ }
+] \ No newline at end of file