public abstract class Task<T extends Traverser> extends java.lang.Object implements Node<T>
Node
providing a location
for business logic to be performed. The business logic should perform an action
and other nodes in the workflow should be independent of said logic.Constructor and Description |
---|
Task() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
handle(T tasks)
Performs the business logic for this task.
|
void |
setNextNode(Node<T> nextNode) |
void |
start(T traverser)
Initalizes the business logic for this Node
|
public final void start(T traverser)
protected abstract void handle(T tasks)
tasks
- the event data being passed through the workflow