Merge "Set response code in UpdateAAIGenericVnf" into dublin
authorMarcus Williams <marcus.williams@intel.com>
Tue, 28 May 2019 18:21:10 +0000 (18:21 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 28 May 2019 18:21:10 +0000 (18:21 +0000)
bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/UpdateAAIGenericVnf.groovy

index a40bf59..ebab6ad 100644 (file)
@@ -226,6 +226,8 @@ public class UpdateAAIGenericVnf extends AbstractServiceTaskProcessor {
 
                        try {
                                getAAIClient().update(uri,payload)
+                               execution.setVariable('UAAIGenVnf_updateGenericVnfResponseCode', 200)
+                               execution.setVariable('UAAIGenVnf_updateGenericVnfResponse', "Success")
                        } catch (Exception ex) {
                                logger.debug('Exception occurred while executing AAI PATCH: {}', ex.getMessage(), ex)
                                execution.setVariable('UAAIGenVnf_updateGenericVnfResponseCode', 500)