DG'S added for MDONS use case
[sdnc/oam.git] / platform-logic / optical-service / src / main / json / optical-service_create-service-async.json
1 [\r
2     {\r
3         "id": "ef271e98.1343d",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 225.5555419921875,\r
8         "y": 244.44442749023438,\r
9         "z": "d7735114.f6066",\r
10         "wires": [\r
11             [\r
12                 "69929ea4.2407d"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "69929ea4.2407d",\r
18         "type": "service-logic",\r
19         "name": "optical-service ${project.version}",\r
20         "module": "optical-service",\r
21         "version": "${project.version}",\r
22         "comments": "",\r
23         "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}'>",\r
24         "outputs": 1,\r
25         "x": 412.5555419921875,\r
26         "y": 193.44442749023438,\r
27         "z": "d7735114.f6066",\r
28         "wires": [\r
29             [\r
30                 "926e362a.257c68"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "926e362a.257c68",\r
36         "type": "method",\r
37         "name": "method",\r
38         "xml": "<method rpc='create-service-async' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 266.5555419921875,\r
42         "y": 367.4444274902344,\r
43         "z": "d7735114.f6066",\r
44         "wires": [\r
45             [\r
46                 "1e677fcc.18edb"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "1e677fcc.18edb",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic='true'>",\r
55         "atomic": "true",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 439.5555419921875,\r
59         "y": 366.4444274902344,\r
60         "z": "d7735114.f6066",\r
61         "wires": [\r
62             [\r
63                 "570787b6.c60918",\r
64                 "8b32ac88.06a0b",\r
65                 "d11ad8e1.0343c8"\r
66             ]\r
67         ]\r
68     },\r
69     {\r
70         "id": "570787b6.c60918",\r
71         "type": "record",\r
72         "name": "record",\r
73         "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",\r
74         "comments": "",\r
75         "outputs": 1,\r
76         "x": 612.5555419921875,\r
77         "y": 277.4444274902344,\r
78         "z": "d7735114.f6066",\r
79         "wires": [\r
80             []\r
81         ]\r
82     },\r
83     {\r
84         "id": "28c538c4.2302f8",\r
85         "type": "record",\r
86         "name": "record",\r
87         "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",\r
88         "comments": "",\r
89         "outputs": 1,\r
90         "x": 1140.5555419921875,\r
91         "y": 359.4444274902344,\r
92         "z": "d7735114.f6066",\r
93         "wires": [\r
94             []\r
95         ]\r
96     },\r
97     {\r
98         "id": "5e382c44.972184",\r
99         "type": "update",\r
100         "name": "update AAI service 'CREATED'",\r
101         "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",\r
102         "comments": "",\r
103         "outputs": 1,\r
104         "x": 1163.5555419921875,\r
105         "y": 227.44442749023438,\r
106         "z": "d7735114.f6066",\r
107         "wires": [\r
108             []\r
109         ]\r
110     },\r
111     {\r
112         "id": "11f258cf.0cfbe7",\r
113         "type": "outcome",\r
114         "name": "outcome",\r
115         "xml": "<outcome value='200'>\n",\r
116         "comments": "",\r
117         "outputs": 1,\r
118         "x": 744.5555419921875,\r
119         "y": 328.4444274902344,\r
120         "z": "d7735114.f6066",\r
121         "wires": [\r
122             [\r
123                 "6823decd.1c0f4"\r
124             ]\r
125         ]\r
126     },\r
127     {\r
128         "id": "1f9398a1.9403f7",\r
129         "type": "other",\r
130         "name": "other",\r
131         "xml": "<outcome value='Other'>\n",\r
132         "comments": "",\r
133         "outputs": 1,\r
134         "x": 735.5555419921875,\r
135         "y": 440.4444274902344,\r
136         "z": "d7735114.f6066",\r
137         "wires": [\r
138             [\r
139                 "a0d9ffaf.322a"\r
140             ]\r
141         ]\r
142     },\r
143     {\r
144         "id": "6823decd.1c0f4",\r
145         "type": "block",\r
146         "name": "block : atomic",\r
147         "xml": "<block atomic='true'>",\r
148         "atomic": "true",\r
149         "comments": "",\r
150         "outputs": 1,\r
151         "x": 914.5555419921875,\r
152         "y": 306.4444274902344,\r
153         "z": "d7735114.f6066",\r
154         "wires": [\r
155             [\r
156                 "28c538c4.2302f8",\r
157                 "5e382c44.972184",\r
158                 "8124c756.1dde88",\r
159                 "15476d01.4a1043"\r
160             ]\r
161         ]\r
162     },\r
163     {\r
164         "id": "a0d9ffaf.322a",\r
165         "type": "block",\r
166         "name": "block : atomic",\r
167         "xml": "<block atomic='true'>",\r
168         "atomic": "true",\r
169         "comments": "",\r
170         "outputs": 1,\r
171         "x": 907.5555419921875,\r
172         "y": 443.4444274902344,\r
173         "z": "d7735114.f6066",\r
174         "wires": [\r
175             [\r
176                 "20546055.63c8f",\r
177                 "7353aa4c.564df4"\r
178             ]\r
179         ]\r
180     },\r
181     {\r
182         "id": "8b32ac88.06a0b",\r
183         "type": "switchNode",\r
184         "name": "switch",\r
185         "xml": "<switch test='`$response-code`'>\n",\r
186         "comments": "",\r
187         "outputs": 1,\r
188         "x": 613.5555419921875,\r
189         "y": 366.4444274902344,\r
190         "z": "d7735114.f6066",\r
191         "wires": [\r
192             [\r
193                 "11f258cf.0cfbe7",\r
194                 "1f9398a1.9403f7"\r
195             ]\r
196         ]\r
197     },\r
198     {\r
199         "id": "8124c756.1dde88",\r
200         "type": "save",\r
201         "name": "update DB 'CREATED'",\r
202         "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'>",\r
203         "comments": "",\r
204         "outputs": 1,\r
205         "x": 1177.5555419921875,\r
206         "y": 299.4444274902344,\r
207         "z": "d7735114.f6066",\r
208         "wires": [\r
209             []\r
210         ]\r
211     },\r
212     {\r
213         "id": "20546055.63c8f",\r
214         "type": "call",\r
215         "name": "call",\r
216         "xml": "<call module='optical-service' rpc='aai-delete-service-handling' mode='sync' >\n",\r
217         "comments": "",\r
218         "outputs": 1,\r
219         "x": 1058.5555419921875,\r
220         "y": 471.4444274902344,\r
221         "z": "d7735114.f6066",\r
222         "wires": [\r
223             []\r
224         ]\r
225     },\r
226     {\r
227         "id": "d11ad8e1.0343c8",\r
228         "type": "execute",\r
229         "name": "execute",\r
230         "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' />",\r
231         "comments": "",\r
232         "outputs": 1,\r
233         "x": 600.5555419921875,\r
234         "y": 501.4444274902344,\r
235         "z": "d7735114.f6066",\r
236         "wires": [\r
237             [\r
238                 "7c0eb31b.04d7bc",\r
239                 "f4076cb2.329c4"\r
240             ]\r
241         ]\r
242     },\r
243     {\r
244         "id": "7c0eb31b.04d7bc",\r
245         "type": "failure",\r
246         "name": "failure",\r
247         "xml": "<outcome value='failure'>\n",\r
248         "comments": "",\r
249         "outputs": 1,\r
250         "x": 762.5555419921875,\r
251         "y": 494.4444274902344,\r
252         "z": "d7735114.f6066",\r
253         "wires": [\r
254             [\r
255                 "d698b0bd.4bbda"\r
256             ]\r
257         ]\r
258     },\r
259     {\r
260         "id": "f4076cb2.329c4",\r
261         "type": "success",\r
262         "name": "success",\r
263         "xml": "<outcome value='success'>\n",\r
264         "comments": "",\r
265         "outputs": 1,\r
266         "x": 764.5555419921875,\r
267         "y": 564.4444274902344,\r
268         "z": "d7735114.f6066",\r
269         "wires": [\r
270             [\r
271                 "43f03cc3.9bf324"\r
272             ]\r
273         ]\r
274     },\r
275     {\r
276         "id": "d698b0bd.4bbda",\r
277         "type": "record",\r
278         "name": "record",\r
279         "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",\r
280         "comments": "",\r
281         "outputs": 1,\r
282         "x": 904.5555419921875,\r
283         "y": 494.4444274902344,\r
284         "z": "d7735114.f6066",\r
285         "wires": [\r
286             []\r
287         ]\r
288     },\r
289     {\r
290         "id": "43f03cc3.9bf324",\r
291         "type": "record",\r
292         "name": "record",\r
293         "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",\r
294         "comments": "",\r
295         "outputs": 1,\r
296         "x": 904.5555419921875,\r
297         "y": 564.4444274902344,\r
298         "z": "d7735114.f6066",\r
299         "wires": [\r
300             []\r
301         ]\r
302     },\r
303     {\r
304         "id": "15476d01.4a1043",\r
305         "type": "set",\r
306         "name": "set",\r
307         "xml": "<set>\n<parameter name='response-message' value='SUCCESS' />\n",\r
308         "comments": "",\r
309         "x": 1073.5555419921875,\r
310         "y": 146.44442749023438,\r
311         "z": "d7735114.f6066",\r
312         "wires": []\r
313     },\r
314     {\r
315         "id": "7353aa4c.564df4",\r
316         "type": "set",\r
317         "name": "set",\r
318         "xml": "<set>\n<parameter name='response-message' value='FAILURE' />\n",\r
319         "comments": "",\r
320         "x": 1052.5555419921875,\r
321         "y": 401.4444274902344,\r
322         "z": "d7735114.f6066",\r
323         "wires": []\r
324     }\r
325 ]