Package com.avoka.tm.svc
Class JobActionSvc
- java.lang.Object
-
- com.avoka.tm.svc.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 Summary
Constructors Constructor Description JobActionSvc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
completeAction()
Provides a callback to tell the job controller that the specified asynchronous action ('Job Async Action') has been completed.JobActionSvc
setJobActionKey(String jobActionKey)
-
-
-
Method Detail
-
setJobActionKey
public JobActionSvc setJobActionKey(String jobActionKey)
-
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
-
-