Set response code in UpdateAAIGenericVnf 75/89275/1
authorYang Xu <yxu@futurewei.com>
Tue, 28 May 2019 05:09:11 +0000 (01:09 -0400)
committerYang Xu <yang.xu@futurewei.com>
Tue, 4 Jun 2019 19:32:20 +0000 (19:32 +0000)
Change-Id: I67fb789d40ea86a82379e76b94c2da1bd552cd31
Issue-ID: SO-1927
Signed-off-by: Yang Xu <yxu@futurewei.com>
(cherry picked from commit 019a4125af612b59f11571f52e4f369cfa59ba0c)

bpmn/MSOCommonBPMN/src/main/groovy/org/onap/so/bpmn/common/scripts/UpdateAAIGenericVnf.groovy

index 82c1e4f..fb662f6 100644 (file)
@@ -227,6 +227,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)