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 Constructor Description AbsoluteTimeAutoAdvancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(WorkItem item, WorkflowSession session, MetaDataMap args)
Executes a new Java process with the given
andWorkItem
.WorkflowSession
long
getTimeoutDate(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:WorkflowProcess
Executes a new Java process with the given
andWorkItem
.WorkflowSession
- Specified by:
execute
in interfaceWorkflowProcess
- Overrides:
execute
in classAutoAdvancer
- Parameters:
item
- The
that defines the newly startedWorkItem
JavaProcessNew
.session
- The
that is used for starting theWorkflowSession
JavaProcess
.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:AbsoluteTimeoutHandler
Returns the timeout time in ms.- Specified by:
getTimeoutDate
in interfaceAbsoluteTimeoutHandler
- Parameters:
workItem
- workitem- Returns:
- timeout time/date in ms in case the time/date is set
otherwise
-1
-
-