Query CatalogDB for WorkflowSpecifications
[so.git] / mso-api-handlers / mso-api-handler-infra / src / test / resources / __files / catalogdb / WorkflowSpecificationsQuery_Response.json
1 {
2         "_embedded": {
3         "workflows" :[
4   {
5     "artifactUUID": "ab6478e4-ea33-3346-ac12-ab121484a333",
6     "artifactName": "inPlaceSoftwareUpdate-1_0.bpmn",
7     "name": "inPlaceSoftwareUpdate",
8     "operationName": "inPlaceSoftwareUpdate",
9     "version": 1,
10     "description": "xyz xyz",
11     "body": null,
12     "resourceTarget": "vnf",
13     "source": "sdc",
14     "timeoutMinutes": null,
15     "artifactChecksum": null,
16     "created": null,
17     "vnfResourceWorkflow": null,
18     "workflowActivitySpecSequence": [
19       {
20         "activitySpecId": null,
21         "workflowId": null,
22         "activitySpec": {
23           "name": "VNFQuiesceTrafficActivity",
24           "description": "Activity to QuiesceTraffic on VNF",
25           "version": null,
26           "created": null,
27           "workflowActivitySpecSequence": null,
28           "activitySpecActivitySpecCategories": null,
29           "activitySpecUserParameters": [
30             {
31               "activitySpecId": null,
32               "userParametersId": null,
33               "activitySpec": null,
34               "userParameters": {
35                 "name": "operations_timeout",
36                 "payloadLocation": "userParams",
37                 "label": "Operations Timeout",
38                 "type": "text",
39                 "description": null,
40                 "isRequried": true,
41                 "maxLength": 50,
42                 "allowableChars": "someRegEx",
43                 "created": null,
44                 "activitySpecUserParameters": null,
45                 "id": null
46               },
47               "id": null
48             },
49             {
50               "activitySpecId": null,
51               "userParametersId": null,
52               "activitySpec": null,
53               "userParameters": {
54                 "name": "existing_software_version",
55                 "payloadLocation": "userParams",
56                 "label": "Existing Software Version",
57                 "type": "text",
58                 "description": null,
59                 "isRequried": true,
60                 "maxLength": 50,
61                 "allowableChars": "someRegEx",
62                 "created": null,
63                 "activitySpecUserParameters": null,
64                 "id": null
65               },
66               "id": null
67             },
68             {
69               "activitySpecId": null,
70               "userParametersId": null,
71               "activitySpec": null,
72               "userParameters": {
73                 "name": "cloudOwner",
74                 "payloadLocation": "cloudConfiguration",
75                 "label": "Cloud Owner",
76                 "type": "text",
77                 "description": null,
78                 "isRequried": true,
79                 "maxLength": 7,
80                 "allowableChars": "someRegEx",
81                 "created": null,
82                 "activitySpecUserParameters": null,
83                 "id": null
84               },
85               "id": null
86             },
87             {
88               "activitySpecId": null,
89               "userParametersId": null,
90               "activitySpec": null,
91               "userParameters": {
92                 "name": "tenantId",
93                 "payloadLocation": "cloudConfiguration",
94                 "label": "Tenant/Project ID",
95                 "type": "text",
96                 "description": null,
97                 "isRequried": true,
98                 "maxLength": 36,
99                 "allowableChars": "someRegEx",
100                 "created": null,
101                 "activitySpecUserParameters": null,
102                 "id": null
103               },
104               "id": null
105             },
106             {
107               "activitySpecId": null,
108               "userParametersId": null,
109               "activitySpec": null,
110               "userParameters": {
111                 "name": "new_software_version",
112                 "payloadLocation": "userParams",
113                 "label": "New Software Version",
114                 "type": "text",
115                 "description": null,
116                 "isRequried": true,
117                 "maxLength": 50,
118                 "allowableChars": "someRegEx",
119                 "created": null,
120                 "activitySpecUserParameters": null,
121                 "id": null
122               },
123               "id": null
124             },
125             {
126               "activitySpecId": null,
127               "userParametersId": null,
128               "activitySpec": null,
129               "userParameters": {
130                 "name": "lcpCloudRegionId",
131                 "payloadLocation": "cloudConfiguration",
132                 "label": "Cloud Region ID",
133                 "type": "text",
134                 "description": null,
135                 "isRequried": true,
136                 "maxLength": 7,
137                 "allowableChars": "someRegEx",
138                 "created": null,
139                 "activitySpecUserParameters": null,
140                 "id": null
141               },
142               "id": null
143             }
144           ],
145           "activitySpecActivitySpecParameters": null,
146           "id": null
147         },
148         "workflow": null,
149         "id": null,
150         "_links": {
151     "self": {
152       "href": "http://localhost:8090/workflow/search/findWorkflowByModelUUID[?]vnfResourceModelUUID=b5fa707a-f55a-11e7-a796-005056856d52"
153     },    
154     "workflowActivitySpecSequence": {
155       "href": "http://localhost:8090/workflow/b5fa707a-f55a-11e7-a796-005056856d52/workflowActivitySpecSequence"
156     }
157   
158   }
159         
160       },
161       {
162         "activitySpecId": null,
163         "workflowId": null,
164         "activitySpec": {
165           "name": "VNFHealthCheckActivity",
166           "description": "Activity to HealthCheck VNF",
167           "version": null,
168           "created": null,
169           "workflowActivitySpecSequence": null,
170           "activitySpecActivitySpecCategories": null,
171           "activitySpecUserParameters": [
172             {
173               "activitySpecId": null,
174               "userParametersId": null,
175               "activitySpec": null,
176               "userParameters": {
177                 "name": "operations_timeout",
178                 "payloadLocation": "userParams",
179                 "label": "Operations Timeout",
180                 "type": "text",
181                 "description": null,
182                 "isRequried": true,
183                 "maxLength": 50,
184                 "allowableChars": "someRegEx",
185                 "created": null,
186                 "activitySpecUserParameters": null,
187                 "id": null
188               },
189               "id": null
190             },
191             {
192               "activitySpecId": null,
193               "userParametersId": null,
194               "activitySpec": null,
195               "userParameters": {
196                 "name": "existing_software_version",
197                 "payloadLocation": "userParams",
198                 "label": "Existing Software Version",
199                 "type": "text",
200                 "description": null,
201                 "isRequried": true,
202                 "maxLength": 50,
203                 "allowableChars": "someRegEx",
204                 "created": null,
205                 "activitySpecUserParameters": null,
206                 "id": null
207               },
208               "id": null
209             },
210             {
211               "activitySpecId": null,
212               "userParametersId": null,
213               "activitySpec": null,
214               "userParameters": {
215                 "name": "cloudOwner",
216                 "payloadLocation": "cloudConfiguration",
217                 "label": "Cloud Owner",
218                 "type": "text",
219                 "description": null,
220                 "isRequried": true,
221                 "maxLength": 7,
222                 "allowableChars": "someRegEx",
223                 "created": null,
224                 "activitySpecUserParameters": null,
225                 "id": null
226               },
227               "id": null
228             },
229             {
230               "activitySpecId": null,
231               "userParametersId": null,
232               "activitySpec": null,
233               "userParameters": {
234                 "name": "tenantId",
235                 "payloadLocation": "cloudConfiguration",
236                 "label": "Tenant/Project ID",
237                 "type": "text",
238                 "description": null,
239                 "isRequried": true,
240                 "maxLength": 36,
241                 "allowableChars": "someRegEx",
242                 "created": null,
243                 "activitySpecUserParameters": null,
244                 "id": null
245               },
246               "id": null
247             },
248             {
249               "activitySpecId": null,
250               "userParametersId": null,
251               "activitySpec": null,
252               "userParameters": {
253                 "name": "new_software_version",
254                 "payloadLocation": "userParams",
255                 "label": "New Software Version",
256                 "type": "text",
257                 "description": null,
258                 "isRequried": true,
259                 "maxLength": 50,
260                 "allowableChars": "someRegEx",
261                 "created": null,
262                 "activitySpecUserParameters": null,
263                 "id": null
264               },
265               "id": null
266             },
267             {
268               "activitySpecId": null,
269               "userParametersId": null,
270               "activitySpec": null,
271               "userParameters": {
272                 "name": "lcpCloudRegionId",
273                 "payloadLocation": "cloudConfiguration",
274                 "label": "Cloud Region ID",
275                 "type": "text",
276                 "description": null,
277                 "isRequried": true,
278                 "maxLength": 7,
279                 "allowableChars": "someRegEx",
280                 "created": null,
281                 "activitySpecUserParameters": null,
282                 "id": null
283               },
284               "id": null
285             }
286           ],
287           "activitySpecActivitySpecParameters": null,
288           "id": null
289         },
290         "workflow": null,
291         "id": null,
292         "_links": {
293     "self": {
294       "href": "http://localhost:8090/workflow/search/findWorkflowByModelUUID?vnfResourceModelUUID=b5fa707a-f55a-11e7-a796-005056856d52"
295     },    
296     "workflowActivitySpecSequence": {
297       "href": "http://localhost:8090/workflow/b5fa707a-f55a-11e7-a796-005056856d52/workflowActivitySpecSequence"
298     }
299   
300   }
301       },
302       {
303         "activitySpecId": null,
304         "workflowId": null,
305         "activitySpec": {
306           "name": "FlowCompleteActivity",
307           "description": "Activity to Complete the BPMN Flow",
308           "version": null,
309           "created": null,
310           "workflowActivitySpecSequence": null,
311           "activitySpecActivitySpecCategories": null,
312           "activitySpecUserParameters": [
313             {
314               "activitySpecId": null,
315               "userParametersId": null,
316               "activitySpec": null,
317               "userParameters": {
318                 "name": "operations_timeout",
319                 "payloadLocation": "userParams",
320                 "label": "Operations Timeout",
321                 "type": "text",
322                 "description": null,
323                 "isRequried": true,
324                 "maxLength": 50,
325                 "allowableChars": "someRegEx",
326                 "created": null,
327                 "activitySpecUserParameters": null,
328                 "id": null
329               },
330               "id": null
331             },
332             {
333               "activitySpecId": null,
334               "userParametersId": null,
335               "activitySpec": null,
336               "userParameters": {
337                 "name": "existing_software_version",
338                 "payloadLocation": "userParams",
339                 "label": "Existing Software Version",
340                 "type": "text",
341                 "description": null,
342                 "isRequried": true,
343                 "maxLength": 50,
344                 "allowableChars": "someRegEx",
345                 "created": null,
346                 "activitySpecUserParameters": null,
347                 "id": null
348               },
349               "id": null
350             },
351             {
352               "activitySpecId": null,
353               "userParametersId": null,
354               "activitySpec": null,
355               "userParameters": {
356                 "name": "cloudOwner",
357                 "payloadLocation": "cloudConfiguration",
358                 "label": "Cloud Owner",
359                 "type": "text",
360                 "description": null,
361                 "isRequried": true,
362                 "maxLength": 7,
363                 "allowableChars": "someRegEx",
364                 "created": null,
365                 "activitySpecUserParameters": null,
366                 "id": null
367               },
368               "id": null
369             },
370             {
371               "activitySpecId": null,
372               "userParametersId": null,
373               "activitySpec": null,
374               "userParameters": {
375                 "name": "tenantId",
376                 "payloadLocation": "cloudConfiguration",
377                 "label": "Tenant/Project ID",
378                 "type": "text",
379                 "description": null,
380                 "isRequried": true,
381                 "maxLength": 36,
382                 "allowableChars": "someRegEx",
383                 "created": null,
384                 "activitySpecUserParameters": null,
385                 "id": null
386               },
387               "id": null
388             },
389             {
390               "activitySpecId": null,
391               "userParametersId": null,
392               "activitySpec": null,
393               "userParameters": {
394                 "name": "new_software_version",
395                 "payloadLocation": "userParams",
396                 "label": "New Software Version",
397                 "type": "text",
398                 "description": null,
399                 "isRequried": true,
400                 "maxLength": 50,
401                 "allowableChars": "someRegEx",
402                 "created": null,
403                 "activitySpecUserParameters": null,
404                 "id": null
405               },
406               "id": null
407             },
408             {
409               "activitySpecId": null,
410               "userParametersId": null,
411               "activitySpec": null,
412               "userParameters": {
413                 "name": "lcpCloudRegionId",
414                 "payloadLocation": "cloudConfiguration",
415                 "label": "Cloud Region ID",
416                 "type": "text",
417                 "description": null,
418                 "isRequried": true,
419                 "maxLength": 7,
420                 "allowableChars": "someRegEx",
421                 "created": null,
422                 "activitySpecUserParameters": null,
423                 "id": null
424               },
425               "id": null
426             }
427           ],
428           "activitySpecActivitySpecParameters": null,
429           "id": null
430         },
431         "workflow": null,
432         "id": null,
433         "_links": {
434     "self": {
435       "href": "http://localhost:8090/workflow/search/findWorkflowByModelUUID?vnfResourceModelUUID=b5fa707a-f55a-11e7-a796-005056856d52"
436     },    
437     "workflowActivitySpecSequence": {
438       "href": "http://localhost:8090/workflow/b5fa707a-f55a-11e7-a796-005056856d52/workflowActivitySpecSequence"
439     }
440   
441   }
442       }
443     ],
444     "id": null,
445  
446   "_links": {
447     "self": {
448       "href": "http://localhost:8090/workflow/search/findWorkflowByModelUUID?vnfResourceModelUUID=b5fa707a-f55a-11e7-a796-005056856d52"
449     },    
450     "workflowActivitySpecSequence": {
451       "href": "http://localhost:8090/workflow/1/workflowActivitySpecSequence"
452     }
453     
454    }
455   
456   }
457 ]
458 },
459 "_links": {
460     "self": {
461       "href": "http://localhost:8090/workflow/search/findWorkflowByModelUUID?vnfResourceModelUUID=b5fa707a-f55a-11e7-a796-005056856d52"
462     },    
463     "workflowActivitySpecSequence": {
464       "href": "http://localhost:8090/workflow/b5fa707a-f55a-11e7-a796-005056856d52/workflowActivitySpecSequence"
465     }
466   
467   }
468 }