aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/lcm/src/main/json/LCM_lock.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_resume-traffic.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_snapshot.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_unlock.json194
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-backup.json194
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_lock.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_snapshot.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_unlock.xml53
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml53
12 files changed, 1482 insertions, 0 deletions
diff --git a/platform-logic/lcm/src/main/json/LCM_lock.json b/platform-logic/lcm/src/main/json/LCM_lock.json
new file mode 100644
index 00000000..32f1f8c0
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_lock.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "lock",
+ "xml": "<method rpc='lock' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "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='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$lock-input.common-header.request-id + '-' + $lock-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='lock'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$lock-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$lock-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$lock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$lock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$lock-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$lock-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$lock-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$lock-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json b/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json
new file mode 100644
index 00000000..6def0fc5
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_quiesce-traffic.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "quiesce-traffic",
+ "xml": "<method rpc='quiesce-traffic' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "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='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$quiesce-traffic-input.common-header.request-id + '-' + $quiesce-traffic-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='quiesce-traffic'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$quiesce-traffic-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$quiesce-traffic-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$quiesce-traffic-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$quiesce-traffic-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$quiesce-traffic-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$quiesce-traffic-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Quiesce-traffic Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_resume-traffic.json b/platform-logic/lcm/src/main/json/LCM_resume-traffic.json
new file mode 100644
index 00000000..b7c07b32
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_resume-traffic.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "resume-traffic",
+ "xml": "<method rpc='resume-traffic' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "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='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$resume-traffic-input.common-header.request-id + '-' + $resume-traffic-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='resume-traffic'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$resume-traffic-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$resume-traffic-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$resume-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$resume-traffic-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$resume-traffic-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$resume-traffic-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$resume-traffic-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$resume-traffic-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Resume-traffic Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_snapshot.json b/platform-logic/lcm/src/main/json/LCM_snapshot.json
new file mode 100644
index 00000000..549425c6
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_snapshot.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "snapshot",
+ "xml": "<method rpc='snapshot' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "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='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$snapshot-input.common-header.request-id + '-' + $snapshot-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='snapshot'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$snapshot-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$snapshot-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$snapshot-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$snapshot-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$snapshot-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$snapshot-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$snapshot-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$snapshot-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Snapshot Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_unlock.json b/platform-logic/lcm/src/main/json/LCM_unlock.json
new file mode 100644
index 00000000..827259d9
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_unlock.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "unlock",
+ "xml": "<method rpc='unlock' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "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='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Unlock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$unlock-input.common-header.request-id + '-' + $unlock-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='unlock'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$unlock-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$unlock-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$unlock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$unlock-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$unlock-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$unlock-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$unlock-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$unlock-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json b/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json
new file mode 100644
index 00000000..42534d67
--- /dev/null
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json
@@ -0,0 +1,194 @@
+[
+ {
+ "id": "85add9d3.6d38c8",
+ "type": "method",
+ "name": "upgrade-backup",
+ "xml": "<method rpc='upgrade-backup' mode='sync'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 535.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "a726273f.d4087"
+ ]
+ ]
+ },
+ {
+ "id": "6cc2acd4.57558c",
+ "type": "service-logic",
+ "name": "LCM ${project.version}",
+ "module": "LCM",
+ "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='LCM' version='${project.version}'>",
+ "outputs": 1,
+ "x": 306.49993896484375,
+ "y": 84,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "85add9d3.6d38c8"
+ ]
+ ]
+ },
+ {
+ "id": "3b5bd72a.fb19f8",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
+ "comments": "",
+ "x": 388.5,
+ "y": 472,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "7bee7647.02e808",
+ "type": "dgstart",
+ "name": "DGSTART",
+ "outputs": 1,
+ "x": 103.5,
+ "y": 83,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "6cc2acd4.57558c"
+ ]
+ ]
+ },
+ {
+ "id": "a726273f.d4087",
+ "type": "block",
+ "name": "block",
+ "xml": "<block>\n",
+ "atomic": "false",
+ "comments": "",
+ "outputs": 1,
+ "x": 139.41668701171875,
+ "y": 237.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "c733c1eb.f6dc98",
+ "8a3a4a22.8cd238",
+ "5c905e45.08ff1",
+ "ff16f6f7.bb02d",
+ "3b5bd72a.fb19f8"
+ ]
+ ]
+ },
+ {
+ "id": "c733c1eb.f6dc98",
+ "type": "execute",
+ "name": "execute Properties",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 426.5,
+ "y": 222.08334350585938,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "ff16f6f7.bb02d",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 402.5,
+ "y": 399.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "4150232b.d9de94"
+ ]
+ ]
+ },
+ {
+ "id": "4150232b.d9de94",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 611.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "1c38db15.1f052d"
+ ]
+ ]
+ },
+ {
+ "id": "f6eb674d.c21",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1506.9999389648438,
+ "y": 415.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ [
+ "db43d1c.5a1cab"
+ ]
+ ]
+ },
+ {
+ "id": "1c38db15.1f052d",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 771.5,
+ "y": 397.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "db43d1c.5a1cab",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1628.4166870117188,
+ "y": 416.0833511352539,
+ "z": "1bef9bfd.091c84",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "5c905e45.08ff1",
+ "type": "set",
+ "name": "set",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-backup-input.common-header.request-id + '-' + $upgrade-backup-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-backup'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-backup-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-backup-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-backup-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-backup-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-backup-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-backup-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-backup-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-backup-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='400' />\n<parameter name='lcm-dmaap.status.message' value='SDNC Upgrade-backup Mock returns success'/>\n",
+ "comments": "",
+ "x": 374.5,
+ "y": 331.0833435058594,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ },
+ {
+ "id": "8a3a4a22.8cd238",
+ "type": "set",
+ "name": "set default status value",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
+ "comments": "",
+ "x": 428.5,
+ "y": 274,
+ "z": "1bef9bfd.091c84",
+ "wires": []
+ }
+]
diff --git a/platform-logic/lcm/src/main/xml/LCM_lock.xml b/platform-logic/lcm/src/main/xml/LCM_lock.xml
new file mode 100644
index 00000000..5cbe621f
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_lock.xml
@@ -0,0 +1,53 @@
+<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='LCM' version='${project.version}'>
+ <method rpc='lock' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$lock-input.common-header.request-id + '-' + $lock-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='lock'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$lock-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$lock-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$lock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$lock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$lock-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$lock-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$lock-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$lock-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Lock Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic> \ No newline at end of file
diff --git a/platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml b/platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml
new file mode 100644
index 00000000..172c459c
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_quiesce-traffic.xml
@@ -0,0 +1,53 @@
+<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='LCM' version='${project.version}'>
+ <method rpc='quiesce-traffic' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$quiesce-traffic-input.common-header.request-id + '-' + $quiesce-traffic-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='quiesce-traffic'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$quiesce-traffic-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$quiesce-traffic-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$quiesce-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$quiesce-traffic-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$quiesce-traffic-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$quiesce-traffic-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$quiesce-traffic-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Quiesce-Traffic Mock returns success'/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Quiesce-Traffic Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml b/platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml
new file mode 100644
index 00000000..6862d598
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_resume-traffic.xml
@@ -0,0 +1,53 @@
+<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='LCM' version='${project.version}'>
+ <method rpc='resume-traffic' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$resume-traffic-input.common-header.request-id + '-' + $resume-traffic-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='resume-traffic'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$resume-traffic-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$resume-traffic-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$resume-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$resume-traffic-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$resume-traffic-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$resume-traffic-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$resume-traffic-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$resume-traffic-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC resume-traffic Mock returns success'/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC resume-traffic Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_snapshot.xml b/platform-logic/lcm/src/main/xml/LCM_snapshot.xml
new file mode 100644
index 00000000..4284f404
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_snapshot.xml
@@ -0,0 +1,53 @@
+<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='LCM' version='${project.version}'>
+ <method rpc='snapshot' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$snapshot-input.common-header.request-id + '-' + $snapshot-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='snapshot'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$snapshot-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$snapshot-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$snapshot-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$snapshot-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$snapshot-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$snapshot-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$snapshot-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$snapshot-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Snapshot Mock returns success'/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Snapshot Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_unlock.xml b/platform-logic/lcm/src/main/xml/LCM_unlock.xml
new file mode 100644
index 00000000..37c36a07
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_unlock.xml
@@ -0,0 +1,53 @@
+<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='LCM' version='${project.version}'>
+ <method rpc='unlock' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$unlock-input.common-header.request-id + '-' + $unlock-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='unlock'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$unlock-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$unlock-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$unlock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$unlock-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$unlock-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$unlock-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$unlock-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$unlock-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC UnLock Mock returns success'/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC UnLock Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml
new file mode 100644
index 00000000..4b9ef5cd
--- /dev/null
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-backup.xml
@@ -0,0 +1,53 @@
+<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='LCM' version='${project.version}'>
+ <method rpc='upgrade-backup' mode='sync'>
+ <block>
+ <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
+ <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />
+ <parameter name='contextPrefix' value='prop' />
+ </execute>
+ <set>
+ <parameter name='status.code' value='200' />
+ <parameter name='status.message' value='unexpected return from DG' />
+ </set>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-backup-input.common-header.request-id + '-' + $upgrade-backup-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-backup'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-backup-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-backup-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-backup-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-backup-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-backup-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-backup-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-backup-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-backup-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='400' />
+ <parameter name='lcm-dmaap.status.message' value='SDNC Lock Mock returns success'/>
+ </set>
+ <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
+ <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
+ <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
+ <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />
+ <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />
+ <parameter name='format' value='json' />
+ <parameter name='httpMethod' value='POST' />
+ <parameter name='contentType' value='application/json' />
+ <parameter name="responsePrefix" value="lcm" />
+ <outcome value='failure'>
+ <record plugin="org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder">
+ <parameter name="logger" value="message-log"/>
+ <parameter name="field1" value='Failed to Publish to DMaap'/>
+ </record>
+ </outcome>
+ </execute>
+ <return status='success'>
+ <parameter name='status.code' value='400' />
+ <parameter name='status.message' value='SDNC Lock Mock returns success'/>
+ </return>
+ </block>
+ </method>
+</service-logic>