public void deleteReferencesForWorkflowRun(String workflowRunId) throws ReferenceServiceException { String errorString = ""; try{ listService.deleteIdentifiedListsForWorkflowRun(workflowRunId); } catch(ReferenceServiceException resex){ errorString += "Failed to delete lists for workflow run: " + workflowRunId + "."; } try{ referenceSetService.deleteReferenceSetsForWorkflowRun(workflowRunId); } catch(ReferenceServiceException resex){ errorString += "Failed to delete reference sets for workflow run: " + workflowRunId + "."; } try{ errorDocumentService.deleteErrorDocumentsForWorkflowRun(workflowRunId); } catch(ReferenceServiceException resex){ errorString += "Failed to delete error documents for workflow run: " + workflowRunId +"."; } if (!errorString.equals("")){ throw new ReferenceServiceException(errorString); } }