public class CatchTimer extends AbstractNode
| Constructor and Description |
|---|
CatchTimer(InputMapping<Long> delayMillisMapping,
int id) |
CatchTimer(InputMapping<Long> delayMillisMapping,
int id,
String name) |
CatchTimer(int id,
Date dueDate) |
CatchTimer(int id,
InputMapping<Date> dueDateMapping) |
CatchTimer(int id,
long delayMillis) |
CatchTimer(int id,
String name,
Date dueDate) |
CatchTimer(int id,
String name,
InputMapping<Date> dueDateMapping) |
CatchTimer(int id,
String name,
long delayMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(GraphEngine engine,
Token token)
Called when the
GraphEngine cancels the execution of a
Token, that is currently pointing to this node and is in a wait
state. |
void |
execute(GraphEngine engine,
Token token)
Performs node specific logic.
|
InputMapping<Date> |
getDueDateMapping() |
void |
store(Environment environment,
Object result)
When a token execution on a node completes and returns control back to
the engine, then the engine mandates the node to store the node execution
result into the graph instance's environment.
|
getId, getName, toStringpublic CatchTimer(int id,
long delayMillis)
public CatchTimer(int id,
String name,
long delayMillis)
public CatchTimer(InputMapping<Long> delayMillisMapping, int id)
public CatchTimer(InputMapping<Long> delayMillisMapping, int id, String name)
public CatchTimer(int id,
Date dueDate)
public CatchTimer(int id,
InputMapping<Date> dueDateMapping)
public CatchTimer(int id,
String name,
InputMapping<Date> dueDateMapping)
public InputMapping<Date> getDueDateMapping()
public void execute(GraphEngine engine, Token token)
NodeGraphEngineFacade#complete(WorkItem) method
must be called to continue executing the GraphInstance.engine - the GraphEngine which is performing the executiontoken - the Token which is currently executing in this nodepublic void cancel(GraphEngine engine, Token token)
NodeGraphEngine cancels the execution of a
Token, that is currently pointing to this node and is in a wait
state.engine - the GraphEngine which is performing the executiontoken - the Token pointing to this nodepublic void store(Environment environment, Object result)
Nodeenvironment - the environment to store the result inresult - the result to be storedCopyright © 2018. All rights reserved.