Jobs API
You can use the com.servicemax.core.utils.Jobs Groovy API to activate and deactivate Jobs.
Start Job Record
def jobUUID = UUID.fromString('the_job_uuid')
Jobs.start(jobUUID)
Stop Job Record
def jobUUID = UUID.fromString('the_job_uuid')
Jobs.stop(jobUUID)
For more information: