/// <summary> /// Get Documents from source /// </summary> /// <returns></returns> private List <ProjectDocumentDetail> GetDocuments() { try { var documents = _analyticProject.GetDocumentIdentifiers(_jobParameter.MatterId, _jobParameter.DatasetId, _jobParameter.DocumentSource, _docStart, _docEnd, _documentBachSize, _jobParameter.IsAddAdditionalDocuments, _jobParameter.ProjectCollectionId, _jobIds); var documentIdentifiers = documents as DocumentIdentifier[] ?? documents.ToArray(); if (documents == null || !documentIdentifiers.Any()) { return(null); } if (_jobParameter.IsRerunJob) //---Rerun { return(GetDocumentsForRerunJob(documentIdentifiers)); } var projectDocumentDataList = documentIdentifiers.Select(document => new ProjectDocumentDetail { DocumentReferenceId = document.ReferenceId, TextFilePath = document.Url }).ToList(); return(projectDocumentDataList); } catch (Exception ex) { //Status code : 20991 for Get documents AnalyticsProject.LogError(_jobParameter.MatterId, WorkAssignment.JobId, 20991, ex); throw; } }
/// <summary> /// Get Documents from source /// </summary> /// <returns></returns> private List <ProjectDocumentDetail> GetDocuments() { try { var documents = _analyticProject.GetProjectDocumentsByTaskId(_jobParameter.MatterId, _dataset.CollectionId, _jobParameter.ProjectCollectionId, _docStart, _docEnd, _jobParameter.PrimarySystemJobId); if (_jobParameter.IsRerunJob) //---Rerun { return(GetDocumentsForRerunJob(documents)); } var projectDocumentDataList = documents.Select(document => new ProjectDocumentDetail { DocumentReferenceId = document.ReferenceId, DocId = document.DocId, TextFilePath = document.Url }).ToList(); return(projectDocumentDataList); } catch (Exception ex) { AnalyticsProject.LogError(_jobParameter.MatterId, WorkAssignment.JobId, 20991, ex); throw; } }
/// <summary> /// Get Documents from source /// </summary> /// <returns></returns> private List <ProjectDocumentDetail> GetDocuments() { try { var documents = _analyticProject.GetProjectDocuments(_jobParameter.MatterId, _dataset.CollectionId, _jobParameter.ProjectCollectionId, _docStart, _docEnd); var projectDocumentDataList = documents.Select(document => new ProjectDocumentDetail { DocumentReferenceId = document.ReferenceId }).ToList(); return(projectDocumentDataList); } catch (Exception ex) { AnalyticsProject.LogError(_jobParameter.MatterId, WorkAssignment.JobId, 20991, ex); throw; } }