Set response code in UpdateAAIGenericVnf 93/88593/1
authorYang Xu <yxu@futurewei.com>
Tue, 28 May 2019 05:09:11 +0000 (01:09 -0400)
committerYang Xu <yxu@futurewei.com>
Tue, 28 May 2019 05:29:08 +0000 (01:29 -0400)
Change-Id: I67fb789d40ea86a82379e76b94c2da1bd552cd31
Issue-ID: SO-1927
Signed-off-by: Yang Xu <yxu@futurewei.com>
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)