dd449497b54163b8f112d441105da5b36936f041
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_bbs-internet-profile-network-topology-operation-create-huawei.json
1 [
2     {
3         "id": "2d7f5053.43f88",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 161,
8         "y": 430,
9         "z": "ad27a06a.ac6cb",
10         "wires": [
11             [
12                 "72df2435.5886ec"
13             ]
14         ]
15     },
16     {
17         "id": "72df2435.5886ec",
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": 468.99964904785156,
26         "y": 430.0000219345093,
27         "z": "ad27a06a.ac6cb",
28         "wires": [
29             [
30                 "ffb91d40.32d4b"
31             ]
32         ]
33     },
34     {
35         "id": "ffb91d40.32d4b",
36         "type": "method",
37         "name": "method:bbs-internet-profile-network-topology-operation-create-huawei",
38         "xml": "<method rpc='bbs-internet-profile-network-topology-operation-create-huawei' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 466.9996643066406,
42         "y": 650.0000991821289,
43         "z": "ad27a06a.ac6cb",
44         "wires": [
45             [
46                 "53f797bd.cfd8e8"
47             ]
48         ]
49     },
50     {
51         "id": "53f797bd.cfd8e8",
52         "type": "block",
53         "name": "block : atomic",
54         "xml": "<block atomic=\"true\">\n",
55         "atomic": "false",
56         "comments": "",
57         "outputs": 1,
58         "x": 890.9998626708984,
59         "y": 649.0000991821289,
60         "z": "ad27a06a.ac6cb",
61         "wires": [
62             [
63                 "370af337.5154fc",
64                 "4e0ef08b.97054",
65                 "f93c1da.de250e"
66             ]
67         ]
68     },
69     {
70         "id": "370af337.5154fc",
71         "type": "call",
72         "name": "call:bbs-internet-profile-network-topology-operation-common-huawei",
73         "xml": "<call module='GENERIC-RESOURCE-API' rpc='bbs-internet-profile-network-topology-operation-common-huawei' mode='sync' >\n",
74         "comments": "",
75         "outputs": 1,
76         "x": 1407.0001525878906,
77         "y": 562.0000190734863,
78         "z": "ad27a06a.ac6cb",
79         "wires": [
80             []
81         ]
82     },
83     {
84         "id": "4e0ef08b.97054",
85         "type": "execute",
86         "name": "execute:CreateInternetProfileInstance",
87         "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 + '/CreateInternetProfileInstance'`\" />\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\"/>",
88         "comments": "",
89         "outputs": 1,
90         "x": 1296.6507873535156,
91         "y": 647.9608345031738,
92         "z": "ad27a06a.ac6cb",
93         "wires": [
94             [
95                 "e4c140e5.037d7",
96                 "d8bbe45d.2352e8"
97             ]
98         ]
99     },
100     {
101         "id": "d8bbe45d.2352e8",
102         "type": "outcome",
103         "name": "failure",
104         "xml": "<outcome value='failure'>\n",
105         "comments": "",
106         "outputs": 1,
107         "x": 1597.9837684631348,
108         "y": 647.9608345031738,
109         "z": "ad27a06a.ac6cb",
110         "wires": [
111             [
112                 "1df15208.d8ff4e"
113             ]
114         ]
115     },
116     {
117         "id": "e4c140e5.037d7",
118         "type": "outcome",
119         "name": "success",
120         "xml": "<outcome value='success'>\n",
121         "comments": "",
122         "outputs": 1,
123         "x": 1606.9836807250977,
124         "y": 722.9608364105225,
125         "z": "ad27a06a.ac6cb",
126         "wires": [
127             [
128                 "facb658d.68f2f8"
129             ]
130         ]
131     },
132     {
133         "id": "facb658d.68f2f8",
134         "type": "switchNode",
135         "name": "switch:service-result",
136         "xml": "<switch test=\"`$service-result.errors.error[0].error-message`\">\n",
137         "comments": "",
138         "outputs": 1,
139         "x": 1841.9998016357422,
140         "y": 722.0001316070557,
141         "z": "ad27a06a.ac6cb",
142         "wires": [
143             [
144                 "6422cd06.ccef54",
145                 "d37ab755.7eae88"
146             ]
147         ]
148     },
149     {
150         "id": "1df15208.d8ff4e",
151         "type": "returnFailure",
152         "name": "return failure",
153         "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 + '/CreateInternetProfileInstance'`\" />\n",
154         "comments": "",
155         "x": 2106.917381286621,
156         "y": 648.2503824234009,
157         "z": "ad27a06a.ac6cb",
158         "wires": []
159     },
160     {
161         "id": "6422cd06.ccef54",
162         "type": "outcome",
163         "name": "Other",
164         "xml": "<outcome value='Other'>\n",
165         "comments": "",
166         "outputs": 1,
167         "x": 2068.000141143799,
168         "y": 723.0002250671387,
169         "z": "ad27a06a.ac6cb",
170         "wires": [
171             [
172                 "8b2e9879.6244c8"
173             ]
174         ]
175     },
176     {
177         "id": "d37ab755.7eae88",
178         "type": "outcome",
179         "name": "NULL",
180         "xml": "<outcome value=''>\n",
181         "comments": "",
182         "outputs": 1,
183         "x": 2077.9998474121094,
184         "y": 809.0000915527344,
185         "z": "ad27a06a.ac6cb",
186         "wires": [
187             [
188                 "684bf460.d7a28c"
189             ]
190         ]
191     },
192     {
193         "id": "8b2e9879.6244c8",
194         "type": "returnFailure",
195         "name": "return failure",
196         "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 CreateInternetProfileInstance failed: '+$service-result.errors.error[0].error-message`\" />\n\n",
197         "comments": "",
198         "x": 2254.4998092651367,
199         "y": 723.0000619888306,
200         "z": "ad27a06a.ac6cb",
201         "wires": []
202     },
203     {
204         "id": "684bf460.d7a28c",
205         "type": "block",
206         "name": "block",
207         "xml": "<block>\n",
208         "atomic": "false",
209         "comments": "",
210         "outputs": 1,
211         "x": 2236.166477203369,
212         "y": 810.0000667572021,
213         "z": "ad27a06a.ac6cb",
214         "wires": [
215             []
216         ]
217     },
218     {
219         "id": "f93c1da.de250e",
220         "type": "returnSuccess",
221         "name": "return success",
222         "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",
223         "comments": "",
224         "x": 1217.4998321533203,
225         "y": 742.0001058578491,
226         "z": "ad27a06a.ac6cb",
227         "wires": []
228     }
229 ]