Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_port-mirror-topology-operation-activate-sync.json
1 [
2     {
3         "id": "b1a78d2.95bac7",
4         "type": "dgstart",
5         "name": "DGSTART",
6         "outputs": 1,
7         "x": 104.28571319580078,
8         "y": 78.57142639160156,
9         "z": "21d5a75b.fa4438",
10         "wires": [
11             [
12                 "2d041c0a.32a7e4"
13             ]
14         ]
15     },
16     {
17         "id": "2d041c0a.32a7e4",
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": 217.9047393798828,
26         "y": 118.80953979492188,
27         "z": "21d5a75b.fa4438",
28         "wires": [
29             [
30                 "f48fa1da.b76f"
31             ]
32         ]
33     },
34     {
35         "id": "f48fa1da.b76f",
36         "type": "method",
37         "name": "method port-mirror-topology-operation-activate-sync",
38         "xml": "<method rpc='port-mirror-topology-operation-activate-sync' mode='sync'>\n",
39         "comments": "",
40         "outputs": 1,
41         "x": 235.71434020996094,
42         "y": 158.57142639160156,
43         "z": "21d5a75b.fa4438",
44         "wires": [
45             [
46                 "55d92ce4.69af94"
47             ]
48         ]
49     },
50     {
51         "id": "b87df25d.ff00a",
52         "type": "comment",
53         "name": "port-mirror-topology-operation-activate-sync",
54         "info": "",
55         "comments": "",
56         "x": 498.6305694580078,
57         "y": 26.15777015686035,
58         "z": "21d5a75b.fa4438",
59         "wires": []
60     },
61     {
62         "id": "55d92ce4.69af94",
63         "type": "block",
64         "name": "block : atomic",
65         "xml": "<block atomic=\"true\">",
66         "atomic": "true",
67         "outputs": 1,
68         "x": 164.28571319580078,
69         "y": 522.8571376800537,
70         "z": "21d5a75b.fa4438",
71         "wires": [
72             [
73                 "e29417e9.9cde38",
74                 "cb9d11d0.bb9c2",
75                 "5b3c2fe0.47a87",
76                 "ea14f2c2.9d79",
77                 "a488fc13.57e4a",
78                 "a7d56d93.aa1e"
79             ]
80         ]
81     },
82     {
83         "id": "e29417e9.9cde38",
84         "type": "returnSuccess",
85         "name": "return success",
86         "xml": "<return status='success'>\n<parameter name='error-code' value='200' />\n<parameter name='ack-final' value='N' />",
87         "comments": "",
88         "x": 438.28570556640625,
89         "y": 624.2856521606445,
90         "z": "21d5a75b.fa4438",
91         "wires": []
92     },
93     {
94         "id": "cb9d11d0.bb9c2",
95         "type": "set",
96         "name": "set tmp.pm.configuration-id",
97         "xml": "<set>\n<parameter name='tmp.pm.configuration-id' value='`$port-mirror-topology-operation-input.configuration-information.configuration-id`' />\n\n",
98         "comments": "",
99         "x": 479.00000762939453,
100         "y": 335.71427154541016,
101         "z": "21d5a75b.fa4438",
102         "wires": []
103     },
104     {
105         "id": "5b3c2fe0.47a87",
106         "type": "execute",
107         "name": "execute readProperties",
108         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n    <parameter name='fileName' value='%SDNC_CONFIG_DIR%/generic-resource-api-dg.properties' />\n    <parameter name='contextPrefix' value='prop' />\n",
109         "comments": "",
110         "outputs": 1,
111         "x": 467.1428527832031,
112         "y": 384.28569984436035,
113         "z": "21d5a75b.fa4438",
114         "wires": [
115             []
116         ]
117     },
118     {
119         "id": "ea14f2c2.9d79",
120         "type": "execute",
121         "name": "generate port-mirror-configuration url",
122         "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils' method='replace' >\n    <parameter name=\"source\" value=\"`$prop.restapi.pm-configuration`\"/>\n    <parameter name=\"outputPath\" value=\"tmp.pmc-url\"/>\n    <parameter name=\"target\" value=\"{configuration-id}\"/>\n    <parameter name=\"replacement\" value=\"`$tmp.pm.configuration-id`\"/>\n",
123         "comments": "",
124         "outputs": 1,
125         "x": 510.00001525878906,
126         "y": 431.4285469055176,
127         "z": "21d5a75b.fa4438",
128         "wires": [
129             []
130         ]
131     },
132     {
133         "id": "a488fc13.57e4a",
134         "type": "execute",
135         "name": "execute RestApiCallNode - get port-mirror-configuration",
136         "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n    <parameter name='restapiUrl' value='`$prop.controller.url + $tmp.pmc-url`' />\n    <parameter name='restapiUser' value='`$prop.controller.user`' />\n    <parameter name='restapiPassword' value='`$prop.controller.pwd`' />\n    <parameter name='format' value='json' />\n    <parameter name='httpMethod' value='GET' />\n    <parameter name=\"responsePrefix\" value=\"mdsal-pmc\" />\n\n",
137         "comments": "",
138         "outputs": 1,
139         "x": 570,
140         "y": 478.5714817047119,
141         "z": "21d5a75b.fa4438",
142         "wires": [
143             [
144                 "cceb4831.7bdd98",
145                 "d2976e97.2a3bc"
146             ]
147         ]
148     },
149     {
150         "id": "cceb4831.7bdd98",
151         "type": "success",
152         "name": "success",
153         "xml": "<outcome value='success'>\n",
154         "comments": "",
155         "outputs": 1,
156         "x": 868.1531219482422,
157         "y": 449.3793306350708,
158         "z": "21d5a75b.fa4438",
159         "wires": [
160             [
161                 "62e52870.2bf728"
162             ]
163         ]
164     },
165     {
166         "id": "d2976e97.2a3bc",
167         "type": "other",
168         "name": "other",
169         "xml": "<outcome value='Other'>\n",
170         "comments": "",
171         "outputs": 1,
172         "x": 865.7142601013184,
173         "y": 498.571424484253,
174         "z": "21d5a75b.fa4438",
175         "wires": [
176             [
177                 "eb26a4d1.4a8278"
178             ]
179         ]
180     },
181     {
182         "id": "eb26a4d1.4a8278",
183         "type": "returnFailure",
184         "name": "return failure",
185         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Cannot find port-mirror-configuration ' + $tmp.pm.configuration-id`\" />\n",
186         "comments": "",
187         "x": 1379.9999389648438,
188         "y": 495.7142868041992,
189         "z": "21d5a75b.fa4438",
190         "wires": []
191     },
192     {
193         "id": "a7d56d93.aa1e",
194         "type": "switchNode",
195         "name": "switch order-status == 'Created'",
196         "xml": "<switch test=\"`$mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status == 'Created'`\">\n",
197         "comments": "",
198         "outputs": 1,
199         "x": 492.857177734375,
200         "y": 552.8570899963379,
201         "z": "21d5a75b.fa4438",
202         "wires": [
203             [
204                 "eaf2afe9.4f1b8"
205             ]
206         ]
207     },
208     {
209         "id": "62e52870.2bf728",
210         "type": "switchNode",
211         "name": "switch length == 1",
212         "xml": "<switch test='`$mdsal-pmc.port-mirror-configuration_length == 1`'>\n",
213         "comments": "",
214         "outputs": 1,
215         "x": 1047.142822265625,
216         "y": 448.5714387893677,
217         "z": "21d5a75b.fa4438",
218         "wires": [
219             [
220                 "6938e65d.459fb8"
221             ]
222         ]
223     },
224     {
225         "id": "6938e65d.459fb8",
226         "type": "outcomeFalse",
227         "name": "false",
228         "xml": "<outcome value='false'>\n",
229         "comments": "",
230         "outputs": 1,
231         "x": 1217.1428527832031,
232         "y": 448.5714302062988,
233         "z": "21d5a75b.fa4438",
234         "wires": [
235             [
236                 "eb26a4d1.4a8278"
237             ]
238         ]
239     },
240     {
241         "id": "eaf2afe9.4f1b8",
242         "type": "outcomeFalse",
243         "name": "false",
244         "xml": "<outcome value='false'>\n",
245         "comments": "",
246         "outputs": 1,
247         "x": 721.4285888671875,
248         "y": 552.857177734375,
249         "z": "21d5a75b.fa4438",
250         "wires": [
251             [
252                 "4d8be81c.2b6ce8"
253             ]
254         ]
255     },
256     {
257         "id": "4d8be81c.2b6ce8",
258         "type": "returnFailure",
259         "name": "return failure",
260         "xml": "<return status='failure'>\n<parameter name='error-code' value='500' />\n<parameter name='error-message' value=\"`'Order status is ' + $mdsal-pmc.port-mirror-configuration[0].configuration-data.configuration-oper-status.order-status + ' but must be Created'`\" />\n",
261         "comments": "",
262         "x": 882.857177734375,
263         "y": 551.4285888671875,
264         "z": "21d5a75b.fa4438",
265         "wires": []
266     }
267 ]