Merge "Remove test for Active on Delete"
[sdnc/oam.git] / platform-logic / vnfapi / src / main / json / VNF-API_vnf-instance-topology-delete.json
1 [
2     {
3         "id": "892394b6.5a0068",
4         "type": "returnSuccess",
5         "name": "return success",
6         "xml": "<return status='success'>\n\t<parameter name=\"error-code\" value=\"200\" />",
7         "comments": "",
8         "x": 394.4444274902344,
9         "y": 448.305570602417,
10         "z": "bae6c09b.ec173",
11         "wires": []
12     },
13     {
14         "id": "ae2cbfc2.b3e0d",
15         "type": "block",
16         "name": "block : atomic",
17         "xml": "<block atomic=\"true\">",
18         "atomic": "true",
19         "outputs": 1,
20         "x": 171.44437408447266,
21         "y": 147.44444274902344,
22         "z": "bae6c09b.ec173",
23         "wires": [
24             [
25                 "8dac86ee.e1bed8",
26                 "892394b6.5a0068",
27                 "3d06c980.f160e6",
28                 "d3da4ebd.718d2",
29                 "e25b96d5.e6f508",
30                 "da9108f7.df52c8",
31                 "ed7cb1e2.2fa6d",
32                 "99637329.93ae"
33             ]
34         ]
35     },
36     {
37         "id": "8dac86ee.e1bed8",
38         "type": "set",
39         "name": "set: order-status = Deleted",
40         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.order-status\" value=\"Deleted\"/>",
41         "comments": "",
42         "outputs": 1,
43         "x": 435.4444274902344,
44         "y": 275.305570602417,
45         "z": "bae6c09b.ec173",
46         "wires": [
47             []
48         ]
49     },
50     {
51         "id": "24188683.531f4a",
52         "type": "method",
53         "name": "method vnf-instance-topology-delete",
54         "xml": "<method rpc='vnf-instance-topology-delete' mode='sync'>\n",
55         "comments": "",
56         "outputs": 1,
57         "x": 203.1110610961914,
58         "y": 96.6111068725586,
59         "z": "bae6c09b.ec173",
60         "wires": [
61             [
62                 "ae2cbfc2.b3e0d"
63             ]
64         ]
65     },
66     {
67         "id": "2d805b52.c5e354",
68         "type": "service-logic",
69         "name": "VNF-API ${project.version}",
70         "module": "VNF-API",
71         "version": "${project.version}",
72         "comments": "",
73         "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='VNF-API' version='${project.version}'>",
74         "outputs": 1,
75         "x": 273.1110305786133,
76         "y": 44.611114501953125,
77         "z": "bae6c09b.ec173",
78         "wires": [
79             [
80                 "24188683.531f4a"
81             ]
82         ]
83     },
84     {
85         "id": "1dec305b.bded3",
86         "type": "dgstart",
87         "name": "DGSTART",
88         "outputs": 1,
89         "x": 109.94437408447266,
90         "y": 44.44444274902344,
91         "z": "bae6c09b.ec173",
92         "wires": [
93             [
94                 "2d805b52.c5e354"
95             ]
96         ]
97     },
98     {
99         "id": "59d02cc9.9c4fa4",
100         "type": "other",
101         "name": "false",
102         "xml": "<outcome value='false'>",
103         "comments": "",
104         "outputs": 1,
105         "x": 642.8131637573242,
106         "y": 191.12879180908203,
107         "z": "bae6c09b.ec173",
108         "wires": [
109             [
110                 "cbe21014.03475"
111             ]
112         ]
113     },
114     {
115         "id": "cbe21014.03475",
116         "type": "returnFailure",
117         "name": "return failure",
118         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='400'/>\n\t<parameter name='error-message' value='Invalid order-status'/>",
119         "comments": "",
120         "x": 806.1462936401367,
121         "y": 191.12885284423828,
122         "z": "bae6c09b.ec173",
123         "wires": []
124     },
125     {
126         "id": "e25b96d5.e6f508",
127         "type": "set",
128         "name": "set: last-action ",
129         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-action\" value=\"`$vnf-instance-service-data.request-information.request-action`\"/>",
130         "comments": "",
131         "outputs": 1,
132         "x": 396.7020263671875,
133         "y": 318.85116386413574,
134         "z": "bae6c09b.ec173",
135         "wires": [
136             []
137         ]
138     },
139     {
140         "id": "3d06c980.f160e6",
141         "type": "switchNode",
142         "name": "switch: vnf-instance-id config == input",
143         "xml": "<switch test=\"`$vnf-instance-topology-operation-input.vnf-instance-request-information.vf-module-id == $vf-module-service-data.vnf-instance-id`\">",
144         "comments": "",
145         "outputs": 1,
146         "x": 468.58827209472656,
147         "y": 147.93198776245117,
148         "z": "bae6c09b.ec173",
149         "wires": [
150             [
151                 "52ff4df1.be8e04"
152             ]
153         ]
154     },
155     {
156         "id": "52ff4df1.be8e04",
157         "type": "outcomeFalse",
158         "name": "false",
159         "xml": "<outcome value='false'>\n",
160         "comments": "",
161         "outputs": 1,
162         "x": 717.0428314208984,
163         "y": 148.1138153076172,
164         "z": "bae6c09b.ec173",
165         "wires": [
166             [
167                 "8514ded5.e8697"
168             ]
169         ]
170     },
171     {
172         "id": "8514ded5.e8697",
173         "type": "returnFailure",
174         "name": "return failure",
175         "xml": "<return status='failure'>\n\t<parameter name='error-code' value='404'/>\n\t<parameter name='error-message' value='vf-module-id not found in SDNC'/>",
176         "comments": "",
177         "x": 885.6337509155273,
178         "y": 148.27291584014893,
179         "z": "bae6c09b.ec173",
180         "wires": []
181     },
182     {
183         "id": "d3da4ebd.718d2",
184         "type": "set",
185         "name": "set: last-order-status = order-status",
186         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.oper-status.last-order-status\" value=\"`$vnf-instance-service-data.oper-status.order-status`\"/>",
187         "comments": "",
188         "outputs": 1,
189         "x": 461.83837890625,
190         "y": 234.043119430542,
191         "z": "bae6c09b.ec173",
192         "wires": [
193             []
194         ]
195     },
196     {
197         "id": "da9108f7.df52c8",
198         "type": "set",
199         "name": "Clear vnf-instance-topology",
200         "xml": "<set>\n\t<parameter name=\"vnf-instance-service-data.vnf-instance-topology-information.\" value=\"\" /> \n",
201         "comments": "",
202         "outputs": 1,
203         "x": 435.83837890625,
204         "y": 359.043119430542,
205         "z": "bae6c09b.ec173",
206         "wires": [
207             []
208         ]
209     },
210     {
211         "id": "99637329.93ae",
212         "type": "switchNode",
213         "name": "switch: order-status = Active",
214         "xml": "<switch test=\"`$vnf-instance-service-data.oper-status.order-status == Active`\">",
215         "comments": "",
216         "outputs": 1,
217         "x": 439.9960632324219,
218         "y": 191.42859268188477,
219         "z": "bae6c09b.ec173",
220         "wires": [
221             [
222                 "59d02cc9.9c4fa4"
223             ]
224         ]
225     },
226     {
227         "id": "ed7cb1e2.2fa6d",
228         "type": "set",
229         "name": "Set final indicator to Y",
230         "xml": "<set>\n<parameter name=\"ack-final\" value=\"Y\"/>",
231         "comments": "",
232         "outputs": 1,
233         "x": 417.1587448120117,
234         "y": 404.24604415893555,
235         "z": "bae6c09b.ec173",
236         "wires": [
237             []
238         ]
239     }
240 ]