Batches Manager (.NET)

A batch is a collection of documents that a Relativity admin has grouped together based on a specific set of criteria. During the review phase of the e-discovery process, the admin assigns a batch to a reviewer. The reviewer checks out the batch to determine the relevancy of its documents to a case, and then checks the batch in after coding the documents. For more information, see Batches.

The Batches Manager API supports retrieving information about existing batches as well as checking batches in and out. As a sample use case, you could use the Batches Manager API to implement application logic that automatically checks batches in and out on behalf of reviewers.

You can also use the Batches Manager API through REST. For more information, see Batches Manager (REST).

The Relativity.Review.SDK contains this API. For compatibility and package installation instructions, see Download the SDKs and NuGet packages.

Fundamentals for the Batches Manager API

The Batches Manager API contains the following methods and classes.

Methods

The Batches Manager API exposes the following methods on the IBatchesManager interface in the Relativity.Review.Server.Versioned.<VersionNumber>.BatchSets namespace:

  • ReadAsync() method - retrieves the properties for a batch. This method takes the Artifact ID of the workspace containing the batch and the Artifact ID of the batch. It returns a Batch object, which contains information about the batch. See Read a batch.
  • CheckoutAsync() method - checks out a batch and assigns it to a specific user. This method takes the Artifact ID of the workspace containing the batch, the Artifact ID of the batch, and a CheckoutRequest object. See Check out a batch.
  • CheckinAsync() method - checks in a specific batch and updates its status. This method takes the Artifact ID of the workspace containing the batch, the Artifact ID of the batch, and an optional Boolean value indicating whether the review of the batch is complete. See Check in a batch.

Note: You can query for batches by using the Object Manager API. This API provides conditions for querying based on the batch name and the user assigned to the batch. For more information, see Object Manager (.NET).

Classes and enumerations

The Batches Manager API includes the following classes available in the Relativity.Review.Server.Domain.BatchSets.Models.<VersionNumber> namespace:

  • Batch class - represents information about a specific batch. Its properties include the Artifact ID of the batch, a user-friendly name, a status, and the user assigned to the batch.
  • BatchStatus enumeration - includes the following statuses for a batch:
    • None - indicates that the batch isn't checked out.
    • InProgress - indicates that the batch is checked out but not completed.
    • Completed - indicates that the batch is completed and checked in.
  • CheckoutRequest class - indicates the user that the batch is assigned to. The UserID property on this class contains the Artifact ID of the user.

Read a batch

Use the ReadAsync() method to retrieve the properties of a batch. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch
  • The Artifact ID of the batch

It returns a Batch object.

Check out a batch

Use the CheckoutAsync() method to check out a specific batch and assign it to a user. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch
  • The Artifact ID of the batch
  • A CheckoutRequest object that indicates how the batch is check out. It includes the Artifact ID of the user assigned to the batch.

After you check out a batch, its status is updated to InProgress.

Check in a batch

Use the CheckinAsync() method to check in a batch. This method takes the following arguments:

  • The Artifact ID of the workspace containing the batch
  • The Artifact ID of the batch
  • An optional Boolean value indicating whether the review of the batch is complete:
    • True - updates the batch status to Completed. The batch remains assigned to the current user.
    • False - updates the batch status to None and removes the user assignment.

Note: This method fails if you attempt to check in a batch with a status other than InProgress.