@Service(value={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
...ABS_TIME
Constructor and Description |
---|
AbsoluteTimeAutoAdvancer() |
Modifier and Type | Method and Description |
---|---|
void |
execute(WorkItem item,
WorkflowSession session,
MetaDataMap args)
Executes a new Java process with the given
and . |
long |
getTimeoutDate(WorkItem workItem)
Returns the timeout time in ms.
|
public void execute(WorkItem item, WorkflowSession session, MetaDataMap args) throws WorkflowException
WorkflowProcess
WorkItem
and WorkflowSession
.execute
in interface WorkflowProcess
execute
in class AutoAdvancer
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 hereWorkflowException
- Thrown in case something goes wrong during execution.public long getTimeoutDate(WorkItem workItem)
AbsoluteTimeoutHandler
getTimeoutDate
in interface AbsoluteTimeoutHandler
workItem
- workitem-1
Copyright © 2010 - 2020 Adobe. All Rights Reserved