public class TimeoutJob
extends java.lang.Object
implements java.io.Serializable
TimeoutJob
class provides a utility for creating event
triggered job used for programmed/scripted workflow steps.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TIMEOUT_JOB
The event property holding the
TimeoutJob . |
static java.lang.String |
TIMEOUT_JOB_TOPIC
The job topic for adding an entry to the audit log.
|
Constructor and Description |
---|
TimeoutJob(WorkItem item,
java.lang.String handler)
Creates a new WorkflowJob.
|
Modifier and Type | Method and Description |
---|---|
Event |
cancelEvent(boolean executeParallel)
Convenience method to create a job cancel event for the workflow job.
|
Event |
createEvent(boolean executeParallel,
long seconds,
boolean addOffset)
Convenience method to create a job event for the workflow job.
|
java.lang.String |
getHandler()
Returns the timeout handler
|
java.lang.String |
getWorkItemId()
Returns the
WorkItem Id of the job |
public static final java.lang.String TIMEOUT_JOB_TOPIC
public static final java.lang.String TIMEOUT_JOB
TimeoutJob
.public java.lang.String getWorkItemId()
WorkItem
Id
of the jobpublic java.lang.String getHandler()
public Event createEvent(boolean executeParallel, long seconds, boolean addOffset)
executeParallel
- true or false. Execute job event in parallelseconds
- timeout value in secondsaddOffset
- boolean. add current date/time as starting offsetEvent
object createdCopyright © 2010 - 2020 Adobe. All Rights Reserved