Config Deploy
[so.git] / bpmn / so-bpmn-tasks / src / main / java / org / onap / so / bpmn / infrastructure / aai / tasks / AAIUpdateTasks.java
index bc6770c..82b61c1 100644 (file)
@@ -538,4 +538,26 @@ public class AAIUpdateTasks {
                        exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
                }
        }
+       
+       public void updateOrchestrationStausConfigDeployConfigureVnf(BuildingBlockExecution execution){
+               try{
+                       GenericVnf vnf = extractPojosForBB.extractByKey(execution, ResourceKey.GENERIC_VNF_ID);
+                       aaiVnfResources.updateOrchestrationStatusVnf(vnf, OrchestrationStatus.CONFIGURE);
+                       
+               }catch(Exception ex){
+                       exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);                      
+               }
+               
+       }
+       
+       public void updateOrchestrationStausConfigDeployConfiguredVnf(BuildingBlockExecution execution){
+               try{
+                       GenericVnf vnf = extractPojosForBB.extractByKey(execution, ResourceKey.GENERIC_VNF_ID);
+                       aaiVnfResources.updateOrchestrationStatusVnf(vnf, OrchestrationStatus.CONFIGURED);
+                       
+               }catch(Exception ex){
+                       exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);                      
+               }
+               
+       }
 }