private void addExportSnapshotSteps(Workflow workflow,ProtectionSystem rpSystem,URI exportGroupID,Map<URI,Integer> snapshots,List<URI> initiatorURIs) throws InternalException {
  ExportGroup exportGroup=_dbClient.queryObject(ExportGroup.class,exportGroupID);
  String exportStep=workflow.createStepId();
  initTaskStatus(exportGroup,exportStep,Operation.Status.pending,"create export");
  Map<URI,Map<URI,Integer>> storageToBlockObjects=getStorageToBlockObjects(snapshots);
  for (  Map.Entry<URI,Map<URI,Integer>> entry : storageToBlockObjects.entrySet()) {
    _log.info(String.format("Adding workflow step to export RP bookmark and associated target volumes.  ExportGroup: %s, Initiators: %s, Volume Map: %s",exportGroup.getId(),initiatorURIs,entry.getValue()));
    _exportWfUtils.generateExportGroupCreateWorkflow(workflow,null,STEP_ENABLE_IMAGE_ACCESS,entry.getKey(),exportGroupID,entry.getValue(),initiatorURIs);
  }
  _log.info("Finished adding export group create steps in workflow: " + exportGroup.getId());
}

private void addExportSnapshotSteps ( Workflow workflow , ProtectionSystem rpSystem , URI exportGroupID , Map < URI , Integer > snapshots , List < URI > initiatorURIs ) throws InternalException { ExportGroup exportGroup = _dbClient . queryObject ( ExportGroup . class , exportGroupID ) ; String exportStep = workflow . createStepId ( ) ; initTaskStatus ( exportGroup , exportStep , Operation . Status . pending , "create export" ) ; Map < URI , Map < URI , Integer > > storageToBlockObjects = getStorageToBlockObjects ( snapshots ) ; for ( Map . Entry < URI , Map < URI , Integer > > entry : storageToBlockObjects . entrySet ( ) ) { _log . info ( String . format ( "Adding workflow step to export RP bookmark and associated target volumes.  ExportGroup: %s, Initiators: %s, Volume Map: %s" , exportGroup . getId ( ) , initiatorURIs , entry . getValue ( ) ) ) ; _exportWfUtils . generateExportGroupCreateWorkflow ( workflow , null , STEP_ENABLE_IMAGE_ACCESS , entry . getKey ( ) , exportGroupID , entry . getValue ( ) , initiatorURIs ) ; } _log . info ( "Finished adding export group create steps in workflow: " + exportGroup . getId ( ) ) ; }
method that adds the export snapshot step .
