com.day.cq.workflow.timeout.autoadvance
Class AbsoluteTimeAutoAdvancer
java.lang.Object
com.day.cq.workflow.timeout.autoadvance.AutoAdvancer
com.day.cq.workflow.timeout.autoadvance.AbsoluteTimeAutoAdvancer
- All Implemented Interfaces:
- WorkflowProcess, AbsoluteTimeoutHandler
public class AbsoluteTimeAutoAdvancer
- extends AutoAdvancer
- implements AbsoluteTimeoutHandler
AutoAdvancer...
|
Field Summary |
protected org.slf4j.Logger |
log
Default log. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
- Default log.
AbsoluteTimeAutoAdvancer
public AbsoluteTimeAutoAdvancer()
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
WorkItem
and WorkflowSession.
- Specified by:
execute in interface WorkflowProcess- Overrides:
execute in class AutoAdvancer
- Parameters:
item - The WorkItem that defines the newly
started JavaProcessNew.session - The WorkflowSession
that is used for starting the 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 interface AbsoluteTimeoutHandler
- Parameters:
workItem - workitem
- Returns:
- timeout time/date in ms in case the time/date is set
otherwise
-1
Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.