com.day.cq.workflow.timeout.autoadvance
Class AbsoluteTimeAutoAdvancer

java.lang.Object
  extended by com.day.cq.workflow.timeout.autoadvance.AutoAdvancer
      extended by 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.
 
Fields inherited from interface com.day.cq.workflow.job.AbsoluteTimeoutHandler
ABS_TIME
 
Constructor Summary
AbsoluteTimeAutoAdvancer()
           
 
Method Summary
 void execute(WorkItem item, WorkflowSession session, MetaDataMap args)
          Executes a new Java process with the given WorkItem and WorkflowSession.
 long getTimeoutDate(WorkItem workItem)
          Returns the timeout time in ms.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
Default log.

Constructor Detail

AbsoluteTimeAutoAdvancer

public AbsoluteTimeAutoAdvancer()
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 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.