class AAIDeleteTasks {

    public void deleteVolumeGroup(BuildingBlockExecution execution) {
        try {
            VolumeGroup volumeGroup = extractPojosForBB.extractByKey(execution, ResourceKey.VOLUME_GROUP_ID);
            CloudRegion cloudRegion = execution.getGeneralBuildingBlock().getCloudRegion();
            aaiVolumeGroupResources.deleteVolumeGroup(volumeGroup, cloudRegion);
        } catch (Exception ex) {
            logger.error("Exception occurred in AAIDeleteTasks deleteVolumeGroup process", ex);
            exceptionUtil.buildAndThrowWorkflowException(execution, 7000, ex);
        }
    }

}