Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
        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);
        }