summaryrefslogtreecommitdiffstats
path: root/platform-logic/lcm/src/main/json/LCM_upgrade-backup.json
blob: d45b3d1172e5baf9fa99ee8c3c42998c18e319e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[
    {
        "id": "c36c1e82.e47c",
        "type": "method",
        "name": "upgrade-backup",
        "xml": "<method rpc='upgrade-backup' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 530,
        "y": 121,
        "z": "a439ae77.f8998",
        "wires": [
            [
                "ea26f1ed.e963b"
            ]
        ]
    },
    {
        "id": "4c2264b2.81a61c",
        "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": 300.99993896484375,
        "y": 122,
        "z": "a439ae77.f8998",
        "wires": [
            [
                "c36c1e82.e47c"
            ]
        ]
    },
    {
        "id": "a3360ab0.ce42c8",
        "type": "returnSuccess",
        "name": "return success",
        "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Upgrade-backup Mock returns success'/>",
        "comments": "",
        "x": 383,
        "y": 510,
        "z": "a439ae77.f8998",
        "wires": []
    },
    {
        "id": "7e67863d.7c42f8",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 98,
        "y": 121,
        "z": "a439ae77.f8998",
        "wires": [
            [
                "4c2264b2.81a61c"
            ]
        ]
    },
    {
        "id": "ea26f1ed.e963b",
        "type": "block",
        "name": "block",
        "xml": "<block>\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 133.91668701171875,
        "y": 275.0833435058594,
        "z": "a439ae77.f8998",
        "wires": [
            [
                "f1d5fb31.fa3878",
                "625601b.39b33",
                "786cf009.ea481",
                "cd184491.d656e8",
                "a3360ab0.ce42c8"
            ]
        ]
    },
    {
        "id": "f1d5fb31.fa3878",
        "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": 421,
        "y": 260.0833435058594,
        "z": "a439ae77.f8998",
        "wires": [
            []
        ]
    },
    {
        "id": "cd184491.d656e8",
        "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": 397,
        "y": 437.0833435058594,
        "z": "a439ae77.f8998",
        "wires": [
            [
                "91133c94.04e29"
            ]
        ]
    },
    {
        "id": "91133c94.04e29",
        "type": "failure",
        "name": "failure",
        "xml": "<outcome value='failure'>\n",
        "comments": "",
        "outputs": 1,
        "x": 606,
        "y": 435.0833435058594,
        "z": "a439ae77.f8998",
        "wires": [
            [
                "f3b86bb6.9cf808"
            ]
        ]
    },
    {
        "id": "f3b86bb6.9cf808",
        "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": 766,
        "y": 435.0833435058594,
        "z": "a439ae77.f8998",
        "wires": [
            []
        ]
    },
    {
        "id": "786cf009.ea481",
        "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": 369,
        "y": 369.0833435058594,
        "z": "a439ae77.f8998",
        "wires": []
    },
    {
        "id": "625601b.39b33",
        "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": 423,
        "y": 312,
        "z": "a439ae77.f8998",
        "wires": []
    }
]