public abstract class UserAction<R> extends CoreAction<R>
public class ExampleAction extends UserAction {
private String param;
public ExampleAction(String param) {
super();
this.param = param;
}
public String executeAction() throws Exception {
return "Hello world! ("+this.param+")";
}
public String toString() {
return "ExampleAction:: param="+this.param;
}
}
Constructor and Description |
---|
UserAction(IContext context) |
Modifier and Type | Method and Description |
---|---|
IContext |
context() |
R |
execute()
This, already implemented, method calls
executeAction on execution of this Action. |
abstract R |
executeAction()
Implement this method, this method will be called when this action is executed.
|
addDataValidationFeedback, addDatavalidationFeedback, call, clone, getActionName, getClonedContext, getContext, getEventObjects, getException, getMetaInfo, getState, getUnwrappedAction, handleConcurrentExecution, setActionName, setAllowsConcurrentExecution, setContext, setEventObjects, setException, setMetaInfo, setState, setSystemAction
public UserAction(IContext context)
public IContext context()
public R execute() throws java.lang.Exception
executeAction
on execution of this Action.execute
in class CoreAction<R>
java.lang.Exception
public abstract R executeAction() throws java.lang.Exception
java.lang.Exception