Package com.adobe.granite.workflow.job
Class TimeoutJob
java.lang.Object
com.adobe.granite.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) 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- the work itemhandler- the timeout job handler
-
-
Method Details
-
getWorkItemId
Returns theWorkItemIdof the job- Returns:
- the
WorkItemIdof the job
-
getHandler
Returns the timeout handler- Returns:
- the timeout handler
-
createEvent
Convenience method to create a job event for the workflow job.- Parameters:
executeParallel- whether to execute in parallel or notseconds- number of secondsaddOffset- whether to add the current time to the specified number of seconds- Returns:
- the created event
-
cancelEvent
-