Update Subprocess to use COMPLETE status

Update Subprocess to use COMPLETE status
Update Subprocess to use COMPLETE status
Fix column name to be request_status

Issue-ID: SO-2762
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I8307524b3c226a25795247a47c95753b150076fe
diff --git a/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.2__Fix_Invalid_Request_Status.sql b/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.2__Fix_Invalid_Request_Status.sql
new file mode 100644
index 0000000..9fee716
--- /dev/null
+++ b/adapters/mso-requests-db-adapter/src/main/resources/db/migration/V8.2__Fix_Invalid_Request_Status.sql
@@ -0,0 +1,4 @@
+USE `requestdb`;
+
+UPDATE infra_active_requests SET request_status='COMPLETE' where request_status = 'COMPLETED';
+UPDATE archived_infra_requests SET request_status='COMPLETE' where request_status = 'COMPLETED';
\ No newline at end of file
diff --git a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy
index 48a8e60..ff62834 100644
--- a/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy
+++ b/bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/CompleteMsoProcess.groovy
@@ -89,7 +89,7 @@
             }
             infraRequest.setLastModifiedBy("BPMN")
             infraRequest.setStatusMessage(statusMessage)
-            infraRequest.setRequestStatus("COMPLETED")
+            infraRequest.setRequestStatus("COMPLETE")
             infraRequest.setProgress(100)
 
             if(utils.nodeExists(xml, "vnfId")){