modify local workflow parameters to much native ones
[vid.git] / vid-ext-services-simulator / src / main / resources / preset_registration / changeManagement / get_workflows_by_model_id.json
1 {
2   "simulatorRequest": {
3     "method": "GET",
4     "path": "/workflowSpecifications/v1/workflows",
5     "queryParams" :  {
6       "vnfModelVersionId": "103b4a1b-4a15-4559-a019-1ff132180c7c"
7     }
8   } ,
9   "simulatorResponse": {
10     "responseCode": 200,
11     "body": {
12       "workflowSpecificationList": [{
13         "workflowSpecification": {
14           "artifactInfo": {
15             "artifactType": "workflow",
16             "artifactUuid": "ab6478e4-ea33-3346-ac12-ab121484a333",
17             "artifactName": "inPlaceSoftwareUpdate-1_0.bpmn",
18             "artifactVersion": "1.0",
19             "artifactDescription": "xyz xyz",
20             "workflowName": "inPlaceSoftwareUpdate",
21             "operationName": "inPlaceSoftwareUpdate",
22             "workflowSource": "sdc",
23             "workflowResourceTarget": "vnf"
24           },
25           "activitySequence": [{
26             "name": "VNFQuiesceTrafficActivity",
27             "description": "Activity to QuiesceTraffic on VNF"
28           },
29             {
30               "name": "VNFHealthCheckActivity",
31               "description": "Activity to HealthCheck VNF"
32             },
33             {
34               "name": "FlowCompleteActivity",
35               "description": "Activity to Complete the BPMN Flow"
36             }
37           ],
38           "workflowInputParameters": [{
39             "label": "Cloud Owner",
40             "inputType": "text",
41             "required": true,
42             "validation": [{
43               "maxLength": "7",
44               "allowableChars": "[a-zA-Z0-9]*"
45             }],
46             "soFieldName": "cloudOwner",
47             "soPayloadLocation": "cloudConfiguration"
48           },
49             {
50               "label": "Cloud Region ID",
51               "inputType": "text",
52               "required": true,
53               "validation": [{
54                 "maxLength": "7",
55                 "allowableChars": "[a-zA-Z0-9]*"
56               }],
57               "soFieldName": "lcpCloudRegionId",
58               "soPayloadLocation": "cloudConfiguration"
59             },
60             {
61               "label": "Tenant/Project ID",
62               "inputType": "text",
63               "required": true,
64               "validation": [{
65                 "maxLength": "36",
66                 "allowableChars": "[a-zA-Z0-9]*"
67               }],
68               "soFieldName": "tenantId",
69               "soPayloadLocation": "cloudConfiguration"
70             },
71             {
72               "label": "Operations Timeout",
73               "inputType": "text",
74               "required": true,
75               "description": "some description",
76               "validation": [{
77                 "maxLength": "50",
78                 "allowableChars": "[a-zA-Z0-9]*"
79               }],
80               "soFieldName": "operations_timeout",
81               "soPayloadLocation": "userParams"
82             },
83             {
84               "label": "Existing Software Version",
85               "inputType": "text",
86               "required": true,
87               "validation": [{
88                 "maxLength": "50",
89                 "allowableChars": "[a-zA-Z0-9]*"
90               }],
91               "soFieldName": "existing_software_version",
92               "soPayloadLocation": "userParams"
93             },
94             {
95               "label": "New Software Version",
96               "inputType": "text",
97               "required": true,
98               "soFieldName": "new_software_version",
99               "soPayloadLocation": "userParams"
100             }
101           ]
102         }
103       },
104         {
105           "workflowSpecification": {
106             "artifactInfo": {
107               "artifactType": "workflow",
108               "artifactUuid": "ab6478e4-ea33-3346-ac12-ab121484a333",
109               "artifactName": "inPlaceSoftwareUpdate-1_0.bpmn",
110               "artifactVersion": "1.0",
111               "artifactDescription": "xyz xyz",
112               "workflowName": "VNF In Place Software Update",
113               "operationName": "VNF In Place Software Update",
114               "workflowSource": "native",
115               "workflowResourceTarget": "vnf"
116             },
117             "activitySequence": [{
118               "name": "VNFQuiesceTrafficActivity",
119               "description": "Activity to QuiesceTraffic on VNF"
120             },
121               {
122                 "name": "VNFHealthCheckActivity",
123                 "description": "Activity to HealthCheck VNF"
124               },
125               {
126                 "name": "FlowCompleteActivity",
127                 "description": "Activity to Complete the BPMN Flow"
128               }
129             ],
130             "workflowInputParameters": [{
131               "label": "Cloud Owner",
132               "inputType": "text",
133               "required": true,
134               "validation": [{
135                 "maxLength": "7",
136                 "allowableChars": "[a-zA-Z0-9]*"
137               }],
138               "soFieldName": "cloudOwner",
139               "soPayloadLocation": "cloudConfiguration"
140             },
141               {
142                 "label": "Cloud Region ID",
143                 "inputType": "text",
144                 "required": true,
145                 "validation": [{
146                   "maxLength": "7",
147                   "allowableChars": "[a-zA-Z0-9]*"
148                 }],
149                 "soFieldName": "lcpCloudRegionId",
150                 "soPayloadLocation": "cloudConfiguration"
151               },
152               {
153                 "label": "Tenant/Project ID",
154                 "inputType": "text",
155                 "required": true,
156                 "validation": [{
157                   "maxLength": "36",
158                   "allowableChars": "[a-zA-Z0-9]*"
159                 }],
160                 "soFieldName": "tenantId",
161                 "soPayloadLocation": "cloudConfiguration"
162               },
163               {
164                 "label": "Operations timeout",
165                 "inputType": "text",
166                 "required": true,
167                 "description": "some description",
168                 "validation": [{
169                   "maxLength": "50",
170                   "allowableChars": "[0-9]*"
171                 }],
172                 "soFieldName": "operations_timeout",
173                 "soPayloadLocation": "userParams"
174               },
175               {
176                 "label": "Existing software version",
177                 "inputType": "text",
178                 "required": true,
179                 "validation": [{
180                   "maxLength": "50",
181                   "allowableChars": "[a-zA-Z0-9]*"
182                 }],
183                 "soFieldName": "existing_software_version",
184                 "soPayloadLocation": "userParams"
185               },
186               {
187                 "label": "New software version",
188                 "inputType": "text",
189                 "required": true,
190                 "soFieldName": "new_software_version",
191                 "soPayloadLocation": "userParams"
192               }
193             ]
194           }
195         }]
196     }
197   }
198 }