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) |
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 TimeoutJob(WorkItem item, java.lang.String handler)
item
- the work itemhandler
- the timeout job handlerpublic java.lang.String getWorkItemId()
WorkItem
Id
of the jobWorkItem
Id
of the jobpublic java.lang.String getHandler()
public Event createEvent(boolean executeParallel, long seconds, boolean addOffset)
executeParallel
- whether to execute in parallel or notseconds
- number of secondsaddOffset
- whether to add the current time to the specified number of secondspublic Event cancelEvent(boolean executeParallel)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"