Interface JobParameters


@Deprecated public interface JobParameters
Deprecated.
as of 25R3.4, replaced by JobQueueRequest
Provides methods to set values for job parameters on a single job instance.

This object acts as a builder for a job run. Obtain an instance from JobService.newJobParameters(String), configure it with a start time or custom parameters, and then pass it to JobService.runJob(JobParameters). Custom parameters set here are retrieved within the job via JobContext.getJobParameter(java.lang.String, com.veeva.vault.sdk.api.job.JobParamValueType<T>).

  • Method Details

    • setValue

      void setValue(String name, Object value)
      Deprecated.
      Sets the value of a job parameter. When this method is called, certain jobs specified in the name parameter may require the value parameter to be a specific data type.
      Parameters:
      name - name of the job parameter. Cannot be null.
      value - new value to set on the job parameter. Cannot be null.
    • getJobName

      String getJobName()
      Deprecated.
      Gets the name of the job specified in a JobParameters object. The job name is set by JobService.newJobParameters(String).
      Returns:
      name of the job specified in a JobParameters object
    • setJobRunTime

      void setJobRunTime(ZonedDateTime startTime)
      Deprecated.
      Sets the job start time. If unspecified or less than 60 seconds, the job will run immediately.
      Parameters:
      startTime - specifies the job start time
    • setJobTitle

      void setJobTitle(String jobTitle)
      Deprecated.
      Sets the job title. The job title parameter is optional. If nothing is specified, the title is defaulted.
      Parameters:
      jobTitle - name of the job title.
    • setJobOwner

      void setJobOwner(RequestContextUserType userType)
      Deprecated.
      Sets the job owner. The job owner is specified by a RequestContextUserType. By default, the user who starts the job is the job owner.
      Parameters:
      userType - request context user type of the desired job owner user (e.g. RequestContextUserType.INITIATING_USER)