Set response code in UpdateAAIGenericVnf
[so.git] / 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)