Package com.avoka.tm.svc
Class JobActionSvc
java.lang.Object
com.avoka.tm.svc.JobActionSvc
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Provides a callback to tell the job controller that the specified asynchronous action ('Job Async Action') has been completed.setJobActionKey
(String jobActionKey)
-
Constructor Details
-
JobActionSvc
-
-
Method Details
-
setJobActionKey
-
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
-