Add logic to use sync vs async SO response
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vf-module-topology-operation-assign.json
1 [\r
2     {\r
3         "id": "63f4b59b.216734",\r
4         "type": "comment",\r
5         "name": "vf-module-topology-operation-assign",\r
6         "info": "",\r
7         "comments": "",\r
8         "x": 268,\r
9         "y": 45,\r
10         "z": "a314769.77ed108",\r
11         "wires": []\r
12     },\r
13     {\r
14         "id": "1dc1d8b5.caf8ef",\r
15         "type": "dgstart",\r
16         "name": "DGSTART",\r
17         "outputs": 1,\r
18         "x": 88,\r
19         "y": 130,\r
20         "z": "a314769.77ed108",\r
21         "wires": [\r
22             [\r
23                 "f41394ef.1a3d7"\r
24             ]\r
25         ]\r
26     },\r
27     {\r
28         "id": "2f77e300.955b76",\r
29         "type": "method",\r
30         "name": "vf-module-topology-operation-assign",\r
31         "xml": "<method rpc='vf-module-topology-operation-assign' mode='sync'>\n",\r
32         "comments": "",\r
33         "outputs": 1,\r
34         "x": 250,\r
35         "y": 233,\r
36         "z": "a314769.77ed108",\r
37         "wires": [\r
38             [\r
39                 "3ac51b9d.77422c"\r
40             ]\r
41         ]\r
42     },\r
43     {\r
44         "id": "f41394ef.1a3d7",\r
45         "type": "service-logic",\r
46         "name": "GENERIC-RESOURCE-API ${project.version}",\r
47         "module": "GENERIC-RESOURCE-API",\r
48         "version": "${project.version}",\r
49         "comments": "",\r
50         "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}'>",\r
51         "outputs": 1,\r
52         "x": 285,\r
53         "y": 175,\r
54         "z": "a314769.77ed108",\r
55         "wires": [\r
56             [\r
57                 "2f77e300.955b76"\r
58             ]\r
59         ]\r
60     },\r
61     {\r
62         "id": "43431008.7f7928",\r
63         "type": "switchNode",\r
64         "name": "so-response-url empty?",\r
65         "xml": "<switch test='length($vf-module-topology-operation-input.sdnc-request-header.svc-notification-url) == 0'>\n",\r
66         "comments": "",\r
67         "outputs": 1,\r
68         "x": 392,\r
69         "y": 384,\r
70         "z": "a314769.77ed108",\r
71         "wires": [\r
72             [\r
73                 "e3dac757.d5f66",\r
74                 "a3e690eb.7f4b88"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "e3dac757.d5f66",\r
80         "type": "outcomeTrue",\r
81         "name": "true",\r
82         "xml": "<outcome value='true'>\n",\r
83         "comments": "",\r
84         "outputs": 1,\r
85         "x": 617,\r
86         "y": 340,\r
87         "z": "a314769.77ed108",\r
88         "wires": [\r
89             [\r
90                 "5c050a22.e2992c"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "a3e690eb.7f4b88",\r
96         "type": "outcomeFalse",\r
97         "name": "false",\r
98         "xml": "<outcome value='false'>\n",\r
99         "comments": "",\r
100         "outputs": 1,\r
101         "x": 607,\r
102         "y": 432,\r
103         "z": "a314769.77ed108",\r
104         "wires": [\r
105             [\r
106                 "c0411a45.4e7d4"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "5c050a22.e2992c",\r
112         "type": "call",\r
113         "name": "call vf-module-topology-operation-assign-sync",\r
114         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-sync' mode='sync' >\n",\r
115         "comments": "",\r
116         "outputs": 1,\r
117         "x": 1293,\r
118         "y": 341,\r
119         "z": "a314769.77ed108",\r
120         "wires": [\r
121             []\r
122         ]\r
123     },\r
124     {\r
125         "id": "4c116772.ba24a",\r
126         "type": "call",\r
127         "name": "call vf-module-topology-operation-assign-async",\r
128         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vf-module-topology-operation-assign-async' mode='sync' >\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 1382,\r
132         "y": 544,\r
133         "z": "a314769.77ed108",\r
134         "wires": [\r
135             []\r
136         ]\r
137     },\r
138     {\r
139         "id": "c0411a45.4e7d4",\r
140         "type": "switchNode",\r
141         "name": "so-response-url = ignored URL?",\r
142         "xml": "<switch test='$vf-module-topology-operation-input.sdnc-request-header.svc-notification-url) == $prop.so.ignore-url'>\n",\r
143         "comments": "",\r
144         "outputs": 1,\r
145         "x": 829,\r
146         "y": 433,\r
147         "z": "a314769.77ed108",\r
148         "wires": [\r
149             [\r
150                 "c677e17b.35a978",\r
151                 "a7cad0db.81847"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "3ac51b9d.77422c",\r
157         "type": "block",\r
158         "name": "block",\r
159         "xml": "<block>\n",\r
160         "atomic": "false",\r
161         "comments": "",\r
162         "outputs": 1,\r
163         "x": 168,\r
164         "y": 302,\r
165         "z": "a314769.77ed108",\r
166         "wires": [\r
167             [\r
168                 "de741370.91f13",\r
169                 "43431008.7f7928"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "de741370.91f13",\r
175         "type": "execute",\r
176         "name": "execute PropertiesNode",\r
177         "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",\r
178         "comments": "",\r
179         "outputs": 1,\r
180         "x": 389,\r
181         "y": 301,\r
182         "z": "a314769.77ed108",\r
183         "wires": [\r
184             []\r
185         ]\r
186     },\r
187     {\r
188         "id": "c677e17b.35a978",\r
189         "type": "outcomeTrue",\r
190         "name": "true",\r
191         "xml": "<outcome value='true'>\n",\r
192         "comments": "",\r
193         "outputs": 1,\r
194         "x": 1069,\r
195         "y": 432,\r
196         "z": "a314769.77ed108",\r
197         "wires": [\r
198             [\r
199                 "5c050a22.e2992c"\r
200             ]\r
201         ]\r
202     },\r
203     {\r
204         "id": "a7cad0db.81847",\r
205         "type": "outcomeFalse",\r
206         "name": "false",\r
207         "xml": "<outcome value='false'>\n",\r
208         "comments": "",\r
209         "outputs": 1,\r
210         "x": 1077,\r
211         "y": 533,\r
212         "z": "a314769.77ed108",\r
213         "wires": [\r
214             [\r
215                 "4c116772.ba24a"\r
216             ]\r
217         ]\r
218     }\r
219 ]