Class JobActionSvc


  • public class JobActionSvc
    extends Object

    Provides a job action service class.

    Examples

    Please find the job async callback examples below.

    Callbacks a Job with a task Txn or Job Action Key

    This Groovy example shows how to callback a job.

     import com.avoka.tm.svc.*
     import com.avoka.tm.vo.*
    
     boolean completed = new JobActionSvc()
                               .setJobActionKey(jobActionKey)
                               .completeAction() 
    Since:
    19.5.0
    • Constructor Detail

      • JobActionSvc

        public JobActionSvc()
    • Method Detail

      • completeAction

        public boolean completeAction()
        Provides a callback to tell the job controller that the specified asynchronous action ('Job Async Action') has been completed. The job controller should progress the associated action status from 'Invoked' to 'Completed' and the next wait action status to 'Ready'.
        Returns:
        true if the job action was found and set to "Completed" or false otherwise