Moved bbs logic from network-topoly-operation to vnf
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-internet-profile-vnf-topology-operation-change-huawei.json
1 [\r
2     {\r
3         "id": "30e08a8.30d50f6",\r
4         "type": "dgstart",\r
5         "name": "DGSTART",\r
6         "outputs": 1,\r
7         "x": 109.75,\r
8         "y": 57.75,\r
9         "z": "f67d7469.c15c48",\r
10         "wires": [\r
11             [\r
12                 "48f4fbce.5d31ac"\r
13             ]\r
14         ]\r
15     },\r
16     {\r
17         "id": "48f4fbce.5d31ac",\r
18         "type": "service-logic",\r
19         "name": "GENERIC-RESOURCE-API ${project.version}",\r
20         "module": "GENERIC-RESOURCE-API",\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='GENERIC-RESOURCE-API' version='${project.version}'>",\r
24         "outputs": 1,\r
25         "x": 417.74964904785156,\r
26         "y": 57.75002193450928,\r
27         "z": "f67d7469.c15c48",\r
28         "wires": [\r
29             [\r
30                 "74687d07.30906c"\r
31             ]\r
32         ]\r
33     },\r
34     {\r
35         "id": "74687d07.30906c",\r
36         "type": "method",\r
37         "name": "method:bbs-internet-profile-vnf-topology-operation-change-huawei",\r
38         "xml": "<method rpc='bbs-internet-profile-vnf-topology-operation-change-huawei' mode='sync'>\n",\r
39         "comments": "",\r
40         "outputs": 1,\r
41         "x": 415.74964904785156,\r
42         "y": 253.75006198883057,\r
43         "z": "f67d7469.c15c48",\r
44         "wires": [\r
45             [\r
46                 "4da1c203.90ca44"\r
47             ]\r
48         ]\r
49     },\r
50     {\r
51         "id": "4da1c203.90ca44",\r
52         "type": "block",\r
53         "name": "block : atomic",\r
54         "xml": "<block atomic=\"true\">\n",\r
55         "atomic": "false",\r
56         "comments": "",\r
57         "outputs": 1,\r
58         "x": 822.7498626708984,\r
59         "y": 254.75006198883057,\r
60         "z": "f67d7469.c15c48",\r
61         "wires": [\r
62             [\r
63                 "dd2b33a2.9b6cb8",\r
64                 "562f3ae4.b70bec",\r
65                 "39abed71.23fa8a"\r
66             ]\r
67         ]\r
68     },\r
69     {\r
70         "id": "562f3ae4.b70bec",\r
71         "type": "execute",\r
72         "name": "execute:ChangeInternetProfileInstance",\r
73         "xml": "<execute plugin=\"org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode\" method=\"sendRequest\">\n    <parameter name=\"templateFileName\" value=\"`$prop.restapi.templateDir + '/bbs-internet-profile-operation.json'`\" />\n    <parameter name=\"restapiUrl\" value=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/ChangeInternetProfileInstance'`\" />\n    <parameter name=\"contentType\" value=\"application/json\"/>\n    <parameter name=\"httpMethod\" value=\"post\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>",\r
74         "comments": "",\r
75         "outputs": 1,\r
76         "x": 1149.75,\r
77         "y": 255.75,\r
78         "z": "f67d7469.c15c48",\r
79         "wires": [\r
80             [\r
81                 "218b60aa.c94c1",\r
82                 "4970adb.e3682d4"\r
83             ]\r
84         ]\r
85     },\r
86     {\r
87         "id": "4970adb.e3682d4",\r
88         "type": "outcome",\r
89         "name": "failure",\r
90         "xml": "<outcome value='failure'>\n",\r
91         "comments": "",\r
92         "outputs": 1,\r
93         "x": 1451.0829811096191,\r
94         "y": 255.75,\r
95         "z": "f67d7469.c15c48",\r
96         "wires": [\r
97             [\r
98                 "651aa8da.9f2b6"\r
99             ]\r
100         ]\r
101     },\r
102     {\r
103         "id": "218b60aa.c94c1",\r
104         "type": "outcome",\r
105         "name": "success",\r
106         "xml": "<outcome value='success'>\n",\r
107         "comments": "",\r
108         "outputs": 1,\r
109         "x": 1460.082893371582,\r
110         "y": 330.75000190734863,\r
111         "z": "f67d7469.c15c48",\r
112         "wires": [\r
113             [\r
114                 "ac4ee16c.6acf"\r
115             ]\r
116         ]\r
117     },\r
118     {\r
119         "id": "ac4ee16c.6acf",\r
120         "type": "switchNode",\r
121         "name": "switch:service-result",\r
122         "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",\r
123         "comments": "",\r
124         "outputs": 1,\r
125         "x": 1695.0990142822266,\r
126         "y": 329.78929710388184,\r
127         "z": "f67d7469.c15c48",\r
128         "wires": [\r
129             [\r
130                 "7fde3fda.e84e4",\r
131                 "b0522dad.def458"\r
132             ]\r
133         ]\r
134     },\r
135     {\r
136         "id": "651aa8da.9f2b6",\r
137         "type": "returnFailure",\r
138         "name": "return failure",\r
139         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"Error failed to call ChangeInternetProfileInstance\" />\n",\r
140         "comments": "",\r
141         "x": 1960.0165939331055,\r
142         "y": 256.03954792022705,\r
143         "z": "f67d7469.c15c48",\r
144         "wires": []\r
145     },\r
146     {\r
147         "id": "7fde3fda.e84e4",\r
148         "type": "outcome",\r
149         "name": "Other",\r
150         "xml": "<outcome value='Other'>\n",\r
151         "comments": "",\r
152         "outputs": 1,\r
153         "x": 1921.0993537902832,\r
154         "y": 330.78939056396484,\r
155         "z": "f67d7469.c15c48",\r
156         "wires": [\r
157             [\r
158                 "26ffbe03.508d62"\r
159             ]\r
160         ]\r
161     },\r
162     {\r
163         "id": "b0522dad.def458",\r
164         "type": "outcome",\r
165         "name": "NULL",\r
166         "xml": "<outcome value=''>\n",\r
167         "comments": "",\r
168         "outputs": 1,\r
169         "x": 1931.0990600585938,\r
170         "y": 416.78925704956055,\r
171         "z": "f67d7469.c15c48",\r
172         "wires": [\r
173             [\r
174                 "5ce83dfd.6c2514"\r
175             ]\r
176         ]\r
177     },\r
178     {\r
179         "id": "26ffbe03.508d62",\r
180         "type": "returnFailure",\r
181         "name": "return failure",\r
182         "xml": "<return status='failure'>\n<parameter name='ack-final' value='Y'/>\n<parameter name=\"error-code\" value=\"500\" />\n<parameter name=\"error-message\" value=\"`'Error ChangeInternetProfileInstance return: '+$service-result.errors.error[0].error-message`\" />\n\n",\r
183         "comments": "",\r
184         "x": 2107.599021911621,\r
185         "y": 330.78922748565674,\r
186         "z": "f67d7469.c15c48",\r
187         "wires": []\r
188     },\r
189     {\r
190         "id": "5ce83dfd.6c2514",\r
191         "type": "block",\r
192         "name": "block",\r
193         "xml": "<block>\n",\r
194         "atomic": "false",\r
195         "comments": "",\r
196         "outputs": 1,\r
197         "x": 2089.2656898498535,\r
198         "y": 417.7892322540283,\r
199         "z": "f67d7469.c15c48",\r
200         "wires": [\r
201             []\r
202         ]\r
203     },\r
204     {\r
205         "id": "39abed71.23fa8a",\r
206         "type": "returnSuccess",\r
207         "name": "return success",\r
208         "xml": "<return status='success'>\n<parameter name=\"ack-final-indicator\" value=\"Y\" />\n<parameter name=\"error-code\" value=\"200\" />\n<parameter name=\"error-message\" value=\"`$error-message`\" />\n",\r
209         "comments": "",\r
210         "x": 1065.5989570617676,\r
211         "y": 337.7893257141113,\r
212         "z": "f67d7469.c15c48",\r
213         "wires": []\r
214     },\r
215     {\r
216         "id": "dd2b33a2.9b6cb8",\r
217         "type": "call",\r
218         "name": "call:bbs-internet-profile-vnf-topology-operation-common-huawei",\r
219         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-vnf-topology-operation-common-huawei' mode='sync' >\n",\r
220         "comments": "",\r
221         "outputs": 1,\r
222         "x": 1251.765869140625,\r
223         "y": 169.78915786743164,\r
224         "z": "f67d7469.c15c48",\r
225         "wires": [\r
226             []\r
227         ]\r
228     }\r
229 ]