Package com.day.cq.workflow.job
Class TimeoutJob
- java.lang.Object
 - 
- com.day.cq.workflow.job.TimeoutJob
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class TimeoutJob extends java.lang.Object implements java.io.SerializableTheTimeoutJobclass provides a utility for creating event triggered job used for programmed/scripted workflow steps.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTIMEOUT_JOBThe event property holding theTimeoutJob.static java.lang.StringTIMEOUT_JOB_TOPICThe job topic for adding an entry to the audit log. 
- 
Constructor Summary
Constructors Constructor Description TimeoutJob(WorkItem item, java.lang.String handler)Creates a new WorkflowJob. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.service.event.EventcancelEvent(boolean executeParallel)Convenience method to create a job cancel event for the workflow job.org.osgi.service.event.EventcreateEvent(boolean executeParallel, long seconds, boolean addOffset)Convenience method to create a job event for the workflow job.java.lang.StringgetHandler()Returns the timeout handlerjava.lang.StringgetWorkItemId()Returns theWorkItemIdof the job 
 - 
 
- 
- 
Field Detail
- 
TIMEOUT_JOB_TOPIC
public static final java.lang.String TIMEOUT_JOB_TOPIC
The job topic for adding an entry to the audit log.- See Also:
 - Constant Field Values
 
 
- 
TIMEOUT_JOB
public static final java.lang.String TIMEOUT_JOB
The event property holding theTimeoutJob.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getWorkItemId
public java.lang.String getWorkItemId()
Returns theWorkItemIdof the job- Returns:
 - String work item id
 
 
- 
getHandler
public java.lang.String getHandler()
Returns the timeout handler- Returns:
 - String the name of the handler
 
 
- 
createEvent
public org.osgi.service.event.Event createEvent(boolean executeParallel, long seconds, boolean addOffset)Convenience method to create a job event for the workflow job.- Parameters:
 executeParallel- true or false. Execute job event in parallelseconds- timeout value in secondsaddOffset- boolean. add current date/time as starting offset- Returns:
 - Event 
Eventobject created 
 
- 
cancelEvent
public org.osgi.service.event.Event cancelEvent(boolean executeParallel)
Convenience method to create a job cancel event for the workflow job.- Parameters:
 executeParallel- true or false. Execute job event in parallel- Returns:
 - Event 
Eventobject created 
 
 - 
 
 -