Package com.day.cq.workflow.job
Class TimeoutJob
java.lang.Object
com.day.cq.workflow.job.TimeoutJob
- All Implemented Interfaces:
Serializable
The
TimeoutJob class provides a utility for creating event
triggered job used for programmed/scripted workflow steps.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe event property holding theTimeoutJob.static final StringThe job topic for adding an entry to the audit log. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelEvent(boolean executeParallel) Convenience method to create a job cancel event for the workflow job.createEvent(boolean executeParallel, long seconds, boolean addOffset) Convenience method to create a job event for the workflow job.Returns the timeout handlerReturns theWorkItemIdof the job
-
Field Details
-
TIMEOUT_JOB_TOPIC
The job topic for adding an entry to the audit log.- See Also:
-
TIMEOUT_JOB
The event property holding theTimeoutJob.- See Also:
-
-
Constructor Details
-
TimeoutJob
Creates a new WorkflowJob.- Parameters:
item-WorkItemof the job to be createdhandler- Handler of the job
-
-
Method Details
-
getWorkItemId
Returns theWorkItemIdof the job- Returns:
- String work item id
-
getHandler
Returns the timeout handler- Returns:
- String the name of the handler
-
createEvent
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
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
-