public abstract class AbstractFlowTaskAction extends java.lang.Object implements FlowAction
FlowAction implementations that execute a custom task. In this case a task is always defined
as a Runnable.| ?????? | ???? |
|---|---|
static interface |
AbstractFlowTaskAction.TaskFactory |
| ?????? |
|---|
AbstractFlowTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass)
Defines a new
AbstractFlowTaskAction instance that task is defined by a class that extends
Runnable. |
AbstractFlowTaskAction(java.lang.Runnable runnable)
Defines a new
AbstractFlowTaskAction instance that task is defined by a Runnable instance. |
| ?????? | ????? |
|---|---|
protected abstract void |
execute(java.lang.Runnable r)
Executes the defined
Runnable |
void |
handle(FlowHandler flowHandler,
java.lang.String actionId)
This method will be called by the
FlowHandler of the current flow whenever the action is triggered. |
public AbstractFlowTaskAction(java.lang.Class<? extends java.lang.Runnable> runnableClass)
AbstractFlowTaskAction instance that task is defined by a class that extends
Runnable. Whenever a action is triggered a new instance of the given class will be created. Therefore the
class needs a default constructor. All injection that is working in a controller class will work in the given
class that defines the task, too.runnableClass - the class that defines the taskpublic AbstractFlowTaskAction(java.lang.Runnable runnable)
AbstractFlowTaskAction instance that task is defined by a Runnable instance.runnable - defines the task and will be called whenever the action is triggered.public void handle(FlowHandler flowHandler, java.lang.String actionId) throws FlowException
FlowActionFlowHandler of the current flow whenever the action is triggered.handle ???? FlowActionflowHandler - the flowHandler of the current flowactionId - unique ID of this action in the current flowFlowException - if an error occures while handling the actionprotected abstract void execute(java.lang.Runnable r)
throws java.lang.Exception
Runnabler - the runnablejava.lang.Exception - if the runnable can't be executed