d26d07b934208888a2ade273ef0d3268fd030ef0
[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   }
106 }