Package com.avoka.tm.svc
Class JobSvc
java.lang.Object
com.avoka.tm.svc.JobSvc
Provides a job value object svc class.
Examples
Please find the job svc examples below.
Process or Cancels a Job
This Groovy example shows how to cancel or process a job.
 import com.avoka.tm.svc.*
 import com.avoka.tm.vo.*
 new JobSvc(job)
     .cancel()
 new JobSvc()
     .setId(123)
     .process() - Since:
- 19.5.0
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
JobSvcpublic JobSvc()Create a job service.
- 
JobSvcCreate a job service setting the job to update.- Parameters:
- job- the Job to update.
 
 
- 
- 
Method Details- 
setIdSet the id of the job to update.- Parameters:
- id- the id (Long) of the job to update
- Returns:
- the job updater
 
- 
processProcess the job immediately.
- 
cancelCancel the job.
 
-