Add logic to use sync vs async SO response
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_vnf-topology-operation-assign.json
1 [\r
2     {\r
3         "id": "d8152ad9.82c12",\r
4         "type": "comment",\r
5         "name": "vnf-topology-operation-assign",\r
6         "info": "",\r
7         "comments": "",\r
8         "x": 289,\r
9         "y": 64,\r
10         "z": "d1fefa2f.dc5878",\r
11         "wires": []\r
12     },\r
13     {\r
14         "id": "2dfa6d30.c20ada",\r
15         "type": "dgstart",\r
16         "name": "DGSTART",\r
17         "outputs": 1,\r
18         "x": 109,\r
19         "y": 149,\r
20         "z": "d1fefa2f.dc5878",\r
21         "wires": [\r
22             [\r
23                 "6fce10a9.87d3d"\r
24             ]\r
25         ]\r
26     },\r
27     {\r
28         "id": "c77c58e8.bd4388",\r
29         "type": "method",\r
30         "name": "vnf-topology-operation-assign",\r
31         "xml": "<method rpc='vnf-topology-operation-assign' mode='sync'>\n",\r
32         "comments": "",\r
33         "outputs": 1,\r
34         "x": 271,\r
35         "y": 252,\r
36         "z": "d1fefa2f.dc5878",\r
37         "wires": [\r
38             [\r
39                 "4626099.919e7f8"\r
40             ]\r
41         ]\r
42     },\r
43     {\r
44         "id": "6fce10a9.87d3d",\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": 306,\r
53         "y": 194,\r
54         "z": "d1fefa2f.dc5878",\r
55         "wires": [\r
56             [\r
57                 "c77c58e8.bd4388"\r
58             ]\r
59         ]\r
60     },\r
61     {\r
62         "id": "34c5880c.3f1be8",\r
63         "type": "switchNode",\r
64         "name": "so-response-url empty?",\r
65         "xml": "<switch test='length($vnf-topology-operation-input.sdnc-request-header.svc-notification-url) == 0'>\n",\r
66         "comments": "",\r
67         "outputs": 1,\r
68         "x": 413,\r
69         "y": 403,\r
70         "z": "d1fefa2f.dc5878",\r
71         "wires": [\r
72             [\r
73                 "ea711693.205148",\r
74                 "9c19c050.c2966"\r
75             ]\r
76         ]\r
77     },\r
78     {\r
79         "id": "ea711693.205148",\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": 638,\r
86         "y": 359,\r
87         "z": "d1fefa2f.dc5878",\r
88         "wires": [\r
89             [\r
90                 "ef1a11b7.9f048"\r
91             ]\r
92         ]\r
93     },\r
94     {\r
95         "id": "9c19c050.c2966",\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": 628,\r
102         "y": 451,\r
103         "z": "d1fefa2f.dc5878",\r
104         "wires": [\r
105             [\r
106                 "f7cfe715.aecd18"\r
107             ]\r
108         ]\r
109     },\r
110     {\r
111         "id": "ef1a11b7.9f048",\r
112         "type": "call",\r
113         "name": "call vnf-topology-operation-assign-sync",\r
114         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign-sync' mode='sync' >\n",\r
115         "comments": "",\r
116         "outputs": 1,\r
117         "x": 1314,\r
118         "y": 360,\r
119         "z": "d1fefa2f.dc5878",\r
120         "wires": [\r
121             []\r
122         ]\r
123     },\r
124     {\r
125         "id": "4b8837af.8e5f18",\r
126         "type": "call",\r
127         "name": "call vnf-topology-operation-assign-async",\r
128         "xml": "<call module='GENERIC-RESOURCE-API' rpc='vnf-topology-operation-assign-async' mode='sync' >\n",\r
129         "comments": "",\r
130         "outputs": 1,\r
131         "x": 1403,\r
132         "y": 563,\r
133         "z": "d1fefa2f.dc5878",\r
134         "wires": [\r
135             []\r
136         ]\r
137     },\r
138     {\r
139         "id": "f7cfe715.aecd18",\r
140         "type": "switchNode",\r
141         "name": "so-response-url = ignored URL?",\r
142         "xml": "<switch test='$vnf-topology-operation-input.sdnc-request-header.svc-notification-url) == $prop.so.ignore-url'>\n",\r
143         "comments": "",\r
144         "outputs": 1,\r
145         "x": 850,\r
146         "y": 452,\r
147         "z": "d1fefa2f.dc5878",\r
148         "wires": [\r
149             [\r
150                 "585f0b6a.5484b4",\r
151                 "99002e6e.d012d"\r
152             ]\r
153         ]\r
154     },\r
155     {\r
156         "id": "4626099.919e7f8",\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": 189,\r
164         "y": 321,\r
165         "z": "d1fefa2f.dc5878",\r
166         "wires": [\r
167             [\r
168                 "961c47b7.44b8d",\r
169                 "34c5880c.3f1be8"\r
170             ]\r
171         ]\r
172     },\r
173     {\r
174         "id": "961c47b7.44b8d",\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": 410,\r
181         "y": 320,\r
182         "z": "d1fefa2f.dc5878",\r
183         "wires": [\r
184             []\r
185         ]\r
186     },\r
187     {\r
188         "id": "585f0b6a.5484b4",\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": 1090,\r
195         "y": 451,\r
196         "z": "d1fefa2f.dc5878",\r
197         "wires": [\r
198             [\r
199                 "ef1a11b7.9f048"\r
200             ]\r
201         ]\r
202     },\r
203     {\r
204         "id": "99002e6e.d012d",\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": 1098,\r
211         "y": 552,\r
212         "z": "d1fefa2f.dc5878",\r
213         "wires": [\r
214             [\r
215                 "4b8837af.8e5f18"\r
216             ]\r
217         ]\r
218     }\r
219 ]