3 "id": "b1a78d2.95bac7",
7 "x": 104.28571319580078,
8 "y": 78.57142639160156,
9 "z": "21d5a75b.fa4438",
17 "id": "2d041c0a.32a7e4",
18 "type": "service-logic",
19 "name": "GENERIC-RESOURCE-API ${project.version}",
20 "module": "GENERIC-RESOURCE-API",
21 "version": "${project.version}",
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}'>",
25 "x": 217.9047393798828,
26 "y": 118.80953979492188,
27 "z": "21d5a75b.fa4438",
35 "id": "f48fa1da.b76f",
37 "name": "method port-mirror-topology-operation-activate-sync",
38 "xml": "<method rpc='port-mirror-topology-operation-activate-sync' mode='sync'>\n",
41 "x": 235.71434020996094,
42 "y": 158.57142639160156,
43 "z": "21d5a75b.fa4438",
51 "id": "b87df25d.ff00a",
53 "name": "port-mirror-topology-operation-activate-sync",
56 "x": 498.6305694580078,
57 "y": 26.15777015686035,
58 "z": "21d5a75b.fa4438",
62 "id": "55d92ce4.69af94",
64 "name": "block : atomic",
65 "xml": "<block atomic=\"true\">",
68 "x": 164.28571319580078,
69 "y": 522.8571376800537,
70 "z": "21d5a75b.fa4438",
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' />",
88 "x": 438.28570556640625,
89 "y": 624.2856521606445,
90 "z": "21d5a75b.fa4438",
94 "id": "cb9d11d0.bb9c2",
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",
99 "x": 479.00000762939453,
100 "y": 335.71427154541016,
101 "z": "21d5a75b.fa4438",
105 "id": "5b3c2fe0.47a87",
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",
111 "x": 467.1428527832031,
112 "y": 384.28569984436035,
113 "z": "21d5a75b.fa4438",
119 "id": "ea14f2c2.9d79",
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",
125 "x": 510.00001525878906,
126 "y": 431.4285469055176,
127 "z": "21d5a75b.fa4438",
133 "id": "a488fc13.57e4a",
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",
140 "y": 478.5714817047119,
141 "z": "21d5a75b.fa4438",
150 "id": "cceb4831.7bdd98",
153 "xml": "<outcome value='success'>\n",
156 "x": 868.1531219482422,
157 "y": 449.3793306350708,
158 "z": "21d5a75b.fa4438",
166 "id": "d2976e97.2a3bc",
169 "xml": "<outcome value='Other'>\n",
172 "x": 865.7142601013184,
173 "y": 498.571424484253,
174 "z": "21d5a75b.fa4438",
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",
187 "x": 1379.9999389648438,
188 "y": 495.7142868041992,
189 "z": "21d5a75b.fa4438",
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",
199 "x": 492.857177734375,
200 "y": 552.8570899963379,
201 "z": "21d5a75b.fa4438",
209 "id": "62e52870.2bf728",
210 "type": "switchNode",
211 "name": "switch length == 1",
212 "xml": "<switch test='`$mdsal-pmc.port-mirror-configuration_length == 1`'>\n",
215 "x": 1047.142822265625,
216 "y": 448.5714387893677,
217 "z": "21d5a75b.fa4438",
225 "id": "6938e65d.459fb8",
226 "type": "outcomeFalse",
228 "xml": "<outcome value='false'>\n",
231 "x": 1217.1428527832031,
232 "y": 448.5714302062988,
233 "z": "21d5a75b.fa4438",
241 "id": "eaf2afe9.4f1b8",
242 "type": "outcomeFalse",
244 "xml": "<outcome value='false'>\n",
247 "x": 721.4285888671875,
248 "y": 552.857177734375,
249 "z": "21d5a75b.fa4438",
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",
262 "x": 882.857177734375,
263 "y": 551.4285888671875,
264 "z": "21d5a75b.fa4438",