Class AbsoluteTimeAutoAdvancer
java.lang.Object
com.day.cq.workflow.timeout.autoadvance.AutoAdvancer
com.day.cq.workflow.timeout.autoadvance.AbsoluteTimeAutoAdvancer
- All Implemented Interfaces:
WorkflowProcess,AbsoluteTimeoutHandler
@Service({WorkflowProcess.class,AbsoluteTimeoutHandler.class})
@Property(name="service.description",value="Workflow Auto Advance Process") @Property(name="process.label",value="Absolute Time Auto Advancer")
public class AbsoluteTimeAutoAdvancer
extends AutoAdvancer
implements AbsoluteTimeoutHandler
AutoAdvancer...-
Field Summary
Fields inherited from interface com.day.cq.workflow.job.AbsoluteTimeoutHandler
ABS_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(WorkItem item, WorkflowSession session, MetaDataMap args) Executes a new Java process with the givenandWorkItem.WorkflowSessionlonggetTimeoutDate(WorkItem workItem) Returns the timeout time in ms.
-
Constructor Details
-
AbsoluteTimeAutoAdvancer
public AbsoluteTimeAutoAdvancer()
-
-
Method Details
-
execute
public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException Description copied from interface:WorkflowProcessExecutes a new Java process with the givenandWorkItem.WorkflowSession- Specified by:
executein interfaceWorkflowProcess- Overrides:
executein classAutoAdvancer- Parameters:
item- Thethat defines the newly startedWorkItemJavaProcessNew.session- Thethat is used for starting theWorkflowSessionJavaProcess.args- Process specific arguments can be passed here- Throws:
WorkflowException- Thrown in case something goes wrong during execution.
-
getTimeoutDate
Description copied from interface:AbsoluteTimeoutHandlerReturns the timeout time in ms.- Specified by:
getTimeoutDatein interfaceAbsoluteTimeoutHandler- Parameters:
workItem- workitem- Returns:
- timeout time/date in ms in case the time/date is set
otherwise
-1
-