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 AbsoluteTimeoutHandlerAutoAdvancer...
-
-
Field Summary
-
Fields inherited from interface com.day.cq.workflow.job.AbsoluteTimeoutHandler
ABS_TIME
-
-
Constructor Summary
Constructors Constructor Description AbsoluteTimeAutoAdvancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(WorkItem item, WorkflowSession session, MetaDataMap args)Executes a new Java process with the givenandWorkItem.WorkflowSessionlonggetTimeoutDate(WorkItem workItem)Returns the timeout time in ms.
-
-
-
Method Detail
-
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
public long getTimeoutDate(WorkItem workItem)
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
-
-