private void Create(IServicesMgr svcMgr, ExecutionIdentity identity, Int32 workspaceArtifactId) { _artifact = Rsapi.ProcessingSet.Create(svcMgr, identity, workspaceArtifactId, Name, SelectedProfileArtifactId, EmailRecipients); ArtifactId = _artifact.ArtifactID; var processingSetRdo = Rsapi.ProcessingSet.Read(svcMgr, identity, workspaceArtifactId, ArtifactId); ArtifactTypeId = processingSetRdo.ArtifactTypeID.HasValue ? processingSetRdo.ArtifactTypeID.Value : 0; }
public ProcessingDataSourceModel(String sourcePath, Int32 custodianArtifactId, Int32 order, ProcessingProfileModel processingProfile, kCura.Relativity.Client.DTOs.Artifact processingSet) { SourcePath = sourcePath; CustodianArtifactId = custodianArtifactId; Order = order; ProcessingProfile = processingProfile; ProcessingSet = processingSet; }
public void AddToProcessingSet(IServicesMgr svcMgr, ExecutionIdentity identity, Int32 workspaceArtifactId, kCura.Relativity.Client.DTOs.Artifact processingSet, int processingProfileArtifactId, Int32 order, DestinationEnum destination) { var processingProfile = new ProcessingProfileModel(processingProfileArtifactId); processingProfile.Initialize(svcMgr, identity, workspaceArtifactId); var custodian = new CustodianModel(CustodianNames); custodian.LoadOrCreateCustodianArtifact(svcMgr, identity, workspaceArtifactId, destination); var processingDataSource = new ProcessingDataSourceModel(FullPath, custodian.ArtifactId, order, processingProfile, processingSet); processingDataSource.Create(svcMgr, identity, workspaceArtifactId, processingProfile.DocumentNumberPrefix); processingDataSource.Update(svcMgr, identity, workspaceArtifactId); }