3d478c217da381f3e47b078d055139c09a1f19c2
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-delete-huawei.json
1 [
2     {
3         "id": "5e265471.e67f7c",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 344,
8         "y": 400,
9         "z": "5f22295c.f35688",
10         "wires": [
11             [
12                 "d75b37ac.e738e8"
13             ]
14         ]
15     },
16     {
17         "id": "d75b37ac.e738e8",
18         "type": "service-logic",
19         "name": "GENERIC-RESOURCE-API ${project.version}",
20         "module": "GENERIC-RESOURCE-API",
21         "version": "${project.version}",
22         "comments": "",
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}'>",
24         "outputs": 1,
25         "x": 651.9996490478516,
26         "y": 400.0000219345093,
27         "z": "5f22295c.f35688",
28         "wires": [
29             [
30                 "f2820cf8.0bd53"
31             ]
32         ]
33     },
34     {
35         "id": "f2820cf8.0bd53",
36         "type": "method",
37         "name": "method:bbs-internet-profile-network-topology-operation-delete-huawei",
38         "xml": "<method rpc='bbs-internet-profile-network-topology-operation-delete-huawei' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 649.9996337890625,
42         "y": 596.0000982284546,
43         "z": "5f22295c.f35688",
44         "wires": [
45             [
46                 "9b232b7e.58e2b8"
47             ]
48         ]
49     },
50     {
51         "id": "9b232b7e.58e2b8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 1056.9998626708984,
59         "y": 597.0000619888306,
60         "z": "5f22295c.f35688",
61         "wires": [
62             [
63                 "9eb1d9e6.392fa8",
64                 "7617ea2e.9a48d4",
65                 "5d716cef.c08464"
66             ]
67         ]
68     },
69     {
70         "id": "9eb1d9e6.392fa8",
71         "type": "execute",
72         "name": "execute:DeleteInternetProfileInstance",
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 + '/DeleteInternetProfileInstance'`\" />\n    <parameter name=\"contentType\" value=\"application/json\"/>\n    <parameter name=\"httpMethod\" value=\"post\"/>\n    <parameter name=\"responsePrefix\" value=\"service-result\"/>\n    <parameter name=\"trustStoreFileName\" value=\"/opt/onap/sdnc/data/stores/truststore.onap.client.jks\"/>\n    <parameter name=\"trustStorePassword\" value=\"adminadmin\"/>\n    <parameter name=\"keyStoreFileName\" value=\"/opt/onap/sdnc/data/stores/sdnc.p12\"/>\n    <parameter name=\"keyStorePassword\" value=\"adminadmin\"/>",
74         "comments": "",
75         "outputs": 1,
76         "x": 1445.6509246826172,
77         "y": 600.9608850479126,
78         "z": "5f22295c.f35688",
79         "wires": [
80             [
81                 "2862e76.2bc8318",
82                 "a6a0cc88.189c9"
83             ]
84         ]
85     },
86     {
87         "id": "a6a0cc88.189c9",
88         "type": "outcome",
89         "name": "failure",
90         "xml": "<outcome value='failure'>\n",
91         "comments": "",
92         "outputs": 1,
93         "x": 1746.9839057922363,
94         "y": 600.9608850479126,
95         "z": "5f22295c.f35688",
96         "wires": [
97             [
98                 "68923169.94f92"
99             ]
100         ]
101     },
102     {
103         "id": "2862e76.2bc8318",
104         "type": "outcome",
105         "name": "success",
106         "xml": "<outcome value='success'>\n",
107         "comments": "",
108         "outputs": 1,
109         "x": 1755.9838180541992,
110         "y": 675.9608869552612,
111         "z": "5f22295c.f35688",
112         "wires": [
113             [
114                 "de6ab4f4.b99d68"
115             ]
116         ]
117     },
118     {
119         "id": "de6ab4f4.b99d68",
120         "type": "switchNode",
121         "name": "switch:service-result",
122         "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
123         "comments": "",
124         "outputs": 1,
125         "x": 1990.9999389648438,
126         "y": 675.0001821517944,
127         "z": "5f22295c.f35688",
128         "wires": [
129             [
130                 "4603a7e2.b0ee88",
131                 "e87dbd8d.effaf"
132             ]
133         ]
134     },
135     {
136         "id": "68923169.94f92",
137         "type": "returnFailure",
138         "name": "return failure",
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=\"`$prop.sdncRestApi.thirdpartySdnc.url + '/DeleteInternetProfileInstance'`\" />\n",
140         "comments": "",
141         "x": 2255.9175186157227,
142         "y": 601.2504329681396,
143         "z": "5f22295c.f35688",
144         "wires": []
145     },
146     {
147         "id": "4603a7e2.b0ee88",
148         "type": "outcome",
149         "name": "Other",
150         "xml": "<outcome value='Other'>\n",
151         "comments": "",
152         "outputs": 1,
153         "x": 2217.0002784729004,
154         "y": 676.0002756118774,
155         "z": "5f22295c.f35688",
156         "wires": [
157             [
158                 "43e7a5db.efe9bc"
159             ]
160         ]
161     },
162     {
163         "id": "e87dbd8d.effaf",
164         "type": "outcome",
165         "name": "NULL",
166         "xml": "<outcome value=''>\n",
167         "comments": "",
168         "outputs": 1,
169         "x": 2226.999984741211,
170         "y": 762.0001420974731,
171         "z": "5f22295c.f35688",
172         "wires": [
173             [
174                 "22f84f13.a10ce"
175             ]
176         ]
177     },
178     {
179         "id": "43e7a5db.efe9bc",
180         "type": "returnFailure",
181         "name": "return failure",
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 DeleteInternetProfileInstance failed: '+$service-result.errors.error[0].error-message`\" />\n\n",
183         "comments": "",
184         "x": 2403.4999465942383,
185         "y": 676.0001125335693,
186         "z": "5f22295c.f35688",
187         "wires": []
188     },
189     {
190         "id": "22f84f13.a10ce",
191         "type": "block",
192         "name": "block",
193         "xml": "<block>\n",
194         "atomic": "false",
195         "comments": "",
196         "outputs": 1,
197         "x": 2385.1666145324707,
198         "y": 763.0001173019409,
199         "z": "5f22295c.f35688",
200         "wires": [
201             []
202         ]
203     },
204     {
205         "id": "7617ea2e.9a48d4",
206         "type": "returnSuccess",
207         "name": "return success",
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",
209         "comments": "",
210         "x": 1365.4999160766602,
211         "y": 685.0001831054688,
212         "z": "5f22295c.f35688",
213         "wires": []
214     },
215     {
216         "id": "5d716cef.c08464",
217         "type": "call",
218         "name": "call:bbs-internet-profile-network-topology-operation-common-huawei",
219         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-network-topology-operation-common-huawei' mode='sync' >\n",
220         "comments": "",
221         "outputs": 1,
222         "x": 1557.6669082641602,
223         "y": 517.0000553131104,
224         "z": "5f22295c.f35688",
225         "wires": [
226             []
227         ]
228     }
229 ]