public String generateExportGroupRemoveVolumesCleanup(Workflow workflow,String previousStep,StorageSystem storage,ExportGroup exportGroup,List<URI> volumeURIs,List<URI> initiatorURIs){
  URI exportGroupURI=exportGroup.getId();
  URI storageURI=storage.getId();
  String cleanupStep=workflow.createStepId();
  ExportTaskCompleter exportTaskCompleter=new ExportGroupRemoveVolumesCleanupCompleter(exportGroupURI,cleanupStep);
  Workflow.Method cleanupExecuteMethod=new Workflow.Method("doExportGroupRemoveVolumesCleanup",storageURI,exportGroupURI,volumeURIs,initiatorURIs,exportTaskCompleter);
  cleanupStep=workflow.createStep(EXPORT_GROUP_CLEANUP_TASK,String.format("Cleanup of volumes from export group %s",exportGroup.getLabel()),previousStep,storageURI,storage.getSystemType(),MaskingWorkflowEntryPoints.class,cleanupExecuteMethod,null,cleanupStep);
  return cleanupStep;
}

public String generateExportGroupRemoveVolumesCleanup ( Workflow workflow , String previousStep , StorageSystem storage , ExportGroup exportGroup , List < URI > volumeURIs , List < URI > initiatorURIs ) { URI exportGroupURI = exportGroup . getId ( ) ; URI storageURI = storage . getId ( ) ; String cleanupStep = workflow . createStepId ( ) ; ExportTaskCompleter exportTaskCompleter = new ExportGroupRemoveVolumesCleanupCompleter ( exportGroupURI , cleanupStep ) ; Workflow . Method cleanupExecuteMethod = new Workflow . Method ( "doExportGroupRemoveVolumesCleanup" , storageURI , exportGroupURI , volumeURIs , initiatorURIs , exportTaskCompleter ) ; cleanupStep = workflow . createStep ( EXPORT_GROUP_CLEANUP_TASK , String . format ( "Cleanup of volumes from export group %s" , exportGroup . getLabel ( ) ) , previousStep , storageURI , storage . getSystemType ( ) , MaskingWorkflowEntryPoints . class , cleanupExecuteMethod , null , cleanupStep ) ; return cleanupStep ; }
generate workflow steps to remove volumes from an export mask .
