Add generic-resource-api DG seed code
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_service-topology-operation.json
1 [
2     {
3         "id": "ffcdcaf9.978378",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 110.00003814697266,
8         "y": 84.28563117980957,
9         "z": "3794a147.f3878e",
10         "wires": [
11             [
12                 "19a4815b.2d2d0f"
13             ]
14         ]
15     },
16     {
17         "id": "19a4815b.2d2d0f",
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": 185.2857437133789,
26         "y": 124.52374267578125,
27         "z": "3794a147.f3878e",
28         "wires": [
29             [
30                 "936b3cb3.ebe9b"
31             ]
32         ]
33     },
34     {
35         "id": "936b3cb3.ebe9b",
36         "type": "method",
37         "name": "method service-topology-operation",
38         "xml": "<method rpc='service-topology-operation' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 188.4286651611328,
42         "y": 164.28562545776367,
43         "z": "3794a147.f3878e",
44         "wires": [
45             [
46                 "ed52e81.7853818"
47             ]
48         ]
49     },
50     {
51         "id": "a6ec4b68.d62da8",
52         "type": "comment",
53         "name": "service-topology-operation",
54         "info": "",
55         "comments": "",
56         "x": 504.3448944091797,
57         "y": 31.87197494506836,
58         "z": "3794a147.f3878e",
59         "wires": []
60     },
61     {
62         "id": "ed52e81.7853818",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 184.50008392333984,
69         "y": 365.3124828338623,
70         "z": "3794a147.f3878e",
71         "wires": [
72             [
73                 "8f72acdd.c62fa",
74                 "12bcf998.a7e046",
75                 "b4070b55.94bb78",
76                 "6af30001.5e0fe"
77             ]
78         ]
79     },
80     {
81         "id": "8f72acdd.c62fa",
82         "type": "returnSuccess",
83         "name": "return success",
84         "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",
85         "comments": "",
86         "x": 468.33333587646484,
87         "y": 540.7146196365356,
88         "z": "3794a147.f3878e",
89         "wires": []
90     },
91     {
92         "id": "b4070b55.94bb78",
93         "type": "switchNode",
94         "name": "switch svc-action",
95         "xml": "<switch test='`$service-topology-operation-input.sdnc-request-header.svc-action`'>\n",
96         "comments": "",
97         "outputs": 1,
98         "x": 475.0475769042969,
99         "y": 417.80941009521484,
100         "z": "3794a147.f3878e",
101         "wires": [
102             [
103                 "81b85c4d.7a8e1",
104                 "e6fcf5d0.16c4f8",
105                 "64f4285d.b775f8",
106                 "a2995c44.e9432"
107             ]
108         ]
109     },
110     {
111         "id": "81b85c4d.7a8e1",
112         "type": "outcome",
113         "name": "assign",
114         "xml": "<outcome value='assign'>\n",
115         "comments": "",
116         "outputs": 1,
117         "x": 685.8571166992188,
118         "y": 343.09522819519043,
119         "z": "3794a147.f3878e",
120         "wires": [
121             [
122                 "5f230ac8.35fac4"
123             ]
124         ]
125     },
126     {
127         "id": "e6fcf5d0.16c4f8",
128         "type": "outcome",
129         "name": "delete",
130         "xml": "<outcome value='delete'>\n",
131         "comments": "",
132         "outputs": 1,
133         "x": 685.2380981445312,
134         "y": 437.61927127838135,
135         "z": "3794a147.f3878e",
136         "wires": [
137             [
138                 "55a1c437.344cfc"
139             ]
140         ]
141     },
142     {
143         "id": "a2995c44.e9432",
144         "type": "other",
145         "name": "other",
146         "xml": "<outcome value='Other'>\n",
147         "comments": "",
148         "outputs": 1,
149         "x": 684.2856369018555,
150         "y": 486.47603607177734,
151         "z": "3794a147.f3878e",
152         "wires": [
153             [
154                 "8bf7b987.d11358"
155             ]
156         ]
157     },
158     {
159         "id": "12bcf998.a7e046",
160         "type": "set",
161         "name": "copy input to service-data",
162         "xml": "<set>\n<parameter name='service-data.sdnc-request-header.' value='`$service-topology-operation-input.sdnc-request-header.`' />\n<parameter name='service-data.request-information.' value='`$service-topology-operation-input.request-information.`' />\n<parameter name='service-data.service-information.' value='`$service-topology-operation-input.service-information.`' />\n<parameter name='service-data.service-request-input.' value='`$service-topology-operation-input.service-request-input.`' />\n",
163         "comments": "",
164         "x": 503.15476989746094,
165         "y": 285.5118703842163,
166         "z": "3794a147.f3878e",
167         "wires": []
168     },
169     {
170         "id": "8bf7b987.d11358",
171         "type": "returnFailure",
172         "name": "return failure",
173         "xml": "<return status='failure'>\n\t<parameter name='ack-final' value='Y'/>\n\t<parameter name=\"error-code\" value=\"500\" />\n    <parameter name=\"error-message\" value=\"`$service-topology-operation-input.sdnc-request-header.svc-action + ' is not a valid svc-action'`\" />\n",
174         "comments": "",
175         "x": 860.4760818481445,
176         "y": 486.47610092163086,
177         "z": "3794a147.f3878e",
178         "wires": []
179     },
180     {
181         "id": "6af30001.5e0fe",
182         "type": "call",
183         "name": "call GENERIC-RESOURCE-API:validate-service-input",
184         "xml": "<call module='GENERIC-RESOURCE-API' rpc='validate-service-input' mode='sync' >\n",
185         "comments": "",
186         "outputs": 1,
187         "x": 590.4166717529297,
188         "y": 237.33333015441895,
189         "z": "3794a147.f3878e",
190         "wires": [
191             []
192         ]
193     },
194     {
195         "id": "5f230ac8.35fac4",
196         "type": "call",
197         "name": "call GENERIC-RESOURCE-API:service-topology-operation-assign",
198         "xml": "<call module='GENERIC-RESOURCE-API' rpc='service-topology-operation-assign' mode='sync' >\n",
199         "comments": "",
200         "outputs": 1,
201         "x": 1026.9999694824219,
202         "y": 342.6666889190674,
203         "z": "3794a147.f3878e",
204         "wires": [
205             []
206         ]
207     },
208     {
209         "id": "1d8ee48d.69b27b",
210         "type": "call",
211         "name": "call GENERIC-RESOURCE-API:service-topology-operation-deactivate",
212         "xml": "<call module='GENERIC-RESOURCE-API' rpc='service-topology-operation-deactivate' mode='sync' >\n",
213         "comments": "",
214         "outputs": 1,
215         "x": 1039.9999237060547,
216         "y": 389.6666831970215,
217         "z": "3794a147.f3878e",
218         "wires": [
219             []
220         ]
221     },
222     {
223         "id": "55a1c437.344cfc",
224         "type": "call",
225         "name": "call GENERIC-RESOURCE-API:service-topology-operation-delete",
226         "xml": "<call module='GENERIC-RESOURCE-API' rpc='service-topology-operation-delete' mode='sync' >\n",
227         "comments": "",
228         "outputs": 1,
229         "x": 1028.333194732666,
230         "y": 438.333402633667,
231         "z": "3794a147.f3878e",
232         "wires": [
233             []
234         ]
235     },
236     {
237         "id": "64f4285d.b775f8",
238         "type": "outcome",
239         "name": "deactivate",
240         "xml": "<outcome value='deactivate'>\n",
241         "comments": "",
242         "outputs": 1,
243         "x": 696.6665649414062,
244         "y": 391.33335876464844,
245         "z": "3794a147.f3878e",
246         "wires": [
247             [
248                 "1d8ee48d.69b27b"
249             ]
250         ]
251     }
252 ]