549425c63b3f4578208941636739a54e629718b0
[sdnc/oam.git] / platform-logic / lcm / src / main / json / LCM_snapshot.json
1 [
2     {
3         "id": "85add9d3.6d38c8",
4         "type": "method",
5         "name": "snapshot",
6         "xml": "<method rpc='snapshot' mode='sync'>\n",
7         "comments": "",
8         "outputs": 1,
9         "x": 535.5,
10         "y": 83,
11         "z": "1bef9bfd.091c84",
12         "wires": [
13             [
14                 "a726273f.d4087"
15             ]
16         ]
17     },
18     {
19         "id": "6cc2acd4.57558c",
20         "type": "service-logic",
21         "name": "LCM ${project.version}",
22         "module": "LCM",
23         "version": "${project.version}",
24         "comments": "",
25         "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}'>",
26         "outputs": 1,
27         "x": 306.49993896484375,
28         "y": 84,
29         "z": "1bef9bfd.091c84",
30         "wires": [
31             [
32                 "85add9d3.6d38c8"
33             ]
34         ]
35     },
36     {
37         "id": "3b5bd72a.fb19f8",
38         "type": "returnSuccess",
39         "name": "return success",
40         "xml": "<return status='success'>\n<parameter name='status.code' value='400' />\n<parameter name='status.message' value='SDNC Lock Mock returns success'/>",
41         "comments": "",
42         "x": 388.5,
43         "y": 472,
44         "z": "1bef9bfd.091c84",
45         "wires": []
46     },
47     {
48         "id": "7bee7647.02e808",
49         "type": "dgstart",
50         "name": "DGSTART",
51         "outputs": 1,
52         "x": 103.5,
53         "y": 83,
54         "z": "1bef9bfd.091c84",
55         "wires": [
56             [
57                 "6cc2acd4.57558c"
58             ]
59         ]
60     },
61     {
62         "id": "a726273f.d4087",
63         "type": "block",
64         "name": "block",
65         "xml": "<block>\n",
66         "atomic": "false",
67         "comments": "",
68         "outputs": 1,
69         "x": 139.41668701171875,
70         "y": 237.08334350585938,
71         "z": "1bef9bfd.091c84",
72         "wires": [
73             [
74                 "c733c1eb.f6dc98",
75                 "8a3a4a22.8cd238",
76                 "5c905e45.08ff1",
77                 "ff16f6f7.bb02d",
78                 "3b5bd72a.fb19f8"
79             ]
80         ]
81     },
82     {
83         "id": "c733c1eb.f6dc98",
84         "type": "execute",
85         "name": "execute Properties",
86         "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",
87         "comments": "",
88         "outputs": 1,
89         "x": 426.5,
90         "y": 222.08334350585938,
91         "z": "1bef9bfd.091c84",
92         "wires": [
93             []
94         ]
95     },
96     {
97         "id": "ff16f6f7.bb02d",
98         "type": "execute",
99         "name": "execute DmaapMsg",
100         "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",
101         "comments": "",
102         "outputs": 1,
103         "x": 402.5,
104         "y": 399.0833435058594,
105         "z": "1bef9bfd.091c84",
106         "wires": [
107             [
108                 "4150232b.d9de94"
109             ]
110         ]
111     },
112     {
113         "id": "4150232b.d9de94",
114         "type": "failure",
115         "name": "failure",
116         "xml": "<outcome value='failure'>\n",
117         "comments": "",
118         "outputs": 1,
119         "x": 611.5,
120         "y": 397.0833435058594,
121         "z": "1bef9bfd.091c84",
122         "wires": [
123             [
124                 "1c38db15.1f052d"
125             ]
126         ]
127     },
128     {
129         "id": "f6eb674d.c21",
130         "type": "failure",
131         "name": "failure",
132         "xml": "<outcome value='failure'>\n",
133         "comments": "",
134         "outputs": 1,
135         "x": 1506.9999389648438,
136         "y": 415.0833511352539,
137         "z": "1bef9bfd.091c84",
138         "wires": [
139             [
140                 "db43d1c.5a1cab"
141             ]
142         ]
143     },
144     {
145         "id": "1c38db15.1f052d",
146         "type": "record",
147         "name": "record",
148         "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'/>",
149         "comments": "",
150         "outputs": 1,
151         "x": 771.5,
152         "y": 397.0833435058594,
153         "z": "1bef9bfd.091c84",
154         "wires": [
155             []
156         ]
157     },
158     {
159         "id": "db43d1c.5a1cab",
160         "type": "record",
161         "name": "record",
162         "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'/>",
163         "comments": "",
164         "outputs": 1,
165         "x": 1628.4166870117188,
166         "y": 416.0833511352539,
167         "z": "1bef9bfd.091c84",
168         "wires": [
169             []
170         ]
171     },
172     {
173         "id": "5c905e45.08ff1",
174         "type": "set",
175         "name": "set",
176         "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",
177         "comments": "",
178         "x": 374.5,
179         "y": 331.0833435058594,
180         "z": "1bef9bfd.091c84",
181         "wires": []
182     },
183     {
184         "id": "8a3a4a22.8cd238",
185         "type": "set",
186         "name": "set default status value",
187         "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n",
188         "comments": "",
189         "x": 428.5,
190         "y": 274,
191         "z": "1bef9bfd.091c84",
192         "wires": []
193     }
194 ]