04-04-2006 08:41 AM
public class GenericActionExecuter extends ActionExecuterAbstractBase {
public static final String NAME = "action-generic";
private ActionExecutable target;
private List<Object> executionArgs;
public void setExecutionArgs(List<Object> executionArgs) {
this.executionArgs = executionArgs;
}
public void executeImpl(Action ruleAction, NodeRef actionedUponNodeRef) {
target.doExecute(ruleAction, actionedUponNodeRef, executionArgs);
}
protected void addParameterDefintions(List<ParameterDefinition> paramList) {
target.doAddParameterDefintions(paramList);
}
public void setTarget(ActionExecutable target) {
this.target = target;
}
}
Any class that implements this interface…
public interface ActionExecutable {
public void doExecute(Action ruleAction, NodeRef actionedUponNodeRef, List<Object> args);
public void doAddParameterDefintions(List<ParameterDefinition> paramList);
}
04-04-2006 10:04 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.